Skip to content
Merged
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 74 additions & 14 deletions docs/audit/dissolution-inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ the audit anchors.
| # | substrate PR (`feature:` arrival) | owner / owning task | 🟡-count | unblocks |
|---|---|---|---|---|
| **P1** | `std/cardinality.dag` bounded-natural / refinement substrate | **substrate:** std / T-3 Wave-A2 — **`compile_to_dag` / extdeps import surface (flat v3 bootstrap, cardinality name resolution):** compiler / **T-32** (minimum never-hand-edited seed program; `src/v4/TASKS.md`) **+** receipt path per **T-30** interim mirror (`compile_to_dag` smoke harness / bootstrap collision notes in same §T-30) | **~20 live (+2 closed receipts)** | DECISIONS.md: `SL-3229-LLVM-OPS`, `SL-3229-PTX-DIM3`, `SL-3229-FLOAT-NOMINAL` once re-gated under this canonical owner (`SL-3229-LLVM-WIDTH`, `SL-3229-PTX-COST`, `SL-3229-VERILOG-COST` are **🟢 closed** on live carriers — see DECISIONS.md Part 6). **`Dim3`:** live `ptx.dag` uses `PositiveUpperBoundedNat`, closing negative-axis, zero-axis, and missing-bound states; **PTX-version / launch-role / axis-specific maxima remain live** until a PTX-specific max authority is modeled and consumed. In-file: the ~16 VAGUE prose blocks in `json.dag` / `yaml.dag` / `toml.dag` that concretize to this arrival (refinement-side family). **Receipt (PR #3310 / 2026-05-18 + follow-up):** `LlvmType` width payloads, `PtxCost` / `VerilogCost` non-negative axes. Remaining P1-family debt is **operand-relation refinement**, **SIMT dim PTX-specific maxima**, **float nominal/interchange re-gating**, and **import lowering / bootstrap extension** so cardinality refinements used in extdeps `.dag` files participate in `compile_to_dag`, not raw width/cost payload scaffolding alone. |
| **P2** | `std/collection.dag` Wave-A2: `List<T> where non_empty` refinement **plus** the List combinator algebra (`forall` / `count_where` / `unique` over `FreeMonoid<T>`) | std / T-3 Wave-A2 (coercion-design.md RQ-3) | **5 named + 29 sites** | Section 2: `std/node.dag` × 4 traverses (`all_edges_named`, `all_edges_positional`, `name_occurrences`, `all_names_distinct`). DECISIONS.md: `SL-3229-VERILOG-NONEMPTY` (one row, 29 verilog.dag back-pointer sites after P8). |
| **P2** | `std/collection.dag` Wave-A2: `List<T> where non_empty` refinement **plus** the List combinator algebra (`forall` / `count_where` / `unique` over `FreeMonoid<T>`) | std / T-3 Wave-A2 (coercion-design.md RQ-3) | **5 named + 29 sites** | Section 2: `std/node.dag` × 4 traverses (`all_edges_named`, `all_edges_positional`, `name_occurrences`, `all_names_distinct`). DECISIONS.md: `SL-3229-VERILOG-NONEMPTY` (one row, 29 verilog.dag back-pointer sites after P8). **Workflow (#3213):** every Practice-10 **`LB-P10-3213`** hand-rolled list op on `workflow/*.dag` rolls here — full symbol ↔ DECISIONS Part 7 sub-row roll-call in the **workflow merge-gate paragraph** immediately after this table (§1.1); not outside the ranked plan. |
| **P3** | Compiler pipeline-stage substrate (lex-walk + parse-walk) | compiler / T-6, T-7 | **2 + ~7 in-file** | Section 2: `compiler/01_tokenize.dag tokenize`, `compiler/02_parse.dag parse`. In-file: the parser-side VAGUE prose blocks in `json.dag` / `yaml.dag` / `toml.dag` that concretize to T-6/T-7 (the operations-side family separate from P1). |
| **P4** | T-4 fact-bundle Phase-3 rework (post-D2-reversal model) | extdeps/languages / T-4 manager `vivid-carp-207` (5-feeder gate; keystone #3226 merged @`77b9e7d72`; 4 feeders open: T-3, T-29, T-30, T-25-core) | **1 + 1 row + 1 fn** | **PR #3338** retired the obsolete `typescript.dag` ×4 INVALID-GATE snapshot (D2a GroundingMap / alias rows): file is now `DECISIONS.md TS-D2` — two primitive sums 🟢 + `data ts_bool_grounding` in the **six-language canonical-B bundle** (`rust` / `cpp` / `go` / `lean` / `python` / `typescript` `data *_bool_grounding: BooleanAlgebra<Bool> = bool_boolean_algebra`) — 🟡 **E-6(b)** `feature:canonical-b-grounding-consumer` staging (B1 fold consumption — `DECISIONS.md` B1 · `docs/modeling/grounding-worked-examples.md` §0), **not** the former INVALID-GATE class. **Python scalar:** flat `PythonScalar` post-**#3309** / **#3344** (`BoolScalar`; DECISIONS `SL-3309-PYTHON-SCALAR-RESEED`). Remaining P4-shaped backlog: file-`Status` 🟡 on TS non-bool numerics (feeder gate unchanged). DECISIONS.md: `SL-3229-VERILOG-D3200` (if re-gated as `feature: T-4 fact-bundle Phase-3 rework` rather than `consumer:` form — see Section 3). Section 2: `extdeps/languages/dag.dag dag_language_model_wave1_void_canonical_symbols` (CP-1b #3225). |
| **P5** | `std/node.dag` `fold_node` — Node catamorphism (substrate-extension under T-1) | std / T-1 | **1 + 3 (03_resolve cascade only)** | **Substrate LANDED PR #3297:** `NodeFold<R>` + `fold_node` in `src/v4/std/node.dag`; `node_well_formed` consumes the shared `NodeFold<Bool>` algebra (burn-down closeout + #3297). **Cascade (open):** `compiler/03_resolve.dag merge_binding_self` (94, codex #3225) plus `add_module_named_exports` (99), `add_arrow_domain_named_params` (113), `add_bind_atom_binder` (140). These dissolve to `fold_node(root, ⟨binding-harvest algebra⟩)` only when a scoped harvest algebra lands without changing resolver scope semantics. |
Expand All @@ -163,6 +163,46 @@ rolls into **P4** as a separate fact within that rework). The third —
cascaded off the `terminator_is_catchswitch` dissolve-now and closed in
PR #3245 without waiting on substrate.

**Workflow (`src/v4/workflow/*.dag`) — PR #3213 merge-gate rollup (ties §2.5
to §1.1).** The filled **`bootstrap.dag`** / **`ci.dag`** cores on `main`
(§2.5 file/`fn` counts) are **in** the merge-gate surface **and** in the
ranked plan: each in-file `// 🟡 … DECISIONS.md LB-*-3213` tag names a
checkable dissolution row, **plus** the dual-counted **`ci_all_commands_authority_ok`**
fold (see **ALL** roll-call — no separate `//` tag on the wrapper) — none
are “burn-down only” orphans.

- **`LB-P4-3213`** — `CiCommand` coproduct port (`ci.dag` ~L22) → **P4**
(T-4 / Practice-4 coproduct classification; same owner as §2.5 call-out).
- **`LB-P10-3213`** — Practice-10 list-op ledger (**`DECISIONS.md` Part 7**
sub-rows). The **named std arrival** is **P2** (`std/collection.dag`
Wave-A2 list combinators / `forall` family — `member`, `any`, `all`,
`count_if`, `set_eq`, `filter`, honest `find`). **Roll-call (symbol →
sub-row):** **MEMBER** — `bs_member`, `ci_member`; **ANY** —
`ci_symbol_resolves`, `ci_blocked`; **ALL** — universal **`fold` over
`List<CiJob>`** / **`List<CiGate>`** (`all`-shaped): `ci_all_job_ids_unique`,
`ci_all_gate_ids_unique`, `ci_all_needs_resolve`,
`ci_all_gate_jobs_resolve` (**DECISIONS** **LB-P10-3213-ALL** table) **and**
`ci_all_commands_authority_ok` (same list-op **shape** — rolls under **P2**

This comment was marked as resolved.

with the four above; inner predicate **`ci_command_authority_ok`** carries
the **LB-T22-3213** in-file tag, so the wrapper is **dual**: **P2** list-op
dissolution **+** **T-22** negative-coverage obligation); **COUNTIF** — `ci_id_occurrences`,
`ci_gate_id_occurrences`; **SETEQ** — `bs_list_eq`; **FILTER** —
`ci_eliminate_pass`; **FIND** — `ci_job_needs`. **KAHN** —
`ci_kahn_fixpoint`, `ci_acyclic` — **🟢 terminal** per DECISIONS (domain
graph algorithm, not a dissolvable collection primitive; still
well-formedness **content**, not backlog “triage deferred”).
- **`LB-T22-3213`** — **`ci_command_authority_ok`** (in-file T-22 tag) and
**`ci_all_commands_authority_ok`** (jobs sweep — **no** wrapper tag; **dual**
**P2** / **ALL** roll-call above **+** **T-22** on the inner predicate) →
**T-22** executable negative-coverage plan-bound (**DECISIONS** Part 7
`LB-T22-3213`; §2.5).

Structural helpers with **no** `LB-*-3213` tag (`bs_diagnostic`,
`bootstrap_stage_output`, `bootstrap_plan_well_formed`, `ci_diagnostic`,
`ci_pipeline_well_formed`) are lane-local well-formedness / diagnostics —
🟢 for the five Practice-10 dissolution **classes** (they are not
untracked list-op debt).

### 1.2 🟡 → 🟢 burn-down

Total 🟡 in the v4 substrate today (Section 2 + Section 3 VALID-🟡 +
Expand Down Expand Up @@ -209,6 +249,11 @@ Caveats:
"🟡 → 🟢 sweep for P10" only fires after concretization. The
`⛔ needs-concretization` flag on P10 in § 1.1 is structurally
blocking that row's DAG entry.
3. **`ci_all_commands_authority_ok`** is **dual-listed** in the §1.1
workflow rollup under **P2** (same **`all`/`fold`-over-`jobs`** combinator
class as **LB-P10-3213-ALL**) **and** **T-22** (inner **`ci_command_authority_ok`**
tag). That is **one** workflow surface with **two** ranked obligations, not
an extra 🟡 in the illustrative **~36** baseline column (no double-count).

**P1 is the headline.** Landing the remaining `std/cardinality.dag`
refinement substrate dissolves more than half of the v4 substrate's
Expand Down Expand Up @@ -452,22 +497,37 @@ cited baseline and **must** appear in this audit's merge-gate surface.

**`workflow/bootstrap.dag`** — **5** `fn` (`bs_diagnostic`, `bs_member`,
`bs_list_eq`, `bootstrap_stage_output`, `bootstrap_plan_well_formed`) +
`type`/`data` for the bootstrap plan. **`bs_member` (57)** — 🟡 **List-op
dissolution** (Practice 10) — `DECISIONS.md` **LB-P10-3213** (`fold` over
`List<Symbol>` membership). Other fns: structural self-hosting /
well-formedness over `BootstrapPlan` / `Outcome` — **not** individually
expanded here (same C1 stance as `03_resolve.dag`: burn-down lane owns
line-by-line re-sweep).
`type`/`data` for the bootstrap plan. **`bs_member` (57)** — 🟡 **List-op**
(MEMBER row) — `DECISIONS.md` **LB-P10-3213**. **`bs_list_eq` (63)** — 🟡
**List-op** (SETEQ row) — **LB-P10-3213**. **`bootstrap_stage_output`** /
**`bootstrap_plan_well_formed`** / **`bs_diagnostic`** — structural
bootstrap authority + diagnostics (no separate list-op row beyond the
MEMBER/SETEQ folds they compose); **§1.1 workflow rollup** + **§1.1 P2**
for dissolution queue ownership.

**`workflow/ci.dag`** — **17** `fn` + `CiCommand` / `CiJob` / `CiGate` /
`CiPipeline` carriers + `data ci_pipeline`. **`CiCommand` (line ~22)** —
🟡 **coproduct dissolution** — `DECISIONS.md` **LB-P4-3213**.
**`ci_id_occurrences` (80)** — 🟡 **List-op** — **LB-P10-3213**.
**`ci_command_authority_ok` (163)** — 🟡 **negative-coverage plan-bound
(T-22)** — `DECISIONS.md` **LB-T22-3213**. Remaining helpers: CI job/gate
graph well-formedness (`fold` ladders over jobs/gates/needs, Kahn-style
acyclicity) — triage deferred to burn-down lane unless a reviewer flags a
specific symbol as a new registry row.
🟡 **coproduct dissolution** — `DECISIONS.md` **LB-P4-3213** → **§1.1 P4**.
**`ci_id_occurrences` (80)** — 🟡 **List-op** (COUNTIF row) —
**LB-P10-3213** → **P2**. **`ci_command_authority_ok` (163)** — 🟡
**negative-coverage plan-bound (T-22)** — `DECISIONS.md` **LB-T22-3213**
(in-file tag). **`ci_all_commands_authority_ok` (173)** — **dual** 🟡:
**P2** / **LB-P10-3213** as an **`all`-shaped** `jobs` fold (same combinator
class as **LB-P10-3213-ALL**) **and** **T-22** via the inner
**`ci_command_authority_ok`** check (see **§1.1** workflow rollup **ALL**
bullet).
**Remaining `fn`s:** every other **🟡 list-op-shaped** helper is **already
named** in **`DECISIONS.md` Part 7** (`LB-P10-3213-*` sub-rows) and rolled
under **§1.1 P2** in the **§1.1 workflow (PR #3213) merge-gate rollup**
paragraph — **MEMBER** /
**ANY** / **ALL** / **COUNTIF** / **FILTER** / **FIND** as listed there
(`ci_member`, `ci_symbol_resolves`, `ci_blocked`, the **five** `ci_all_*`
predicates over jobs/gates including **`ci_all_commands_authority_ok`**,
`ci_gate_id_occurrences`, `ci_eliminate_pass`, `ci_job_needs`).
**Kahn** (`ci_kahn_fixpoint`, `ci_acyclic`) is **🟢 terminal** per DECISIONS
(not a backlog deferral). **`ci_diagnostic`** / **`ci_pipeline_well_formed`**
— orchestration + rejection plumbing (🟢 dissolution-class stance; T-22
tags the authority/negative-coverage slice only).

Carrier and emit-template covered by lane-wide 🟢 (2.1).

Expand Down
Loading