Repository navigation
test(v3): ValueBody substrate vs Rust mirror audit (E8 / #1531) - #1541
Conversation
Parse `type ValueBody` constructors from `src/v3/std/substrate.dag` and ratchet against exhaustive Rust `ValueBody` tags; documents the known 3-vs-5 scaffold gap (Evaluator retirement / R3 debt paydown #1531). Co-authored-by: Cursor <cursoragent@cursor.com>
|
Review metadata
Verdict: APPROVE — this is a narrow test-only audit, and I don’t see a concrete violation of the pinned invariants, coding discipline, or testing discipline in the diff. The known substrate/Rust I did not run builds or tests, per instruction. |
Removes the standalone integration module so the dissolution gate matches reality: no new hand-authored test file path / census surface (#1541 manager follow-up). Same ratchet, co-located with existing ValueBody sum_variants coverage. Co-authored-by: Cursor <cursoragent@cursor.com>
|
codex review @ Verification on current head ( Post-review fix (manager dissolution gate): Audit logic was folded into existing — sent from nimble-ferret-288 |
|
Review metadata
FindingsNone. The diff only extends Nothing here violates P2 (no new parallel production authority—only test-side comparison), P3 (no user-facing fail-open paths), CODING.md (changes are under VerdictAPPROVE — Small, intentional regression/ratchet for E8 / #1531; explicit gap documentation; no invariant or testing-discipline violations spotted in the diff. |
|
composer-2 api-review @ Verification on Conclusion: No further code change from this review thread; the — sent from nimble-ferret-288 |
briansrls
left a comment
There was a problem hiding this comment.
Review metadata
- Provider / model:
codex/unknown - Commit:
ab573852· Trigger:schedule - Thinking:
154s wall
✅ The added ValueBody mirror audit is scoped to implementation-level tests, documents the known substrate/Rust gap with a bounded dissolution trigger, and I found no blocking concerns.
|
codex api-review @ Verification on No code change from this thread. — sent from nimble-ferret-288 |
|
Review metadata
1. Story of the diffThis PR adds a focused mirror-audit ratchet inside 2. Invariant categories
3. VerdictAPPROVE. The PR does not introduce new substrate shape; it adds a bounded, fail-closed test ratchet around an already-known ValueBody substrate/Rust mirror gap. I did not find a diff-local invariant violation requiring changes. |
|
gpt-5-5-pro api-review @ Verification on No further code change from this review thread. — sent from nimble-ferret-288 |
Summary
Adds three
ValueBodymirror audit tests to existingm2_substrate_inhabitance_test.rs(alongside the existingsum_variants(…, "ValueBody")ratchet): parses thetype ValueBodysum insrc/v3/std/substrate.dagfrom disk (include_str!), compares to an expected constructor list, and uses an exhaustivematchoverdag::ValueBodysample instances so new Rust variants fail compile until the audit is updated. A third test documents the known 3 (substrate) vs 5 (Rust runtime) gap and names the missing generation surface (extend reflectedsubstrate.dag+ regen whenScalar/List/Mapcarriers are generated from the Rust mirror — seedag.rsValueBodydocs).No
ValueBodyshape edits, no parser/lowering changes, nosubstrate.dagedits in this PR.Debt receipt (#1532)
.dagmirror / isomorphism ratchet (R3 Debt-Paydown / #1531). Cites manager ledger routing:docs/debt/r3-debt-paydown-ledger-2026-05-02.mdwhen present onmain; otherwise same row intent via #1531 and blocker routing zesty-dove-500 #1526. Complements existingm2_substrate_inhabitance_testsum_variants(…, "ValueBody")check by tying on-disk substrate text to Rust variant set.Concrete citations: ROADMAP.md § tracked debts / Class 5
ValueBodyboundary evolution;dag.rsValueBodyenum rationale (List/Map/Scalar vs reflected sum).Per-PR dissolution gate
no census shift / existing path— audit tests live only in the existing hand-authored integration filem2_substrate_inhabitance_test.rs(same file that already hostssubstrate_coproducts_match_runtime_carriers/sum_variants(…, "ValueBody")). No newtests/integration/*.rsfile and no newintegration.rsmodline; the earlier standalonevalue_body_mirror_audit_test.rspath was removed after manager review (ab573852e).Links