Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/planning/v4-active-authority-map-2026-06-01.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,4 @@ Other residuals: see #4148 routing worksheets (not impl without §8)
| ---- | ------ | ------- |
| 2026-06-01 | Initial map; P5 + SG-8 APPROVED; Go/TS verdict carrier consolidation | proud-fox-405 |
| 2026-06-01 | Go five worksheets §8 APPROVED on #4149; map Go rows → APPROVED | proud-fox-405 |
| 2026-06-01 | Post-#4149 reconciliation: R2b `go_facts_int64` anchor; SG-1 §3.1 dual-name (`go_target_atom_realization_*` + `go_atom_realization_*`) | zesty-otter-480 |
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# v4 Go Leaf-Model CI Runner Worksheet — `go build` / `go test` host → `CiUpsertStep`

> **Status:** **WORKSHEET APPROVED — READY-FOR-WORKER-DISPATCH** — Modeling DFS Arbiter §8 sign-off 2026-06-01 (`proud-fox-405`); CI Manager coordinates row registration.
> **Status:** **WORKSHEET APPROVED — READY-FOR-WORKER-DISPATCH** — Modeling DFS Arbiter §8 sign-off 2026-06-01 (`proud-fox-405`); CI Manager coordinates row registration. Post-#4149 reconciliation: R2b claim id `leaf_model_claim_go_r2b_int64_silent_overflow_truncates`.
> **Date:** 2026-06-01
> **Dispatch anchor:** `docs/planning/v4-predicate-dependency-graph-2026-06-01-eod.md` §11.6 category C/D; #4091 ratified elastic CI / `CiUpsertStep` pattern (#4115 positive-Y replacement).
> **Sibling:** `docs/planning/v4-go-leaf-model-verification-worksheet-2026-06-01.md`
Expand Down Expand Up @@ -56,7 +56,7 @@ Metric allowed only as secondary:
|---|---|---|---|
| `verify_go_dag_r1` | `go build` | `leaf_model_claim_go_r1_int_surface_spelling` | `v4-leaf-model-go-r1-verify.sh` |
| `verify_go_dag_r2a` | `go build` | `leaf_model_claim_go_r2a_int_algebra_operations` | `v4-leaf-model-go-r2a-verify.sh` |
| `verify_go_dag_r2b` | `go run` or `go test` | `leaf_model_claim_go_r2b_int_silent_overflow_truncates` | `v4-leaf-model-go-r2b-verify.sh` |
| `verify_go_dag_r2b` | `go run` or `go test` | `leaf_model_claim_go_r2b_int64_silent_overflow_truncates` | `v4-leaf-model-go-r2b-verify.sh` |
| `verify_go_dag_r3_external` | `go build` | `leaf_model_claim_go_r3_external_symbol_projection` | `v4-leaf-model-go-r3-external-verify.sh` |

**FileSet trigger:** `src/v4/extdeps/languages/go.dag`, `src/v4/test/claim/language_model/go_*.dag`, `src/v4/lens/leaf_model_verification.dag` (go_* sections).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# v4 Go Leaf-Model Verification Worksheet — R1 / R2a / R2b / R3-external

> **Status:** **WORKSHEET APPROVED — READY-FOR-WORKER-DISPATCH** — Modeling DFS Arbiter §8 sign-off 2026-06-01 (`proud-fox-405`).
> **Status:** **WORKSHEET APPROVED — READY-FOR-WORKER-DISPATCH** — Modeling DFS Arbiter §8 sign-off 2026-06-01 (`proud-fox-405`). Post-#4149 reconciliation 2026-06-01 (`zesty-otter-480`): R2b `go_facts_int64` anchor (fixtures use `int64`, not platform `int`).
> **Date:** 2026-06-01
> **Dispatch anchor:** `docs/planning/v4-predicate-dependency-graph-2026-06-01-eod.md` §11.8.2 (Go L0); MW-D3 Go parity analog of Python #4117.
> **Pattern authority:** `src/v4/test/claim/language_model/python_{r1,r2a,r2b,r3_external}.dag` + `src/v4/lens/leaf_model_verification.dag` (landed #4117).
> **Model authority:** `src/v4/extdeps/languages/go.dag` (T-4.17 wave-2b; `go_surface_spelling_int`, `go_integer_algebra_inhabitance`, overflow facts).
> **Prerequisite for R3-external impl:** Go `TargetAtomRealization` rows worksheet (`docs/planning/v4-go-target-atom-realization-worksheet-2026-06-01.md`) ratified + `go_atom_realization_symbol` fact declared in `go.dag`.
> **Prerequisite for R3-external impl:** SG-1 Go worksheet ratified + `go.dag` lands **`go_target_atom_realization_symbol`** row and **`go_atom_realization_symbol`** fact_id (Rust dual-name pattern; R3 claim anchors fact_id only).

---

Expand Down Expand Up @@ -47,7 +47,8 @@ DFS path:
authority only — not a third target-named compile carrier).
extdeps/language authority:
- go.dag: go_surface_spelling_int, go_facts_int, go_integer_algebra_inhabitance(go_facts_int),
go_tag_overflow_signed_truncates, (R3) go_atom_realization_symbol — to be added per SG-1 Go worksheet
go_facts_int64 + go_tag_overflow_signed_truncates on that bundle (R2b only — fixtures use int64),
(R3) go_atom_realization_symbol fact_id → go_target_atom_realization_symbol row (SG-1 Go worksheet)
claim corpus (sibling files, per planning §4 D-LMV-4 option b):
- src/v4/test/claim/language_model/go_r1.dag
- src/v4/test/claim/language_model/go_r2a.dag
Expand Down Expand Up @@ -91,7 +92,7 @@ Metric allowed only as secondary:
|---|---|---|---|---|
| `leaf_model_claim_go_r1_int_surface_spelling` | `go_surface_spelling_int` | `go build` PASS (`func r1() int { return 0 }`) | return type `i32` (invalid) | `TargetCompileRejected` + `target_diagnostic_go_undefined_type` |
| `leaf_model_claim_go_r2a_int_algebra_operations` | `go_integer_algebra_inhabitance(go_facts_int)` | `go build` PASS (add/compare on `int`) | call nonexistent method on `int` | `TargetCompileRejected` + `target_diagnostic_go_undefined_method` |
| `leaf_model_claim_go_r3_external_symbol_projection` | `go_atom_realization_symbol` (SG-1) | `go build` PASS per realization row | ctor/signature mismatch | `TargetCompileRejected` + modeled go diagnostic |
| `leaf_model_claim_go_r3_external_symbol_projection` | `go_atom_realization_symbol` (fact_id; row = `go_target_atom_realization_symbol`) | `go build` PASS per realization row | ctor/signature mismatch | `TargetCompileRejected` + modeled go diagnostic |

### §4.2 Runtime-bound claim (`TargetRuntimeExerciseVerdict` — R2b only)

Expand Down Expand Up @@ -135,11 +136,11 @@ func main() {

| Claim ID | Fact anchor | Happy | Negative probe | Verdict carrier |
|---|---|---|---|---|
| `leaf_model_claim_go_r2b_int_silent_overflow_truncates` | `go_tag_overflow_signed_truncates` on `go_facts_int` | `go run` on happy source above → wrap matches `want` | `go run` on falsification source → panic (wrong `want` only) | Runtime: `Accepted` / `Rejected`; compile: `TargetCompileAccepted` for **both** sources |
| `leaf_model_claim_go_r2b_int64_silent_overflow_truncates` | `go_facts_int64` bundle — overflow axis `go_tag_overflow_signed_truncates` via `go_integer_facts_node(facts: go_facts_int64)` (same disposition as other signed typed widths; **not** `go_facts_int` / platform `int`) | `go run` on happy source above → wrap matches `want` | `go run` on falsification source → panic (wrong `want` only) | Runtime: `Accepted` / `Rejected`; compile: `TargetCompileAccepted` for **both** sources |

**Forbidden R2b shapes:** `math.MaxInt64 + 1` as a single constant expression (may fail compile or fold at compile time); negative probe that changes the `+ 1` expression instead of `want`.

**R2b note:** Go models **silent truncation** on typed integer overflow (`go.dag` L181). Not Rust debug/release dual claim IDs unless Arbiter directs.
**R2b note:** Go models **silent truncation** on typed integer overflow (`go.dag` L181). Claim ↔ fixture width must match: **`go_facts_int64`** + `int64` source (R2a remains **`go_facts_int`** / platform `int`). Not Rust debug/release dual claim IDs unless Arbiter directs.

**Verifiers:** `go build` — R1/R2a/R3-external only. `go run` or `go test` — R2b only. `go vet` optional, not authority.

Expand Down Expand Up @@ -171,6 +172,7 @@ Per `INVARIANTS.md` P5 and THESIS Pure Bootstrap 0-floor: any planned `src/v3/co
- [x] Host runner dissolve-on-arrival headers match python shell pattern
- [x] P5(b) boundary Rust optional per §5 table — shell-only default unless worker ships full receipt bundle
- [x] R2b fixtures use typed `var x int64 = math.MaxInt64; got := x + 1` (authoritative sources in §4.2)
- [x] R2b claim anchors `go_facts_int64`, not `go_facts_int` (width-aligned with fixtures; post-#4149 reconciliation)
- [x] **READY-FOR-WORKER-DISPATCH** (`proud-fox-405`)

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# v4 Go TargetAtomRealization Worksheet — Symbol / Bool / Char / Int

> **Status:** **WORKSHEET APPROVED — READY-FOR-WORKER-DISPATCH** — Modeling DFS Arbiter §8 sign-off 2026-06-01 (`proud-fox-405`). Implementation lane: TR Manager `keen-heron-687`.
> **Status:** **WORKSHEET APPROVED — READY-FOR-WORKER-DISPATCH** — Modeling DFS Arbiter §8 sign-off 2026-06-01 (`proud-fox-405`). Post-#4149 reconciliation 2026-06-01 (`zesty-otter-480`): SG-1 §3.1 dual-name (`go_target_atom_realization_*` row + `go_atom_realization_*` fact_id). Implementation: Go RCA Manager subtree (#4137 per-language lane).
> **Date:** 2026-06-01
> **Dispatch anchor:** SG-1 analog — `docs/planning/v4-sg1-target-atom-realization-worksheet-2026-05-30.md` (APPROVED); `docs/planning/v4-predicate-dependency-graph-2026-06-01-eod.md` §11.8.
> **Canonical home:** `src/v4/std/target_model.dag` (`TargetAtomRealization` carrier — **do not redefine**).
Expand All @@ -13,7 +13,9 @@
> **No Go TargetAtomRealization implementation worker may land until:**
> 1. This worksheet is Arbiter-approved, **and**
> 2. Shared SG-1 carrier on main is consumed (not forked), **and**
> 3. Go leaf-model R3-external worksheet dependency on `go_atom_realization_symbol` is satisfied in the same impl wave or ordered before R3-external runner.
> 3. Go leaf-model R3-external dependency satisfied when **both** land in same wave (Rust dual-name pattern — one authority, two symbols):
> - `go_target_atom_realization_symbol` — `TargetAtomRealization` row in `go.dag`
> - `go_atom_realization_symbol` — leaf-model fact_id `Symbol` naming that row (R3-external claim anchor)

Acceptance: dual-path falsification on Symbol row changes **both** type and value translate paths (SG-1 §10.6 pattern), exercised on **Go emit** where available; rustc probe is not Go acceptance.

Expand Down Expand Up @@ -43,6 +45,8 @@ Deepest unsound boundary:
Systemic fix:
Add go_target_atom_realization_{symbol,bool,char,int} rows + catalog edge on go MVP target_model
(mirror rust_target_atom_realization_catalog wiring).
Add go_atom_realization_symbol fact_id per rust.dag:870-871 (leaf-model claims reference fact_id,
not the TargetAtomRealization data binding name — P2 single row, two named projections).
Int row uses go_surface_spelling_int / go facts — NOT a separate parallel Int carrier name.
Non-goals:
- Redefining TargetAtomRealization fields (Arbiter escalation if shape insufficient).
Expand All @@ -59,6 +63,17 @@ Metric allowed only as secondary:

---

## §3.1 Naming convention (Rust pattern — not a fork)

| Symbol | Role | Consumer |
|---|---|---|
| `go_target_atom_realization_symbol` | `TargetAtomRealization` row (`data` binding) | `target_model` catalog edge; emit reads row fields |
| `go_atom_realization_symbol` | fact_id `Symbol` naming that row | `go_r3_external.dag` / lens fixture `surface_spelling_fact` |

Python landed R3 with only `python_atom_realization_symbol` (minimal scaffold). Go follows **full Rust SG-1** (row + fact_id). Leaf-model worksheets reference **fact_id only**; SG-1 worksheet authors **row + fact_id** together.

---

## §4 Proposed Go rows (sketch — impl worker fills exact spellings)

| Kernel atom | `source_carrier` | `type_form` (sketch) | `value_form` (sketch) | Notes |
Expand All @@ -68,7 +83,7 @@ Metric allowed only as secondary:
| Char | `char_kernel_type_node()` | `rune` | rune literal | Go has no `char` type |
| Int (platform) | `go_facts_int` inhabitant node | `int` | integer literal | Pairs with R1 claim; do not conflate with `int32` fixed width in atom row unless Arbiter splits |

**Coordination:** TR Manager (`keen-heron-687`) owns implementation after §8. Go RCA Manager owns worksheet + fact IDs; does not land emit patches without ratified worksheet.
**Dispatch:** Go RCA Manager (`gentle-lynx-68`) spawns implementation worker under own subtree after §8. Arbiter owns shared `TargetAtomRealization` carrier only; Go RCA owns `go.dag` rows + emit consumption.

---

Expand All @@ -77,7 +92,8 @@ Metric allowed only as secondary:
- [x] Reuses SG-1 approved `TargetAtomRealization` carrier (no Go-local duplicate)
- [x] Char → `rune` mapping explicit (Go spec)
- [x] Int row authority is `go_facts_int`, not rust `i32` spelling
- [x] TR handoff: `keen-heron-687` owns rows after §8; Go RCA does not land emit patches
- [x] SG-1 §3.1 dual-name: `go_target_atom_realization_symbol` row + `go_atom_realization_symbol` fact_id (post-#4149 reconciliation)
- [x] Go RCA Manager owns implementation dispatch after §8 (not parallel TR lane)
- [x] **READY-FOR-WORKER-DISPATCH** (`proud-fox-405`)

---
Expand Down
Loading