From f97b3f59a55116a1ed44717b9fbcd3c9375c0bc5 Mon Sep 17 00:00:00 2001 From: Brian Searls Date: Tue, 5 May 2026 20:11:59 +0000 Subject: [PATCH 1/9] :425 retire stale INVARIANTS.md prose references (Slice B) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces numeric line-cites (`:23`, `:33`, `:94`, `:236`) and named-section §-refs in Slice B file set with stable INVARIANTS.md# anchors per the dispatch mapping (Director #828 #issuecomment-4382609933). - 11 brief files: numeric line-cites → #p1-modeling-faithfulness (Procedure) / #p4-decidability anchors. - thesis/doc-authority.md: `:23` → #p1-modeling-faithfulness. - thesis-validation-plan.md: 6 §-refs across IL-1..IL-6 → P2/P3/P4 principle anchors. - substrate-reflection-design.md: 4 §-refs (Layer Opacity, Scaffold boundaries, Semantic authority after lowering ×2) → P2/P5 anchors. Mixed-ref line :1663 retains §"No bridges" (unmappable). - emit-target-spec-gaps.md, design-substrate-external-primitives.md: 1 §-ref each → #p1-modeling-faithfulness, #e-9. No code changes. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../r2-pb-canonical-lens-bridge-disposition.md | 2 +- .../r2-pb-runtime-evaluator-convergence-matrix.md | 6 +++--- docs/briefs/r3-pb-binshim-retirement-worker.md | 2 +- .../r3-pb-runtime-equivalence-corpus-seed-audit.md | 6 +++--- docs/briefs/r3-pb-t-fixedpoint-worker.md | 6 +++--- ...pb-t-lensproducer-sub1-lens-apply-retirement.md | 4 ++-- ...-t-lensproducer-sub2-lens-testgen-retirement.md | 4 ++-- ...pb-t-lensproducer-sub3-regen-lens-retirement.md | 4 ++-- docs/briefs/t-ground-languagespec.md | 4 ++-- docs/briefs/t-ground-lifetime-analyzer.md | 2 +- docs/briefs/t-ground-tests.md | 2 +- docs/design-substrate-external-primitives.md | 2 +- docs/emit-target-spec-gaps.md | 2 +- docs/substrate-reflection-design.md | 11 +++++------ docs/thesis-validation-plan.md | 14 ++++++-------- docs/thesis/doc-authority.md | 2 +- 16 files changed, 35 insertions(+), 38 deletions(-) diff --git a/docs/briefs/r2-pb-canonical-lens-bridge-disposition.md b/docs/briefs/r2-pb-canonical-lens-bridge-disposition.md index b128a111aec..7cb82969f90 100644 --- a/docs/briefs/r2-pb-canonical-lens-bridge-disposition.md +++ b/docs/briefs/r2-pb-canonical-lens-bridge-disposition.md @@ -78,6 +78,6 @@ Either path is a substrate-level change outside PB authoring authority. PB terri - T-Bridge-Retirement distribution map: [`docs/r3-structure.md`](../r3-structure.md) §"Lane structure" T-Bridge-Retirement row. - Adjacent worker brief (already-retired §0.1/§0.2 carriers): [`b4-1-declarationref-consumer-migration-worker.md`](b4-1-declarationref-consumer-migration-worker.md). - Identity-carrier substrate pass: [`b4-identity-carrier-substrate-pass.md`](b4-identity-carrier-substrate-pass.md). -- Substrate-fact-introduction procedure (escalation path): `INVARIANTS.md:94` §"Procedure: substrate-fact introduction". +- Substrate-fact-introduction procedure (escalation path): [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure). - P2 cross-`Dag` reflection invariant (the constraint that holds the bridge in place): `INVARIANTS.md` §P2; runtime comment block at `src/v3/compiler/src/test_runner.rs:1762-1772` + `:1832-1833`. - Gating R3 lane: T-LensProducer-Retirement (PB-Runtime interpreter-as-data sub-gate); see [`r3-structure.md`](../r3-structure.md) §"Lane structure". diff --git a/docs/briefs/r2-pb-runtime-evaluator-convergence-matrix.md b/docs/briefs/r2-pb-runtime-evaluator-convergence-matrix.md index 34595f4cbc2..5eadd83c029 100644 --- a/docs/briefs/r2-pb-runtime-evaluator-convergence-matrix.md +++ b/docs/briefs/r2-pb-runtime-evaluator-convergence-matrix.md @@ -25,7 +25,7 @@ This matrix is that map. It is read at dispatch authoring time so PB-Runtime wor | 1 | **Runtime-value model `Value` shape** — closed coproduct over the 5 substrate primitives' inhabitants. | [`design-pb-runtime-interpreter.md`](../design-pb-runtime-interpreter.md) §3.2: `type Value = LiteralValue \| RecordValue \| VariantValue \| NodeRef \| CardinalityValue` | [`r2-pr-a-runtime-value-model.md`](r2-pr-a-runtime-value-model.md) §"Carrier shape" — `Value` MUST match §3.2 verbatim (anti-bridge invariant #6); `r2-evaluator-manager.md:27` "Runtime value model" cell. | Both presentations declare structurally identical coproducts; PR-A.1 carrier (PR-A.2 audit's working assumption: `src/v3/std/runtime.dag`; final path is PR-A.1's call at landing time) matches the `.dag` declaration shape consumed by PB-Runtime when it lands in R3. | Direct structural identity (no `TestPredicate` shape needed — by-construction). | `#1231` (`Value` marker rename to `ValueBehavior`) **MERGED 2026-04-30T00:11:56Z**; PR-A.1 resume gate satisfied per `r2-pr-a1-runtime-value-dependency-audit.md` §"PR-A.1 Resume Gate" Option 1. PR-A.1 is now dispatchable; carrier landing is the next milestone. | | 2 | **`EvalFrame` / `EvalStateStack` boundary** — evaluator-internal state carriers, NOT `Value` inhabitants. | [`design-pb-runtime-interpreter.md`](../design-pb-runtime-interpreter.md) §3.3: `EvalFrame` (PortId → bound `Value`); `EvalStateStack` (stack of `EvalFrame`s); explicitly NOT `Value` variants. | [`r2-pr-a-runtime-value-model.md`](r2-pr-a-runtime-value-model.md) — Worker A's "closed-over environments" implementation = `EvalFrame` + `EvalStateStack`, **not** a Value inhabitant (per anti-bridge invariant #2 carve-out: evaluator-internal carriers are PR-A scope, do NOT trigger anti-bridge). | PR-A.2 declares `EvalFrame { bindings: Map }` + `EvalStateStack { frames: List }` in the runtime value module; PB-Runtime mirrors via `.dag` declaration sharing the same shape. Closures-with-captures stay unexpressible (see Row 6). | None at carrier-shape level (structural identity by construction). Behavioral gate is implicit in Row 4's equivalence corpus. | PR-A.1 land first (PR-A.2 imports PR-A.1's `Value`); see `r2-pr-a-2-eval-frame-dependency-audit.md` §"single remaining blocker". | | 3 | **5-primitive dispatch constraint** — `Node \| Conj \| Disj \| Cardinality \| Bit` is the only execution vocabulary. | [`design-pb-runtime-interpreter.md`](../design-pb-runtime-interpreter.md) §3.1 + the §3.1 "Mapping note" disambiguating dispatch primitives (5) vs type connectives (6) vs L1 behaviors (5). | [`r2-evaluator-manager.md:27`](r2-evaluator-manager.md) cell explicitly cites the §3.1 mapping note: "5-primitive constraint per §3.1 (`Node \| Conj \| Disj \| Cardinality \| Bit` — DAG-processor execution vocabulary, distinct from the 5 L1 `Behavior` variants `Value \| Transform \| Branch \| Loop \| Bind` dispatched inside `Node`)". | Both presentations dispatch on exactly these 5 primitives; lenses (cost / termination / parallelism / effects) fold *over* outputs, never extending the dispatch surface. | None at runtime; lens producers are surfaced separately (T-LensProducer-Retirement sub-gates). The constraint is structural — no adding dispatch arms. | None additional beyond Row 1 (carriers must land). Anti-bridge invariant #5 ("PB-Runtime is `.dag`, not a separate language") closes the structural escape. | -| 4 | **Behavioral equivalence on a corpus** — same `.dag` program → same `Value` from both runtimes. | [`design-pb-runtime-interpreter.md`](../design-pb-runtime-interpreter.md) §3.2 `evaluate(program: Dag, entry: NodeId, args: List) -> Value` rules per `Behavior` variant. | [`r2-pr-a-runtime-value-model.md`](r2-pr-a-runtime-value-model.md) PR-A through PR-E land the Rust `evaluate(...)` entry point with bit-equivalent `Value` semantics. | **PLANNED, not yet authored.** TestClaim `pb_runtime_equivalent_to_evaluator_on_corpus` (locked name per §7.1) — does NOT exist on main at audit time. Once authored, will reference corpus: arithmetic on `Int`; `List` map/fold; one `Lens` instance application. | **Predicate variant LIVE; declaration NOT.** `DifferentialEquals { subject_ref, oracle_ref, input_ref }` is the existing `TestPredicate` variant at `src/v3/std/verification.dag:177-181` — variant exists; no new variant needed. The `TestClaim` consuming it (and the forward-declared `DeclarationRef`s `pb_runtime_evaluate` / `r2_evaluator_evaluate` / `corpus`) are NOT yet declared on main. | Forward-declared `DeclarationRef`s materialize at: R2-Evaluator PR-A landing (`r2_evaluator_evaluate`); R3 PB-Runtime `.dag` landing (`pb_runtime_evaluate`); worker dispatch (`corpus`). **No live staging carrier exists for this row.** `ReleaseDeferredClaim` (`src/v3/std/verification.dag:218-235`) and `SubstrateResearchDeferredClaim` (`:245-249`) are both fixture-specific (R1 release-acceptance + Director-signed-off `R1GateMarker`/`TargetLaneMarker`/`ReleaseAuthorityDoc` markers, and TC1 substrate-research `Tc1ResearchGateMarker`/`SubstrateLensPrimitiveTargetLaneMarker`/`LambdaCalculusGroundingAuthorityDoc` markers respectively) — neither is a generic forward-ref staging mechanism. The Row 4 `TestClaim` therefore cannot be authored until its three forward `DeclarationRef`s resolve. Until then, the row's enforcement is paper-only. (If a generic forward-ref staging variant proves needed later, that's a substrate-fact-introduction event for Substrate Manager under `INVARIANTS.md:94` §P1 — out of this audit's scope.) | +| 4 | **Behavioral equivalence on a corpus** — same `.dag` program → same `Value` from both runtimes. | [`design-pb-runtime-interpreter.md`](../design-pb-runtime-interpreter.md) §3.2 `evaluate(program: Dag, entry: NodeId, args: List) -> Value` rules per `Behavior` variant. | [`r2-pr-a-runtime-value-model.md`](r2-pr-a-runtime-value-model.md) PR-A through PR-E land the Rust `evaluate(...)` entry point with bit-equivalent `Value` semantics. | **PLANNED, not yet authored.** TestClaim `pb_runtime_equivalent_to_evaluator_on_corpus` (locked name per §7.1) — does NOT exist on main at audit time. Once authored, will reference corpus: arithmetic on `Int`; `List` map/fold; one `Lens` instance application. | **Predicate variant LIVE; declaration NOT.** `DifferentialEquals { subject_ref, oracle_ref, input_ref }` is the existing `TestPredicate` variant at `src/v3/std/verification.dag:177-181` — variant exists; no new variant needed. The `TestClaim` consuming it (and the forward-declared `DeclarationRef`s `pb_runtime_evaluate` / `r2_evaluator_evaluate` / `corpus`) are NOT yet declared on main. | Forward-declared `DeclarationRef`s materialize at: R2-Evaluator PR-A landing (`r2_evaluator_evaluate`); R3 PB-Runtime `.dag` landing (`pb_runtime_evaluate`); worker dispatch (`corpus`). **No live staging carrier exists for this row.** `ReleaseDeferredClaim` (`src/v3/std/verification.dag:218-235`) and `SubstrateResearchDeferredClaim` (`:245-249`) are both fixture-specific (R1 release-acceptance + Director-signed-off `R1GateMarker`/`TargetLaneMarker`/`ReleaseAuthorityDoc` markers, and TC1 substrate-research `Tc1ResearchGateMarker`/`SubstrateLensPrimitiveTargetLaneMarker`/`LambdaCalculusGroundingAuthorityDoc` markers respectively) — neither is a generic forward-ref staging mechanism. The Row 4 `TestClaim` therefore cannot be authored until its three forward `DeclarationRef`s resolve. Until then, the row's enforcement is paper-only. (If a generic forward-ref staging variant proves needed later, that's a substrate-fact-introduction event for Substrate Manager under [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure) — out of this audit's scope.) | | 5 | **Anti-bridge invariant #1** — no PB-Runtime divergence from R2-Evaluator semantics. | [`design-pb-runtime-interpreter.md`](../design-pb-runtime-interpreter.md) §6 #1 + §2 "convergence is non-optional; the two presentations stay structurally identical by construction." | [`r2-evaluator-manager.md:76`](r2-evaluator-manager.md) "PB-Runtime is dissolution-shaped, not parallel runtimes." | **Enforcement gated on Row 4's TestClaim landing.** The equivalence fixture, once authored, is the structural enforcement; until Row 4 authors `pb_runtime_equivalent_to_evaluator_on_corpus`, anti-bridge invariant #1 is held by reviewer convention (and by the §6 anti-bridge text), not by an executable substrate fact. No separate enforcement gate beyond Row 4. | (covered by Row 4 — gated identically) | (covered by Row 4 — gated identically) | | 6 | **Anti-bridge invariant #2** — no new `Value` primitives without §P1 escalation. | [`design-pb-runtime-interpreter.md`](../design-pb-runtime-interpreter.md) §6 #2 + §3.3's explicit prohibition: "R2-Evaluator's PR-A worker MUST NOT add a closure/captured-environment value variant." | [`r2-pr-a-runtime-value-model.md`](r2-pr-a-runtime-value-model.md) lock: PR-A workers do NOT extend `Value` locally; closures-with-captures are explicitly out of v3 scope. `EvalFrame` / `EvalStateStack` carve-out per §3.3 paragraph 5. | The closed `Value` coproduct from Row 1 stays closed. New variants require §P1 substrate-fact-introduction event with Substrate Manager authoring. PB and Evaluator workers MUST NOT extend `Value` from their lanes. | Negative gate; enforced by absence — if a new `Value` variant lands without §P1 receipt, that's a structural error in the PR's lineage, not a verification predicate. | None — the prohibition is permanent until a deliberate language extension event (e.g., first-class closures-with-captures) triggers §P1 escalation. Per §3.3: "Until that happens, R2-Evaluator's PR-A worker MUST NOT add a closure/captured-environment value variant." | | 7 | **Anti-bridge invariant #6** — no fork between Item 4's `Value` and R2-Evaluator's runtime-value model. | [`design-pb-runtime-interpreter.md`](../design-pb-runtime-interpreter.md) §6 #6 — "they share a structural definition; if they fork, that's the structural error case anti-bridge invariant #1 names." | [`r2-evaluator-manager.md:27`](r2-evaluator-manager.md) "PR-A's `Value` coproduct shape MUST match §3.2"; PR-A.1 carrier landing IS the structural-identity event. | When PR-A.1 lands the `Value` carrier (path is PR-A.1's call; PR-A.2 audit's working assumption is `src/v3/std/runtime.dag`), PB-Runtime consumes that same carrier shape when authoring `evaluate(...)` / runtime behavior. PB-Runtime does not author a second parallel `Value` declaration unless a later authority explicitly moves the carrier path. The `.dag` carrier is the shared spec; the Rust evaluator imports/implements against the same structural shape. | Direct structural identity (same coproduct declaration consumed by both runtime presentations). Row 1 covers this concretely; this row names the invariant that *enforces* row 1's shape match. | (subsumed by Row 1) — `#1231` MERGED 2026-04-30; gates remaining on PR-A.1 carrier landing. | @@ -69,7 +69,7 @@ This audit explicitly does NOT: - Claim implementation progress on any of Rows 1-7. - Re-derive design from `design-pb-runtime-interpreter.md` — every row cites the existing lock; nothing here is new authority. -If a future authoring step finds a row's authority is **insufficient** (e.g., Row 4's `DifferentialEquals` cannot express the equivalence corpus's structural-equality requirement), that's a substrate gap to escalate to Substrate Manager via `INVARIANTS.md:94` §"Procedure: substrate-fact introduction" — not a row to extend from this audit. +If a future authoring step finds a row's authority is **insufficient** (e.g., Row 4's `DifferentialEquals` cannot express the equivalence corpus's structural-equality requirement), that's a substrate gap to escalate to Substrate Manager via [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure) — not a row to extend from this audit. ## STOP / report-instead-of-invent @@ -91,5 +91,5 @@ Per dispatch directive: STOP if existing docs already fully cover this matrix or - BinShim retirement planning brief (sibling PB R3 lane): [`docs/briefs/r3-pb-binshim-retirement-worker.md`](r3-pb-binshim-retirement-worker.md). - **Corpus seed expansion (sibling audit, post-#1235):** [`docs/briefs/r3-pb-runtime-equivalence-corpus-seed-audit.md`](r3-pb-runtime-equivalence-corpus-seed-audit.md) — expands Row 4's "arithmetic on `Int`; `List` map/fold; one `Lens` instance application" phrase into a per-seed table (purpose / required refs / owning lane / cumulative gates / STOP conditions). Docs-only; no TestClaim or `DeclarationRef`s authored. - Substrate authorities: `src/v3/std/verification.dag:177-181` (`DifferentialEquals`); `src/v3/std/verification.dag:218-235` (`ReleaseDeferredClaim` — R1 release-acceptance fixture-only, not generic staging); `src/v3/std/verification.dag:245-249` (`SubstrateResearchDeferredClaim` — TC1 fixture-only, not generic staging); `dsl/std/types.dag:213` (`Map`); `src/v3/std/substrate.dag` (`Behavior`, `TypeConnective`, `LoopBound`, `LiteralBits`). -- Substrate-fact-introduction procedure (escalation path): `INVARIANTS.md:94`. +- Substrate-fact-introduction procedure (escalation path): [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure). - Live #1231 status: `feat(v3): rename v3_l1 Value marker to ValueBehavior (PB-Runtime flat namespace)` — **MERGED 2026-04-30T00:11:56Z** (audit refresh 2026-04-30T00:30Z). diff --git a/docs/briefs/r3-pb-binshim-retirement-worker.md b/docs/briefs/r3-pb-binshim-retirement-worker.md index 55022a0b0b4..08887f5dc8e 100644 --- a/docs/briefs/r3-pb-binshim-retirement-worker.md +++ b/docs/briefs/r3-pb-binshim-retirement-worker.md @@ -127,7 +127,7 @@ Worker MUST STOP and escalate to PB Manager (which escalates to Director if cros - Design lock: [`docs/design-pb-runtime-interpreter.md`](../design-pb-runtime-interpreter.md) — §4.1 bin-shim class enumeration; §4.2 `BinShim` carrier-shape sketch + emitter shape; §4.3 dissolution path; §4.4 first-time-bootstrap compatibility; §5.1 R3-T-LensProducer-Retirement sub-gate decomposition; §5.4 PB/Substrate/Evaluator boundary; §6 anti-bridge invariants; §7.2 BinShim equivalence fixture; §7.3 No-new-bin-shim-hand-Rust fixture (with substrate prerequisite call-out). - T-LensProducer-Retirement parent lane: [`docs/r3-structure.md`](../r3-structure.md) §"Lane structure" T-LensProducer-Retirement row. - Sibling R3-PB lane (separate scope, gated separately): T-FixedPoint planning brief — [`docs/briefs/r3-pb-t-fixedpoint-worker.md`](r3-pb-t-fixedpoint-worker.md). -- Substrate-fact-introduction procedure (escalation path): `INVARIANTS.md:94` §"Procedure: substrate-fact introduction". +- Substrate-fact-introduction procedure (escalation path): [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure). - SG-0 census authority + generated-file partition: `src/v3/compiler/tests/integration/sg0_census_test.rs` (`EXPECTED_HAND_AUTHORED_NON_TEST` + `GENERATED_FILES`); `src/v3/compiler/build.rs` `REGEN_OUTPUTS`. - First-shim source (unchanged until retirement): `src/v3/compiler/src/bin/regen_lens.rs`. - First-target readiness (planning only): [`r3-pb-regen-lens-first-binshim-target-retirement-readiness.md`](r3-pb-regen-lens-first-binshim-target-retirement-readiness.md). diff --git a/docs/briefs/r3-pb-runtime-equivalence-corpus-seed-audit.md b/docs/briefs/r3-pb-runtime-equivalence-corpus-seed-audit.md index 08d28ed48be..2c69da81f1a 100644 --- a/docs/briefs/r3-pb-runtime-equivalence-corpus-seed-audit.md +++ b/docs/briefs/r3-pb-runtime-equivalence-corpus-seed-audit.md @@ -26,7 +26,7 @@ The merged convergence matrix (#1235) names the corpus as a single phrase. This | Seed | Purpose (what the equivalence-on-this-seed proves) | Required declarations / refs | Owning future lane | Prerequisite gates (cumulative) | STOP / report-instead-of-invent | |---|---|---|---|---|---| -| **(1) Arithmetic on `Int`** — small programs over `Int` literals + primitive operators (e.g., `2 + 3`; `(a * b) + c`; `Int64::add` with overflow boundary). | Exercises `Behavior::Value(LiteralValue(Int))` evaluation + `Behavior::Transform(Operator(...))` dispatch on the `OrderedRing` algebra (per `dsl/std/integer.dag` integer chain + `INVARIANTS.md:33` worked example). The smallest non-trivial closed `Value` shape: a `LiteralValue(LiteralBits)` returned from primitive operator dispatch. If PB-Runtime and R2-Evaluator agree here, the literal-value emission path + operator-dispatch path are converged. | **Substrate live on main:** `LiteralBits` at `src/v3/std/substrate.dag:30`; `Int = Int64 = OrderedRing` per `dsl/std/integer.dag` + `dsl/std/algebra.dag`. **Not yet declared:** the corpus row(s) themselves (PB-Runtime `.dag` programs that compute integer expressions); the `evaluate(...)` entry points on each side. | Inputs: PB-Runtime + R2-Evaluator both consume; Evaluator owns `r2_evaluator_evaluate` per `r2-evaluator-manager.md:27` "Runtime value model" cell; PB-Runtime owns `pb_runtime_evaluate` per Row 1+7 of merged matrix. **Author of corpus rows:** PB-Runtime worker (R3-dispatch territory). | (a) Row 1 of merged matrix green: `Value` carrier (`LiteralValue(LiteralBits)` arm) lands per PR-A.1; (b) R2-Evaluator's `evaluate(...)` entry point lands per PR-A through PR-E; (c) PB-Runtime's `evaluate(...)` `.dag` declaration lands in R3 per `design-pb-runtime-interpreter.md` §3.2. | If a corpus row needs an integer-arithmetic semantic the runtime hasn't decided yet (e.g., overflow trap vs wrap on `Int64::add`), STOP — that's an Evaluator semantic-decision call, not a corpus-shape choice. Escalate to Evaluator Manager. | +| **(1) Arithmetic on `Int`** — small programs over `Int` literals + primitive operators (e.g., `2 + 3`; `(a * b) + c`; `Int64::add` with overflow boundary). | Exercises `Behavior::Value(LiteralValue(Int))` evaluation + `Behavior::Transform(Operator(...))` dispatch on the `OrderedRing` algebra (per `dsl/std/integer.dag` integer chain + [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Worked example: integer modeling) worked example). The smallest non-trivial closed `Value` shape: a `LiteralValue(LiteralBits)` returned from primitive operator dispatch. If PB-Runtime and R2-Evaluator agree here, the literal-value emission path + operator-dispatch path are converged. | **Substrate live on main:** `LiteralBits` at `src/v3/std/substrate.dag:30`; `Int = Int64 = OrderedRing` per `dsl/std/integer.dag` + `dsl/std/algebra.dag`. **Not yet declared:** the corpus row(s) themselves (PB-Runtime `.dag` programs that compute integer expressions); the `evaluate(...)` entry points on each side. | Inputs: PB-Runtime + R2-Evaluator both consume; Evaluator owns `r2_evaluator_evaluate` per `r2-evaluator-manager.md:27` "Runtime value model" cell; PB-Runtime owns `pb_runtime_evaluate` per Row 1+7 of merged matrix. **Author of corpus rows:** PB-Runtime worker (R3-dispatch territory). | (a) Row 1 of merged matrix green: `Value` carrier (`LiteralValue(LiteralBits)` arm) lands per PR-A.1; (b) R2-Evaluator's `evaluate(...)` entry point lands per PR-A through PR-E; (c) PB-Runtime's `evaluate(...)` `.dag` declaration lands in R3 per `design-pb-runtime-interpreter.md` §3.2. | If a corpus row needs an integer-arithmetic semantic the runtime hasn't decided yet (e.g., overflow trap vs wrap on `Int64::add`), STOP — that's an Evaluator semantic-decision call, not a corpus-shape choice. Escalate to Evaluator Manager. | | **(2) `List` map / fold** — small programs that build a `List` and fold or map it (e.g., `fold(cons(1, cons(2, empty())), 0, +)`; `map(xs, f)`). | Exercises `Behavior::Loop` (the `LoopBound`-bounded recursive fold) + `Behavior::Transform(Callable(decl_id))` higher-order dispatch through user-defined `fn map` / `fn fold` declarations. The smallest non-trivial closed `Value` over multiple primitives: `LiteralValue` items inside a `RecordValue`/`VariantValue` shape (or whatever `List`'s structural representation lowers to). Verifies the `Loop` iteration rule + per-iteration accumulator threading per §3.2. | **Substrate live on main:** `fn fold` at `src/v3/std/list.dag:96`; `fn map` at `src/v3/std/list.dag:132`; `LoopBound` at `src/v3/std/substrate.dag:342`; `cons` / `empty` constructors per `std.list`. **Not yet declared:** the corpus row(s); PB-Runtime's `Loop`-evaluation rule in `.dag`. | PB-Runtime worker (R3) authors the corpus rows. The `Loop` evaluation rule itself is co-owned by Evaluator (semantics) and PB-Runtime (`.dag` rule expression mirroring §3.2). | (a) Same as Seed (1); plus (b) `Behavior::Loop` evaluation semantics agreed between Evaluator and PB-Runtime — per `design-pb-runtime-interpreter.md` §3.2 "Behavior::Loop(l) → fold over `l.bound`..." rule, but the `LoopBound` coproduct's runtime semantic must be settled (cardinality-bounded vs descent-bounded interactions). | If the `LoopBound` coproduct exposes a runtime-semantic ambiguity at corpus authoring time (e.g., the `Descent { cluster: ClusterId }` variant at `src/v3/std/substrate.dag:344` requires runtime descent-evidence checking the corpus would have to encode), STOP — that's a substrate-semantic decision in Evaluator's territory, not a PB corpus-shape choice. | | **(3) One `Lens` instance application** — apply a single existing lens (e.g., `lenses.named_function_count` at `src/v3/lenses/named_function_count.dag:24`; or `lenses.complexity::cost_of` at `:60`) to a small input program and compare results. | Exercises `Lens` substrate composition (per the lens framework) end-to-end: lens declaration → `apply_lens_declaration`-shape walk → result `Value`. Verifies that the `Lens` carrier (per R2-T-Substrate-Lens-Primitive in `r2-evaluator-manager.md` if cited there) produces the same fold-result through both runtimes. The smallest single-lens application that actually exercises the substrate-lens framework, not just primitive operators. | **Substrate live on main:** at least one canonical lens — `lenses.named_function_count` or `lenses.complexity` — both already used by `test_runner.rs` for L1/T-LaneE gates per the canonical-lens bridge disposition (#1183). **Choice of which canonical lens to seed with is the PB worker's call at dispatch** (the audit does not pre-select). **Not yet declared:** the corpus row's input program + lens-application invocation site. | PB-Runtime worker (R3) authors the corpus row. The lens framework itself is owned by the Substrate Manager / lens-framework lane (per `r2-pr-a-2-eval-frame-dependency-audit.md` references to `Lens` substrate); PB consumes that authority. | (a) Same as Seeds (1) + (2); plus (b) `Lens` substrate carrier live on main (verify at dispatch); plus (c) the chosen canonical lens declaration unchanged at dispatch time (or reauthor against whichever canonical lens has stabilized). | If `Lens` substrate is not yet live or the canonical lenses are in flux when the corpus worker dispatches, STOP and either (i) defer Seed (3) until lens substrate stabilizes or (ii) escalate to Substrate Manager / lens-framework lane for a stable canonical lens to seed against. Do not invent a "seed lens" inside the corpus. | @@ -48,7 +48,7 @@ Authoring order is the same as listed: smallest closed `Value` shape first, then - `SubstrateResearchDeferredClaim` (`src/v3/std/verification.dag:245-249`) is TC1 substrate-research fixture-only — same constraint. - The Row-4 `TestClaim` (and therefore every per-seed sub-claim that composes into it) is **not authorable** until the three forward `DeclarationRef`s (`pb_runtime_evaluate`, `r2_evaluator_evaluate`, `corpus`) resolve. -**Implication for this audit:** the per-seed table above does *not* schedule `ReleaseDeferredClaim`-staged sub-claims. Each seed's corpus row authoring is a sequencing constraint, not a staging-variant choice. If a future authoring step concludes that a generic forward-ref staging variant is structurally needed (e.g., to incrementally land per-seed sub-corpora before all three runtime entry points resolve), that is a `INVARIANTS.md:94` §P1 substrate-fact-introduction event for Substrate Manager — out of this audit's scope. +**Implication for this audit:** the per-seed table above does *not* schedule `ReleaseDeferredClaim`-staged sub-claims. Each seed's corpus row authoring is a sequencing constraint, not a staging-variant choice. If a future authoring step concludes that a generic forward-ref staging variant is structurally needed (e.g., to incrementally land per-seed sub-corpora before all three runtime entry points resolve), that is a [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure) substrate-fact-introduction event for Substrate Manager — out of this audit's scope. ## STOP / report-instead-of-invent @@ -68,5 +68,5 @@ No invented substrate; no `TestPredicate` changes; no evaluator/PB-Runtime imple - PR-A design slice: [`docs/briefs/r2-pr-a-runtime-value-model.md`](r2-pr-a-runtime-value-model.md) (Value carrier shape; consumed by Seed (1) onward). - PR-A.1 / PR-A.2 audits: [`docs/briefs/r2-pr-a1-runtime-value-dependency-audit.md`](r2-pr-a1-runtime-value-dependency-audit.md), [`docs/briefs/r2-pr-a-2-eval-frame-dependency-audit.md`](r2-pr-a-2-eval-frame-dependency-audit.md). - Substrate authorities cited: `dsl/std/integer.dag` (integer chain); `dsl/std/algebra.dag` (`OrderedRing`); `src/v3/std/list.dag:96` (`fold`), `:132` (`map`); `src/v3/std/substrate.dag:30` (`LiteralBits`), `:342` (`LoopBound`); canonical lenses at `src/v3/lenses/named_function_count.dag:24`, `src/v3/lenses/complexity.dag:60`. -- Substrate-fact-introduction procedure: `INVARIANTS.md:94` §"Procedure: substrate-fact introduction". +- Substrate-fact-introduction procedure: [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure). - Sibling planning briefs (PB R3 lanes): [`docs/briefs/r3-pb-t-fixedpoint-worker.md`](r3-pb-t-fixedpoint-worker.md), [`docs/briefs/r3-pb-binshim-retirement-worker.md`](r3-pb-binshim-retirement-worker.md). diff --git a/docs/briefs/r3-pb-t-fixedpoint-worker.md b/docs/briefs/r3-pb-t-fixedpoint-worker.md index 99c9a05f7cd..23ffeeee435 100644 --- a/docs/briefs/r3-pb-t-fixedpoint-worker.md +++ b/docs/briefs/r3-pb-t-fixedpoint-worker.md @@ -189,7 +189,7 @@ test_claim every_typed_dag_program_terminates_in_bounded_steps { } ``` -This is the **strong-normalization theorem** for the typed `.dag` fragment — the formal correlate of the totality choice that P4 Decidability rests on (`INVARIANTS.md:236` §P4; "bounded forward execution" foundational premise). Sufficient proof obligation per the add-on dispatch: structural induction on `Behavior` × `LoopBound BoundedLattice`. +This is the **strong-normalization theorem** for the typed `.dag` fragment — the formal correlate of the totality choice that P4 Decidability rests on ([`INVARIANTS.md#p4-decidability`](../../INVARIANTS.md#p4-decidability) §P4; "bounded forward execution" foundational premise). Sufficient proof obligation per the add-on dispatch: structural induction on `Behavior` × `LoopBound BoundedLattice`. ### Dependencies (gates) @@ -242,8 +242,8 @@ When the R3 Verification Manager spawns (per `r3-structure.md` §"Manager struct ### TC3-specific cross-refs - B5 audit (TC3 dependency): [`docs/briefs/r2-release-b5-loop-construction-closure-audit-worker.md`](r2-release-b5-loop-construction-closure-audit-worker.md) -- P4 Decidability (TC3 formal home): `INVARIANTS.md:236` §P4 +- P4 Decidability (TC3 formal home): [`INVARIANTS.md#p4-decidability`](../../INVARIANTS.md#p4-decidability) §P4 - Termination carrier: `dsl/std/termination.dag` (`DescentEvidence` / BoundedLattice) -- Substrate-fact-introduction procedure (TC3 escalation path): `INVARIANTS.md:94` §"Procedure: substrate-fact introduction" +- Substrate-fact-introduction procedure (TC3 escalation path): [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure) - Strong-normalization theorem source (off-main at authoring): PR #1178 `docs/design-substrate-lambda-calculus-grounding.md` §"Strong normalization for the typed fragment" - TC3 transition target: R3 Verification Manager (per `docs/r3-structure.md` §"Manager structure" Item 2) diff --git a/docs/briefs/r3-pb-t-lensproducer-sub1-lens-apply-retirement.md b/docs/briefs/r3-pb-t-lensproducer-sub1-lens-apply-retirement.md index 4e851618199..1debbdf39ea 100644 --- a/docs/briefs/r3-pb-t-lensproducer-sub1-lens-apply-retirement.md +++ b/docs/briefs/r3-pb-t-lensproducer-sub1-lens-apply-retirement.md @@ -37,7 +37,7 @@ Per `design-pb-runtime-interpreter.md` §5.1 sub-gate 1 row + §3 (Item 4) + the - **`lens_apply_dot_rs_retired`** — `src/v3/compiler/src/lens_apply.rs` deleted. - **SG-0 census delta** — `EXPECTED_HAND_AUTHORED_NON_TEST` decreases by 1 (`lens_apply.rs` removed from the census authority at `src/v3/compiler/tests/integration/sg0_census_test.rs`). - **Lens-application invariants preserved by construction** — every lens consumer that reached `apply_lens_declaration(...)` now routes through PB-Runtime's `evaluate(...)` (per anti-bridge invariant #4: "no parallel emit logic"; the `.dag` evaluator IS the dispatch path, not a parallel one). Behavioral equivalence proven by the convergence-matrix Row 4 TestClaim landing green pre-deletion. -- **No new `TestPredicate` variant** introduced from this lane. If the equivalence acceptance requires a substrate gap, escalate per `INVARIANTS.md:94` §P1 to Substrate Manager. +- **No new `TestPredicate` variant** introduced from this lane. If the equivalence acceptance requires a substrate gap, escalate per [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure) to Substrate Manager. - **Canonical-lens bridge ratchet** at `src/v3/compiler/tests/integration/canonical_lens_bridge_ratchet_test.rs` (#1183) lowers (or its companion deletion lands in the same PR) — that ratchet's pinned counts collapse when `lens_apply.rs` retires. The sub-gate is reported as a `.dag` `TestClaim` to the closure ledger; the locked predicate name is `lens_apply_dot_rs_retired` per design-doc §5.1. @@ -97,4 +97,4 @@ If any of (2)–(6) is unmet, this brief stays in PROPOSAL state; PB Manager doe - Sibling PB R3 briefs: [`r3-pb-binshim-retirement-worker.md`](r3-pb-binshim-retirement-worker.md), [`r3-pb-t-fixedpoint-worker.md`](r3-pb-t-fixedpoint-worker.md). - SG-0 census authority: `src/v3/compiler/tests/integration/sg0_census_test.rs` (`EXPECTED_HAND_AUTHORED_NON_TEST`). - File targeted for retirement (do not edit until dispatch): `src/v3/compiler/src/lens_apply.rs`. -- Substrate-fact-introduction procedure (escalation path): `INVARIANTS.md:94`. +- Substrate-fact-introduction procedure (escalation path): [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure). diff --git a/docs/briefs/r3-pb-t-lensproducer-sub2-lens-testgen-retirement.md b/docs/briefs/r3-pb-t-lensproducer-sub2-lens-testgen-retirement.md index 0e8f521cc32..fd6ab4105c2 100644 --- a/docs/briefs/r3-pb-t-lensproducer-sub2-lens-testgen-retirement.md +++ b/docs/briefs/r3-pb-t-lensproducer-sub2-lens-testgen-retirement.md @@ -37,7 +37,7 @@ Sub-gates 1+2 share Item 4's mechanism. Sub-gate 2 does **not** require sub-gate - **`lens_testgen_dot_rs_retired`** — `src/v3/compiler/src/lens_testgen.rs` deleted. - **SG-0 census delta** — `EXPECTED_HAND_AUTHORED_NON_TEST` decreases by 1 (`lens_testgen.rs` removed from the census authority at `src/v3/compiler/tests/integration/sg0_census_test.rs`). - **Testgen invariants preserved by construction** — every testgen consumer that reached `lens_testgen.rs` now routes through PB-Runtime's `evaluate(...)` of the equivalent `.dag` testgen body (per anti-bridge invariant #4: "no parallel emit logic"; one canonical mechanism). -- **No new `TestPredicate` variant** — escalate per `INVARIANTS.md:94` §P1 if a substrate gap surfaces. +- **No new `TestPredicate` variant** — escalate per [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure) if a substrate gap surfaces. The sub-gate is reported as a `.dag` `TestClaim` to the closure ledger; the locked predicate name is `lens_testgen_dot_rs_retired` per design-doc §5.1. @@ -88,4 +88,4 @@ If any of (2)–(6) is unmet, brief stays in PROPOSAL state. - Sibling PB R3 briefs: [`r3-pb-binshim-retirement-worker.md`](r3-pb-binshim-retirement-worker.md), [`r3-pb-t-fixedpoint-worker.md`](r3-pb-t-fixedpoint-worker.md). - SG-0 census authority: `src/v3/compiler/tests/integration/sg0_census_test.rs` (`EXPECTED_HAND_AUTHORED_NON_TEST`). - File targeted for retirement (do not edit until dispatch): `src/v3/compiler/src/lens_testgen.rs`. -- Substrate-fact-introduction procedure (escalation path): `INVARIANTS.md:94`. +- Substrate-fact-introduction procedure (escalation path): [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure). diff --git a/docs/briefs/r3-pb-t-lensproducer-sub3-regen-lens-retirement.md b/docs/briefs/r3-pb-t-lensproducer-sub3-regen-lens-retirement.md index fdb57ec9176..95644e49ba3 100644 --- a/docs/briefs/r3-pb-t-lensproducer-sub3-regen-lens-retirement.md +++ b/docs/briefs/r3-pb-t-lensproducer-sub3-regen-lens-retirement.md @@ -44,7 +44,7 @@ Sub-gate 3 has **no Row-4-equivalence dependency** (different mechanism) — its Worker MUST STOP and escalate when: -- **`BinShim` carrier-shape pressure.** If authoring `data regen_lens_shim: BinShim = { ... }` reveals the locked carrier shape cannot express `regen_lens`'s pipeline composition, STOP — that's substrate-owned per `design-pb-runtime-interpreter.md` §5.4 boundary; route to Substrate Manager via `INVARIANTS.md:94` §P1. +- **`BinShim` carrier-shape pressure.** If authoring `data regen_lens_shim: BinShim = { ... }` reveals the locked carrier shape cannot express `regen_lens`'s pipeline composition, STOP — that's substrate-owned per `design-pb-runtime-interpreter.md` §5.4 boundary; route to Substrate Manager via [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure). - **Emit-pattern divergence.** If the BinShim emitter authoring path needs to diverge from `dsl/extdeps/languages/rust/emit.dag` shape (per anti-bridge invariant #4: "the `BinShim` emitter is one of many `.dag` emitters; its shape mirrors `dsl/extdeps/languages/rust/emit.dag`"), STOP — that's a sign the carrier or pattern is wrong. - **Equivalence fixture authoring needs new substrate.** If the §7.2 fixture cannot compose from existing `TestPredicate` variants at `src/v3/std/verification.dag`, STOP — §P1 escalation, not in-this-lane substrate authoring. - **§7.3 closed-set fixture pressure.** Sub-gate 3 retires one element; if the worker finds themselves trying to author the broader `no_new_bin_shim_hand_rust` gate (which depends on Substrate Manager's §7.3 disposition), STOP — that's outside sub-gate 3's scope. @@ -92,4 +92,4 @@ If any of (2)–(7) is unmet, brief stays in PROPOSAL state. - Sibling PB R3 brief: [`r3-pb-t-fixedpoint-worker.md`](r3-pb-t-fixedpoint-worker.md). - SG-0 census authority: `src/v3/compiler/tests/integration/sg0_census_test.rs` (`EXPECTED_HAND_AUTHORED_NON_TEST`); `src/v3/compiler/build.rs` `REGEN_OUTPUTS`. - File targeted for retirement (do not edit until dispatch): `src/v3/compiler/src/bin/regen_lens.rs`. -- Substrate-fact-introduction procedure (escalation path): `INVARIANTS.md:94`. +- Substrate-fact-introduction procedure (escalation path): [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure). diff --git a/docs/briefs/t-ground-languagespec.md b/docs/briefs/t-ground-languagespec.md index 8c2d3d65e51..92fbf94f4ad 100644 --- a/docs/briefs/t-ground-languagespec.md +++ b/docs/briefs/t-ground-languagespec.md @@ -54,7 +54,7 @@ Author the `LanguageSpec` schema as `.dag` substrate. Per Modeling problem 6 (`d **Parallel-authority dissolution:** `dsl/std/languages.dag:438`'s `LanguageSpec` declaration + its `rust_spec` / `go_spec` / `python_spec` data items (lines 1244 / 1268 / 1292) converge with `src/v3/std/emit_model.dag:303` under one authority. If the two shapes have already drifted, this lane resolves the drift explicitly (no silent reconciliation) and lands the dissolution receipt in the PR body. If the shapes are reconcilable, T-Ground-Dissolve retires the duplicate; if they are not (i.e., `dsl/std/languages.dag` carries a structural fact `emit_model.dag` cannot absorb), escalate to manager (#1133) — that is itself a substrate-modeling call. -**P1 procedure receipts** (`INVARIANTS.md:94-129`): worker MUST cite which steps resolved each *new* field added to the existing type, in the PR body. Step 1 (DAG-ancestor) for the type itself is landed by this brief — the parent is `emit_model.dag`'s existing `LanguageSpec`. +**P1 procedure receipts** ([`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure)): worker MUST cite which steps resolved each *new* field added to the existing type, in the PR body. Step 1 (DAG-ancestor) for the type itself is landed by this brief — the parent is `emit_model.dag`'s existing `LanguageSpec`. ### B. Per-primitive `RealizationCost` (Q3 lock — `design-emission-model.md:1143-1208`) @@ -130,7 +130,7 @@ This is the load-bearing consequence of Q4's universal four-property gate (Faith ### G. Substrate-fact-introduction P1 procedure (per `INVARIANTS.md` §P1) -Worker MUST run the 3-step procedure (`INVARIANTS.md:94-129`) for every new substrate type / variant / field introduced under this lane and cite the receipts in the PR body: +Worker MUST run the 3-step procedure ([`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure)) for every new substrate type / variant / field introduced under this lane and cite the receipts in the PR body: - **Step 1 (DAG-ancestor):** which existing parent does the new fact attach to? (Worked example: `LanguageSpec` itself — does an ancestor target-spec carrier exist already?) - **Step 2 (Coproduct-vs-coordinate):** for each new sum, do all variants ever co-inhabit (→ record) or alternate (→ sum)? (`RealizationCost` is correctly a record — Q3 lock receipt; `BoundDeclaration` is correctly a sum — Q1 lock receipt.) - **Step 3 (Primitive-vs-lens-extensible):** for new leaves introduced under *this* lane's scope (e.g., `PlaceholderConvention` instances populated against the Substrate-owned `MethodTemplateContract` type), are they substrate primitives or lens-extensible labels? (Type-shape Step 1+2 receipts for `MethodTemplateContract` itself land on Substrate's PR per E above.) diff --git a/docs/briefs/t-ground-lifetime-analyzer.md b/docs/briefs/t-ground-lifetime-analyzer.md index 90dfaa588f6..140585c3b89 100644 --- a/docs/briefs/t-ground-lifetime-analyzer.md +++ b/docs/briefs/t-ground-lifetime-analyzer.md @@ -112,7 +112,7 @@ Every detectable under-determination / contradiction lands as a structured diagn ### G. Substrate-fact-introduction P1 procedure (per `INVARIANTS.md` §P1) -Worker MUST run the 3-step procedure (`INVARIANTS.md:94-129`) for every new substrate type / variant / field introduced under this lane and cite the receipts in the PR body: +Worker MUST run the 3-step procedure ([`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure)) for every new substrate type / variant / field introduced under this lane and cite the receipts in the PR body: - **Step 1 (DAG-ancestor):** `LifetimeFacts` and its component types (`Ownership`, `LifetimeScope`, `Growability`, `Encoding`) — does an ancestor structural-fact carrier already exist (e.g., is `Ownership` definable as inhabitance of some existing `Lattice` or algebra in `dsl/std/`)? Where to attach the fact: on `Binding` directly, on `Declaration`, or as a side-table? Default: structural attachment, cite receipt. - **Step 2 (Coproduct-vs-coordinate):** `LifetimeFacts` is a record (4 axes co-inhabit per binding); each axis (`Ownership` / `LifetimeScope` / etc.) is a sum (alternatives, not coordinates). Cite the worked-example substrate at `design-emission-model.md:534-546` as receipt. - **Step 3 (Primitive-vs-lens-extensible):** `Encoding` may be lens-extensible (per LanguageSpec axis vocabulary, which can grow as new targets land); `Ownership` / `LifetimeScope` / `Growability` are substrate primitives (every Shape-A target has these — they're computational primitives, not target-specific labels). diff --git a/docs/briefs/t-ground-tests.md b/docs/briefs/t-ground-tests.md index 0a434f48ad2..2edea4638e1 100644 --- a/docs/briefs/t-ground-tests.md +++ b/docs/briefs/t-ground-tests.md @@ -78,7 +78,7 @@ Examples 1-7 from `design-emission-model.md` (lines 415-792) are lifted as the s ### F. P1 substrate-fact-introduction receipts -Worker MUST run the 3-step procedure (`INVARIANTS.md:94-129`) for any new substrate type / variant / field introduced under this lane: +Worker MUST run the 3-step procedure ([`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure)) for any new substrate type / variant / field introduced under this lane: - **Step 1 (DAG-ancestor):** the per-axis `Witness` and `TestClaim` carriers — does an ancestor exist in `dsl/std/` or `src/v3/std/`? (`Witness` is from `src/v3/std/dimensions.dag`; `TestClaim` is from `src/v3/std/test_claims.dag` if present, else escalate.) - **Step 2 (Coproduct-vs-coordinate):** the test outcome shape — `TestClaim::Pass | Fail(Diagnostic)` is a proper alternative; per-axis verdicts on a single (program, target) inhabitance are coordinates of a record. diff --git a/docs/design-substrate-external-primitives.md b/docs/design-substrate-external-primitives.md index c34f1693cbf..00ccbd3505d 100644 --- a/docs/design-substrate-external-primitives.md +++ b/docs/design-substrate-external-primitives.md @@ -1,4 +1,4 @@ -> Part of: [post-l15-phase-plan.md](./post-l15-phase-plan.md) | Unblocks: Lane 1 Stage 1b (substrate keyed-lookup) | Consumes: INVARIANTS.md § E-9 "External realization lives on Arrow.body" +> Part of: [post-l15-phase-plan.md](./post-l15-phase-plan.md) | Unblocks: Lane 1 Stage 1b (substrate keyed-lookup) | Consumes: [INVARIANTS.md#e-9](../INVARIANTS.md#e-9) "External realization lives on Arrow.body" # Design DB-14 — Substrate external primitives (banked against E-9) diff --git a/docs/emit-target-spec-gaps.md b/docs/emit-target-spec-gaps.md index 0a0129ce5cb..86c2c93c59a 100644 --- a/docs/emit-target-spec-gaps.md +++ b/docs/emit-target-spec-gaps.md @@ -6,7 +6,7 @@ **Audit base**: `origin/main` as of 2026-04-20. 45 audit points identified (reconciled from initial 46 — see Overview table note). -**LOC / count figures in this document are an as-of-snapshot.** File sizes (e.g. `rust_target.rs` ~5,700 LOC) and the "46 audit points" headline will drift as code moves on `main`. Per INVARIANTS.md §"Documentation Describes Live State," treat these numbers as sizing guidance from the snapshot date, not live invariants. **Phase 2 workers should re-measure at Phase 2 kickoff** — the classification (Cluster A-J) is stable; the absolute counts aren't. +**LOC / count figures in this document are an as-of-snapshot.** File sizes (e.g. `rust_target.rs` ~5,700 LOC) and the "46 audit points" headline will drift as code moves on `main`. Per [INVARIANTS.md#p1-modeling-faithfulness](../INVARIANTS.md#p1-modeling-faithfulness) (Documentation Describes Live State), treat these numbers as sizing guidance from the snapshot date, not live invariants. **Phase 2 workers should re-measure at Phase 2 kickoff** — the classification (Cluster A-J) is stable; the absolute counts aren't. ## Overview diff --git a/docs/substrate-reflection-design.md b/docs/substrate-reflection-design.md index e9498706f0b..185c1948830 100644 --- a/docs/substrate-reflection-design.md +++ b/docs/substrate-reflection-design.md @@ -1660,8 +1660,7 @@ fn referenced_ports(d: Dag, root: PortId) -> List = green, `src/v3/compiler/src/lens_unused_parameters.rs` is deleted. The `.dag` form is the only lens. No parallel representation, no "bootstrap vs canonical" dual state (per -`INVARIANTS.md` §"No bridges" and §"Semantic authority after -lowering"). +`INVARIANTS.md` §"No bridges" and [INVARIANTS.md#p2-boundary-discipline](../INVARIANTS.md#p2-boundary-discipline) (Semantic authority after lowering)). --- @@ -1897,20 +1896,20 @@ This becomes a follow-up PR with a clean scope. still-valuable future lenses; both land as `.dag` programs after reflection. Neither is in this PR. -**`INVARIANTS.md §"Layer opacity"`:** the long-term target +**[INVARIANTS.md#p2-boundary-discipline](../INVARIANTS.md#p2-boundary-discipline) (Layer Opacity):** the long-term target (§"Rust type-level enforcement") still applies. Reflection is the next step toward it, not the endpoint. Layer opacity's ultimate form is a `DisplayName` type that makes the violation impossible at the Rust level; this PR makes lens-based enforcement structurally cheaper, which buys time for the type-level work. -**`INVARIANTS.md §"Scaffold boundaries"`:** the Rust lenses are +**[INVARIANTS.md#p5-progress-is-dissolution](../INVARIANTS.md#p5-progress-is-dissolution) (Scaffold boundaries):** the Rust lenses are tracked scaffolds from this PR's perspective. The tracked `kernel_lens_set` count starts at 3 (the remaining Rust lenses after `lens_unused_parameters` migrates) and must monotonically decrease. Each Rust-lens deletion is a ratchet tick. -**`INVARIANTS.md §"Semantic authority after lowering"`:** this +**[INVARIANTS.md#p2-boundary-discipline](../INVARIANTS.md#p2-boundary-discipline) (Semantic authority after lowering):** this PR extends the invariant's reach. Lenses currently read substrate state through Rust field access; after reflection, they read through query primitives that go through the same authority path @@ -2621,7 +2620,7 @@ deferred with a note. | Canonical target test requirement | §5 — tests preserved | | Checkpoint dissolution default | (general project doctrine — not specific to this PR) | | Compositional layering (thesis-level) | §7.1 — self-inspection is a new subsection | -| Rename test as regression check | (covered by existing `INVARIANTS.md §"Layer opacity"`) | +| Rename test as regression check | (covered by existing [INVARIANTS.md#p2-boundary-discipline](../INVARIANTS.md#p2-boundary-discipline) (Layer Opacity)) | If a recent thread is missing from this table and it belongs in-scope, flag it and this section updates. diff --git a/docs/thesis-validation-plan.md b/docs/thesis-validation-plan.md index f7767e15e1d..9ed532593b0 100644 --- a/docs/thesis-validation-plan.md +++ b/docs/thesis-validation-plan.md @@ -444,7 +444,7 @@ invariant and the lens mechanism. ### IL-1: Layer opacity lens -**Invariant ref:** INVARIANTS.md §"Layer opacity". +**Invariant ref:** [INVARIANTS.md#p2-boundary-discipline](../INVARIANTS.md#p2-boundary-discipline) (Layer Opacity). **Testable form:** no below-boundary string literal in consumer code. Rename a std/ identifier → no compile behavior change. **Status:** PARTIALLY TESTABLE. @@ -455,7 +455,7 @@ code. Rename a std/ identifier → no compile behavior change. ### IL-2: Single authority lens -**Invariant ref:** INVARIANTS.md §"No duplicate representations". +**Invariant ref:** [INVARIANTS.md#p2-boundary-discipline](../INVARIANTS.md#p2-boundary-discipline) (No duplicate representations). **Testable form:** for each fact, exactly one declaration is authority. No `fn(A) -> B` where A and B are structurally equivalent (parallel representation). @@ -465,8 +465,7 @@ equivalent (parallel representation). ### IL-3: Structural dispatch lens -**Invariant ref:** INVARIANTS.md §"No case enumeration for open -sets". +**Invariant ref:** [INVARIANTS.md#p3-fail-closed](../INVARIANTS.md#p3-fail-closed) (No case enumeration for open sets). **Testable form:** no string-keyed match arm where a structural walk through declarations would suffice. **Status:** DEFERRED. @@ -475,8 +474,7 @@ walk through declarations would suffice. ### IL-4: Cost coverage lens -**Invariant ref:** INVARIANTS.md §"Cost algebra upstream of -primitives". +**Invariant ref:** [INVARIANTS.md#p4-decidability](../INVARIANTS.md#p4-decidability) (Cost algebra upstream of primitives). **Testable form:** every primitive declaration has a corresponding `CostExpr` in the algebra. `∀ primitive p, ∃ cost_class(p)`. **Status:** DEFERRED. @@ -485,7 +483,7 @@ primitives". ### IL-5: Facts flow forward lens -**Invariant ref:** INVARIANTS.md §"Facts Flow Forward". +**Invariant ref:** [INVARIANTS.md#p2-boundary-discipline](../INVARIANTS.md#p2-boundary-discipline) (Facts Flow Forward). **Testable form:** no per-field re-derivation across stages. Every field consumed at stage K traces to a producer at stage N ≤ K. **Status:** DEFERRED. @@ -494,7 +492,7 @@ field consumed at stage K traces to a producer at stage N ≤ K. ### IL-6: No fabrication lens -**Invariant ref:** INVARIANTS.md §"No fallbacks that fabricate". +**Invariant ref:** [INVARIANTS.md#p3-fail-closed](../INVARIANTS.md#p3-fail-closed) (No fallbacks that fabricate). **Testable form:** no catch-and-default pattern without an explicit error variant in the return type. **Status:** DEFERRED. diff --git a/docs/thesis/doc-authority.md b/docs/thesis/doc-authority.md index 623ec869546..ec7991b8037 100644 --- a/docs/thesis/doc-authority.md +++ b/docs/thesis/doc-authority.md @@ -122,7 +122,7 @@ renumber. Cross-reference drift is a violation of this rule `[live]`. ## Relationship to INVARIANTS This contract is a thesis-doc-specific enforcement shape of two -existing invariants `[live]` (see `INVARIANTS.md:23` P1 Modeling +existing invariants `[live]` (see [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) P1 Modeling Faithfulness + `:96` P2 Boundary Discipline): - **P1 Modeling Faithfulness** — "Documentation Describes Live From 049ecc6d3a86b96286fa7d59858543b86106facd Mon Sep 17 00:00:00 2001 From: Brian Searls Date: Tue, 5 May 2026 20:17:23 +0000 Subject: [PATCH 2/9] docs(roadmap): narrow :425 row residual after Slice B (#1801) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Names the post-A+B residual set explicitly so the row's scope is verifiable against grep at any future bridge cycle. Per R3 Substrate Mgr review on #1801 (acceptance ⏳ item). Co-Authored-By: Claude Opus 4.7 (1M context) --- ROADMAP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 7be8f9cbf4e..5c157bb20e8 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -420,7 +420,7 @@ Tracked debt not dispatched with the 2026-04-21 lane wave (Lane 1e P3.0, SG-2c-4 - **`container_template_algebra_rows` string table is duplicate authority**: `dsl/std/types.dag:133-146` declares the renamed map (PR #651 collapsed both consumers onto a single `container_template_algebra` query); rows still duplicate the authoritative type aliases at `:211-213` (`type List = FreeMonoid`, etc.) across Pascal/snake spellings plus algebra self-identities. Dissolution trigger: when `.dag` gains alias reflection, the rows derive from the aliases directly and the hand-maintained table goes away. P2 Boundary Discipline / P1 receipt. Owner: unassigned; small scope. - **Emitter render-helper consolidation (Phase 3.1 candidate after 1e P3.0)**: `named_variant_id` / `render_named_template` / `primitive_type_id_for_port` / `walk_to_disj` / `algebra_field_for_operator` exist 3-5× across `src/v3/compiler/src/emit.rs` + `emit/python_target.rs` + `emit/rust_target.rs` (plus `walk_to_disj_decl` also in `lower.rs` and `infer.rs`). Collapse into one emitter-shared module. Different scope from 1e P3.0 which targets `behavior_result_port` / `port_is_consumed_from`; this is the render-side tranche. P2 Boundary Discipline receipt. Owner: queued behind 1e P3.0 as the natural follow-up. -- **Stale §-style and line-number cross-references to pre-rewrite `INVARIANTS.md` — PARTIAL (T-Receipts W1).** The ledger-named refs in `docs/design-db16-refined-generic-substitution.md`, `docs/perf/clone-elimination.md`, `docs/lane2-compile-time-proofs.md`, `src/v3/M1_DESIGN.md`, `src/v3/SELF_HOSTING.md`, `docs/history/sg-4b-1-fix-declaration-lookup-cleanup.md`, and `docs/briefs/p0-bug-no-profile-sentinel.md` now use stable `INVARIANTS.md#` / principle anchors instead of line-number or pre-rewrite § references. Broader stale INVARIANTS prose outside that named set remains a follow-up sweep; this receipt only closes the listed references. +- **Stale §-style and line-number cross-references to pre-rewrite `INVARIANTS.md` — PARTIAL (T-Receipts W1 + Slice B #1801).** The ledger-named refs in `docs/design-db16-refined-generic-substitution.md`, `docs/perf/clone-elimination.md`, `docs/lane2-compile-time-proofs.md`, `src/v3/M1_DESIGN.md`, `src/v3/SELF_HOSTING.md`, `docs/history/sg-4b-1-fix-declaration-lookup-cleanup.md`, and `docs/briefs/p0-bug-no-profile-sentinel.md` now use stable `INVARIANTS.md#` / principle anchors instead of line-number or pre-rewrite § references. **Slice B (#1801)** retired 34 additional refs across 16 files (12 brief files w/ numeric line-cites `:23/:33/:94/:236`; 4 docs/ files w/ named-section §-refs in `thesis-validation-plan.md`, `substrate-reflection-design.md`, `emit-target-spec-gaps.md`, `design-substrate-external-primitives.md`). Slice A (#1795) covers a parallel residual set. **Residual after A+B (Slice C scope, future):** §"No bridges" in `substrate-reflection-design.md:1663` (not in dispatch mapping); §-refs in `docs/thesis/compositional-layering.md`, `docs/thesis/two-groundings-static-validation-vs-efficient-realization.md`, `docs/inference-as-data-experiments.md`, `docs/parallelism-design.md`, `docs/v3-validation-experiments.md`, `docs/lens-library-design.md`, `docs/dependency-and-rendering-design.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r3-pb-binshim-row-1-decision-packet.md`, `docs/briefs/r3-v-l5-corpus-readiness-audit.md`; plus the forward-looking proposed-entry §-refs in `substrate-reflection-design.md` (§"Bounded substrate seed", §"Lenses are substrate declarations", §"Every dependency is a substrate fact", §"Minimal information per interface") that describe entries to land, not stale citations. - **`Strict Forward Progress` subdoc ↔ heading drift**: pre-existing inconsistency between `docs/invariants/strict-forward-progress.md` (bounded-execution content) and the reviewer-usage meaning of the SFP rule name (dissolution-progress). Flagged explicitly in both P4 and P5 of INVARIANTS.md post-#620 as future cleanup. Dissolution: either rename the subdoc to reflect its bounded-execution content (and author a new dissolution-progress subdoc), or split the subdoc into two. Small scope once the design call is made on naming. Owner: unassigned. - **v3 lens capability honesty pass (supersedes the complexity-receipt lane as originally scoped)**: the 2026-04-21 audit (see [docs/v3-lens-capability-register.md](docs/v3-lens-capability-register.md)) found that `src/v3/lenses/complexity.dag` does not subsume v2's `complexity.dag` — v2 produces symbolic `CostExpr` / `SizeExpr` with work/span/certainty/asymptotic-class, v3 produces a single integer depth per port. The same pattern holds for `cost.dag` (PROXY — no named size variables, Dimension wiring deferred), `idempotency.dag` (STUB — Rust oracle), and `parallelism.dag` (STUB — fail-closed placeholder). The originally-claimed "~13× LOC reduction with structurally stronger fail-closed guarantees" was comparing different functions of the program; retracted. **Follow-up work:** (1) the cementing-test discipline generalizes from one lens to every `regen.dag` entry (semantic-equality goldens per lens); (2) `docs/briefs/complexity-v2-v3-comparison-receipt.md` to be rewritten against the register — scope widens from "complexity receipt + registry rename" to "Band C honesty pass" once the register is merged. Substrate dissolution path: port `DescentEvidence` / `CallPattern` / `SubValueRelation` into the v3 substrate, wire per-call producers, and keep the E-M receipt that `MethodSemantics` is structurally subsumed rather than ported. Emit dissolution path: `match` lowering over user-defined sums (currently blocks `.dag` authority for idempotency + parallelism). Both are programs of work, not single lanes. Owner: unassigned; brief rewrite queues for after the 2026-04-21 wave's 5 lanes land and this register is in tree. - **Substrate carrier port program (scopes the "substrate dissolution path" half of the honesty pass above)**: design doc at [docs/design-substrate-carrier-port-program.md](docs/design-substrate-carrier-port-program.md) (2026-04-22). Decomposes the `DescentEvidence` / `CallPattern` / `SubValueRelation` / per-call producer work, with the `MethodSemantics` lane now **closed via M-b structural subsumption**. T/C/I port the carrier *types*; **E-P** has landed the first side-table producer slice (`v3_compiler::dag::per_call_descent_evidence`) for recursive self-call / arithmetic-descent evidence while leaving `TransformNode` unwidened. Full carrier parity still requires cost/complexity consumer wiring and same-source v2/v3 cementing. **E-M receipt:** v3 has no `ExprMethodCall` side slot; v2 `PlainMethodSemantics`, `AlgebraMethodSemantics`, and `ServiceMethodSemantics` map to `TransformTarget::{Callable, FieldProject, Operator}` plus typed declaration/effect metadata, so no ported `MethodSemantics` carrier or Rust mirror is added. Related: per-method metadata surface from `*_templates()` in `dsl/std/algebra.dag` (surfaced by Lane G / PR #654) — **§6a design call is closed** at [`docs/design-substrate-carrier-port-program.md` §6a](docs/design-substrate-carrier-port-program.md) (**Option 3** unified `MethodContract`; live receipt: `src/v3/std/algebra.dag`, `src/v3/lenses/cost.dag`). R2 program ledger: [`docs/r2-structure.md`](docs/r2-structure.md) Goal 5 (pick closed; follow-through per `docs/briefs/r2-release-6a-follow-through-worker.md`). Not part of the core four-carrier port. Closes **method carrier-parity** framing for `cost.dag` + `complexity.dag` at the structural **pick**; full `BEHAVIORALLY COMPLETE` for `cost.dag` additionally requires E-P consumer wiring and the register's separate non-carrier blockers (`Dimension` grammar/data-body wiring, named `SizeVariable` value semantics) that are outside this program, and opens P4 Decidability progress. Does NOT touch the emit-gap half (idempotency / parallelism); that stays in the receipt-closure wave. Owner: unassigned; remaining carrier-program work is E-P consumer/cementing plus the separately tracked non-carrier blockers. From cb63df92a68a6621968ed7e2c9168e3555548a6c Mon Sep 17 00:00:00 2001 From: Brian Searls Date: Tue, 5 May 2026 20:17:55 +0000 Subject: [PATCH 3/9] docs(thesis): fix stale :96 P2 cite in doc-authority.md (review #1801) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Line 96 of current INVARIANTS.md is inside the P1 procedure, not P2 — replace the stale line-cite with the #p2-boundary-discipline anchor matching the P1 cite already on this line. Per cursor review on #1801. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs/thesis/doc-authority.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/thesis/doc-authority.md b/docs/thesis/doc-authority.md index ec7991b8037..e41e531acc0 100644 --- a/docs/thesis/doc-authority.md +++ b/docs/thesis/doc-authority.md @@ -123,7 +123,7 @@ renumber. Cross-reference drift is a violation of this rule `[live]`. This contract is a thesis-doc-specific enforcement shape of two existing invariants `[live]` (see [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) P1 Modeling -Faithfulness + `:96` P2 Boundary Discipline): +Faithfulness + [`INVARIANTS.md#p2-boundary-discipline`](../../INVARIANTS.md#p2-boundary-discipline) P2 Boundary Discipline): - **P1 Modeling Faithfulness** — "Documentation Describes Live State." Mode declaration + per-claim tagging make the live-state From bdee12d144ba3276c520568aa9c91c40d77de2bb Mon Sep 17 00:00:00 2001 From: Brian Searls Date: Tue, 5 May 2026 20:28:27 +0000 Subject: [PATCH 4/9] docs(roadmap): correct :425 Slice B file partition (11+5, not 12+4) Per openai-pro review on #1801: actual partition is 11 docs/briefs/** files + 5 non-brief docs/** files (including thesis/doc-authority.md which the prior count omitted). Co-Authored-By: Claude Opus 4.7 (1M context) --- ROADMAP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 5c157bb20e8..79cad5c8772 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -420,7 +420,7 @@ Tracked debt not dispatched with the 2026-04-21 lane wave (Lane 1e P3.0, SG-2c-4 - **`container_template_algebra_rows` string table is duplicate authority**: `dsl/std/types.dag:133-146` declares the renamed map (PR #651 collapsed both consumers onto a single `container_template_algebra` query); rows still duplicate the authoritative type aliases at `:211-213` (`type List = FreeMonoid`, etc.) across Pascal/snake spellings plus algebra self-identities. Dissolution trigger: when `.dag` gains alias reflection, the rows derive from the aliases directly and the hand-maintained table goes away. P2 Boundary Discipline / P1 receipt. Owner: unassigned; small scope. - **Emitter render-helper consolidation (Phase 3.1 candidate after 1e P3.0)**: `named_variant_id` / `render_named_template` / `primitive_type_id_for_port` / `walk_to_disj` / `algebra_field_for_operator` exist 3-5× across `src/v3/compiler/src/emit.rs` + `emit/python_target.rs` + `emit/rust_target.rs` (plus `walk_to_disj_decl` also in `lower.rs` and `infer.rs`). Collapse into one emitter-shared module. Different scope from 1e P3.0 which targets `behavior_result_port` / `port_is_consumed_from`; this is the render-side tranche. P2 Boundary Discipline receipt. Owner: queued behind 1e P3.0 as the natural follow-up. -- **Stale §-style and line-number cross-references to pre-rewrite `INVARIANTS.md` — PARTIAL (T-Receipts W1 + Slice B #1801).** The ledger-named refs in `docs/design-db16-refined-generic-substitution.md`, `docs/perf/clone-elimination.md`, `docs/lane2-compile-time-proofs.md`, `src/v3/M1_DESIGN.md`, `src/v3/SELF_HOSTING.md`, `docs/history/sg-4b-1-fix-declaration-lookup-cleanup.md`, and `docs/briefs/p0-bug-no-profile-sentinel.md` now use stable `INVARIANTS.md#` / principle anchors instead of line-number or pre-rewrite § references. **Slice B (#1801)** retired 34 additional refs across 16 files (12 brief files w/ numeric line-cites `:23/:33/:94/:236`; 4 docs/ files w/ named-section §-refs in `thesis-validation-plan.md`, `substrate-reflection-design.md`, `emit-target-spec-gaps.md`, `design-substrate-external-primitives.md`). Slice A (#1795) covers a parallel residual set. **Residual after A+B (Slice C scope, future):** §"No bridges" in `substrate-reflection-design.md:1663` (not in dispatch mapping); §-refs in `docs/thesis/compositional-layering.md`, `docs/thesis/two-groundings-static-validation-vs-efficient-realization.md`, `docs/inference-as-data-experiments.md`, `docs/parallelism-design.md`, `docs/v3-validation-experiments.md`, `docs/lens-library-design.md`, `docs/dependency-and-rendering-design.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r3-pb-binshim-row-1-decision-packet.md`, `docs/briefs/r3-v-l5-corpus-readiness-audit.md`; plus the forward-looking proposed-entry §-refs in `substrate-reflection-design.md` (§"Bounded substrate seed", §"Lenses are substrate declarations", §"Every dependency is a substrate fact", §"Minimal information per interface") that describe entries to land, not stale citations. +- **Stale §-style and line-number cross-references to pre-rewrite `INVARIANTS.md` — PARTIAL (T-Receipts W1 + Slice B #1801).** The ledger-named refs in `docs/design-db16-refined-generic-substitution.md`, `docs/perf/clone-elimination.md`, `docs/lane2-compile-time-proofs.md`, `src/v3/M1_DESIGN.md`, `src/v3/SELF_HOSTING.md`, `docs/history/sg-4b-1-fix-declaration-lookup-cleanup.md`, and `docs/briefs/p0-bug-no-profile-sentinel.md` now use stable `INVARIANTS.md#` / principle anchors instead of line-number or pre-rewrite § references. **Slice B (#1801)** retired 34 additional refs across 16 files (11 `docs/briefs/**` files w/ numeric line-cites `:23/:33/:94/:236`; 5 other `docs/**` files w/ named-section §-refs and a stale `:96` cite — `thesis-validation-plan.md`, `substrate-reflection-design.md`, `emit-target-spec-gaps.md`, `design-substrate-external-primitives.md`, `thesis/doc-authority.md`). Slice A (#1795) covers a parallel residual set. **Residual after A+B (Slice C scope, future):** §"No bridges" in `substrate-reflection-design.md:1663` (not in dispatch mapping); §-refs in `docs/thesis/compositional-layering.md`, `docs/thesis/two-groundings-static-validation-vs-efficient-realization.md`, `docs/inference-as-data-experiments.md`, `docs/parallelism-design.md`, `docs/v3-validation-experiments.md`, `docs/lens-library-design.md`, `docs/dependency-and-rendering-design.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r3-pb-binshim-row-1-decision-packet.md`, `docs/briefs/r3-v-l5-corpus-readiness-audit.md`; plus the forward-looking proposed-entry §-refs in `substrate-reflection-design.md` (§"Bounded substrate seed", §"Lenses are substrate declarations", §"Every dependency is a substrate fact", §"Minimal information per interface") that describe entries to land, not stale citations. - **`Strict Forward Progress` subdoc ↔ heading drift**: pre-existing inconsistency between `docs/invariants/strict-forward-progress.md` (bounded-execution content) and the reviewer-usage meaning of the SFP rule name (dissolution-progress). Flagged explicitly in both P4 and P5 of INVARIANTS.md post-#620 as future cleanup. Dissolution: either rename the subdoc to reflect its bounded-execution content (and author a new dissolution-progress subdoc), or split the subdoc into two. Small scope once the design call is made on naming. Owner: unassigned. - **v3 lens capability honesty pass (supersedes the complexity-receipt lane as originally scoped)**: the 2026-04-21 audit (see [docs/v3-lens-capability-register.md](docs/v3-lens-capability-register.md)) found that `src/v3/lenses/complexity.dag` does not subsume v2's `complexity.dag` — v2 produces symbolic `CostExpr` / `SizeExpr` with work/span/certainty/asymptotic-class, v3 produces a single integer depth per port. The same pattern holds for `cost.dag` (PROXY — no named size variables, Dimension wiring deferred), `idempotency.dag` (STUB — Rust oracle), and `parallelism.dag` (STUB — fail-closed placeholder). The originally-claimed "~13× LOC reduction with structurally stronger fail-closed guarantees" was comparing different functions of the program; retracted. **Follow-up work:** (1) the cementing-test discipline generalizes from one lens to every `regen.dag` entry (semantic-equality goldens per lens); (2) `docs/briefs/complexity-v2-v3-comparison-receipt.md` to be rewritten against the register — scope widens from "complexity receipt + registry rename" to "Band C honesty pass" once the register is merged. Substrate dissolution path: port `DescentEvidence` / `CallPattern` / `SubValueRelation` into the v3 substrate, wire per-call producers, and keep the E-M receipt that `MethodSemantics` is structurally subsumed rather than ported. Emit dissolution path: `match` lowering over user-defined sums (currently blocks `.dag` authority for idempotency + parallelism). Both are programs of work, not single lanes. Owner: unassigned; brief rewrite queues for after the 2026-04-21 wave's 5 lanes land and this register is in tree. - **Substrate carrier port program (scopes the "substrate dissolution path" half of the honesty pass above)**: design doc at [docs/design-substrate-carrier-port-program.md](docs/design-substrate-carrier-port-program.md) (2026-04-22). Decomposes the `DescentEvidence` / `CallPattern` / `SubValueRelation` / per-call producer work, with the `MethodSemantics` lane now **closed via M-b structural subsumption**. T/C/I port the carrier *types*; **E-P** has landed the first side-table producer slice (`v3_compiler::dag::per_call_descent_evidence`) for recursive self-call / arithmetic-descent evidence while leaving `TransformNode` unwidened. Full carrier parity still requires cost/complexity consumer wiring and same-source v2/v3 cementing. **E-M receipt:** v3 has no `ExprMethodCall` side slot; v2 `PlainMethodSemantics`, `AlgebraMethodSemantics`, and `ServiceMethodSemantics` map to `TransformTarget::{Callable, FieldProject, Operator}` plus typed declaration/effect metadata, so no ported `MethodSemantics` carrier or Rust mirror is added. Related: per-method metadata surface from `*_templates()` in `dsl/std/algebra.dag` (surfaced by Lane G / PR #654) — **§6a design call is closed** at [`docs/design-substrate-carrier-port-program.md` §6a](docs/design-substrate-carrier-port-program.md) (**Option 3** unified `MethodContract`; live receipt: `src/v3/std/algebra.dag`, `src/v3/lenses/cost.dag`). R2 program ledger: [`docs/r2-structure.md`](docs/r2-structure.md) Goal 5 (pick closed; follow-through per `docs/briefs/r2-release-6a-follow-through-worker.md`). Not part of the core four-carrier port. Closes **method carrier-parity** framing for `cost.dag` + `complexity.dag` at the structural **pick**; full `BEHAVIORALLY COMPLETE` for `cost.dag` additionally requires E-P consumer wiring and the register's separate non-carrier blockers (`Dimension` grammar/data-body wiring, named `SizeVariable` value semantics) that are outside this program, and opens P4 Decidability progress. Does NOT touch the emit-gap half (idempotency / parallelism); that stays in the receipt-closure wave. Owner: unassigned; remaining carrier-program work is E-P consumer/cementing plus the separately tracked non-carrier blockers. From 1f0b5638d13369da74c0b625f769988fadbd99c9 Mon Sep 17 00:00:00 2001 From: Brian Searls Date: Tue, 5 May 2026 21:17:14 +0000 Subject: [PATCH 5/9] ci: re-trigger v3 after t_demo_fixture transient flake From 164d4aa7c015b0991a889a43725ba05953b61770 Mon Sep 17 00:00:00 2001 From: Brian Searls Date: Wed, 6 May 2026 04:33:05 +0000 Subject: [PATCH 6/9] =?UTF-8?q?docs(briefs):=20retire=20residual=20=C2=A7P?= =?UTF-8?q?1=20/=20line-86=20cites=20in=20t-ground=20triplet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per codex review on #1801: the three t-ground-* files in Slice B scope still carried `§P1 (line 86 onward)` and bare `§P1` cites alongside the already-anchored `:94`. Normalize them to `#p1-modeling-faithfulness` anchors for consistency. Other t-ground-*.md files (t-ground-dissolve, -cross-target-meta, -diagnostic) remain Slice C scope. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs/briefs/t-ground-languagespec.md | 6 +++--- docs/briefs/t-ground-lifetime-analyzer.md | 6 +++--- docs/briefs/t-ground-tests.md | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/briefs/t-ground-languagespec.md b/docs/briefs/t-ground-languagespec.md index 92fbf94f4ad..3f6f9e9e57c 100644 --- a/docs/briefs/t-ground-languagespec.md +++ b/docs/briefs/t-ground-languagespec.md @@ -10,7 +10,7 @@ - Engine-reframe spec: [`docs/design-emission-model.md`](../design-emission-model.md) — Modeling problem 6 (line 192), §"Affected lanes" option (c) (lines 900-910), MethodContract consolidation (line 942), `BoundDeclaration` consumer note (line 1008), apparent-multi-inhabitance audit (line 895), Q3 `RealizationCost` lock (lines 1143-1208), lane row line 384. - Reflection completeness: [`docs/design-reflection-completeness.md`](../design-reflection-completeness.md) — LanguageSpec as a reflection consumer (no per-consumer projection; line 103). - THESIS: `THESIS.md:171` — "Coercion = emission. No separate coercion engine." -- Substrate-fact-introduction procedure: [`INVARIANTS.md`](../../INVARIANTS.md) §P1 (line 86 onward). +- Substrate-fact-introduction procedure: [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure). - Brief shape template: [`t-ground-engine-phase-1-typestructure.md`](t-ground-engine-phase-1-typestructure.md). --- @@ -128,7 +128,7 @@ Sub-tasks (per target): This is the load-bearing consequence of Q4's universal four-property gate (Faithful / Correct / Minimal / Performant; PR-I lock). Each candidate retained must pass all four; each candidate retracted must produce a structural reason citation. -### G. Substrate-fact-introduction P1 procedure (per `INVARIANTS.md` §P1) +### G. Substrate-fact-introduction P1 procedure (per [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness)) Worker MUST run the 3-step procedure ([`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure)) for every new substrate type / variant / field introduced under this lane and cite the receipts in the PR body: - **Step 1 (DAG-ancestor):** which existing parent does the new fact attach to? (Worked example: `LanguageSpec` itself — does an ancestor target-spec carrier exist already?) @@ -262,6 +262,6 @@ PR body covers: scope (A-G); per-target population status (Rust full / Python fu - Engine-reframe spec: [`docs/design-emission-model.md`](../design-emission-model.md) — Modeling problem 6 + §"Affected lanes" + Q3 lock + line 942 method-contract consolidation (renamed `MethodTemplateContract` post-2026-04-29 Director routing; cited line still uses doc's original wording) - Reflection completeness: [`docs/design-reflection-completeness.md`](../design-reflection-completeness.md) - THESIS: `THESIS.md:171` (engine-retraction) -- Substrate-fact-introduction: [`INVARIANTS.md`](../../INVARIANTS.md) §P1 +- Substrate-fact-introduction: [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) - Brief shape template: [`t-ground-engine-phase-1-typestructure.md`](t-ground-engine-phase-1-typestructure.md) - Sibling lanes: [`t-ground-engine-substrate-audit.md`](t-ground-engine-substrate-audit.md), [`t-ground-engine-substrate-escalation.md`](t-ground-engine-substrate-escalation.md) (both pre-cascade; post-cascade naming aligns with the 11-lane structure). These pre-cascade docs will be superseded by the post-cascade lane briefs (T-Ground-Coercion-Fold / -Lifetime-Analyzer / -Diagnostic / -CrossTarget-Meta) once authored; lineage stays visible until then. diff --git a/docs/briefs/t-ground-lifetime-analyzer.md b/docs/briefs/t-ground-lifetime-analyzer.md index 140585c3b89..f6f65f7af60 100644 --- a/docs/briefs/t-ground-lifetime-analyzer.md +++ b/docs/briefs/t-ground-lifetime-analyzer.md @@ -9,7 +9,7 @@ **Lineage / authorities consumed (no re-litigation):** - Engine-reframe spec: [`docs/design-emission-model.md`](../design-emission-model.md) — Modeling problem 3 corrected (lines 116-150), worked Examples 3-4 (`String` → `Box` / `&str` derivation; lines 523-635), R2-vs-R3 scope lock (line 635), lane row line 385. - THESIS: `THESIS.md:171` — engine-retraction; **no annotation surface** is the load-bearing constraint. -- Substrate-fact-introduction procedure: [`INVARIANTS.md`](../../INVARIANTS.md) §P1 (line 86 onward). +- Substrate-fact-introduction procedure: [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure). - Sibling lane: [`t-ground-languagespec.md`](t-ground-languagespec.md) — declares the ownership / growability / encoding / lifetime axes per primitive; this lane derives the program-side facts that match those axes. - Brief shape template: [`t-ground-engine-phase-1-typestructure.md`](t-ground-engine-phase-1-typestructure.md), [`t-ground-languagespec.md`](t-ground-languagespec.md). @@ -110,7 +110,7 @@ Per Modeling problem 4 corrected (`design-emission-model.md:152-162`): structura Every detectable under-determination / contradiction lands as a structured diagnostic (per [`feedback_fail_closed_discipline.md`] / C-8). No silent `None` defaults; no implicit "assume Owned" fallbacks. The analyzer's output domain is `Result` per binding. -### G. Substrate-fact-introduction P1 procedure (per `INVARIANTS.md` §P1) +### G. Substrate-fact-introduction P1 procedure (per [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness)) Worker MUST run the 3-step procedure ([`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) (Procedure)) for every new substrate type / variant / field introduced under this lane and cite the receipts in the PR body: - **Step 1 (DAG-ancestor):** `LifetimeFacts` and its component types (`Ownership`, `LifetimeScope`, `Growability`, `Encoding`) — does an ancestor structural-fact carrier already exist (e.g., is `Ownership` definable as inhabitance of some existing `Lattice` or algebra in `dsl/std/`)? Where to attach the fact: on `Binding` directly, on `Declaration`, or as a side-table? Default: structural attachment, cite receipt. @@ -234,6 +234,6 @@ PR body covers: scope (R2 cases (a)/(b)/(c) only); analyzer crate location; algo - Engine-reframe spec: [`docs/design-emission-model.md`](../design-emission-model.md) — Modeling problem 3 corrected + Examples 3-4 + R2-vs-R3 lock at line 635 - Sibling lane (axis vocabulary): [`t-ground-languagespec.md`](t-ground-languagespec.md) - THESIS: `THESIS.md:171` (engine-retraction; no-annotation discipline) -- Substrate-fact-introduction: [`INVARIANTS.md`](../../INVARIANTS.md) §P1 +- Substrate-fact-introduction: [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) - Brief shape template: [`t-ground-engine-phase-1-typestructure.md`](t-ground-engine-phase-1-typestructure.md), [`t-ground-languagespec.md`](t-ground-languagespec.md) - R3 successor lane: `T-LensProducer-Retirement` (per `design-emission-model.md:635`) diff --git a/docs/briefs/t-ground-tests.md b/docs/briefs/t-ground-tests.md index 2edea4638e1..e8a7f377cf0 100644 --- a/docs/briefs/t-ground-tests.md +++ b/docs/briefs/t-ground-tests.md @@ -211,6 +211,6 @@ PR body covers: scope (A-F); routing-stability strata (Stratum A name-keyed pari - Lens framework: [`docs/design-lens-framework.md`](../design-lens-framework.md) — Q4 four-property entries; `Lens` substrate input shape - Sibling lanes: [`t-ground-languagespec.md`](t-ground-languagespec.md) (axis vocabulary), [`t-ground-lifetime-analyzer.md`](t-ground-lifetime-analyzer.md) (structural intent inputs), [`t-ground-diagnostic.md`](t-ground-diagnostic.md) (`EmissionDiagnostic` shape consumed) - R3 successor: `T-Verification-L4-L7-Direct` (per `design-emission-model.md:404` — runtime-equivalence companion) -- Substrate-fact-introduction: [`INVARIANTS.md`](../../INVARIANTS.md) §P1 +- Substrate-fact-introduction: [`INVARIANTS.md#p1-modeling-faithfulness`](../../INVARIANTS.md#p1-modeling-faithfulness) - Brief shape templates: [`t-ground-languagespec.md`](t-ground-languagespec.md), [`t-ground-lifetime-analyzer.md`](t-ground-lifetime-analyzer.md), [`t-ground-diagnostic.md`](t-ground-diagnostic.md) - Pilot precedent: `src/v3/grounding_pilot/src/lib.rs:408-460` (Stratum A/B routing-stability seed); receipt at `r2-grounding-manager.md:120` (`pilot_inhabitance_routing_stability_landed` — DONE PR #765) From e68eecd8457e3935a7ee0fca0523ae5d8650b803 Mon Sep 17 00:00:00 2001 From: Brian Searls Date: Wed, 6 May 2026 05:38:24 +0000 Subject: [PATCH 7/9] Merge remote-tracking branch 'origin/main' into session/smart-ram-167 Resolve ROADMAP.md conflict on :425 row by merging Slice A (#1795) and Slice B (#1801) framing. HEAD's post-Slice-B narrative is kept, with Slice A's per-file enumeration folded in. --- ROADMAP.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 8835ba62ad6..040d4f75e25 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -422,11 +422,7 @@ Tracked debt not dispatched with the 2026-04-21 lane wave (Lane 1e P3.0, SG-2c-4 - **`container_template_algebra_rows` string table is duplicate authority**: `dsl/std/types.dag:133-146` declares the renamed map (PR #651 collapsed both consumers onto a single `container_template_algebra` query); rows still duplicate the authoritative type aliases at `:211-213` (`type List = FreeMonoid`, etc.) across Pascal/snake spellings plus algebra self-identities. Dissolution trigger: when `.dag` gains alias reflection, the rows derive from the aliases directly and the hand-maintained table goes away. P2 Boundary Discipline / P1 receipt. Owner: unassigned; small scope. - **Emitter render-helper consolidation (Phase 3.1 candidate after 1e P3.0)**: `named_variant_id` / `render_named_template` / `primitive_type_id_for_port` / `walk_to_disj` / `algebra_field_for_operator` exist 3-5× across `src/v3/compiler/src/emit.rs` + `emit/python_target.rs` + `emit/rust_target.rs` (plus `walk_to_disj_decl` also in `lower.rs` and `infer.rs`). Collapse into one emitter-shared module. Different scope from 1e P3.0 which targets `behavior_result_port` / `port_is_consumed_from`; this is the render-side tranche. P2 Boundary Discipline receipt. Owner: queued behind 1e P3.0 as the natural follow-up. -<<<<<<< HEAD -- **Stale §-style and line-number cross-references to pre-rewrite `INVARIANTS.md` — PARTIAL (T-Receipts W1 + Slice B #1801).** The ledger-named refs in `docs/design-db16-refined-generic-substitution.md`, `docs/perf/clone-elimination.md`, `docs/lane2-compile-time-proofs.md`, `src/v3/M1_DESIGN.md`, `src/v3/SELF_HOSTING.md`, `docs/history/sg-4b-1-fix-declaration-lookup-cleanup.md`, and `docs/briefs/p0-bug-no-profile-sentinel.md` now use stable `INVARIANTS.md#` / principle anchors instead of line-number or pre-rewrite § references. **Slice B (#1801)** retired 34 additional refs across 16 files (11 `docs/briefs/**` files w/ numeric line-cites `:23/:33/:94/:236`; 5 other `docs/**` files w/ named-section §-refs and a stale `:96` cite — `thesis-validation-plan.md`, `substrate-reflection-design.md`, `emit-target-spec-gaps.md`, `design-substrate-external-primitives.md`, `thesis/doc-authority.md`). Slice A (#1795) covers a parallel residual set. **Residual after A+B (Slice C scope, future):** §"No bridges" in `substrate-reflection-design.md:1663` (not in dispatch mapping); §-refs in `docs/thesis/compositional-layering.md`, `docs/thesis/two-groundings-static-validation-vs-efficient-realization.md`, `docs/inference-as-data-experiments.md`, `docs/parallelism-design.md`, `docs/v3-validation-experiments.md`, `docs/lens-library-design.md`, `docs/dependency-and-rendering-design.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r3-pb-binshim-row-1-decision-packet.md`, `docs/briefs/r3-v-l5-corpus-readiness-audit.md`; plus the forward-looking proposed-entry §-refs in `substrate-reflection-design.md` (§"Bounded substrate seed", §"Lenses are substrate declarations", §"Every dependency is a substrate fact", §"Minimal information per interface") that describe entries to land, not stale citations. -======= -- **Stale §-style and line-number cross-references to pre-rewrite `INVARIANTS.md` — PARTIAL (T-Receipts W1 + :425 Slice A).** The ledger-named refs in `docs/design-db16-refined-generic-substitution.md`, `docs/perf/clone-elimination.md`, `docs/lane2-compile-time-proofs.md`, `src/v3/M1_DESIGN.md`, `src/v3/SELF_HOSTING.md`, `docs/history/sg-4b-1-fix-declaration-lookup-cleanup.md`, and `docs/briefs/p0-bug-no-profile-sentinel.md` were retired by W1. Slice A of the residual sweep (proud-lynx-311, per Director's by-ref-type criteria) replaced every remaining `§P{1..5}` header-quote ref repo-wide with the stable principle anchors `INVARIANTS.md#p{1..5}-{principle}`; Slice A touched `docs/design-tests-as-data-completeness.md`, `docs/r3-structure.md`, `docs/escalation-paths.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r2-release-manager.md`, `ROADMAP.md`, `docs/design-emission-model.md`, `docs/design-lens-framework.md`, `docs/briefs/complexity-v2-v3-comparison-receipt.md`, `docs/briefs/file-preference-bridge-dissolution.md`, `docs/r2-structure.md`, `.github/PULL_REQUEST_TEMPLATE.md`, `docs/history/lens-wire-in-audit-v2-comparison.md`, `src/v3/std/substrate.dag`, and `src/v3/grounding_lifetime/src/facts.rs`. Residual narrows to Slice B (numeric line-cites + named-section refs): `INVARIANTS.md:94` / `:236` / `:23` / `:33` line-cites in `docs/thesis/doc-authority.md`, `docs/briefs/r3-pb-t-fixedpoint-worker.md`, `docs/briefs/r3-pb-runtime-equivalence-corpus-seed-audit.md`, `docs/briefs/r2-pb-runtime-evaluator-convergence-matrix.md`, `docs/briefs/r2-pb-canonical-lens-bridge-disposition.md`, `docs/briefs/r3-pb-t-lensproducer-sub{1,2,3}-*.md`, `docs/briefs/r3-pb-binshim-retirement-worker.md`, `docs/briefs/t-ground-{languagespec,tests,lifetime-analyzer}.md`; named-section refs (`§"Layer opacity"` / `§"Documentation Describes Live State"` / `§"Facts Flow Forward"` / `§"No fallbacks that fabricate"` / `§"Cost algebra upstream of"` / `§"No duplicate representations"` / `§"No case enumeration for open"` / `§"Scaffold boundaries"` / `§"Semantic authority after lowering"` / `§"Procedure: substrate-fact introduction"` / `§ E-9`) in `docs/thesis-validation-plan.md`, `docs/substrate-reflection-design.md`, `docs/emit-target-spec-gaps.md`, `docs/design-substrate-external-primitives.md`. ->>>>>>> origin/main +- **Stale §-style and line-number cross-references to pre-rewrite `INVARIANTS.md` — PARTIAL (T-Receipts W1 + Slice A #1795 + Slice B #1801).** The ledger-named refs in `docs/design-db16-refined-generic-substitution.md`, `docs/perf/clone-elimination.md`, `docs/lane2-compile-time-proofs.md`, `src/v3/M1_DESIGN.md`, `src/v3/SELF_HOSTING.md`, `docs/history/sg-4b-1-fix-declaration-lookup-cleanup.md`, and `docs/briefs/p0-bug-no-profile-sentinel.md` were retired by W1. **Slice A (#1795)** replaced every remaining `§P{1..5}` header-quote ref repo-wide with the stable principle anchors `INVARIANTS.md#p{1..5}-{principle}`; Slice A touched `docs/design-tests-as-data-completeness.md`, `docs/r3-structure.md`, `docs/escalation-paths.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r2-release-manager.md`, `ROADMAP.md`, `docs/design-emission-model.md`, `docs/design-lens-framework.md`, `docs/briefs/complexity-v2-v3-comparison-receipt.md`, `docs/briefs/file-preference-bridge-dissolution.md`, `docs/r2-structure.md`, `.github/PULL_REQUEST_TEMPLATE.md`, `docs/history/lens-wire-in-audit-v2-comparison.md`, `src/v3/std/substrate.dag`, and `src/v3/grounding_lifetime/src/facts.rs`. **Slice B (#1801)** retired 34 additional refs across 16 files (11 `docs/briefs/**` files w/ numeric line-cites `:23/:33/:94/:236`; 5 other `docs/**` files w/ named-section §-refs and a stale `:96` cite — `thesis-validation-plan.md`, `substrate-reflection-design.md`, `emit-target-spec-gaps.md`, `design-substrate-external-primitives.md`, `thesis/doc-authority.md`). **Residual after A+B (Slice C scope, future):** §"No bridges" in `substrate-reflection-design.md:1663` (not in dispatch mapping); §-refs in `docs/thesis/compositional-layering.md`, `docs/thesis/two-groundings-static-validation-vs-efficient-realization.md`, `docs/inference-as-data-experiments.md`, `docs/parallelism-design.md`, `docs/v3-validation-experiments.md`, `docs/lens-library-design.md`, `docs/dependency-and-rendering-design.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r3-pb-binshim-row-1-decision-packet.md`, `docs/briefs/r3-v-l5-corpus-readiness-audit.md`; plus the forward-looking proposed-entry §-refs in `substrate-reflection-design.md` (§"Bounded substrate seed", §"Lenses are substrate declarations", §"Every dependency is a substrate fact", §"Minimal information per interface") that describe entries to land, not stale citations. - **`Strict Forward Progress` subdoc ↔ heading drift**: pre-existing inconsistency between `docs/invariants/strict-forward-progress.md` (bounded-execution content) and the reviewer-usage meaning of the SFP rule name (dissolution-progress). Flagged explicitly in both P4 and P5 of INVARIANTS.md post-#620 as future cleanup. Dissolution: either rename the subdoc to reflect its bounded-execution content (and author a new dissolution-progress subdoc), or split the subdoc into two. Small scope once the design call is made on naming. Owner: unassigned. - **v3 lens capability honesty pass (supersedes the complexity-receipt lane as originally scoped)**: the 2026-04-21 audit (see [docs/v3-lens-capability-register.md](docs/v3-lens-capability-register.md)) found that `src/v3/lenses/complexity.dag` does not subsume v2's `complexity.dag` — v2 produces symbolic `CostExpr` / `SizeExpr` with work/span/certainty/asymptotic-class, v3 produces a single integer depth per port. The same pattern holds for `cost.dag` (PROXY — no named size variables, Dimension wiring deferred), `idempotency.dag` (STUB — Rust oracle), and `parallelism.dag` (STUB — fail-closed placeholder). The originally-claimed "~13× LOC reduction with structurally stronger fail-closed guarantees" was comparing different functions of the program; retracted. **Follow-up work:** (1) the cementing-test discipline generalizes from one lens to every `regen.dag` entry (semantic-equality goldens per lens); (2) `docs/briefs/complexity-v2-v3-comparison-receipt.md` to be rewritten against the register — scope widens from "complexity receipt + registry rename" to "Band C honesty pass" once the register is merged. Substrate dissolution path: port `DescentEvidence` / `CallPattern` / `SubValueRelation` into the v3 substrate, wire per-call producers, and keep the E-M receipt that `MethodSemantics` is structurally subsumed rather than ported. Emit dissolution path: `match` lowering over user-defined sums (currently blocks `.dag` authority for idempotency + parallelism). Both are programs of work, not single lanes. Owner: unassigned; brief rewrite queues for after the 2026-04-21 wave's 5 lanes land and this register is in tree. - **Substrate carrier port program (scopes the "substrate dissolution path" half of the honesty pass above)**: design doc at [docs/design-substrate-carrier-port-program.md](docs/design-substrate-carrier-port-program.md) (2026-04-22). Decomposes the `DescentEvidence` / `CallPattern` / `SubValueRelation` / per-call producer work, with the `MethodSemantics` lane now **closed via M-b structural subsumption**. T/C/I port the carrier *types*; **E-P** has landed the first side-table producer slice (`v3_compiler::dag::per_call_descent_evidence`) for recursive self-call / arithmetic-descent evidence while leaving `TransformNode` unwidened. Full carrier parity still requires cost/complexity consumer wiring and same-source v2/v3 cementing. **E-M receipt:** v3 has no `ExprMethodCall` side slot; v2 `PlainMethodSemantics`, `AlgebraMethodSemantics`, and `ServiceMethodSemantics` map to `TransformTarget::{Callable, FieldProject, Operator}` plus typed declaration/effect metadata, so no ported `MethodSemantics` carrier or Rust mirror is added. Related: per-method metadata surface from `*_templates()` in `dsl/std/algebra.dag` (surfaced by Lane G / PR #654) — **§6a design call is closed** at [`docs/design-substrate-carrier-port-program.md` §6a](docs/design-substrate-carrier-port-program.md) (**Option 3** unified `MethodContract`; live receipt: `src/v3/std/algebra.dag`, `src/v3/lenses/cost.dag`). R2 program ledger: [`docs/r2-structure.md`](docs/r2-structure.md) Goal 5 (pick closed; follow-through per `docs/briefs/r2-release-6a-follow-through-worker.md`). Not part of the core four-carrier port. Closes **method carrier-parity** framing for `cost.dag` + `complexity.dag` at the structural **pick**; full `BEHAVIORALLY COMPLETE` for `cost.dag` additionally requires E-P consumer wiring and the register's separate non-carrier blockers (`Dimension` grammar/data-body wiring, named `SizeVariable` value semantics) that are outside this program, and opens P4 Decidability progress. Does NOT touch the emit-gap half (idempotency / parallelism); that stays in the receipt-closure wave. Owner: unassigned; remaining carrier-program work is E-P consumer/cementing plus the separately tracked non-carrier blockers. From 3cd7133d462f5efa5e8b9c0a5e305ee786c9328c Mon Sep 17 00:00:00 2001 From: Brian Searls Date: Wed, 6 May 2026 05:40:02 +0000 Subject: [PATCH 8/9] =?UTF-8?q?docs(roadmap):=20qualify=20:425=20Slice=20B?= =?UTF-8?q?=20dispatch=20scope;=20route=20=C2=A7P1=20process-refs=20to=20S?= =?UTF-8?q?lice=20C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per codex review on PR #1801 (sha 33f2597d): four files patched by Slice B (r2-pb-canonical-lens-bridge-disposition, r3-pb-binshim- retirement-worker, r3-pb-t-fixedpoint-worker, r3-pb-runtime- equivalence-corpus-seed-audit) still contain §P1 process-reference cites and one 'line 86' mention. These were out of Slice B's anchor- mapped dispatch (numeric line-cites + named-section §-refs only) and route to Slice C. Qualify the :425 row to make that scope explicit. --- ROADMAP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 040d4f75e25..93c09389097 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -422,7 +422,7 @@ Tracked debt not dispatched with the 2026-04-21 lane wave (Lane 1e P3.0, SG-2c-4 - **`container_template_algebra_rows` string table is duplicate authority**: `dsl/std/types.dag:133-146` declares the renamed map (PR #651 collapsed both consumers onto a single `container_template_algebra` query); rows still duplicate the authoritative type aliases at `:211-213` (`type List = FreeMonoid`, etc.) across Pascal/snake spellings plus algebra self-identities. Dissolution trigger: when `.dag` gains alias reflection, the rows derive from the aliases directly and the hand-maintained table goes away. P2 Boundary Discipline / P1 receipt. Owner: unassigned; small scope. - **Emitter render-helper consolidation (Phase 3.1 candidate after 1e P3.0)**: `named_variant_id` / `render_named_template` / `primitive_type_id_for_port` / `walk_to_disj` / `algebra_field_for_operator` exist 3-5× across `src/v3/compiler/src/emit.rs` + `emit/python_target.rs` + `emit/rust_target.rs` (plus `walk_to_disj_decl` also in `lower.rs` and `infer.rs`). Collapse into one emitter-shared module. Different scope from 1e P3.0 which targets `behavior_result_port` / `port_is_consumed_from`; this is the render-side tranche. P2 Boundary Discipline receipt. Owner: queued behind 1e P3.0 as the natural follow-up. -- **Stale §-style and line-number cross-references to pre-rewrite `INVARIANTS.md` — PARTIAL (T-Receipts W1 + Slice A #1795 + Slice B #1801).** The ledger-named refs in `docs/design-db16-refined-generic-substitution.md`, `docs/perf/clone-elimination.md`, `docs/lane2-compile-time-proofs.md`, `src/v3/M1_DESIGN.md`, `src/v3/SELF_HOSTING.md`, `docs/history/sg-4b-1-fix-declaration-lookup-cleanup.md`, and `docs/briefs/p0-bug-no-profile-sentinel.md` were retired by W1. **Slice A (#1795)** replaced every remaining `§P{1..5}` header-quote ref repo-wide with the stable principle anchors `INVARIANTS.md#p{1..5}-{principle}`; Slice A touched `docs/design-tests-as-data-completeness.md`, `docs/r3-structure.md`, `docs/escalation-paths.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r2-release-manager.md`, `ROADMAP.md`, `docs/design-emission-model.md`, `docs/design-lens-framework.md`, `docs/briefs/complexity-v2-v3-comparison-receipt.md`, `docs/briefs/file-preference-bridge-dissolution.md`, `docs/r2-structure.md`, `.github/PULL_REQUEST_TEMPLATE.md`, `docs/history/lens-wire-in-audit-v2-comparison.md`, `src/v3/std/substrate.dag`, and `src/v3/grounding_lifetime/src/facts.rs`. **Slice B (#1801)** retired 34 additional refs across 16 files (11 `docs/briefs/**` files w/ numeric line-cites `:23/:33/:94/:236`; 5 other `docs/**` files w/ named-section §-refs and a stale `:96` cite — `thesis-validation-plan.md`, `substrate-reflection-design.md`, `emit-target-spec-gaps.md`, `design-substrate-external-primitives.md`, `thesis/doc-authority.md`). **Residual after A+B (Slice C scope, future):** §"No bridges" in `substrate-reflection-design.md:1663` (not in dispatch mapping); §-refs in `docs/thesis/compositional-layering.md`, `docs/thesis/two-groundings-static-validation-vs-efficient-realization.md`, `docs/inference-as-data-experiments.md`, `docs/parallelism-design.md`, `docs/v3-validation-experiments.md`, `docs/lens-library-design.md`, `docs/dependency-and-rendering-design.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r3-pb-binshim-row-1-decision-packet.md`, `docs/briefs/r3-v-l5-corpus-readiness-audit.md`; plus the forward-looking proposed-entry §-refs in `substrate-reflection-design.md` (§"Bounded substrate seed", §"Lenses are substrate declarations", §"Every dependency is a substrate fact", §"Minimal information per interface") that describe entries to land, not stale citations. +- **Stale §-style and line-number cross-references to pre-rewrite `INVARIANTS.md` — PARTIAL (T-Receipts W1 + Slice A #1795 + Slice B #1801).** The ledger-named refs in `docs/design-db16-refined-generic-substitution.md`, `docs/perf/clone-elimination.md`, `docs/lane2-compile-time-proofs.md`, `src/v3/M1_DESIGN.md`, `src/v3/SELF_HOSTING.md`, `docs/history/sg-4b-1-fix-declaration-lookup-cleanup.md`, and `docs/briefs/p0-bug-no-profile-sentinel.md` were retired by W1. **Slice A (#1795)** replaced every remaining `§P{1..5}` header-quote ref repo-wide with the stable principle anchors `INVARIANTS.md#p{1..5}-{principle}`; Slice A touched `docs/design-tests-as-data-completeness.md`, `docs/r3-structure.md`, `docs/escalation-paths.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r2-release-manager.md`, `ROADMAP.md`, `docs/design-emission-model.md`, `docs/design-lens-framework.md`, `docs/briefs/complexity-v2-v3-comparison-receipt.md`, `docs/briefs/file-preference-bridge-dissolution.md`, `docs/r2-structure.md`, `.github/PULL_REQUEST_TEMPLATE.md`, `docs/history/lens-wire-in-audit-v2-comparison.md`, `src/v3/std/substrate.dag`, and `src/v3/grounding_lifetime/src/facts.rs`. **Slice B (#1801)** retired 34 additional refs across 16 files (11 `docs/briefs/**` files w/ numeric line-cites `:23/:33/:94/:236`; 5 other `docs/**` files w/ named-section §-refs and a stale `:96` cite — `thesis-validation-plan.md`, `substrate-reflection-design.md`, `emit-target-spec-gaps.md`, `design-substrate-external-primitives.md`, `thesis/doc-authority.md`). **Slice B dispatch was anchor-mapped (numeric line-cites + named-section §-refs only)**, so process-reference `§P1` cites and "line 86" mentions in patched files (notably `r2-pb-canonical-lens-bridge-disposition.md`, `r3-pb-binshim-retirement-worker.md`, `r3-pb-t-fixedpoint-worker.md`, `r3-pb-runtime-equivalence-corpus-seed-audit.md`) survive Slice B and route to Slice C. **Residual after A+B (Slice C scope, future):** §"No bridges" in `substrate-reflection-design.md:1663` (not in dispatch mapping); §-refs in `docs/thesis/compositional-layering.md`, `docs/thesis/two-groundings-static-validation-vs-efficient-realization.md`, `docs/inference-as-data-experiments.md`, `docs/parallelism-design.md`, `docs/v3-validation-experiments.md`, `docs/lens-library-design.md`, `docs/dependency-and-rendering-design.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r3-pb-binshim-row-1-decision-packet.md`, `docs/briefs/r3-v-l5-corpus-readiness-audit.md`; plus the forward-looking proposed-entry §-refs in `substrate-reflection-design.md` (§"Bounded substrate seed", §"Lenses are substrate declarations", §"Every dependency is a substrate fact", §"Minimal information per interface") that describe entries to land, not stale citations. - **`Strict Forward Progress` subdoc ↔ heading drift**: pre-existing inconsistency between `docs/invariants/strict-forward-progress.md` (bounded-execution content) and the reviewer-usage meaning of the SFP rule name (dissolution-progress). Flagged explicitly in both P4 and P5 of INVARIANTS.md post-#620 as future cleanup. Dissolution: either rename the subdoc to reflect its bounded-execution content (and author a new dissolution-progress subdoc), or split the subdoc into two. Small scope once the design call is made on naming. Owner: unassigned. - **v3 lens capability honesty pass (supersedes the complexity-receipt lane as originally scoped)**: the 2026-04-21 audit (see [docs/v3-lens-capability-register.md](docs/v3-lens-capability-register.md)) found that `src/v3/lenses/complexity.dag` does not subsume v2's `complexity.dag` — v2 produces symbolic `CostExpr` / `SizeExpr` with work/span/certainty/asymptotic-class, v3 produces a single integer depth per port. The same pattern holds for `cost.dag` (PROXY — no named size variables, Dimension wiring deferred), `idempotency.dag` (STUB — Rust oracle), and `parallelism.dag` (STUB — fail-closed placeholder). The originally-claimed "~13× LOC reduction with structurally stronger fail-closed guarantees" was comparing different functions of the program; retracted. **Follow-up work:** (1) the cementing-test discipline generalizes from one lens to every `regen.dag` entry (semantic-equality goldens per lens); (2) `docs/briefs/complexity-v2-v3-comparison-receipt.md` to be rewritten against the register — scope widens from "complexity receipt + registry rename" to "Band C honesty pass" once the register is merged. Substrate dissolution path: port `DescentEvidence` / `CallPattern` / `SubValueRelation` into the v3 substrate, wire per-call producers, and keep the E-M receipt that `MethodSemantics` is structurally subsumed rather than ported. Emit dissolution path: `match` lowering over user-defined sums (currently blocks `.dag` authority for idempotency + parallelism). Both are programs of work, not single lanes. Owner: unassigned; brief rewrite queues for after the 2026-04-21 wave's 5 lanes land and this register is in tree. - **Substrate carrier port program (scopes the "substrate dissolution path" half of the honesty pass above)**: design doc at [docs/design-substrate-carrier-port-program.md](docs/design-substrate-carrier-port-program.md) (2026-04-22). Decomposes the `DescentEvidence` / `CallPattern` / `SubValueRelation` / per-call producer work, with the `MethodSemantics` lane now **closed via M-b structural subsumption**. T/C/I port the carrier *types*; **E-P** has landed the first side-table producer slice (`v3_compiler::dag::per_call_descent_evidence`) for recursive self-call / arithmetic-descent evidence while leaving `TransformNode` unwidened. Full carrier parity still requires cost/complexity consumer wiring and same-source v2/v3 cementing. **E-M receipt:** v3 has no `ExprMethodCall` side slot; v2 `PlainMethodSemantics`, `AlgebraMethodSemantics`, and `ServiceMethodSemantics` map to `TransformTarget::{Callable, FieldProject, Operator}` plus typed declaration/effect metadata, so no ported `MethodSemantics` carrier or Rust mirror is added. Related: per-method metadata surface from `*_templates()` in `dsl/std/algebra.dag` (surfaced by Lane G / PR #654) — **§6a design call is closed** at [`docs/design-substrate-carrier-port-program.md` §6a](docs/design-substrate-carrier-port-program.md) (**Option 3** unified `MethodContract`; live receipt: `src/v3/std/algebra.dag`, `src/v3/lenses/cost.dag`). R2 program ledger: [`docs/r2-structure.md`](docs/r2-structure.md) Goal 5 (pick closed; follow-through per `docs/briefs/r2-release-6a-follow-through-worker.md`). Not part of the core four-carrier port. Closes **method carrier-parity** framing for `cost.dag` + `complexity.dag` at the structural **pick**; full `BEHAVIORALLY COMPLETE` for `cost.dag` additionally requires E-P consumer wiring and the register's separate non-carrier blockers (`Dimension` grammar/data-body wiring, named `SizeVariable` value semantics) that are outside this program, and opens P4 Decidability progress. Does NOT touch the emit-gap half (idempotency / parallelism); that stays in the receipt-closure wave. Owner: unassigned; remaining carrier-program work is E-P consumer/cementing plus the separately tracked non-carrier blockers. From 6ed6a37d168942bcd07f8f0eae5dcae25e3e5e4e Mon Sep 17 00:00:00 2001 From: Brian Searls Date: Wed, 6 May 2026 05:45:43 +0000 Subject: [PATCH 9/9] docs(roadmap): correct :425 Slice B receipt count + :23 cite home Per openai-pro review on PR #1801 (sha 33f2597d): receipt said '34 refs across 16 files' but actual count is 43 substitutions; ':23' line-cite lives in docs/thesis/doc-authority.md, not the docs/briefs/** subset. Corrected count and reassigned ':23' to its real home so Slice C accounting starts from a trustworthy baseline. --- ROADMAP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 93c09389097..b748c38fde2 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -422,7 +422,7 @@ Tracked debt not dispatched with the 2026-04-21 lane wave (Lane 1e P3.0, SG-2c-4 - **`container_template_algebra_rows` string table is duplicate authority**: `dsl/std/types.dag:133-146` declares the renamed map (PR #651 collapsed both consumers onto a single `container_template_algebra` query); rows still duplicate the authoritative type aliases at `:211-213` (`type List = FreeMonoid`, etc.) across Pascal/snake spellings plus algebra self-identities. Dissolution trigger: when `.dag` gains alias reflection, the rows derive from the aliases directly and the hand-maintained table goes away. P2 Boundary Discipline / P1 receipt. Owner: unassigned; small scope. - **Emitter render-helper consolidation (Phase 3.1 candidate after 1e P3.0)**: `named_variant_id` / `render_named_template` / `primitive_type_id_for_port` / `walk_to_disj` / `algebra_field_for_operator` exist 3-5× across `src/v3/compiler/src/emit.rs` + `emit/python_target.rs` + `emit/rust_target.rs` (plus `walk_to_disj_decl` also in `lower.rs` and `infer.rs`). Collapse into one emitter-shared module. Different scope from 1e P3.0 which targets `behavior_result_port` / `port_is_consumed_from`; this is the render-side tranche. P2 Boundary Discipline receipt. Owner: queued behind 1e P3.0 as the natural follow-up. -- **Stale §-style and line-number cross-references to pre-rewrite `INVARIANTS.md` — PARTIAL (T-Receipts W1 + Slice A #1795 + Slice B #1801).** The ledger-named refs in `docs/design-db16-refined-generic-substitution.md`, `docs/perf/clone-elimination.md`, `docs/lane2-compile-time-proofs.md`, `src/v3/M1_DESIGN.md`, `src/v3/SELF_HOSTING.md`, `docs/history/sg-4b-1-fix-declaration-lookup-cleanup.md`, and `docs/briefs/p0-bug-no-profile-sentinel.md` were retired by W1. **Slice A (#1795)** replaced every remaining `§P{1..5}` header-quote ref repo-wide with the stable principle anchors `INVARIANTS.md#p{1..5}-{principle}`; Slice A touched `docs/design-tests-as-data-completeness.md`, `docs/r3-structure.md`, `docs/escalation-paths.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r2-release-manager.md`, `ROADMAP.md`, `docs/design-emission-model.md`, `docs/design-lens-framework.md`, `docs/briefs/complexity-v2-v3-comparison-receipt.md`, `docs/briefs/file-preference-bridge-dissolution.md`, `docs/r2-structure.md`, `.github/PULL_REQUEST_TEMPLATE.md`, `docs/history/lens-wire-in-audit-v2-comparison.md`, `src/v3/std/substrate.dag`, and `src/v3/grounding_lifetime/src/facts.rs`. **Slice B (#1801)** retired 34 additional refs across 16 files (11 `docs/briefs/**` files w/ numeric line-cites `:23/:33/:94/:236`; 5 other `docs/**` files w/ named-section §-refs and a stale `:96` cite — `thesis-validation-plan.md`, `substrate-reflection-design.md`, `emit-target-spec-gaps.md`, `design-substrate-external-primitives.md`, `thesis/doc-authority.md`). **Slice B dispatch was anchor-mapped (numeric line-cites + named-section §-refs only)**, so process-reference `§P1` cites and "line 86" mentions in patched files (notably `r2-pb-canonical-lens-bridge-disposition.md`, `r3-pb-binshim-retirement-worker.md`, `r3-pb-t-fixedpoint-worker.md`, `r3-pb-runtime-equivalence-corpus-seed-audit.md`) survive Slice B and route to Slice C. **Residual after A+B (Slice C scope, future):** §"No bridges" in `substrate-reflection-design.md:1663` (not in dispatch mapping); §-refs in `docs/thesis/compositional-layering.md`, `docs/thesis/two-groundings-static-validation-vs-efficient-realization.md`, `docs/inference-as-data-experiments.md`, `docs/parallelism-design.md`, `docs/v3-validation-experiments.md`, `docs/lens-library-design.md`, `docs/dependency-and-rendering-design.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r3-pb-binshim-row-1-decision-packet.md`, `docs/briefs/r3-v-l5-corpus-readiness-audit.md`; plus the forward-looking proposed-entry §-refs in `substrate-reflection-design.md` (§"Bounded substrate seed", §"Lenses are substrate declarations", §"Every dependency is a substrate fact", §"Minimal information per interface") that describe entries to land, not stale citations. +- **Stale §-style and line-number cross-references to pre-rewrite `INVARIANTS.md` — PARTIAL (T-Receipts W1 + Slice A #1795 + Slice B #1801).** The ledger-named refs in `docs/design-db16-refined-generic-substitution.md`, `docs/perf/clone-elimination.md`, `docs/lane2-compile-time-proofs.md`, `src/v3/M1_DESIGN.md`, `src/v3/SELF_HOSTING.md`, `docs/history/sg-4b-1-fix-declaration-lookup-cleanup.md`, and `docs/briefs/p0-bug-no-profile-sentinel.md` were retired by W1. **Slice A (#1795)** replaced every remaining `§P{1..5}` header-quote ref repo-wide with the stable principle anchors `INVARIANTS.md#p{1..5}-{principle}`; Slice A touched `docs/design-tests-as-data-completeness.md`, `docs/r3-structure.md`, `docs/escalation-paths.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r2-release-manager.md`, `ROADMAP.md`, `docs/design-emission-model.md`, `docs/design-lens-framework.md`, `docs/briefs/complexity-v2-v3-comparison-receipt.md`, `docs/briefs/file-preference-bridge-dissolution.md`, `docs/r2-structure.md`, `.github/PULL_REQUEST_TEMPLATE.md`, `docs/history/lens-wire-in-audit-v2-comparison.md`, `src/v3/std/substrate.dag`, and `src/v3/grounding_lifetime/src/facts.rs`. **Slice B (#1801)** retired 43 additional refs across 16 files (11 `docs/briefs/**` files w/ numeric line-cites `:33/:94/:236`; 5 other `docs/**` files w/ named-section §-refs and the stale `:23/:96` line-cites in `thesis/doc-authority.md` — plus `thesis-validation-plan.md`, `substrate-reflection-design.md`, `emit-target-spec-gaps.md`, `design-substrate-external-primitives.md`). **Slice B dispatch was anchor-mapped (numeric line-cites + named-section §-refs only)**, so process-reference `§P1` cites and "line 86" mentions in patched files (notably `r2-pb-canonical-lens-bridge-disposition.md`, `r3-pb-binshim-retirement-worker.md`, `r3-pb-t-fixedpoint-worker.md`, `r3-pb-runtime-equivalence-corpus-seed-audit.md`) survive Slice B and route to Slice C. **Residual after A+B (Slice C scope, future):** §"No bridges" in `substrate-reflection-design.md:1663` (not in dispatch mapping); §-refs in `docs/thesis/compositional-layering.md`, `docs/thesis/two-groundings-static-validation-vs-efficient-realization.md`, `docs/inference-as-data-experiments.md`, `docs/parallelism-design.md`, `docs/v3-validation-experiments.md`, `docs/lens-library-design.md`, `docs/dependency-and-rendering-design.md`, `docs/briefs/r2-manager-brief-authority-matrix.md`, `docs/briefs/r3-pb-binshim-row-1-decision-packet.md`, `docs/briefs/r3-v-l5-corpus-readiness-audit.md`; plus the forward-looking proposed-entry §-refs in `substrate-reflection-design.md` (§"Bounded substrate seed", §"Lenses are substrate declarations", §"Every dependency is a substrate fact", §"Minimal information per interface") that describe entries to land, not stale citations. - **`Strict Forward Progress` subdoc ↔ heading drift**: pre-existing inconsistency between `docs/invariants/strict-forward-progress.md` (bounded-execution content) and the reviewer-usage meaning of the SFP rule name (dissolution-progress). Flagged explicitly in both P4 and P5 of INVARIANTS.md post-#620 as future cleanup. Dissolution: either rename the subdoc to reflect its bounded-execution content (and author a new dissolution-progress subdoc), or split the subdoc into two. Small scope once the design call is made on naming. Owner: unassigned. - **v3 lens capability honesty pass (supersedes the complexity-receipt lane as originally scoped)**: the 2026-04-21 audit (see [docs/v3-lens-capability-register.md](docs/v3-lens-capability-register.md)) found that `src/v3/lenses/complexity.dag` does not subsume v2's `complexity.dag` — v2 produces symbolic `CostExpr` / `SizeExpr` with work/span/certainty/asymptotic-class, v3 produces a single integer depth per port. The same pattern holds for `cost.dag` (PROXY — no named size variables, Dimension wiring deferred), `idempotency.dag` (STUB — Rust oracle), and `parallelism.dag` (STUB — fail-closed placeholder). The originally-claimed "~13× LOC reduction with structurally stronger fail-closed guarantees" was comparing different functions of the program; retracted. **Follow-up work:** (1) the cementing-test discipline generalizes from one lens to every `regen.dag` entry (semantic-equality goldens per lens); (2) `docs/briefs/complexity-v2-v3-comparison-receipt.md` to be rewritten against the register — scope widens from "complexity receipt + registry rename" to "Band C honesty pass" once the register is merged. Substrate dissolution path: port `DescentEvidence` / `CallPattern` / `SubValueRelation` into the v3 substrate, wire per-call producers, and keep the E-M receipt that `MethodSemantics` is structurally subsumed rather than ported. Emit dissolution path: `match` lowering over user-defined sums (currently blocks `.dag` authority for idempotency + parallelism). Both are programs of work, not single lanes. Owner: unassigned; brief rewrite queues for after the 2026-04-21 wave's 5 lanes land and this register is in tree. - **Substrate carrier port program (scopes the "substrate dissolution path" half of the honesty pass above)**: design doc at [docs/design-substrate-carrier-port-program.md](docs/design-substrate-carrier-port-program.md) (2026-04-22). Decomposes the `DescentEvidence` / `CallPattern` / `SubValueRelation` / per-call producer work, with the `MethodSemantics` lane now **closed via M-b structural subsumption**. T/C/I port the carrier *types*; **E-P** has landed the first side-table producer slice (`v3_compiler::dag::per_call_descent_evidence`) for recursive self-call / arithmetic-descent evidence while leaving `TransformNode` unwidened. Full carrier parity still requires cost/complexity consumer wiring and same-source v2/v3 cementing. **E-M receipt:** v3 has no `ExprMethodCall` side slot; v2 `PlainMethodSemantics`, `AlgebraMethodSemantics`, and `ServiceMethodSemantics` map to `TransformTarget::{Callable, FieldProject, Operator}` plus typed declaration/effect metadata, so no ported `MethodSemantics` carrier or Rust mirror is added. Related: per-method metadata surface from `*_templates()` in `dsl/std/algebra.dag` (surfaced by Lane G / PR #654) — **§6a design call is closed** at [`docs/design-substrate-carrier-port-program.md` §6a](docs/design-substrate-carrier-port-program.md) (**Option 3** unified `MethodContract`; live receipt: `src/v3/std/algebra.dag`, `src/v3/lenses/cost.dag`). R2 program ledger: [`docs/r2-structure.md`](docs/r2-structure.md) Goal 5 (pick closed; follow-through per `docs/briefs/r2-release-6a-follow-through-worker.md`). Not part of the core four-carrier port. Closes **method carrier-parity** framing for `cost.dag` + `complexity.dag` at the structural **pick**; full `BEHAVIORALLY COMPLETE` for `cost.dag` additionally requires E-P consumer wiring and the register's separate non-carrier blockers (`Dimension` grammar/data-body wiring, named `SizeVariable` value semantics) that are outside this program, and opens P4 Decidability progress. Does NOT touch the emit-gap half (idempotency / parallelism); that stays in the receipt-closure wave. Owner: unassigned; remaining carrier-program work is E-P consumer/cementing plus the separately tracked non-carrier blockers.