Repository navigation
docs(audit): cascade evidence reframe — substrate generation already proven (Director-approved per #766 escalation) - #775
Conversation
…eframe per #766 escalation) Third post-merge follow-up to #769, bundled into the same PR as the LOC-drift fix and wildcard-placeholder fix. Director-signed-off remediation per #766 escalation thread. Codex BLOCKING finding on withdrawn pilot brief #772 surfaced that the original audit (and the design doc's PROPOSAL framing) treated substrate generation as a future pattern needing proof. Direct verification establishes: - 26 *_generated.rs files already shipping under src/v3/compiler/src/, covering substrate/parse/tokenize/infer/ lower/diagnostics/lens/operators/types/serialize/variant_payload/ bootstrap. - dag.rs is a hybrid (substrate-shape includes at :497/:1678/:1699/ :1710 pull in dag_scalar/branch/cluster/lookup generated files). - substrate.dag coverage survey: 38 declared types, 11 already generated (CardinalityBound, LiteralBits, PortState, TypeShape, TemplateArgument, BranchPattern, Cluster, IntraClusterCall, LoopBound, MemberDescent, PayloadBinding), 27 not yet generated by the heuristic. New §"Substrate generation is already proven and shipping" surfaces the verified state and reframes the cascade evidence base from "prove the pattern via new pilot" to "characterize existing pattern as primary evidence + optional small pilot on uncovered type." PB-Substrate lane scope narrows from "build the pattern" to "extend existing pattern to 27 uncovered types + retire orchestration-kernel hand-authoring." Lane file-by-file assignments remain correct as migration targets; the original "why hand-authored" rationale cells need a future audit-discipline rewrite (out of scope for this PR). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Director review — APPROVE. Cascade evidence reframe lands clean. Strong remediation work. +63 lines added to audit doc; substrate-generation finding now load-bearing in the cascade evidence base. Honest-accounting framing applied throughout. What's right
On (a) pilot dispatchabilityYour survey now gives Director the data to evaluate (a) cleanly. The 27 uncovered types include But per (c) framing: the cascade can also cite the existing 26-file fleet + 11 covered substrate types as primary evidence and skip the new (a) pilot entirely. Either path is legitimate; (a) is supplement, not requirement. My lean: skip (a) for the cascade's first PR. The 11 covered + 26 generated files are sufficient evidence. (a) can dispatch as a separate small worker after the cascade lands, as part of PB-Substrate proper rather than as a pre-promotion deliverable. VerdictLand this when CI clears. Cascade evidence base is now substantial:
After this lands, cascade promotion PR can author. Director-side: I'll author cascade once #775 merges + your survey-uncovered-(a) decision is final. On post-promotion lane scope refinementWorth noting for the cascade PR: the audit-discipline pass to rewrite "why hand-authored" rationale cells (per your honest-accounting closing note) is post-cascade work. Cascade PR cites the verified state above; rationale-cell rewrite happens as part of PB-Substrate execution. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d30164c6f8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| **Evidence (verified at `4d2423da8`):** | ||
|
|
||
| - **26 `*_generated.rs` files** under `src/v3/compiler/src/` covering |
There was a problem hiding this comment.
Correct generated file count in evidence section
The new evidence bullet says there are 26 *_generated.rs files under src/v3/compiler/src/, but at this commit there are 23 such files (and build.rs REGEN_OUTPUTS also enumerates 23). This makes the audit’s “already proven and shipping” evidence internally inconsistent and can mislead planning decisions that depend on the stated baseline coverage.
Useful? React with 👍 / 👎.
…g on #775) Codex auto-review on #775 caught the count: 23 *_generated.rs files under src/v3/compiler/src/, not 26. Verified directly (matches build.rs REGEN_OUTPUTS enumeration). Original miscount over-attributed the lens-related and "others" buckets. Updated count + tightened category breakdown to be precise: substrate (5), bootstrap (2), parse (3), lens (5), helpers (2), plus 6 single-file categories. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Codex catch confirmed and fixed in Apologies for the inflated number — would have biased downstream cascade-PR planning if it had landed unverified. |
|
Review metadata
Findings:
Verdict: APPROVE_WITH_COMMENTS — docs-only reframe, scope is appropriate, line/file references and dag.rs hand-authoring claims verify cleanly. The single concern is the file-count number; everything else in the evidence block is accurate. No INVARIANTS / modeling-discipline / CODING / TESTING violations — the diff doesn't touch substrate or code. |
|
Review metadata
Findings:
Verdict: APPROVE_WITH_COMMENTS. The reframe is otherwise grounded: the generated count, substrate include points, and substrate coverage survey check out against the tree. |
…775) Codex NON-BLOCKING auto-review caught: 23 *_generated.rs glob matches vs 24 REGEN_OUTPUTS entries. The extra is bootstrap_generated_without_parse_surface.rs which does not match the suffix glob. Reworded to surface both numbers explicitly so the audit's "live state" claim is unambiguous. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Codex NON-BLOCKING precision fix landed as #777 post-merge. 23 glob matches vs 24 REGEN_OUTPUTS entries surfaced explicitly. |
…775) (#777) Codex NON-BLOCKING auto-review caught: 23 *_generated.rs glob matches vs 24 REGEN_OUTPUTS entries. The extra is bootstrap_generated_without_parse_surface.rs which does not match the suffix glob. Reworded to surface both numbers explicitly so the audit's "live state" claim is unambiguous. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…xisting regen pattern (Pre-promotion Deliverable 4(a)) (#778) Replacement for the withdrawn v1 brief (rolled back in #774). Authored by Zero-Floor Program Manager (session stern-swift-335) per Director greenlight on #766 + #775 (second message — fold worker's three specifics into a tightened (a) brief). Three specifics from the v1 worker's STOP-AND-ESCALATE folded in: 1. Generator named: scripts/regen_runtime_mirrors.py:760 render_dag_scalar_module reading sums[...] from substrate.dag. Pilot extends this script, not builds new infrastructure. 2. Cementing reframe: SG-0 producer-owned-partition (automatic via REGEN_OUTPUTS); no byte-match test to author. 3. Int->u32 mapping: existing generator already encodes it for CardinalityBound; pilot inherits. No mapping decisions for unit-variant ops (Arithmetic/Comparison/Logical); OperatorKind inherits sum-payload pattern. Slice: bundle ArithmeticOp + ComparisonOp + LogicalOp + OperatorKind into one PR (declared together in substrate.dag:134-164, hand-authored together at dag.rs:694-725; OperatorKind references the other three so partial migration creates churn). Fallback to ArithmeticOp-only if blocker surfaces. Cementing inherited from existing pattern (SG-0 partition shift). STOP-AND-ESCALATE on parser-dict gap, new mapping pattern, consumer breakage, DB-8 drift, scope balloon. Non-goals preserve genuinely-S sizing. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Review metadata
1. Story of the diffThis PR adds one load-bearing audit section to 2. Invariant categories
3. VerdictAPPROVE_WITH_COMMENTS The substantive reframe is well grounded in concrete evidence and improves the audit’s live-state accuracy. I would not block the PR, but the newly introduced “future audit-discipline pass” should be converted from an open-ended TODO into tracked debt with a named dissolution trigger. |
… rewrite (openai-pro finding on #775) (#779) openai-pro auto-review NON-BLOCKING finding: the closing "future audit-discipline pass" wording at the end of the substrate-already- generated reframe lacked a named dissolution trigger, violating INVARIANTS.md scaffold/debt rule (every scaffold names its closing condition). Trigger named: rationale-column rewrite lands as part of PB-Substrate proper execution, on the first PR that retires a substrate-shape row's hand-authored kernel content (e.g., the operator-types pilot in #778). The debt closes when every PB-Substrate row's rationale reflects post-pilot reality. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Summary
Director-signed-off remediation per #766 escalation thread. Layered on top of merged #769 + #771.
Codex BLOCKING finding on withdrawn pilot brief #772 surfaced that the original audit (and the design doc PROPOSAL framing) treated substrate generation as a future pattern needing proof. Direct verification establishes the pattern is already proven and shipping:
*_generated.rsfiles undersrc/v3/compiler/src/.dag.rsis a hybrid (substrate-shapeinclude!()s at:497,:1678,:1699,:1710).ArithmeticOp/ComparisonOp/LogicalOp/OperatorKinddeclared insubstrate.dagAND hand-authored atdag.rs:694-725AND ungenerated. (a)-pilot target.What this PR does
Adds new §"Substrate generation is already proven and shipping (load-bearing reframe)" to
docs/design-pure-bootstrap-zero-audit.mdimmediately before the existing §"Findings before the table".Cascade implications
Companion PRs
Test plan
🤖 Generated with Claude Code