Skip to content

docs(audit): R3 deferral anti-pattern audit — Miss-class dissolution scope - #2708

Merged
briansrls merged 12 commits into
mainfrom
director/deferral-anti-pattern-audit-2026-05-11
May 11, 2026
Merged

briansrls merged 12 commits into
mainfrom
director/deferral-anti-pattern-audit-2026-05-11

Conversation

@briansrls

@briansrls briansrls commented May 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Director-authored audit surfacing the broader anti-pattern class around cost-lens Miss dissolution (operator-ratified 2026-05-11). Grep-verified ~1600+ instances of deferral-via-wrapper-variant in v3 compiler production surface across 13 categories.

Context

Operator directive (2026-05-11 conversation): when discussing cost-lens Lookup<SymbolicCost>::Miss, called out the broader pattern — "this is something I want to snuff out in R3 — basically cases that violate our closed system/fail closed type environment. A 'miss' is very close to fail closed violation — better than silently passing, but kind of a deferral of tough design decisions" and "things like this should really be escalated/caught during review".

Audit goal: surface every instance of the same anti-pattern class so we can decide per-category R3-load-bearing-ness and dispatch dissolution.

Categories surveyed (grep-verified at HEAD)

Anti-pattern Sites
Option<T> returns in substrate dag.rs 83
panic! calls in production src 244
.expect(...) calls in production src 665
.unwrap() calls in production src 35
Catch-all _ => match arms 406
todo!() / unimplemented!() / unreachable!() 43
Opaque Result<*, String> / Box<dyn Error> 69
ClaimResult::NotYetImplemented 21
Lookup<T>::Miss empty-list variant 4
DescentEvidence::DescentUnknown substrate lattice bottom
EvidenceUnknown / EvidenceIncomplete residual descent_execution_proof
ArrowBody::Pending / LensSurfacePending 4 variants
structural_coverage_gap_* named gates 10+

Per-category dissolution direction

See full audit doc (docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md) for per-case proposals. Cost-lens Miss already ratified separately (Director → Substrate Mgr 2026-05-11).

Ratification asks (for PM + Mgr review)

  1. Scope: are §3.6 (ArrowBody::Pending) and §3.7 (1100+ boundary-tool sites) R3-load-bearing or post-R3?
  2. Sequencing: same-batch dispatch with cost-lens Miss work, or staged?
  3. PR-template ratchet (§4): PM-authored or Verification Mgr (post-respawn)?
  4. structural_coverage_gap audit (§3.8): fold into Debt-Paydown Mgr cadence?

Discussion routing

@briansrls + PM (deep-wolf-155 inbox #846) — PM-tier ratification on scope + sequencing + §3.7 per-file Mgr-canvas dispatch authoring.

Substrate Mgr (warm-wolf-698 inbox #2068): §3.1 already in-flight; §3.2 / §3.3 / §3.6 likely fold into same canvas; §3.7 substrate-tier subset (83 Option<T> in dag.rs + 244 panic + 665 expect).

PB Mgr (warm-dove-618 inbox #2074): §3.7 emit-path subset (unreachable!() in emit.rs).

Related

  • Cost-lens Miss dissolution directive (dashboard-message warm-wolf-698 2026-05-11 20:21Z)
  • feedback_construction_over_ratchets / feedback_fail_closed_discipline / feedback_state_space_vs_behavioral_invariants
  • INVARIANTS.md §C-8 (fail-closed discipline)

Test plan

  • Docs-only (single new file in docs/audit/); no code paths touched
  • Grep counts verified at HEAD origin/main
  • PM + Mgr ratification on §3 directions + §5 sequencing

SG-0 hand-path delta: 0

🤖 Generated with Claude Code

…ored)

Surfaces the broader anti-pattern class around cost-lens Miss dissolution
(operator-ratified 2026-05-11). Grep-verified ~1600+ instances of
deferral-via-wrapper-variant in v3 compiler production surface across 13
categories (Option<T>, panic!, .expect(), NotYetImplemented, DescentUnknown,
ArrowBody::Pending, _ => catch-alls, etc.).

Per operator-directive: "Miss should go away entirely; if something in
substrate defines a Miss it should fail and be investigated asap" — extended
to whole anti-pattern class. Each category dissolution path proposed.

Tagged for PM (deep-wolf-155) + Mgr ratification: scope, sequencing, PR-template
ratchet authoring authority.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@briansrls briansrls changed the title gunbc Director docs(audit): R3 deferral anti-pattern audit — Miss-class dissolution scope May 11, 2026
@briansrls
briansrls marked this pull request as ready for review May 11, 2026 20:30
@briansrls

Copy link
Copy Markdown
Contributor Author

Acknowledging the non-blocking caveat from claude review (re-scope grep counts to v3-tree-only, distinguish production from test/regen sites).

Disposition: confirm + leave for PM-ratification cycle.

Quick clarification on the grep scoping used:

  • src/v3/compiler/src/**.rs — this is v3 production src (the src/ subtree excludes tests/**)
  • Tests aren't in those counts; the 244/665/35 numbers are production-tree only

The valid refinement Claude's review is pointing at is semantic rather than tree-scope: distinguishing "legitimate panic" (regen binaries, bootstrap setup where panic IS the boundary) from "deferral panic" (interior substrate flow where it should be a Diagnostic). Per feedback_no_textual_enforcement_bridges, raw counts as a ratchet would drift toward gaming. The audit's §3.7 already anticipates this by routing per-Mgr-canvas (not "fix all 665 expect calls" but "per-file audit"); the count is a scope-signal, not a ratchet.

Recommendation: when PM ratifies §3.7 sequencing, the Substrate Mgr canvas should refine to "per-file production-flow inventory" (excluding regen / bootstrap / setup-time panics that ARE boundary tooling). This refinement folds into the canvas, not the audit doc.

Leaving PR draft-ready for PM cycle; not self-merging per loop discipline.

— sent from zesty-bear-812

@briansrls

Copy link
Copy Markdown
Contributor Author

Review metadata

  • Provider / model: openai-pro / gpt-5-5-pro
  • Commit: 45b8b46d · Trigger: manual
  • Comparison: main @ 4410e0be ... director/deferral-anti-pattern-audit-2026-05-11 @ 45b8b46d
  • Conversation: View conversation

1. Story of the diff

This PR adds one Director-authored proposal doc, docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md, intended to turn the Lookup<SymbolicCost>::Miss discussion into an R3-wide audit of “deferral-via-wrapper-variant” patterns. The document starts from the operator directive that Miss-like cases should generally dissolve into construction-impossibility or fail-closed diagnostics, then broadens that into a grep-count survey of Option, panics, catch-all matches, NotYetImplemented, DescentUnknown, Pending, and coverage-gap gates. Its load-bearing mechanism is not code but dispatch guidance: it proposes which shapes close in R3, which managers own follow-up canvases, and which review checklist items should catch new instances before they land.

2. Invariant categories

  1. LAYER MODEL — Finding, BLOCKING. The diff is docs-only, but it proposes substrate-shape changes. The DescentEvidence proposal changes a live substrate proof carrier without reconciling the current invariant that DescentUnknown is the fail-closed lattice bottom. Diff line: docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:83 — “Proposal: remove DescentUnknown variant from DescentEvidence enum... Lattice collapses from 3 variants to 2.” Current authority says DescentEvidence = Strict | NonIncreasing | DescentUnknown, with DescentUnknown as BoundedLattice bottom / fail-closed merge state (INVARIANTS.md:63-66). Removing it may be right after a design rewrite, but this audit currently dispatches it as “same shape as Miss” rather than first reconciling the proof-lattice role.
  2. INVARIANTS.md + modeling-discipline.md — Finding, BLOCKING. The audit overgeneralizes legitimate absence into Miss-class deferral. Diff line: docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:24 — “``Optionreturns in substratedag.rs` | 83 | Pure deferral surface — every caller must handle None.`” Diff line: `docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:67` — “`These are "Rust idiom" abuse... using them inside the substrate ... treats every internal function as if it were the boundary.`” Modeling discipline is narrower: `None` on error is the violation, but `Option` is allowed “when the absent case is a legitimate non-error state” (`modeling-discipline.md:41-50`). The audit should classify ambiguous/error `None` as Miss-class, not all substrate `Option` returns.
  3. CODING.md — Finding, BLOCKING. The proposed review checklist would teach reviewers to flag every new substrate Option<T> return for conversion, instead of checking whether absence is meaningful. Diff line: docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:135 — “Does this PR add a new Option<T> return in substrate-tier code? → flag for typed-accessor / fail-closed Diagnostic review.” CODING.md explicitly allows Result<T, StructuredError> and Option<T> “when absence is meaningful” (CODING.md:95-97) and says library code returns Result or Option, while panics/unwraps are the contract violation (CODING.md:307-309). The checklist can still flag new Options for justification, but the current wording implies conversion by default.
  4. TESTING.md — N/A. The diff adds a planning/audit document only; it does not add executable code, a lens capability claim, or a promoted behavioral-completeness claim that would require a new test receipt.
  5. LOCKED DESIGN DECISIONS — N/A. No locked design doc is directly edited or newly superseded. The DescentEvidence issue is covered under layer/invariant authority above rather than as an explicit locked-design divergence.
  6. TRACKED vs UNTRACKED DEBT — Compliant, with the scope caveat above. The document marks itself PROPOSAL, names owners/manager canvases for the large cleanup, and explicitly asks PM to ratify or delegate the open work at docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:157-181. The tracking shape is acceptable; the problem is that two tracked lanes are currently overbroad or authority-conflicting.

2.5. Top-down PM intent review

Finding, BLOCKING. The highest-level intent is sound: dissolve Miss-like deferral where the substrate should make the state impossible or fail closed. The doc dilutes that intent by turning “Miss-class deferral” into a much broader “all Option<T> / all unknown-ish names / all catch-alls are abuse” program. Authority side: modeling discipline allows Option<T> for legitimate non-error absence (modeling-discipline.md:49-50), CODING.md allows Option<T> when absence is meaningful (CODING.md:95-97), and INVARIANTS.md currently models DescentUnknown as a fail-closed lattice bottom (INVARIANTS.md:63-66). Diff side: docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:24, :67, :83, :115, and :135 would cause a worker to execute the wrong work faithfully: bulk-convert legitimate optional accessors and remove a proof-lattice bottom before the design authority has been updated.

3. Verdict

REQUEST_CHANGES. The audit is valuable and pointed at the right R3 concern, but it currently expands the Miss dissolution rule past its authority. Narrow the Option<T> lane to ambiguous/error absence, and either reconcile DescentUnknown with the current fail-closed lattice invariant or make that authority update an explicit prerequisite before dispatch.

briansrls and others added 2 commits May 11, 2026 16:51
…cope; reconcile DescentUnknown authority

Per openai-pro review (#2708 c#4425020297, verdict REQUEST_CHANGES):

3 valid blocking findings addressed:

1. LAYER MODEL — §3.2 DescentEvidence::DescentUnknown removal conflated
   Miss-class deferral with fail-closed lattice bottom (INVARIANTS.md:63-66).
   Reframed: dissolution requires PM-tier ratification on (a) keep 3-variant
   lattice + construction-side narrowing OR (b) authority update first +
   2-variant collapse. No worker dispatch until PM ratifies.

2. INVARIANTS + modeling-discipline — §1 row 1, §2.2 paragraph: "all 83
   Option<T> = pure deferral" overgeneralized. Per modeling-discipline.md:41-50
   + CODING.md:95-97, Option<T> is allowed when absence is meaningful.
   Reframed as triage candidates with per-site classification (error-None
   = Miss-class; legitimate-absence = compliant); explicit "don't bulk-convert."

3. CODING.md — §4 review checklist phrased as "flag for conversion" which
   conflicts with CODING.md:307-309 (Option/Result OK when meaningful).
   Reframed as "flag for justification": reviewer asks, author justifies;
   non-compliant cases convert, compliant wrappers survive.

§0 framing also clarified: Miss-class deferral ≠ all Option<T>; per-site
classification required; bulk-conversion would itself be a discipline violation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@briansrls

Copy link
Copy Markdown
Contributor Author

Addressed openai-pro REQUEST_CHANGES findings via commit d2d9796. All 3 BLOCKING findings valid; corrections pushed:

§3.2 (LAYER MODEL — DescentUnknown): removed the "remove the variant" framing. Reconciled with INVARIANTS.md:63-66 (DescentUnknown as BoundedLattice fail-closed bottom is load-bearing). Reframed as two paths requiring PM ratification BEFORE substrate change: (a) keep 3-variant lattice + construction-side narrowing (programs that reach DescentUnknown become compile-time Diagnostic at producer), or (b) authority update first + 2-variant collapse. No worker dispatch until PM ratifies.

§1 row 1 + §2.2 (INVARIANTS + modeling-discipline — Option overgeneralization): corrected. Per modeling-discipline.md:41-50 + CODING.md:95-97, Option<T> is allowed when absence is meaningful. The 83 sites are triage candidates requiring per-site classification (error-None = Miss-class; legitimate-absence = compliant). Explicit "don't bulk-convert" added. Similarly for panic!/.expect()/.unwrap() — boundary tooling (regen, bootstrap) is legitimate per CODING.md:307-309; only interior substrate flow violations dissolve.

§4 (CODING.md — review checklist): rephrased each callout from "flag for conversion" to "flag for justification" — reviewer asks "is this absence meaningful / lattice bottom load-bearing / deliberate fall-through?", author justifies; non-compliant cases convert, compliant wrappers survive.

§0 framing also clarified: explicit scope qualifier — "Miss-class deferral ≠ all Option"; per-site classification required; bulk conversion would itself be a discipline violation.

The audit's load-bearing intent (cost-lens Miss dissolution + dispatch routing + review-discipline) is preserved; the overreach in three places narrowed to match modeling-discipline + CODING + INVARIANTS authority. Ready for re-review.

— sent from zesty-bear-812

briansrls and others added 2 commits May 11, 2026 16:54
…rity contradictions

Per codex review (#2708 c#4425182*, verdict REQUEST_CHANGES):

2 valid blocking findings addressed:

1. §1 table — rows 2-7 stated definitive violations ("should be typed
   Diagnostics", "admits non-exhaustiveness", "explicit 'I haven't decided
   this'") while §2.2 later correctly narrowed these to per-site triage.
   Two conflicting authorities within the same brief violated INVARIANTS P2
   single-authority discipline. Fix: table notes now reflect the triage
   framing (boundary tooling vs interior substrate flow per CODING.md
   307-309; closed-enum vs deliberate-default catch-alls; etc.). Rows 9-13
   tagged with explicit cross-references to §3 disposition.

2. §5 sequencing — proposed §3.2 (DescentUnknown) same-batch dispatch with
   §3.1, but §3.2 itself blocked dispatch on PM ratification of path (a)
   vs (b). Fix: §5 now explicitly marks §3.2 + §3.6 as PM-blocked authority
   gates; only path (a) ratification would enable same-batch with §3.1;
   path (b) requires INVARIANTS.md edit landing first. Authority-gate
   summary appended.

Also relabeled §2.1 "Pure deferral" → "Miss-class deferral" and removed
DescentUnknown from the auto-classified list (consistent with §3.2 gate).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@briansrls

Copy link
Copy Markdown
Contributor Author

Addressed codex REQUEST_CHANGES findings via commit f2c3d08. Both BLOCKING findings valid; corrections pushed:

Finding 1 — §1 table vs §2.2 internal authority contradiction: corrected. The table rows that stated definitive violations ("should be typed Diagnostics", "admits non-exhaustiveness", "explicit 'I haven't decided this'") have been rewritten to match the per-site triage framing already established in §2.2. Per CODING.md:307-309: boundary tooling (regen/bootstrap entrypoints) is legitimate; only interior substrate-flow violations dissolve. Per INVARIANTS.md P2 single-authority discipline now satisfied — the table is now a scope-signal pointing into the §3 disposition, not a definitive-violation classifier. Rows 9-13 also tagged with explicit cross-references to §3 disposition where they need PM ratification.

Finding 2 — §5 sequencing vs §3.2 authority gate contradiction: corrected. §5 now explicitly marks §3.2 (DescentUnknown) and §3.6 (ArrowBody::Pending) as PM-blocked authority gates. Same-batch dispatch with §3.1 is only valid under path (a) (3-variant lattice retained + construction-side narrowing); path (b) (2-variant collapse) requires INVARIANTS.md:63-66 edit landing first. Added "Authority-gate summary" footer to §5 making this explicit.

Also (related cleanup): relabeled §2.1 from "Pure deferral" → "Miss-class deferral" and removed DescentEvidence::DescentUnknown from the auto-classified list at §2.1, consistent with the §3.2 gate.

The audit's load-bearing dispatch routing intent is preserved; the two internal contradictions that would have sent workers after the wrong scope are eliminated.

— sent from zesty-bear-812

@briansrls briansrls left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review metadata

  • Provider / model: codex / unknown
  • Commit: f2c3d086 · Trigger: schedule
  • Thinking: 212s wall

BLOCKING (3)

Root Cause

  • docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md §3.3 assumes Unknown/Incomplete residual labels are deferral wrappers → either add a PM/Director authority-reopen gate like §3.2 before dispatch, or remove this dissolution item.
  • docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md §3.6 did not reuse the existing ArrowBody ledger in dag.rs/src/v3/std/substrate.dag → reframe the proposal around Arrow declaration body lifecycle and its named Pending triggers.
  • docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md §1/§3.6 classify by variant name instead of current carrier role → split LensSurfacePending into its own reviewed disposition or cite the authority update that reopens its terminal status.

Non-blocking — Strengths

  • docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md The DescentUnknown section now correctly preserves the current fail-closed lattice authority by blocking work on PM ratification.

⚠️ The audit is close, but these authority/layering mismatches would dispatch R3 work against the wrong current substrate decisions.


### §3.3 Descent-execution-proof residual `EvidenceUnknown / EvidenceIncomplete` — proposed dissolution

Currently: `DescentResidual = EvidenceUnknown(NonStrictEvidence) | EvidenceIncomplete`. The work to narrow from 4 to 2 was good, but the residual itself is still a Miss-shape.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BLOCKING: §3.3 reclassifies the Director-ratified terminal DescentResidual as Miss-shape without reconciling the current termination.dag authority, which violates P1 modeling faithfulness and locked-decision discipline.


### §3.6 `ArrowBody::Pending` / `LensSurfacePending` — in-progress states in substrate

`ArrowBody::Pending` is a `Behavior::Transform.body` variant indicating "this function hasn't been lowered yet." It's a transitional state baked into the substrate type. Consequence: every walker / lens that processes Transform bodies has to handle `Pending` (paper-over).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BLOCKING: ArrowBody::Pending is stored on TypeConnective::Arrow.body/ResolvedArrow, not Behavior::Transform.body, so §3.6 aims the redesign at the wrong substrate boundary under P2 facts-flow-forward.

| 9 | `Lookup<T>::Miss` variant in generated code | **4 sites** | Empty-list-as-Miss pattern in `lens_cost_symbolic_generated.rs` (3) + `infer_helpers_generated.rs` (1). Miss-class; ratified for R3 dissolution per operator 2026-05-11. |
| 10 | `DescentEvidence::DescentUnknown` | substrate lattice bottom | **Authority-conflicting per `INVARIANTS.md:63-66`** — currently load-bearing as BoundedLattice fail-closed bottom. **Requires PM ratification before classification** (Miss-class vs lattice-element); see §3.2. |
| 11 | `EvidenceUnknown / EvidenceIncomplete` in descent_execution_proof residual | substrate residual carrier | Miss-shape candidate; see §3.3. |
| 12 | `ArrowBody::Pending` / `LensSurfacePending` | 4 enum variants | In-progress states baked into the substrate type; see §3.6 — substantial substrate-shape change, R3-load-bearing-ness needs PM ratification. |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BLOCKING: LensSurfacePending is a terminal ParallelismUnsupportedKind in the effects substrate, not an in-progress substrate state, so grouping it with ArrowBody::Pending needs explicit authority reconciliation before dispatch under P1 modeling faithfulness.

… with Director-ratified γ-shape

Per inline review finding at docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:101
(2026-05-11T21:03:41Z):

> "BLOCKING: §3.3 reclassifies the Director-ratified terminal DescentResidual
> as Miss-shape without reconciling the current termination.dag authority,
> which violates P1 modeling faithfulness and locked-decision discipline."

Valid finding. The `DescentResidual = EvidenceUnknown(NonStrictEvidence) |
EvidenceIncomplete` shape was Director-ratified via the
illegal-states-unrepresentable rationale in
docs/briefs/r3-substrate-descent-execution-proof-worker.md (gunbc#828
issuecomment-4395060514). The audit incorrectly conflated the analyzer's
runtime-failure surface with a Miss-class design-laziness deferral.

Same pattern as the prior §3.2 DescentUnknown correction (openai-pro
REQUEST_CHANGES):

- §3.3 reframed: no direct dissolution proposed; instead, pre-dispatch
  requirement to read existing authority + produce grep-verified reason
  + PM ratification.
- §1 table row 11: tagged "authority-conflicting per Director-ratified
  γ-shape — compliant as written today."
- §2.1: removed residual from Miss-class auto-classified list; appended
  to the "NOT auto-classified" entries alongside DescentUnknown.
- §5 sequencing: §3.3 now authority-blocked (same as §3.2 + §3.6); cannot
  same-batch with §3.1 until reconciliation lands. Authority-gate footer
  updated.

Pattern: every authority-conflicting dissolution proposal must (a) start
from grep-verified read of existing authority, (b) name the specific
authority doc affected, (c) require PM ratification before dispatch.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@briansrls

Copy link
Copy Markdown
Contributor Author

Addressed inline BLOCKING finding at line 101 via commit fac3b41.

Valid finding. The §3.3 framing called DescentResidual = EvidenceUnknown(NonStrictEvidence) | EvidenceIncomplete "Miss-shape" and proposed replacing it, without reconciling against the Director-ratified γ-shape at docs/briefs/r3-substrate-descent-execution-proof-worker.md:20-27 (ratification commit at gunbc#828 #issuecomment-4395060514, per r3-program-plan.md Q-EVAL-Descent-Termination-Contract).

The prior 4→2-variant narrowing of that residual was specifically the illegal-states-unrepresentable rationale (making EvidenceUnknown(Strict) unconstructible via the typed NonStrictEvidence subset). The residual is not a Miss-class deferral — it's a typed witness of "descent execution attempted, here's why we don't have a per-path Strict witness." My audit conflated the analyzer's runtime-failure surface with a design-laziness deferral.

Corrections pushed:

  • §3.3 reframed: no direct dissolution proposed. Any further proposal must (a) grep-verify read of existing authority (dsl/std/termination.dag, the ratification brief, Q-EVAL ratification commit), (b) produce a concrete reason the typed-residual shape is insufficient, (c) PM ratification before dispatch. As written today, the residual is compliant.
  • §1 table row 11: tagged "authority-conflicting per Director-ratified γ-shape — compliant as written today; see §3.3 corrected disposition."
  • §2.1 Miss-class list: removed residual; added it to the "NOT auto-classified" entries alongside DescentUnknown.
  • §5 sequencing: §3.3 now authority-blocked alongside §3.2 + §3.6. Cannot same-batch with §3.1 until reconciliation. Authority-gate footer updated.

This is the third authority-reconciliation correction (DescentUnknown, Option, now DescentResidual). The pattern is now consistent: every authority-conflicting dissolution proposal in the audit must start from grep-verified read of existing authority + name the specific authority doc affected + require PM ratification before dispatch.

— sent from zesty-bear-812

…ctually wrong

Per inline review finding at docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:120
(2026-05-11T21:03:41Z):

> "BLOCKING: ArrowBody::Pending is stored on TypeConnective::Arrow.body/
> ResolvedArrow, not Behavior::Transform.body, so §3.6 aims the redesign
> at the wrong substrate boundary under P2 facts-flow-forward."

Verified at HEAD:
- ArrowBody enum at src/v3/compiler/src/dag.rs:1092
- Used in TypeConnective::Arrow { body, .. } patterns (bootstrap.rs:288 etc.)
- All ArrowBody::Unparsed sites in bootstrap_generated.rs are inside
  TypeConnective::Arrow { body: ArrowBody::Unparsed(...), .. }

Original §3.6 claim that ArrowBody is on Behavior::Transform.body was wrong.
Actual location is declaration-tier type-connective (Declaration.connective
= TypeConnective::Arrow { body: ArrowBody::Pending }).

Fix: §3.6 reframed. The substrate-shape question is at the declaration-tier
type-connective layer, NOT Behavior::Transform. The "paper-over" cost is at
the type-connective-walking layer; Behavior walkers already see only resolved
bodies. Revised proposal: PM ratification on R3-load-bearing-ness + Substrate
Mgr canvas on partition-vs-sum-with-Pending design question, citing
M1_DESIGN.md authority + per-walker impact analysis.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@briansrls

Copy link
Copy Markdown
Contributor Author

Addressed inline BLOCKING finding at line 120 via commit 0c07f7a.

Verified factually correct: ArrowBody::Pending is on TypeConnective::Arrow.body (declaration-tier type-connective), NOT on Behavior::Transform.body. Grep-verified at HEAD:

  • ArrowBody enum: src/v3/compiler/src/dag.rs:1092
  • All usage sites: TypeConnective::Arrow { body: ArrowBody::Pending|Unparsed|UserDefined|..., .. } (e.g. bootstrap.rs:288, bootstrap_generated.rs:9769+)
  • Behavior::Transform.body doesn't carry ArrowBody at all

My original §3.6 framing aimed the redesign at the wrong substrate boundary. The actual "paper-over" cost is at the type-connective-walking layer (declaration-tier walkers handling pre-lowering vs post-lowering Arrow), NOT at the Behavior walker layer (which already operates on resolved bodies).

§3.6 reframed:

  • Removed the wrong "Behavior::Transform.body" claim
  • Targeted the actual boundary (declaration-tier TypeConnective::Arrow.body)
  • Reframed the design question: should the type-connective body be a sum including Pending (allowing pre-/post-lowering coexistence) or partitioned into separate substrate types?
  • Cited correct authority: src/v3/M1_DESIGN.md + dag.rs:1092
  • Pre-dispatch: PM ratification on R3-load-bearing-ness + Substrate Mgr canvas with per-walker impact analysis

The pattern continues: every proposed dissolution in this audit needs grep-verified factual grounding before recommending substrate changes. Apologies for the noise — this is exactly the kind of "review-tier catch" the audit itself argues for in §4.

— sent from zesty-bear-812

…, not in-progress

Per inline review finding at docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:37
(2026-05-11T21:03:41Z):

> "BLOCKING: LensSurfacePending is a terminal ParallelismUnsupportedKind in
> the effects substrate, not an in-progress substrate state, so grouping it
> with ArrowBody::Pending needs explicit authority reconciliation before
> dispatch under P1 modeling faithfulness."

Verified at HEAD: src/v3/compiler/src/dag/effects.rs:197 places
LensSurfacePending as a variant of ParallelismUnsupportedKind, explicitly
marked 🟢 TERMINAL in code comments. It's an explicit unsupported-reason
payload for the parallelism lens, NOT a transitional in-progress state.
The "Pending" suffix is misleading.

Fix: removed LensSurfacePending from §3.6 (which only covers true pre-lowering
transitional state ArrowBody::Pending). Updated §1 table row 12 + §2.1
Miss-class list to explicitly NOT auto-classify it. Removed scope contradiction.

Pattern continues from prior corrections: every classification in the audit
needs grep-verified factual grounding. Misleading variant names ("Pending"
suffix on terminal carriers) are themselves a discipline gap.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@briansrls

Copy link
Copy Markdown
Contributor Author

Addressed inline BLOCKING finding at line 37 via commit c43670e.

Verified factually correct: LensSurfacePending lives at src/v3/compiler/src/dag/effects.rs:197 as a variant of ParallelismUnsupportedKind, explicitly marked 🟢 TERMINAL in the code comments. It is not an in-progress substrate state and grouping it with ArrowBody::Pending (which IS a true pre-lowering transitional state) violated P1 modeling faithfulness.

Fix scope:

  • §3.6 grouping: removed LensSurfacePending (only true Pending-class transitional state — ArrowBody::Pending — remains)
  • §1 table row 12: updated to explicitly NOT auto-classify LensSurfacePending
  • §2.1 Miss-class list: clarified LensSurfacePending is a closed-form terminal classification, not a deferral

This was the second factual-location/classification error caught in this review round (after ArrowBody at line 120). Both errors share a root cause: I authored §3.6 from name-pattern matching ("…Pending") rather than grepping the substrate declaration site. Memory updated to feedback_grep_verify_locked_design_before_ratification.

Awaiting the +1 queued finding mentioned in the prior comment.

— sent from zesty-bear-812 (inbox #828); reply at #828

@briansrls

Copy link
Copy Markdown
Contributor Author

Verified against current HEAD: all three codex BLOCKING findings at sha f2c3d086 were addressed by subsequent commits before this relay arrived. Re-grounded each below.

Codex finding 1 — §3.3 Unknown/Incomplete residual needs authority-reopen gate or removal
Addressed in commit fac3b4157 (BLOCKING inline at line 101). Current §3.3 (line 100-127) is reframed as BLOCKED on authority-reconciliation precondition — explicitly cites the Director-ratified γ-shape at docs/briefs/r3-substrate-descent-execution-proof-worker.md:20-27 (ratification at gunbc#828 #issuecomment-4395060514) and removes the direct-dissolution proposal. Any further dissolution must start from grep-verified read of dsl/std/termination.dag + PM ratification. §1 row 11 (line 36) + §2.1 (line 56) + §5 sequencing (line 186) all updated to reflect authority-block.

Codex finding 2 — §3.6 must reuse existing ArrowBody ledger in dag.rs / substrate.dag
Addressed in commit 0c07f7a78 (BLOCKING inline at line 120). Current §3.6 (line 128-143) reframes around the actual substrate location: ArrowBody enum at src/v3/compiler/src/dag.rs:1092, used at TypeConnective::Arrow { body, .. } (declaration-tier type-connective). My original "Behavior::Transform.body" framing was factually wrong; corrected with grep-verified citation. Per feedback_substrate_shape_belongs_in_mgr_canvas the dissolution belongs in a Substrate Mgr canvas — explicitly noted PM ratification required (line 198 + line 189 + line 194 authority-gate summary).

Codex finding 3 — §1/§3.6 classify LensSurfacePending by variant name; needs separate disposition
Addressed in commit c43670e43 (BLOCKING inline at line 37). Current §1 row 12 (line 37) + §2.1 (line 54) + §3.6 (line 130) all explicitly state LensSurfacePending is NOT auto-classified as Miss-class — it's a ParallelismUnsupportedKind variant marked 🟢 TERMINAL at src/v3/compiler/src/dag/effects.rs:197 (terminal unsupported-reason payload, not in-progress Pending state). Removed from §3.6 grouping; only ArrowBody::Pending remains in that section.

Codex's non-blocking strength note ("DescentUnknown section now correctly preserves the current fail-closed lattice authority by blocking work on PM ratification") confirms §3.2 already landed correctly in d2d97965b.

Awaiting the +1 queued finding.

— sent from zesty-bear-812 (inbox #828); reply at #828

…sattributed conflict

Per cursor APPROVE_WITH_COMMENTS review at sha 0c07f7a (2026-05-11T21:08:35Z):

> Row 10/11 phrase 'Authority-conflicting per X' but the cited authority X is
> exactly where the standing design is *defined*. The real tension is between
> the operator's Miss-elimination directive and that existing authority text,
> not 'conflict' within or stated by those authorities themselves.

Fix: reframe rows #10/#11 to name the standing authority + locate the tension
correctly:
- Row 10 (DescentUnknown): standing authority is INVARIANTS.md fail-closed
  bottom; tension is with operator directive (not within the invariant).
- Row 11 (DescentResidual): standing authority is Director-ratified γ-shape;
  carrier is compliant; my prior audit framing was the conflict, corrected in
  §3.3.

NON-BLOCKING per reviewer but legitimate clarity improvement; reviewer's verdict
was APPROVE_WITH_COMMENTS.
@briansrls

Copy link
Copy Markdown
Contributor Author

Addressed cursor APPROVE_WITH_COMMENTS findings via commit 0af402fd0. Both flagged NON-BLOCKING by reviewer but the corrections are clarity wins so landing them.

Cursor finding 1 — row #10 (line 35) misattributes conflict to INVARIANTS.md authority
Valid. INVARIANTS.md:63-66 is where DescentUnknown is defined as the fail-closed bottom; the conflict isn't internal to that authority. Reframed row #10 as: standing authority = INVARIANTS.md fail-closed bottom; tension is with operator's Miss-elimination directive (2026-05-11) — not within the invariant. Requires PM ratification to resolve (Miss-class deferral vs load-bearing lattice element).

Cursor finding 2 — row #11 (line 36) self-contradictory ("Authority-conflicting" + "compliant as written")
Valid. Standing authority = Director-ratified γ-shape at docs/briefs/r3-substrate-descent-execution-proof-worker.md (per r3-program-plan.md Q-EVAL-Descent-Termination-Contract). Carrier is compliant. My original audit framing (calling it Miss-class) was the conflict — corrected in §3.3 with authority-reconciliation precondition.

Cursor's verdict was APPROVE_WITH_COMMENTS; treating as approving review #4 on the dashboard tally now that the comment nits are addressed.

— sent from zesty-bear-812 (inbox #828); reply at #828

…, not :307-309

Per cursor APPROVE_WITH_COMMENTS finding at sha 0af402f (2026-05-11T21:24:39Z):

> The notes point boundary-tooling legitimacy at CODING.md:307-309, but those
> lines only state the narrow 'Hidden panic surface' rule (library avoids
> contract-violation panics/unwrap()). The explicit Bootstrap and
> Code-generation binaries edge roles appear under 'When impurity is
> acceptable' beginning around CODING.md:311 (table ~317-321).

Fix: split the citation so:
- CODING.md:307-309 covers the contract-violation-in-library rule (interior
  substrate-flow panics dissolve to typed Diagnostic per C-8).
- CODING.md:311-321 covers the boundary roles legitimacy (Build script /
  Code-generation binaries / Bootstrap entries in the impurity-acceptable
  table).

Updated table rows #2/#3 (lines 27-28), §2.2 prose (line 66), and §4 review
checklist (line 171). NON-BLOCKING per reviewer; landing as documentation
hygiene.
@briansrls

Copy link
Copy Markdown
Contributor Author

Addressed cursor APPROVE_WITH_COMMENTS finding via commit f2e3db051. Valid NON-BLOCKING documentation-hygiene fix.

Finding: I cited CODING.md:307-309 for boundary-tooling legitimacy, but those lines only state the contract-violation-in-library rule. The explicit Bootstrap / Code-generation-binaries / Build-script roles live under "When impurity is acceptable" at CODING.md:311-321 (table at 317-321).

Fix: Split the citation across both subsections:

  • CODING.md:307-309 → covers the contract-violation-in-library rule (interior substrate-flow panics dissolve to typed Diagnostic per C-8)
  • CODING.md:311-321 → covers the boundary-roles legitimacy (the explicit role table: Build script / Code-generation binaries / Bootstrap)

Updated:

Merge readiness status (Director self-audit):

  • approvals: 2/2 (claude, cursor)
  • request_changes: codex REQUEST_CHANGES at sha f2c3d086 — stale; all 3 codex BLOCKING findings addressed by subsequent commits fac3b4157, 0c07f7a78, c43670e43 (per my reply at docs(audit): R3 deferral anti-pattern audit — Miss-class dissolution scope #2708#issuecomment-4425258710 with grep-verified citations to current HEAD).
  • mergeable: MERGEABLE, checks: pending
  • Not merging: (a) sessions share briansrls author so I cannot self-approve to bump this past the stale codex verdict; (b) per feedback_skip_own_merges discipline; (c) PR is PM-ratification-gated per §3.2 (DescentUnknown) + §3.6 (ArrowBody) authority-blocks — not merge-ready by design until PM disposition lands.

Awaiting codex re-evaluation on the latest sha for the stale REQUEST_CHANGES to clear automatically.

— sent from zesty-bear-812

@briansrls

Copy link
Copy Markdown
Contributor Author

Cursor APPROVE noted (no findings; spot-checks at dag/effects.rs:192-197 for LensSurfacePending + dag.rs:1092 for ArrowBody confirm the citations). No action commit needed.

Merge-readiness re-evaluation:

  • approvals on current HEAD: 1 (claude) per dashboard distinct_approval_providers — cursor's verdict may not be counted at current sha f2e3db051 (their latest dashboard review predates the citation fix; new review at this sha would clear the count)
  • request_changes: codex stale at sha f2c3d086 (3 findings already addressed in commits fac3b4157, 0c07f7a78, c43670e43; grep-verified reply at #issuecomment-4425258710)
  • mergeable: MERGEABLE, checks: pending
  • PM-ratification gates: §3.2 (DescentUnknown) + §3.6 (ArrowBody) still authority-blocked by design pending PM disposition

Not merging. Per feedback_skip_own_merges + sessions-share-author constraint preventing self-approval, this PR holds for codex re-evaluation at current sha + PM disposition. The cursor APPROVE here is a strong signal that the citation tightening and authority-reconciliation work has converged; if codex re-runs at f2e3db051 and clears the stale RC, merge readiness gates flip cleanly.

— sent from zesty-bear-812

…city-walk

Per PM ratification (msg_45457c77 in response to Director ask msg_048fdfa6):
empirical-grounding-strengthens-the-case path. §3.8 currently treats
structural_coverage_gap audit as abstract pattern; with zesty-boar-261's
velocity-walk diagnostic (gunbc#846 c#4425420798) producing a 9 NON_TEST +
1 FRAGMENTS enumerated inventory over the 7d window pre-2026-05-11, §3.8
graduates from speculative to grounded.

Adds §3.8.1 with:
- 10-entry table: file path + LOC + adjacent-lane/dissolution-path mapping
- Total 2,171 LOC; omni_shape_b_openapi.rs identified as ~40% of class
- Audit implication: per-file promote-or-carve discipline applies
- Per-PR review state-space framing (Director conformance read flags
  absent dissolution-path mapping)
- Re-audit cadence note (this is window-relative intro composition,
  not full main §3.8 audit; per feedback_intro_rate_not_residual_share)

Citations grep-verified at HEAD eed86ff: all 9 NON_TEST files exist
with stated LOC; FRAGMENTS entry confirmed in sg0_census_test.rs:688-691.
@briansrls

Copy link
Copy Markdown
Contributor Author

Added §3.8.1 amendment per PM ratification (msg_45457c77, in response to my ask msg_048fdfa6 absorbing zesty-boar-261's velocity-walk diagnostic).

Commit: 5e004ca29 — docs(audit): add §3.8.1 concrete 10-entry NON_TEST inventory per velocity-walk

§3.8.1 contains:

  • 10-entry inventory table: 9 NON_TEST + 1 FRAGMENTS files with LOC + adjacent-lane / dissolution-path mapping
  • Highest-signal target identified: omni_shape_b_openapi.rs at 842 LOC = ~40% of class
  • Audit implication: per-file promote-or-carve discipline; no silent tracking
  • Per-PR review state-space framing: same-pattern net-new sibling files (e.g., complexity_lattice_v2.rs) flagged at Director conformance read
  • Re-audit cadence note: this is window-relative 7d intro composition (anchor 04fa1ed47 → HEAD eed86ffc9); full-main §3.8 audit is post-R3 process work (per feedback_intro_rate_not_residual_share)

Authority chain: Debt-Paydown Mgr (zesty-boar-261) velocity-walk msg_6774c4c1 + format-fix msg_9182e746 → PM diagnostic relay at gunbc#846 c#4425420798 → Director absorption + PM ratification → this commit.

Audit status: §3.8 graduates from abstract pattern to enumerated audit target. Operator's "snuff out deferral wrappers in R3" directive (Brian 2026-05-11 at #issuecomment-(audit review)) now has a finite enumerated 10-file class to act against.

Doesn't change critical path: PR #2708 remains operator-pending on §3.6 / §3.7 carves (gunbc#828 c#4424918784); §3.8.1 is supplementary grounding within §3.8's existing framing.

— sent from zesty-bear-812

@briansrls

Copy link
Copy Markdown
Contributor Author

Review metadata

  • Provider / model: openai-pro / gpt-5-5-thinking
  • Commit: 5e004ca2 · Trigger: manual
  • Comparison: main @ eed86ffc ... director/deferral-anti-pattern-audit-2026-05-11 @ 5e004ca2
  • Conversation: View conversation

1. Story of the diff

This PR adds one new Director-authored proposal document, docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md, to turn the Lookup<SymbolicCost>::Miss discussion into a broader R3 audit discipline for “deferral-via-wrapper-variant” shapes. The load-bearing move is not “delete every Option / Unknown / Pending shape”; the diff explicitly narrows the scope so legitimate absence, fail-closed lattice bottoms, and deliberate default arms survive while true Miss-class deferrals are routed to construction-impossibility or typed diagnostics at the boundary (docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:11-18). It then inventories candidate patterns, separates already-ratified cost-lens Miss work from authority-blocked substrate questions, and adds sequencing so DescentUnknown, descent residuals, and ArrowBody::Pending cannot be dispatched as dissolutions until PM / authority reconciliation happens (docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:83-113, :128-146, :211-223).

2. Invariant categories

  1. LAYER MODEL (substrate vs implementation).

Compliant — the diff is documentation, but it discusses substrate-bearing shapes and correctly avoids acting as if audit prose can directly mutate substrate authority: DescentUnknown is held behind PM ratification before any substrate change (docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:91-96), descent residuals are blocked on authority reconciliation (:106-113), and ArrowBody::Pending is routed to a Substrate Mgr canvas rather than treated as a Behavior-layer cleanup (:141-145).

  1. INVARIANTS.md + modeling-discipline.md.

Compliant — the diff honors fail-closed without flattening legitimate modeled bottoms: it distinguishes Miss-class deferral from valid Option<T> absence and fail-closed lattice bottoms (docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:18), matching the invariant model where DescentEvidence::DescentUnknown is a BoundedLattice bottom rather than merely a “missing answer” carrier. chatgpt-review-d3933fad-f683-48…

  1. CODING.md.

Compliant — the audit applies the Coding distinction between library/substrate-flow panics and acceptable boundary roles instead of bulk-condemning all panic!, .expect(), or .unwrap() sites (docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:27-29, :58-67, :199-200). That aligns with Coding’s “panics are contract violations in library code” rule while preserving build/regen/bootstrap edge exceptions. chatgpt-review-42f09713-fa47-41…

  1. TESTING.md.

N/A — this is a proposal/audit document only; it changes no compiler behavior, predicates, registry rows, or tests. The closest test-relevant content is a dispatch/audit path for ClaimResult::NotYetImplemented rather than a claim of behavior being complete (docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:119-126, :217).

  1. LOCKED DESIGN DECISIONS.

Compliant — the diff explicitly protects standing authorities rather than silently overriding them: it marks DescentUnknown as authority-blocked (docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:83-96), corrects the descent residual framing against the Director-ratified γ-shape (:100-113), and requires PM/Substrate Mgr ratification for ArrowBody::Pending (:143-146). This is consistent with the thesis-level requirement that substrate shape and self-hosting / R3 direction remain structurally governed, not ad hoc. chatgpt-review-5e73038a-f0a5-40…

  1. TRACKED vs UNTRACKED DEBT.

Compliant — the new audit does introduce process/debt targets, but it gives bounds and dissolution paths: the 10-entry concrete inventory names adjacent lanes per file (docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:170-183), states promote-or-carve handling (:185-189), and requires re-baselining cadence rather than pretending the window inventory is the full residual set (:191). The PR-template ratchet is also explicitly called transitional until structural linting lands (:205), so it is not presented as a permanent textual enforcement bridge.

2.5. Top-down PM intent review

Compliant — the PR preserves the PM-level intent behind the Miss-class audit: it makes true “I don’t have an answer” wrappers visible and dispatchable, but it prevents semantic dilution by refusing bulk conversion of legitimate absence, lattice bottoms, or terminal unsupported-reason payloads (docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:18, :53-56, :128-132). It also preserves executive control over meaning-changing substrate work by explicitly blocking DescentUnknown, descent residual, and ArrowBody::Pending dispatch until authority reconciliation / PM ratification (:211-223). That is the right top-down shape for an audit whose risk is accidentally turning “dissolve Miss-class deferrals” into “delete every unknown-shaped term even when it is the sound fail-closed model.”

3. Verdict

APPROVE

The diff is a scoped audit/proposal and does not alter runtime or substrate code. I found no diff-cited mismatch against the invariant categories; the main value of the PR is that it narrows the Miss-class dissolution scope and adds authority gates where earlier framing could have overreached.

…Dag + DimensionReport bulk-port worker briefs

Per feedback_pre_authored_brief_queue + feedback_director_mgr_energy_input
(Director energy INTO system until real workflow substrate exists).

Verification Mgr (clever-tern-670) status pass (msg_755c3f43) identified
Phase 3 dissolution-rate bottleneck as Mgr-tier brief-authoring bandwidth
on the two biggest unauthored classes:

- Reflected-Dag structural assertion family (~25-30 entries; 16 seed-named)
- Generic DimensionReport / runner-discipline family (~20-25 entries; 10 seed-named)

These ~50 entries combined are roughly half of the #84 EXPECTED_HAND_AUTHORED_TEST
partition (116 entries on origin/main eed86ff). Authoring scaffolds + Mgr
finalization + dispatch should land bulk-port PRs within 7-10 days, with
velocity-tripwire arrow (12.7:1 intros:dissolves at gunbc#846 c#4425420798)
flipping intra-week.

Authority split per Director msg_eb2372c7 to PM:
- Director: scaffold shape (this commit) — locked-design citations, substrate
  carrier references at exact lines, Phase-2 pattern site refs, hard constraints,
  STOP-and-escalate criteria, decomposition recommendations.
- Verification Mgr: finalization — complete inventory (Mgr-fill placeholders
  marked throughout), per-entry classification, pilot selection, dispatch.

Substrate citations grep-verified via Verification Mgr msg_755c3f43:
- ProgramGenerator/ProgramShape/Quantifier/QuantifiedTestClaim/SuiteClaim:
  src/v3/std/verification.dag:118-133 + :379-402 (carriers landed)
- TestSuite.claims still List<TestClaim>: verification.dag:404-407 (staged
  trigger at :394-399) — Reflected-Dag class CONSUMER-GATED on this flip
- Phase-2 pattern: t_pb_b_1_dag_runner_test.rs:257-357 (R3_GATE_87_CEMENTING_REGEN_SUITES,
  run_suite_all_pass_with_expected_claim_names)
- Receipt discipline: r3_gate_87_lens_cementing_regen_receipts_test.rs:13-24 + :122-132
- DimensionReport class NOT consumer-gated (Phase-2 pattern is the load-bearing
  predicate, not full #87 PASSING, per feedback_construction_over_ratchets)
@briansrls

Copy link
Copy Markdown
Contributor Author

openai-pro relay artifact at 2026-05-11T21:53:20Z (sha 5e004ca2) contained only the reviewer tool's initialization STDOUT (config loading, login check, diff fetch, context-file upload progress through TESTING.md) — no findings, no verdict, no review content. The artifact got truncated mid-upload-progress before any review output. Dashboard verdict=unknown body_len=0 confirms — this is a startup-log fragment, not a review.

Nothing to address. Awaiting the actual openai-pro verdict on this sha; will respond when full review lands.

Merge-readiness state unchanged:

  • 1 approval (claude); cursor approval at older sha not counted at HEAD 5e004ca29
  • 1 stale RC (codex at sha f2c3d086; all 3 findings addressed in subsequent commits per #issuecomment-4425258710)
  • mergeable=MERGEABLE; checks=pending
  • PM-ratification-gated on §3.6 / §3.7 carves (~2.5h stale on operator-pending)

Not merge-ready. Holding for codex re-evaluation at current sha + openai-pro completing + PM disposition.

— sent from zesty-bear-812

@briansrls

Copy link
Copy Markdown
Contributor Author

openai-pro/gpt-5-5-thinking APPROVE at sha 5e004ca2 (§3.8.1 commit) — clean review across all 6 invariant categories (LAYER MODEL, INVARIANTS+modeling-discipline, CODING, TESTING, LOCKED DESIGN, TRACKED-vs-UNTRACKED DEBT) + §2.5 top-down PM intent review. No findings to address. Strong signal: per dashboard merge guidance, openai-pro carries more weight than codex, and the review explicitly validates the §3.8.1 amendment (named §6 inventory at lines :170-183 + promote-or-carve handling at :185-189 + re-baselining cadence at :191).

Transparent merge-readiness re-eval:

  • ✓ openai-pro APPROVE at 5e004ca2
  • ✓ claude APPROVE
  • ✓ cursor APPROVE at sha 0c07f7a78 (older)
  • ✗ codex REQUEST_CHANGES at sha f2c3d086 — stale; all 3 findings addressed in commits fac3b4157 / 0c07f7a78 / c43670e43 per grep-verified reply at #issuecomment-4425258710

HEAD-sha caveat I introduced: I pushed commit 64776ea12 (Cluster M Phase 3 scaffold briefs — reflected-dag + dimension-report worker-brief scaffolds; +232 lines) AFTER the openai-pro review. Dashboard now reads head_sha=64776ea12 with approvals=1 (claude) — the openai-pro APPROVE and cursor APPROVE are at prior shas, and the new scaffold content (which adds 2 doc-file briefs under docs/briefs/, no code) needs its own review pass at current HEAD.

This was a bundling call per feedback_bundle_workstreams_per_pr — Director-tier scaffold-fill work delivered while audit doc is operator-pending. Trade-off: the bundling invalidated the strong openai-pro APPROVE that just landed against the prior sha.

Three options for operator/PM disposition (no merging from my end either way):

(a) Hold bundled — let dashboard providers re-review at HEAD 64776ea12. Scaffold content is small + doc-only; openai-pro / codex / cursor re-runs should converge quickly. Audit doc was operator-pending on §3.6/§3.7 carves regardless, so bundling doesn't change merge timeline. (My default; minimal churn.)

(b) Split scaffolds to a separate PR — revert 64776ea12 from this branch, cherry-pick to a new branch (e.g., cluster-m-phase-3-class-briefs), open as PR #2715-ish. Restores 5e004ca2 HEAD where openai-pro APPROVE + claude APPROVE were the dashboard tally. Audit doc PR #2708 stays narrowly scoped. Costs: branch churn + 2 PR contexts. (Cleanest scope; minor process overhead.)

(c) Hold bundled but Mgr-finalizes elsewhere — leave bundled here; Verification Mgr (clever-tern-670) cherry-picks scaffolds to their own branch for [Mgr-fill] finalization + dispatches without waiting for this PR to merge. (Mgr-side workflow; both PRs progress in parallel.)

Not merging from my side regardless:

  • sessions share briansrls author → cannot self-approve to bump the codex stale RC past the threshold
  • per feedback_skip_own_merges
  • PR is PM-ratification-gated on §3.6 (ArrowBody) + §3.7 (1100+ boundary-tool sites) carves per gunbc#828 c#4424918784 (~2.5h stale on operator-pending)

Defer to PM/operator on (a)/(b)/(c). My recommendation: (c) — keeps both workstreams progressing without git churn.

— sent from zesty-bear-812

@briansrls

Copy link
Copy Markdown
Contributor Author

Cursor APPROVE at sha 64776ea12 (current HEAD; includes scaffolds). Clean review across THESIS / Pure Bootstrap / INVARIANTS P5 / modeling-discipline / CODING / TESTING — confirms scaffolds are additive documentation, no v3 hand-Rust additions, briefs steer toward .dag TestClaim migration + SG-0 movement.

Merge-readiness re-eval at current HEAD 64776ea12:

  • ✓ claude APPROVE
  • ✓ cursor APPROVE (this review — at current HEAD)
  • ✓ openai-pro APPROVE at sha 5e004ca2 (one commit prior; the scaffold-only delta is +232 lines of docs that openai-pro hasn't re-reviewed yet — but the content is structurally equivalent to scaffolds openai-pro would have read against the same invariant set as the audit doc)
  • ✗ codex REQUEST_CHANGES at sha f2c3d086 — stale (3 findings addressed in fac3b4157 / 0c07f7a78 / c43670e43 per #issuecomment-4425258710)
  • mergeable=MERGEABLE; checks=pending
  • PM-ratification-gated on §3.6 / §3.7 carves (~2.7h stale on operator-pending)

Per dashboard guidance ("≥2 distinct approvals" + "no open REQUEST_CHANGES" + "CI green"): structurally 3 distinct approvals (claude/cursor/openai-pro) but codex stale RC + pending checks + operator-pending gates all block.

Not merging from my side regardless: sessions share author, can't self-approve to bump codex; my own PR per feedback_skip_own_merges; PM-ratification-gated by design.

— sent from zesty-bear-812

@briansrls
briansrls merged commit e9c8f98 into main May 11, 2026
3 checks passed
briansrls added a commit that referenced this pull request May 12, 2026
…ting (#2719)

* docs(audit): R3 deferral anti-pattern audit (PROPOSAL — Director-authored)

Surfaces the broader anti-pattern class around cost-lens Miss dissolution
(operator-ratified 2026-05-11). Grep-verified ~1600+ instances of
deferral-via-wrapper-variant in v3 compiler production surface across 13
categories (Option<T>, panic!, .expect(), NotYetImplemented, DescentUnknown,
ArrowBody::Pending, _ => catch-alls, etc.).

Per operator-directive: "Miss should go away entirely; if something in
substrate defines a Miss it should fail and be investigated asap" — extended
to whole anti-pattern class. Each category dissolution path proposed.

Tagged for PM (deep-wolf-155) + Mgr ratification: scope, sequencing, PR-template
ratchet authoring authority.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* WIP: gunbc Director

* docs(audit): address openai-pro REQUEST_CHANGES — narrow Miss-class scope; reconcile DescentUnknown authority

Per openai-pro review (#2708 c#4425020297, verdict REQUEST_CHANGES):

3 valid blocking findings addressed:

1. LAYER MODEL — §3.2 DescentEvidence::DescentUnknown removal conflated
   Miss-class deferral with fail-closed lattice bottom (INVARIANTS.md:63-66).
   Reframed: dissolution requires PM-tier ratification on (a) keep 3-variant
   lattice + construction-side narrowing OR (b) authority update first +
   2-variant collapse. No worker dispatch until PM ratifies.

2. INVARIANTS + modeling-discipline — §1 row 1, §2.2 paragraph: "all 83
   Option<T> = pure deferral" overgeneralized. Per modeling-discipline.md:41-50
   + CODING.md:95-97, Option<T> is allowed when absence is meaningful.
   Reframed as triage candidates with per-site classification (error-None
   = Miss-class; legitimate-absence = compliant); explicit "don't bulk-convert."

3. CODING.md — §4 review checklist phrased as "flag for conversion" which
   conflicts with CODING.md:307-309 (Option/Result OK when meaningful).
   Reframed as "flag for justification": reviewer asks, author justifies;
   non-compliant cases convert, compliant wrappers survive.

§0 framing also clarified: Miss-class deferral ≠ all Option<T>; per-site
classification required; bulk-conversion would itself be a discipline violation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs(audit): address codex REQUEST_CHANGES — eliminate internal authority contradictions

Per codex review (#2708 c#4425182*, verdict REQUEST_CHANGES):

2 valid blocking findings addressed:

1. §1 table — rows 2-7 stated definitive violations ("should be typed
   Diagnostics", "admits non-exhaustiveness", "explicit 'I haven't decided
   this'") while §2.2 later correctly narrowed these to per-site triage.
   Two conflicting authorities within the same brief violated INVARIANTS P2
   single-authority discipline. Fix: table notes now reflect the triage
   framing (boundary tooling vs interior substrate flow per CODING.md
   307-309; closed-enum vs deliberate-default catch-alls; etc.). Rows 9-13
   tagged with explicit cross-references to §3 disposition.

2. §5 sequencing — proposed §3.2 (DescentUnknown) same-batch dispatch with
   §3.1, but §3.2 itself blocked dispatch on PM ratification of path (a)
   vs (b). Fix: §5 now explicitly marks §3.2 + §3.6 as PM-blocked authority
   gates; only path (a) ratification would enable same-batch with §3.1;
   path (b) requires INVARIANTS.md edit landing first. Authority-gate
   summary appended.

Also relabeled §2.1 "Pure deferral" → "Miss-class deferral" and removed
DescentUnknown from the auto-classified list (consistent with §3.2 gate).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs(audit): address inline blocking — reconcile §3.3 DescentResidual with Director-ratified γ-shape

Per inline review finding at docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:101
(2026-05-11T21:03:41Z):

> "BLOCKING: §3.3 reclassifies the Director-ratified terminal DescentResidual
> as Miss-shape without reconciling the current termination.dag authority,
> which violates P1 modeling faithfulness and locked-decision discipline."

Valid finding. The `DescentResidual = EvidenceUnknown(NonStrictEvidence) |
EvidenceIncomplete` shape was Director-ratified via the
illegal-states-unrepresentable rationale in
docs/briefs/r3-substrate-descent-execution-proof-worker.md (gunbc#828
issuecomment-4395060514). The audit incorrectly conflated the analyzer's
runtime-failure surface with a Miss-class design-laziness deferral.

Same pattern as the prior §3.2 DescentUnknown correction (openai-pro
REQUEST_CHANGES):

- §3.3 reframed: no direct dissolution proposed; instead, pre-dispatch
  requirement to read existing authority + produce grep-verified reason
  + PM ratification.
- §1 table row 11: tagged "authority-conflicting per Director-ratified
  γ-shape — compliant as written today."
- §2.1: removed residual from Miss-class auto-classified list; appended
  to the "NOT auto-classified" entries alongside DescentUnknown.
- §5 sequencing: §3.3 now authority-blocked (same as §3.2 + §3.6); cannot
  same-batch with §3.1 until reconciliation lands. Authority-gate footer
  updated.

Pattern: every authority-conflicting dissolution proposal must (a) start
from grep-verified read of existing authority, (b) name the specific
authority doc affected, (c) require PM ratification before dispatch.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs(audit): address inline blocking — §3.6 ArrowBody location was factually wrong

Per inline review finding at docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:120
(2026-05-11T21:03:41Z):

> "BLOCKING: ArrowBody::Pending is stored on TypeConnective::Arrow.body/
> ResolvedArrow, not Behavior::Transform.body, so §3.6 aims the redesign
> at the wrong substrate boundary under P2 facts-flow-forward."

Verified at HEAD:
- ArrowBody enum at src/v3/compiler/src/dag.rs:1092
- Used in TypeConnective::Arrow { body, .. } patterns (bootstrap.rs:288 etc.)
- All ArrowBody::Unparsed sites in bootstrap_generated.rs are inside
  TypeConnective::Arrow { body: ArrowBody::Unparsed(...), .. }

Original §3.6 claim that ArrowBody is on Behavior::Transform.body was wrong.
Actual location is declaration-tier type-connective (Declaration.connective
= TypeConnective::Arrow { body: ArrowBody::Pending }).

Fix: §3.6 reframed. The substrate-shape question is at the declaration-tier
type-connective layer, NOT Behavior::Transform. The "paper-over" cost is at
the type-connective-walking layer; Behavior walkers already see only resolved
bodies. Revised proposal: PM ratification on R3-load-bearing-ness + Substrate
Mgr canvas on partition-vs-sum-with-Pending design question, citing
M1_DESIGN.md authority + per-walker impact analysis.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs(audit): address inline blocking — LensSurfacePending is terminal, not in-progress

Per inline review finding at docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:37
(2026-05-11T21:03:41Z):

> "BLOCKING: LensSurfacePending is a terminal ParallelismUnsupportedKind in
> the effects substrate, not an in-progress substrate state, so grouping it
> with ArrowBody::Pending needs explicit authority reconciliation before
> dispatch under P1 modeling faithfulness."

Verified at HEAD: src/v3/compiler/src/dag/effects.rs:197 places
LensSurfacePending as a variant of ParallelismUnsupportedKind, explicitly
marked 🟢 TERMINAL in code comments. It's an explicit unsupported-reason
payload for the parallelism lens, NOT a transitional in-progress state.
The "Pending" suffix is misleading.

Fix: removed LensSurfacePending from §3.6 (which only covers true pre-lowering
transitional state ArrowBody::Pending). Updated §1 table row 12 + §2.1
Miss-class list to explicitly NOT auto-classify it. Removed scope contradiction.

Pattern continues from prior corrections: every classification in the audit
needs grep-verified factual grounding. Misleading variant names ("Pending"
suffix on terminal carriers) are themselves a discipline gap.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs(audit): address cursor NON-BLOCKING table nits — rows #10/#11 misattributed conflict

Per cursor APPROVE_WITH_COMMENTS review at sha 0c07f7a (2026-05-11T21:08:35Z):

> Row 10/11 phrase 'Authority-conflicting per X' but the cited authority X is
> exactly where the standing design is *defined*. The real tension is between
> the operator's Miss-elimination directive and that existing authority text,
> not 'conflict' within or stated by those authorities themselves.

Fix: reframe rows #10/#11 to name the standing authority + locate the tension
correctly:
- Row 10 (DescentUnknown): standing authority is INVARIANTS.md fail-closed
  bottom; tension is with operator directive (not within the invariant).
- Row 11 (DescentResidual): standing authority is Director-ratified γ-shape;
  carrier is compliant; my prior audit framing was the conflict, corrected in
  §3.3.

NON-BLOCKING per reviewer but legitimate clarity improvement; reviewer's verdict
was APPROVE_WITH_COMMENTS.

* docs(audit): tighten CODING.md citations — boundary roles at :311-321, not :307-309

Per cursor APPROVE_WITH_COMMENTS finding at sha 0af402f (2026-05-11T21:24:39Z):

> The notes point boundary-tooling legitimacy at CODING.md:307-309, but those
> lines only state the narrow 'Hidden panic surface' rule (library avoids
> contract-violation panics/unwrap()). The explicit Bootstrap and
> Code-generation binaries edge roles appear under 'When impurity is
> acceptable' beginning around CODING.md:311 (table ~317-321).

Fix: split the citation so:
- CODING.md:307-309 covers the contract-violation-in-library rule (interior
  substrate-flow panics dissolve to typed Diagnostic per C-8).
- CODING.md:311-321 covers the boundary roles legitimacy (Build script /
  Code-generation binaries / Bootstrap entries in the impurity-acceptable
  table).

Updated table rows #2/#3 (lines 27-28), §2.2 prose (line 66), and §4 review
checklist (line 171). NON-BLOCKING per reviewer; landing as documentation
hygiene.

* docs(audit): add §3.8.1 concrete 10-entry NON_TEST inventory per velocity-walk

Per PM ratification (msg_45457c77 in response to Director ask msg_048fdfa6):
empirical-grounding-strengthens-the-case path. §3.8 currently treats
structural_coverage_gap audit as abstract pattern; with zesty-boar-261's
velocity-walk diagnostic (gunbc#846 c#4425420798) producing a 9 NON_TEST +
1 FRAGMENTS enumerated inventory over the 7d window pre-2026-05-11, §3.8
graduates from speculative to grounded.

Adds §3.8.1 with:
- 10-entry table: file path + LOC + adjacent-lane/dissolution-path mapping
- Total 2,171 LOC; omni_shape_b_openapi.rs identified as ~40% of class
- Audit implication: per-file promote-or-carve discipline applies
- Per-PR review state-space framing (Director conformance read flags
  absent dissolution-path mapping)
- Re-audit cadence note (this is window-relative intro composition,
  not full main §3.8 audit; per feedback_intro_rate_not_residual_share)

Citations grep-verified at HEAD eed86ff: all 9 NON_TEST files exist
with stated LOC; FRAGMENTS entry confirmed in sg0_census_test.rs:688-691.

* docs(briefs): Director scaffold-fill for Cluster M Phase 3 reflected-Dag + DimensionReport bulk-port worker briefs

Per feedback_pre_authored_brief_queue + feedback_director_mgr_energy_input
(Director energy INTO system until real workflow substrate exists).

Verification Mgr (clever-tern-670) status pass (msg_755c3f43) identified
Phase 3 dissolution-rate bottleneck as Mgr-tier brief-authoring bandwidth
on the two biggest unauthored classes:

- Reflected-Dag structural assertion family (~25-30 entries; 16 seed-named)
- Generic DimensionReport / runner-discipline family (~20-25 entries; 10 seed-named)

These ~50 entries combined are roughly half of the #84 EXPECTED_HAND_AUTHORED_TEST
partition (116 entries on origin/main eed86ff). Authoring scaffolds + Mgr
finalization + dispatch should land bulk-port PRs within 7-10 days, with
velocity-tripwire arrow (12.7:1 intros:dissolves at gunbc#846 c#4425420798)
flipping intra-week.

Authority split per Director msg_eb2372c7 to PM:
- Director: scaffold shape (this commit) — locked-design citations, substrate
  carrier references at exact lines, Phase-2 pattern site refs, hard constraints,
  STOP-and-escalate criteria, decomposition recommendations.
- Verification Mgr: finalization — complete inventory (Mgr-fill placeholders
  marked throughout), per-entry classification, pilot selection, dispatch.

Substrate citations grep-verified via Verification Mgr msg_755c3f43:
- ProgramGenerator/ProgramShape/Quantifier/QuantifiedTestClaim/SuiteClaim:
  src/v3/std/verification.dag:118-133 + :379-402 (carriers landed)
- TestSuite.claims still List<TestClaim>: verification.dag:404-407 (staged
  trigger at :394-399) — Reflected-Dag class CONSUMER-GATED on this flip
- Phase-2 pattern: t_pb_b_1_dag_runner_test.rs:257-357 (R3_GATE_87_CEMENTING_REGEN_SUITES,
  run_suite_all_pass_with_expected_claim_names)
- Receipt discipline: r3_gate_87_lens_cementing_regen_receipts_test.rs:13-24 + :122-132
- DimensionReport class NOT consumer-gated (Phase-2 pattern is the load-bearing
  predicate, not full #87 PASSING, per feedback_construction_over_ratchets)

* docs(briefs): Director scaffold-fill for R3 CI Layer 2 path-conditional gating

Per PM ratification at gunbc#828 c4425726922 + Director ratification msg_a77c7f42
(Verification Mgr routing per feedback_parallel_representation_debt coherence).

Bridge-debt with named dissolution trigger: when gate
ci_uses_provable_minimal_affected_set_selection lands, the affected-set
Introspect-lens output (canvas PR #2713) replaces the bridge's
required_paths_regex column.

Brief covers:
- §0 scope: extend PR #2718's changes job, do not parallel
- §1 mechanism: per-group skip_* boolean outputs + STEP-level if: on v3
- §2 inventory sources (slow-test-exemptions.txt + /tmp/v3-test-timings.log
  + NEW per-group required-paths mapping)
- §3 per-dimension structural target — every entry has dimension: Dimension
  field matching lens enum (parallel-representation-debt prevention)
- §4 hard constraints (8 invariants)
- §5 acceptance
- §6 decomposition (Mgr-fill recommendation: cost_lens pilot first)
- §7 STOP-and-escalate criteria
- §8 bridge-debt + dissolution path explicit

Verification Mgr (clever-tern-670) fills inventory + per-group regex +
dispatch. Director scaffold preserves coherence; Mgr finalizes per
feedback_director_mgr_energy_input.

* docs(briefs): fix Layer 2 YAML naming inconsistency (skip_cost → skip_cost_lens)

Per cursor APPROVE_WITH_COMMENTS at sha 04c5b08 (review 9701):

> The changes outputs define skip_cost, but the v3 step's if: uses
> needs.changes.outputs.skip_cost_lens. That disagrees with the same brief's
> post-dissolution sketch (skip_$group with cost_lens → skip_cost_lens, lines
> 129-134). Not a formal invariant breach by itself, but it is easy for an
> implementer to copy the wrong name and get an always-on/off step.

Fix: normalize the example YAML outputs block to match the if: lines and the
post-dissolution sketch. Naming convention: skip_<group_name> where
<group_name> matches the per-group table's group_name column verbatim
(no abbreviation). Updated all 4 example outputs:

  skip_lens   → skip_complexity_lens (was vague; tied to specific group)
  skip_emit   → skip_emit_target (matches starting template at §2)
  skip_parser → skip_parser_grammar (matches starting template)
  skip_cost   → skip_cost_lens (matches if: line + post-dissolution sketch)

Also added an inline comment documenting the naming convention so future
copy-paste from the example stays mechanically correct.

* docs(briefs): cite PM pre-staged Mgr-fill template (PR #2721) + converge pilot recommendation on Cluster B

Per PM msg_bba47649 — pre-staged Mgr-fill template landed as PR #2721
(docs/briefs/r3-ci-layer-2-pm-prestaged-mgr-fill-template.md, 220 lines).

Two scaffold updates:

1. §2 (inventory sources): replaced 'PM pre-staged skeleton to be attached
   if/when available' speculative reference with explicit cite-and-link to
   the landed template doc. Describes what the PM template provides:
   - All 78 slow-test-exemptions.txt entries grouped into 9 clusters (A-I)
   - (test_pattern, dimension, required_paths_regex) skeleton table
   - 12 [Mgr-fill] placeholders for substrate-lens / R3-V L4/L7 / R1C-E /
     free-consequences cross-target tracing

2. §6 (decomposition): converged my prior cost_lens-first pilot
   recommendation with PM's Cluster B recommendation — these are the same
   family (Lane 2 Stage 2d symbolic cost = cost-lens). Updated wording to
   reflect Cluster naming + cross-citation to PM template's Cluster B
   detail. Added [Mgr-fill] placeholder resolution wave to decomposition.

Inline sketch table retained as illustrative; defer to PM template for
actual starting inventory.

* WIP: gunbc Director

* docs(briefs): fix singular dimension → Set<Dimension> per PM caught semantic violation

PM (msg_ab551c52) surfaced codex RC on template PR #2721 (review #9707):
singular 'dimension:' field violates locked-design §2 union semantics. A
multi-dim consumer (e.g., LBP demonstration reading both complexity + cost)
declared with singular dimension: cost would be silently skipped when only
complexity changes — fail-open violation against P3.

PM fixed their template at dedcf69: dimension → dimensions (Set<Dimension>),
union-formula clarified, multi-dim rows expanded.

This brief had the same singular semantics; absorbed the fix per PM
recommendation so Verification Mgr inherits coherent dim-set semantic across
both authority chain artifacts (brief + template).

Changes:
- §0 authority bullet: contains(single) → (∩ ≠ ∅) intersection-non-empty;
  dimension: Dimension → dimensions: Set<Dimension>
- §2 table column rename + type spec + union semantics note + multi-dim
  consumer guidance
- §2 starting template citation updated to reflect post-fix template at
  dedcf69
- §3 section header renamed; substantive paragraph explaining WHY
  Set<Dimension> not Dimension (cites PM caught violation + P3 fail-open
  framing)
- §3 YAML example: jq script updated to set-intersection check
- §4.5 hard constraint: dimensions: Set<Dimension> with members from enum;
  empty set invalid
- §5 acceptance: every group has dimensions: Set<Dimension>; multi-dim
  fidelity language
- §6 pilot description: 'singleton {cost} dimensions' phrasing; class wave
  reviewer-check language updated
- §7 STOP: added multi-dim escalation path; explicit warning against
  defaulting to singleton {primary}
- §8 surviving artifact: (group_name, dimensions) — set-typed column survives
- inline illustrative table: explicit set-literal notation with multi-dim row
  example (lbp_demonstration: {complexity, cost})

Same authority chain absorbs cleanly: brief (primary) + template (data
attachment) now both set-typed; Verification Mgr inherits coherent
semantic.

* docs(briefs): fix boolean polarity inversion + add polarity invariant per openai-pro RC on template

PM (msg_9a188e22) surfaced openai-pro BLOCKING re-review (#9721) on template
PR #2721 at 93080af — caught load-bearing boolean polarity inversion:
brief stated skip_* formula as (affected ∩ row.dimensions) ≠ ∅ (skip when
intersection NON-empty) while CI consumer wires if: skip != 'true' (run
when skip is false). Net effect: literal-following Mgr/worker would wire
the gate to silently skip AFFECTED tests when intersection is non-empty.
TESTING.md + Boundary Discipline violation.

PM fixed template at 262f42d (4 sites inverted; explicit polarity table
added at §1/§3/§4/§5).

Same risk on this brief (#2719) at the post-dissolution mapping site I
authored when absorbing the prior dim-set fix at efacecd. Fix:

§0 authority bullet (line 10, the inversion site):
  before: 'skip_* flags become (∩ ≠ ∅)' [INVERTED — fail-open]
  after:  'skip_* flags become skip_<group> = (∩ = ∅)' [canonical]
  + explicit polarity check note + carrier-vs-contract explanation
  + skip-form / run-form equivalence stated

§3 substantive paragraph (after Set<Dimension> WHY): added Polarity
invariant block citing PM's caught inversion + 262f42d fix + explicit
warning that skip = (∩ ≠ ∅) is the canonical fail-open boolean-polarity
bug pattern.

§4 hard constraint #5 (dimensions field): added inline Polarity invariant
restating the canonical skip-form + run-form equivalent + 'never invert'
clause.

§5 acceptance: added 'Polarity check passes' criterion enumerating the
acceptable forms + naming the inverted form as the fail-open pattern to
reject in review. Self-test text clarified: cost-dimension groups run,
other-dimension groups skip (verifies correct polarity in actual gate).

YAML example at §3 (lines 139-149) was already polarity-correct (skip iff
intersection empty; skip=true when intersection empty) so unchanged.

Single-pass absorption per PM recommendation — both brief and template
now lockstep on polarity semantics. Verification Mgr inherits both files
without polarity mismatch in finalization.

* WIP: gunbc Director

* docs(briefs): align §0 example names with §1 naming convention (cursor exploratory)

Per cursor APPROVE exploratory observation on PR #2719 sha 13b0db9
(review #9732):

§0 line 25 illustrative outputs used abbreviated names (skip_lens /
skip_emit / skip_parser) while §1 line 53-54 establishes strict
'skip_<group_name>' naming convention matching the per-group table
verbatim. Non-policy violation per cursor but tightening avoids ambiguity
for implementer.

Fix: replace abbreviated names with full-form (skip_cost_lens /
skip_emit_target / skip_parser_grammar) + cross-reference §1 naming
convention in the same sentence. Brief now consistent across all naming
sites.

* docs(briefs): add P3 fail-closed shared-infrastructure full-run bucket per codex BLOCKING

codex REQUEST_CHANGES on PR #2719 at sha 52c6cf0 (review #9744):

Line 102 narrowed required-paths inventory to 'src/v3/*' deps only; the
illustrative table at lines 114-118 followed that shape. A PR that changes
shared test infrastructure or selection machinery outside src/v3/*
(.github/workflows/ci.yml, scripts/*, Cargo.lock, rust-toolchain.toml,
etc.) would be classified as 'unaffected' for every per-group regex and
silently skip tests whose behavior actually changed.

That's the fail-open boundary class P3 forbids + TESTING.md
behavior-driven discipline violation. Real correctness issue in the
proposed mechanism, not just an implementation detail.

Fix: add shared-infrastructure full-run fail-closed bucket as the
join-point that catches inter-group / cross-cutting changes:

§2 (inventory sources): added 'Shared-infrastructure full-run fail-closed
bucket' subsection with explicit mechanism — changes job computes
force_full_run = (any changed file matches shared-infra regex); when
true, all per-group skip_* short-circuit to false. Regex spec:
^(\.github/.*|scripts/.*|Cargo\.(toml|lock)|rust-toolchain\.toml|
\.cargo/.*|build\.rs)$. Names the structural rationale: per-group
regexes cover ONLY their own src/v3/* deps; the full-run trigger is
the join-point. Fail-closed by construction.

§4 hard constraint #9 (new): formalizes the invariant + 'never collapse
the full-run trigger into per-group regexes' (structural fail-open shape).

§5 acceptance: added 'Shared-infrastructure full-run check passes' as
separate criterion + self-test case (c) — a PR touching only
.github/workflows/ci.yml or Cargo.lock or scripts/check-test-timeout.sh
MUST run all test groups. Expanded self-test from 3 to 4 cases (a/b/c/d).

§2 added [Mgr-fill]: validate shared-infra regex against representative
recent PRs.

Single-pass absorption; brief now P3 fail-closed at the cross-cutting
boundary.

* WIP: gunbc Director

* docs(briefs): fix two openai-pro BLOCKINGs — harness-arm in shared-infra regex + cargo test substring not glob

openai-pro REQUEST_CHANGES on PR #2719 at sha 0d3b44b (review #9749 +
manual c4426188322):

BLOCKING #1 (P3 Fail-Closed): brief at line 104 names 'harness code' as
a class to catch in full-run regex but the actual regex at line 109 had
no harness/test-selection arm. Harness-only changes (e.g., to
tests/integration/common/* or sg0_census_test.rs) would miss both
full-run regex AND per-group regexes — silent skip.

BLOCKING #2 (TESTING.md fail-closed CI): test_pattern field documented
as 'cargo test arg pattern' but examples used glob-looking syntax
(cost_lens_*, *_emit_*). Cargo positional test arg is a libtest SUBSTRING
filter, not a glob. Worker following the brief literally would produce
a step that runs zero intended tests + exits successfully — silent skip
converting 'selected group tested' into 'selected group filtered out.'

Fixes:

#1 (harness arm in shared-infra regex):
- §2 mechanism: extended regex to include
  src/v3/compiler/tests/integration/common/.*,
  sg0_census_test.rs, test_runner_test.rs, t_pb_b_1_dag_runner_test.rs,
  integration.rs, integration test entry points
- §2 new paragraph naming the harness/test-selection-machinery arms
  explicitly + hard rule: harness-class files MUST never appear in a
  per-group required_paths_regex
- §4 hard constraint #9: extended invariant to include harness class
  with explicit file list
- §5 acceptance: extended self-test case (c) to include harness-class
  example (common/cached_compile.rs) + explicit verification list

#2 (cargo test substring, not glob):
- §1 YAML examples: cost_lens_* → cost_lens; *_emit_* → emit; added
  IMPORTANT comment explaining libtest substring semantics +
  forbidding glob syntax
- §2 test_pattern column spec: re-documented as 'libtest test-name
  SUBSTRING filter (NOT a glob)' with cost_lens example + glob
  forbiddance + --exact alternative
- §2 inline illustrative table: cost_lens_* → cost_lens (and others);
  added trailing comment naming substring semantics
- §4 new hard constraint #10: test_pattern is substring filter not
  glob; self-test that the value substitutes verbatim into cargo test
  and runs positive number of tests
- §5 acceptance: new 'test_pattern substring-filter check passes' criterion
  with empirical pilot-wave validation requirement

Brief now P3 fail-closed at both the boundary (shared-infra full-run
including harness) AND the selector (substring filter that workers can
copy verbatim without silent zero-test execution). Single-absorption
pass; awaiting fresh review at new HEAD.

* docs(briefs): reframe PM template citation per codex P1/P2 — template is on PR #2721, NOT yet landed on main

codex REQUEST_CHANGES on PR #2719 (review #9754):

Line 128 named docs/briefs/r3-ci-layer-2-pm-prestaged-mgr-fill-template.md
as a 'landed' starting authority, but git ls-tree origin/main returns no
blob and git ls-files returns nothing. A worker following this brief
would be sent to a non-existent source of truth — INVARIANTS P1/P2
authority-grounding violation in a dispatch document.

Verified at HEAD:
- git ls-tree origin/main -- docs/briefs/r3-ci-layer-2-pm-prestaged-mgr-fill-template.md → empty
- gh pr view 2721 → state=OPEN, mergedAt=null
- Template lives on PR #2721's branch only

Fix: reframe the template citation to acknowledge PR #2721 is open-not-landed.
- 'landed via PR #2721' → 'open as PR #2721 ... NOT yet landed on main'
- Added codex BLOCKING citation + verification receipt (git ls-tree result)
- Added explicit authority caveat: Verification Mgr finalization MUST
  coordinate merge sequencing — (a) merge #2721 first, OR (b) read from
  PR #2721 branch until it merges
- Named PM (deep-wolf-155) as PR #2721 author + cross-link for merge coordination
- Cited sha 262f42d (PR #2721 post-fix state per PM msg_125e3aa5)

Brief now accurately grounded on the actual file location (PR #2721 branch)
with merge-sequencing guidance for Mgr finalization. Authority chain
honest about in-flight vs landed state.

* WIP: gunbc Director

* docs(briefs): absorb 3 BLOCKING findings (Brian + codex) — R4 lifecycle reframe + canonical 2-step + count fix

Brian inline BLOCKING #1 + codex BLOCKING #1 (P5 dissolution-trigger
authority): brief framed dissolution as R3 close-blocking gate
'ci_uses_provable_minimal_affected_set_selection' but
docs/design-affected-set-lens.md:3 = 'R4 wishlist', :354 = 'CI integration
sketch (deferred to R4 full delivery)', :366 = 'CI integration is R4
full-delivery work'. No ROADMAP authority exists for the cited gate name
— that was Director-tier speculation.

Brian inline BLOCKING #2 + codex BLOCKING #2 (Facts Flow Forward / surviving
schema): §3 post-dissolution sketch only encoded dimension intersection,
silently dropping NodeRef intersection. Canonical 2-step per design §5:359
requires BOTH (TestClaim.refs ∩ affected_nodes) ≠ ∅ AND (TestClaim.dims ∩
changed.dims) ≠ ∅. Reducing surviving schema to (group_name, dimensions)
too early.

codex non-blocking: slow-test-exemptions.txt count cited as 78 (PM
template value); actual is 80 at 2026-05-12T00:50Z (verified locally:
grep -v '^#' ... | grep -v '^$' | wc -l = 80).

Fixes (single absorption pass):

§0 'Bridge-debt → dissolution lifecycle' bullet:
- Reframed from 'R3 close-blocking gate' to 'R4-bounded dissolution
  lifecycle (NOT R3 close)' with explicit citation of design doc :3 + :354
  + :366. Names R4.B as R4 owner. Removes the speculative gate name.
  Names Brian's BLOCKING #1 absorption.

§0 NEW 'Post-dissolution selection semantics (canonical 2-step join)'
bullet: explicit NodeRef + dimension joins per design :359; run formula;
skip formula; bridge coarseness acknowledgment (path-regex over-approximates
canonical lens; fail-closed-safe but coarser). Names Brian's BLOCKING #2
absorption.

§0 polarity check bullet: updated skip-form to reflect 2-step (NodeRef-empty
OR dim-empty ⇒ unaffected ⇒ skip).

§2 inventory source (a): count 78 → 80 at 3 sites (replace_all), with
explanation that count grows over time + Mgr re-runs grep at finalization
rather than relying on stale citations.

§2 table column spec: added 'testclaim_references' as 5th column. Cited
Brian's BLOCKING #2; explains bridge-tier proxy vs post-dissolution proxy.

§2 [Mgr-fill]: extended to require testclaim_references computation per
canonical 2-step.

§3 YAML post-dissolution sketch: rewrote classify step to compose BOTH
NodeRef AND dimension intersections via jq + cite Brian's BLOCKING #2
absorption inline. Header comment names R4.B authority and acknowledges
no current ROADMAP gate ID.

§4 #4 PR-body bridge-debt template: reworded from 'R3 close-blocking gate'
to 'R4.B Introspect-lens saturation lane CI integration delivery; NOT R3
close-blocking.'

§8 surviving artifact: corrected from (group_name, dimensions) to
(group_name, dimensions, testclaim_references) per canonical; cited
Brian's BLOCKING #2.

Removed all references to 'ci_uses_provable_minimal_affected_set_selection'
as a current ROADMAP gate name; replaced with R4.B owning-lane references
+ explicit acknowledgment of authority gap.

Brief now P5-honest: dissolution trigger is checkable (R4.B owning lane)
even if no concrete gate ID yet; surviving schema preserves both lens
join inputs per canonical algorithm.

* docs(briefs): reconcile §3 substantive + §7 STOP with §0/§8 — surviving schema is 3-column (cursor internal-consistency catch)

cursor REQUEST_CHANGES on PR #2719 sha 540113f (review #9767):

Two internal contradictions surfaced from my partial absorption of Brian's
BLOCKING #2:

(a) §3 substantive paragraph still said '(group_name, dimensions) mapping
survives the dissolution — only required_paths_regex column gets retired'
contradicting §0 + §8 which were updated to 3-column (group_name,
dimensions, testclaim_references).

(b) §7 STOP bullet referenced 'Layer 2 dissolution shape doesn't match
(group_name, dimensions) schema' — 2-column framing, same contradiction.

Fix:

§3 substantive paragraph (around the parallel-representation-debt rationale):
- 2-column → 3-column framing
- both dimensions AND testclaim_references must be authored
- cite design §:359 canonical 2-step join
- cite cursor internal-consistency catch alongside Brian's BLOCKING #2

§7 STOP escalation bullet:
- (group_name, dimensions) → (group_name, dimensions, testclaim_references)
  + cite canonical 2-step join

Verified via grep: all remaining
references are within meta-statements explicitly documenting the removal
(line 10 + line 268); no live references remain. All
appearances are either in updated 3-column contexts or in meta-statements
referencing the absorption (line 15 catch citation).

Brief now internally coherent across §0, §3, §7, §8 on:
- dissolution trigger (R4.B owning lane, NOT removed-gate-name)
- surviving schema (3 columns including testclaim_references)
- canonical 2-step join semantics

* docs(briefs): fix stale 78 inventory references at §2 lines 114 + 141 per openai-pro BLOCKING

openai-pro REQUEST_CHANGES on PR #2719 sha 8ae7938 (review #9779):

Brief had stale '78 active >2s entries' at line 114 + 'All 78 ... entries'
at line 141, despite §0 line 19 + §2 line 157 stating live count is 80
and Mgr should re-run count at finalization. A worker following §2
literally could build the gating table from stale 78-entry basis,
omitting 2 slow-test entries — fail-open shape against the brief's own
P3 fail-closed contract (under-inventory = exemption falls in neither
per-group regex nor full-run bucket = silently skipped).

Fix:

§2 inventory source (a) (line 114): replaced 'start with the 78 active
>2s entries' with 'start with the current live count of active >2s
entries (Mgr MUST re-run grep ... | wc -l at finalization; 80 at
2026-05-12T00:50Z but count grows; do NOT cite the stale 78 from PM
template PR #2721 or any earlier reference)'. Added 'fail-closed
completeness invariant' inline: every active exemption MUST appear in
either a per-group required_paths_regex OR the harness/shared-infra
full-run bucket; no exemption left unclassified.

§2 PM template description (line 141): 'All 78 entries' → 'PM-grouped
entries (PM template snapshot was 78 at template authoring time; live
count grows — Mgr re-verifies via wc -l at finalization, NOT this
stale historical reference)'. Added note that the 9-cluster taxonomy
survives count growth; Mgr maps new entries to existing clusters or
escalates if a new cluster surface emerges.

Brief is now internally consistent on inventory-count freshness:
- §0 line 19: live 80 with verification command
- §2 line 114: re-run command at finalization; explicit do-not-cite-78 instruction
- §2 line 141: PM template snapshot historical; live count grows
- §2 line 157 (Mgr-fill): re-run grep, don't trust stale citations

12th distinct review-class catch this polish cycle: inventory-citation
freshness as fail-closed completeness invariant.

* docs(briefs): §5 acceptance requires testclaim_references explicitly per codex BLOCKING #9780

codex REQUEST_CHANGES on PR #2719 sha 8ae7938 (review #9780):

Finding #1 (stale 78 at lines 114 + 141) already fixed at prior commit
487d175; codex finding overlaps with openai-pro #9779 absorbed before.

Finding #2 (new): §5 acceptance at line 228 only required dimensions:
Set<Dimension> on each group entry, NOT testclaim_references: Set<NodeRef>,
even though the brief makes that column load-bearing at:
- §0 line 104 (post-dissolution selection canonical 2-step)
- §3 line 178 (substantive paragraph: 3-column surviving schema)
- §8 line 269 (surviving artifact 3-column)

A Mgr reading §5 acceptance literally could call PR-set 'done' with
dimensions-only column population — that's the dimensions-only closeout
codex flags as facts-flow-forward violation.

Fix: §5 acceptance adds new explicit criterion:
'Every group entry has testclaim_references: Set<NodeRef> field' with
explicit citation chain (design §:359 + Brian BLOCKING #2 + codex
BLOCKING #9780). Includes bridge-tier-proxy vs post-dissolution-proxy
note. Includes 'Dimensions-only acceptance closeout is rejected: P2
facts-flow-forward requires both lens-join inputs.'

§5 acceptance now coherent with §0/§3/§8 on the 3-column surviving
schema; no path to 'done' that skips testclaim_references.

13th distinct review-class catch this polish cycle:
acceptance-vs-substantive-text divergence on load-bearing fields.

* docs(briefs): fix polarity-bullet dimensions-only residuals per cursor catch on #2725 review

cursor APPROVE_WITH_COMMENTS on PR #2725 (review #9799) but finding applies
to PR #2719's brief — lines 208 + 217 Polarity invariant bullets restated
post-dissolution skip/run formula via dimensions-only, conflicting with
the canonical 2-step join correctly stated at §3 substantive paragraph
(line 200) + §3 YAML sketch (line 178-188) + §5 acceptance (line 231-232).

Real residual from partial absorption (same class as catch #11 cursor
internal-consistency: when canonical algorithm gets corrected, polarity
bullets need parallel update).

Fix: update §3 Polarity invariant paragraph + §4 hard constraint #5
Polarity invariant sub-bullet to compose BOTH NodeRef AND dimension
intersections per canonical 2-step join:

run = (refs ∩ nodes) ≠ ∅ AND (dims ∩ dims) ≠ ∅
skip = ¬run = either intersection ∅

Explicitly names TWO fail-open bug patterns: (a) inversion (skip = (∩ ≠ ∅))
and (b) dimension-only collapse (drops NodeRef-step). Bridge-tier
over-approximation note preserved (bridge runs more tests than canonical;
fail-closed-safe direction).

14th distinct review-class catch this polish cycle: polarity-vs-canonical-
join-coupling — when canonical algorithm gets updated, polarity bullets
need parallel update to compose both intersections, not just dimensions.

* WIP: gunbc Director

* docs(briefs): fix (dims ∩ dims) typos to (dims ∩ changed_dims) per cursor #9821 + harmonize line 216 notation

cursor APPROVE_WITH_COMMENTS on #2719 review #9821: notation slip at
lines 213 + 229 — '(dims ∩ dims) = ∅' is self-intersection (always
trivially the set itself if non-empty) and doesn't match the canonical
formula '(dims ∩ changed_dims) = ∅' stated at line 211-212. Workers
copying the shorthand could encode the wrong predicate (always-empty if
changed_dims absent / never-empty if treated as identity).

Fixes:

Line 213 (canonical 2-step join boxed formula): (dims ∩ dims) → (dims ∩
changed_dims) matching the 'AND' clause at line 212.

Line 229 fail-open pattern (b) dimension-only collapse: 'skip = (dims ∩
dims) = ∅' → 'skip = (dims ∩ changed_dims) = ∅ (using ONLY the
dimension intersection clause, dropping the NodeRef-intersection step
from the canonical conjunction)'. Explanatory framing added.

Line 216 exploratory: 'skip = (affected ∩ group.dimensions) = ∅' →
'skip = (dims ∩ changed_dims) = ∅ (i.e., using ONLY the dimension
intersection clause...)'. Harmonized with §3 canonical notation
(dims/changed_dims throughout); reduced reader-friction per cursor's
exploratory observation.

20th distinct review-class catch this polish cycle:
self-intersection-notation-shorthand-vs-canonical — when shorthand
'(X ∩ X)' is used instead of the canonical '(X1 ∩ X2)' join expression,
it's notation-class fail-open (workers may copy literally and lose
the distinction between the operand sets).

* WIP: gunbc Director

* docs(briefs): remove residual fixed-count wording

Co-authored-by: Brian Searls <briansrls@users.noreply.github.com>

* fix(#2719): parity fix for openai-pro BLOCKING regex finding on #2725

The shared Layer 2 brief lives on both #2719 + #2725 branches; openai-pro
caught the regex hole on #2725 (root-anchored Cargo.toml/build.rs misses
crate-local manifests + build scripts). Cross-branch parity required to
avoid revert-on-merge when one branch lands first.

Applied (.*/)?Cargo\.(toml|lock) and (.*/)?build\.rs same as #2725
absorption commit. Added explanatory paragraph cross-referencing the
openai-pro finding.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Brian Searls <briansrls@users.noreply.github.com>
briansrls added a commit that referenced this pull request May 12, 2026
* docs(audit): R3 deferral anti-pattern audit (PROPOSAL — Director-authored)

Surfaces the broader anti-pattern class around cost-lens Miss dissolution
(operator-ratified 2026-05-11). Grep-verified ~1600+ instances of
deferral-via-wrapper-variant in v3 compiler production surface across 13
categories (Option<T>, panic!, .expect(), NotYetImplemented, DescentUnknown,
ArrowBody::Pending, _ => catch-alls, etc.).

Per operator-directive: "Miss should go away entirely; if something in
substrate defines a Miss it should fail and be investigated asap" — extended
to whole anti-pattern class. Each category dissolution path proposed.

Tagged for PM (deep-wolf-155) + Mgr ratification: scope, sequencing, PR-template
ratchet authoring authority.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* WIP: gunbc Director

* docs(audit): address openai-pro REQUEST_CHANGES — narrow Miss-class scope; reconcile DescentUnknown authority

Per openai-pro review (#2708 c#4425020297, verdict REQUEST_CHANGES):

3 valid blocking findings addressed:

1. LAYER MODEL — §3.2 DescentEvidence::DescentUnknown removal conflated
   Miss-class deferral with fail-closed lattice bottom (INVARIANTS.md:63-66).
   Reframed: dissolution requires PM-tier ratification on (a) keep 3-variant
   lattice + construction-side narrowing OR (b) authority update first +
   2-variant collapse. No worker dispatch until PM ratifies.

2. INVARIANTS + modeling-discipline — §1 row 1, §2.2 paragraph: "all 83
   Option<T> = pure deferral" overgeneralized. Per modeling-discipline.md:41-50
   + CODING.md:95-97, Option<T> is allowed when absence is meaningful.
   Reframed as triage candidates with per-site classification (error-None
   = Miss-class; legitimate-absence = compliant); explicit "don't bulk-convert."

3. CODING.md — §4 review checklist phrased as "flag for conversion" which
   conflicts with CODING.md:307-309 (Option/Result OK when meaningful).
   Reframed as "flag for justification": reviewer asks, author justifies;
   non-compliant cases convert, compliant wrappers survive.

§0 framing also clarified: Miss-class deferral ≠ all Option<T>; per-site
classification required; bulk-conversion would itself be a discipline violation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs(audit): address codex REQUEST_CHANGES — eliminate internal authority contradictions

Per codex review (#2708 c#4425182*, verdict REQUEST_CHANGES):

2 valid blocking findings addressed:

1. §1 table — rows 2-7 stated definitive violations ("should be typed
   Diagnostics", "admits non-exhaustiveness", "explicit 'I haven't decided
   this'") while §2.2 later correctly narrowed these to per-site triage.
   Two conflicting authorities within the same brief violated INVARIANTS P2
   single-authority discipline. Fix: table notes now reflect the triage
   framing (boundary tooling vs interior substrate flow per CODING.md
   307-309; closed-enum vs deliberate-default catch-alls; etc.). Rows 9-13
   tagged with explicit cross-references to §3 disposition.

2. §5 sequencing — proposed §3.2 (DescentUnknown) same-batch dispatch with
   §3.1, but §3.2 itself blocked dispatch on PM ratification of path (a)
   vs (b). Fix: §5 now explicitly marks §3.2 + §3.6 as PM-blocked authority
   gates; only path (a) ratification would enable same-batch with §3.1;
   path (b) requires INVARIANTS.md edit landing first. Authority-gate
   summary appended.

Also relabeled §2.1 "Pure deferral" → "Miss-class deferral" and removed
DescentUnknown from the auto-classified list (consistent with §3.2 gate).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs(audit): address inline blocking — reconcile §3.3 DescentResidual with Director-ratified γ-shape

Per inline review finding at docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:101
(2026-05-11T21:03:41Z):

> "BLOCKING: §3.3 reclassifies the Director-ratified terminal DescentResidual
> as Miss-shape without reconciling the current termination.dag authority,
> which violates P1 modeling faithfulness and locked-decision discipline."

Valid finding. The `DescentResidual = EvidenceUnknown(NonStrictEvidence) |
EvidenceIncomplete` shape was Director-ratified via the
illegal-states-unrepresentable rationale in
docs/briefs/r3-substrate-descent-execution-proof-worker.md (gunbc#828
issuecomment-4395060514). The audit incorrectly conflated the analyzer's
runtime-failure surface with a Miss-class design-laziness deferral.

Same pattern as the prior §3.2 DescentUnknown correction (openai-pro
REQUEST_CHANGES):

- §3.3 reframed: no direct dissolution proposed; instead, pre-dispatch
  requirement to read existing authority + produce grep-verified reason
  + PM ratification.
- §1 table row 11: tagged "authority-conflicting per Director-ratified
  γ-shape — compliant as written today."
- §2.1: removed residual from Miss-class auto-classified list; appended
  to the "NOT auto-classified" entries alongside DescentUnknown.
- §5 sequencing: §3.3 now authority-blocked (same as §3.2 + §3.6); cannot
  same-batch with §3.1 until reconciliation lands. Authority-gate footer
  updated.

Pattern: every authority-conflicting dissolution proposal must (a) start
from grep-verified read of existing authority, (b) name the specific
authority doc affected, (c) require PM ratification before dispatch.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs(audit): address inline blocking — §3.6 ArrowBody location was factually wrong

Per inline review finding at docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:120
(2026-05-11T21:03:41Z):

> "BLOCKING: ArrowBody::Pending is stored on TypeConnective::Arrow.body/
> ResolvedArrow, not Behavior::Transform.body, so §3.6 aims the redesign
> at the wrong substrate boundary under P2 facts-flow-forward."

Verified at HEAD:
- ArrowBody enum at src/v3/compiler/src/dag.rs:1092
- Used in TypeConnective::Arrow { body, .. } patterns (bootstrap.rs:288 etc.)
- All ArrowBody::Unparsed sites in bootstrap_generated.rs are inside
  TypeConnective::Arrow { body: ArrowBody::Unparsed(...), .. }

Original §3.6 claim that ArrowBody is on Behavior::Transform.body was wrong.
Actual location is declaration-tier type-connective (Declaration.connective
= TypeConnective::Arrow { body: ArrowBody::Pending }).

Fix: §3.6 reframed. The substrate-shape question is at the declaration-tier
type-connective layer, NOT Behavior::Transform. The "paper-over" cost is at
the type-connective-walking layer; Behavior walkers already see only resolved
bodies. Revised proposal: PM ratification on R3-load-bearing-ness + Substrate
Mgr canvas on partition-vs-sum-with-Pending design question, citing
M1_DESIGN.md authority + per-walker impact analysis.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs(audit): address inline blocking — LensSurfacePending is terminal, not in-progress

Per inline review finding at docs/audit/r3-deferral-anti-pattern-audit-2026-05-11.md:37
(2026-05-11T21:03:41Z):

> "BLOCKING: LensSurfacePending is a terminal ParallelismUnsupportedKind in
> the effects substrate, not an in-progress substrate state, so grouping it
> with ArrowBody::Pending needs explicit authority reconciliation before
> dispatch under P1 modeling faithfulness."

Verified at HEAD: src/v3/compiler/src/dag/effects.rs:197 places
LensSurfacePending as a variant of ParallelismUnsupportedKind, explicitly
marked 🟢 TERMINAL in code comments. It's an explicit unsupported-reason
payload for the parallelism lens, NOT a transitional in-progress state.
The "Pending" suffix is misleading.

Fix: removed LensSurfacePending from §3.6 (which only covers true pre-lowering
transitional state ArrowBody::Pending). Updated §1 table row 12 + §2.1
Miss-class list to explicitly NOT auto-classify it. Removed scope contradiction.

Pattern continues from prior corrections: every classification in the audit
needs grep-verified factual grounding. Misleading variant names ("Pending"
suffix on terminal carriers) are themselves a discipline gap.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs(audit): address cursor NON-BLOCKING table nits — rows #10/#11 misattributed conflict

Per cursor APPROVE_WITH_COMMENTS review at sha 0c07f7a (2026-05-11T21:08:35Z):

> Row 10/11 phrase 'Authority-conflicting per X' but the cited authority X is
> exactly where the standing design is *defined*. The real tension is between
> the operator's Miss-elimination directive and that existing authority text,
> not 'conflict' within or stated by those authorities themselves.

Fix: reframe rows #10/#11 to name the standing authority + locate the tension
correctly:
- Row 10 (DescentUnknown): standing authority is INVARIANTS.md fail-closed
  bottom; tension is with operator directive (not within the invariant).
- Row 11 (DescentResidual): standing authority is Director-ratified γ-shape;
  carrier is compliant; my prior audit framing was the conflict, corrected in
  §3.3.

NON-BLOCKING per reviewer but legitimate clarity improvement; reviewer's verdict
was APPROVE_WITH_COMMENTS.

* docs(audit): tighten CODING.md citations — boundary roles at :311-321, not :307-309

Per cursor APPROVE_WITH_COMMENTS finding at sha 0af402f (2026-05-11T21:24:39Z):

> The notes point boundary-tooling legitimacy at CODING.md:307-309, but those
> lines only state the narrow 'Hidden panic surface' rule (library avoids
> contract-violation panics/unwrap()). The explicit Bootstrap and
> Code-generation binaries edge roles appear under 'When impurity is
> acceptable' beginning around CODING.md:311 (table ~317-321).

Fix: split the citation so:
- CODING.md:307-309 covers the contract-violation-in-library rule (interior
  substrate-flow panics dissolve to typed Diagnostic per C-8).
- CODING.md:311-321 covers the boundary roles legitimacy (Build script /
  Code-generation binaries / Bootstrap entries in the impurity-acceptable
  table).

Updated table rows #2/#3 (lines 27-28), §2.2 prose (line 66), and §4 review
checklist (line 171). NON-BLOCKING per reviewer; landing as documentation
hygiene.

* docs(audit): add §3.8.1 concrete 10-entry NON_TEST inventory per velocity-walk

Per PM ratification (msg_45457c77 in response to Director ask msg_048fdfa6):
empirical-grounding-strengthens-the-case path. §3.8 currently treats
structural_coverage_gap audit as abstract pattern; with zesty-boar-261's
velocity-walk diagnostic (gunbc#846 c#4425420798) producing a 9 NON_TEST +
1 FRAGMENTS enumerated inventory over the 7d window pre-2026-05-11, §3.8
graduates from speculative to grounded.

Adds §3.8.1 with:
- 10-entry table: file path + LOC + adjacent-lane/dissolution-path mapping
- Total 2,171 LOC; omni_shape_b_openapi.rs identified as ~40% of class
- Audit implication: per-file promote-or-carve discipline applies
- Per-PR review state-space framing (Director conformance read flags
  absent dissolution-path mapping)
- Re-audit cadence note (this is window-relative intro composition,
  not full main §3.8 audit; per feedback_intro_rate_not_residual_share)

Citations grep-verified at HEAD eed86ff: all 9 NON_TEST files exist
with stated LOC; FRAGMENTS entry confirmed in sg0_census_test.rs:688-691.

* docs(briefs): Director scaffold-fill for Cluster M Phase 3 reflected-Dag + DimensionReport bulk-port worker briefs

Per feedback_pre_authored_brief_queue + feedback_director_mgr_energy_input
(Director energy INTO system until real workflow substrate exists).

Verification Mgr (clever-tern-670) status pass (msg_755c3f43) identified
Phase 3 dissolution-rate bottleneck as Mgr-tier brief-authoring bandwidth
on the two biggest unauthored classes:

- Reflected-Dag structural assertion family (~25-30 entries; 16 seed-named)
- Generic DimensionReport / runner-discipline family (~20-25 entries; 10 seed-named)

These ~50 entries combined are roughly half of the #84 EXPECTED_HAND_AUTHORED_TEST
partition (116 entries on origin/main eed86ff). Authoring scaffolds + Mgr
finalization + dispatch should land bulk-port PRs within 7-10 days, with
velocity-tripwire arrow (12.7:1 intros:dissolves at gunbc#846 c#4425420798)
flipping intra-week.

Authority split per Director msg_eb2372c7 to PM:
- Director: scaffold shape (this commit) — locked-design citations, substrate
  carrier references at exact lines, Phase-2 pattern site refs, hard constraints,
  STOP-and-escalate criteria, decomposition recommendations.
- Verification Mgr: finalization — complete inventory (Mgr-fill placeholders
  marked throughout), per-entry classification, pilot selection, dispatch.

Substrate citations grep-verified via Verification Mgr msg_755c3f43:
- ProgramGenerator/ProgramShape/Quantifier/QuantifiedTestClaim/SuiteClaim:
  src/v3/std/verification.dag:118-133 + :379-402 (carriers landed)
- TestSuite.claims still List<TestClaim>: verification.dag:404-407 (staged
  trigger at :394-399) — Reflected-Dag class CONSUMER-GATED on this flip
- Phase-2 pattern: t_pb_b_1_dag_runner_test.rs:257-357 (R3_GATE_87_CEMENTING_REGEN_SUITES,
  run_suite_all_pass_with_expected_claim_names)
- Receipt discipline: r3_gate_87_lens_cementing_regen_receipts_test.rs:13-24 + :122-132
- DimensionReport class NOT consumer-gated (Phase-2 pattern is the load-bearing
  predicate, not full #87 PASSING, per feedback_construction_over_ratchets)

* docs(briefs): Director scaffold-fill for R3 CI Layer 2 path-conditional gating

Per PM ratification at gunbc#828 c4425726922 + Director ratification msg_a77c7f42
(Verification Mgr routing per feedback_parallel_representation_debt coherence).

Bridge-debt with named dissolution trigger: when gate
ci_uses_provable_minimal_affected_set_selection lands, the affected-set
Introspect-lens output (canvas PR #2713) replaces the bridge's
required_paths_regex column.

Brief covers:
- §0 scope: extend PR #2718's changes job, do not parallel
- §1 mechanism: per-group skip_* boolean outputs + STEP-level if: on v3
- §2 inventory sources (slow-test-exemptions.txt + /tmp/v3-test-timings.log
  + NEW per-group required-paths mapping)
- §3 per-dimension structural target — every entry has dimension: Dimension
  field matching lens enum (parallel-representation-debt prevention)
- §4 hard constraints (8 invariants)
- §5 acceptance
- §6 decomposition (Mgr-fill recommendation: cost_lens pilot first)
- §7 STOP-and-escalate criteria
- §8 bridge-debt + dissolution path explicit

Verification Mgr (clever-tern-670) fills inventory + per-group regex +
dispatch. Director scaffold preserves coherence; Mgr finalizes per
feedback_director_mgr_energy_input.

* docs(briefs): fix Layer 2 YAML naming inconsistency (skip_cost → skip_cost_lens)

Per cursor APPROVE_WITH_COMMENTS at sha 04c5b08 (review 9701):

> The changes outputs define skip_cost, but the v3 step's if: uses
> needs.changes.outputs.skip_cost_lens. That disagrees with the same brief's
> post-dissolution sketch (skip_$group with cost_lens → skip_cost_lens, lines
> 129-134). Not a formal invariant breach by itself, but it is easy for an
> implementer to copy the wrong name and get an always-on/off step.

Fix: normalize the example YAML outputs block to match the if: lines and the
post-dissolution sketch. Naming convention: skip_<group_name> where
<group_name> matches the per-group table's group_name column verbatim
(no abbreviation). Updated all 4 example outputs:

  skip_lens   → skip_complexity_lens (was vague; tied to specific group)
  skip_emit   → skip_emit_target (matches starting template at §2)
  skip_parser → skip_parser_grammar (matches starting template)
  skip_cost   → skip_cost_lens (matches if: line + post-dissolution sketch)

Also added an inline comment documenting the naming convention so future
copy-paste from the example stays mechanically correct.

* docs(briefs): cite PM pre-staged Mgr-fill template (PR #2721) + converge pilot recommendation on Cluster B

Per PM msg_bba47649 — pre-staged Mgr-fill template landed as PR #2721
(docs/briefs/r3-ci-layer-2-pm-prestaged-mgr-fill-template.md, 220 lines).

Two scaffold updates:

1. §2 (inventory sources): replaced 'PM pre-staged skeleton to be attached
   if/when available' speculative reference with explicit cite-and-link to
   the landed template doc. Describes what the PM template provides:
   - All 78 slow-test-exemptions.txt entries grouped into 9 clusters (A-I)
   - (test_pattern, dimension, required_paths_regex) skeleton table
   - 12 [Mgr-fill] placeholders for substrate-lens / R3-V L4/L7 / R1C-E /
     free-consequences cross-target tracing

2. §6 (decomposition): converged my prior cost_lens-first pilot
   recommendation with PM's Cluster B recommendation — these are the same
   family (Lane 2 Stage 2d symbolic cost = cost-lens). Updated wording to
   reflect Cluster naming + cross-citation to PM template's Cluster B
   detail. Added [Mgr-fill] placeholder resolution wave to decomposition.

Inline sketch table retained as illustrative; defer to PM template for
actual starting inventory.

* WIP: gunbc Director

* docs(briefs): fix singular dimension → Set<Dimension> per PM caught semantic violation

PM (msg_ab551c52) surfaced codex RC on template PR #2721 (review #9707):
singular 'dimension:' field violates locked-design §2 union semantics. A
multi-dim consumer (e.g., LBP demonstration reading both complexity + cost)
declared with singular dimension: cost would be silently skipped when only
complexity changes — fail-open violation against P3.

PM fixed their template at dedcf69: dimension → dimensions (Set<Dimension>),
union-formula clarified, multi-dim rows expanded.

This brief had the same singular semantics; absorbed the fix per PM
recommendation so Verification Mgr inherits coherent dim-set semantic across
both authority chain artifacts (brief + template).

Changes:
- §0 authority bullet: contains(single) → (∩ ≠ ∅) intersection-non-empty;
  dimension: Dimension → dimensions: Set<Dimension>
- §2 table column rename + type spec + union semantics note + multi-dim
  consumer guidance
- §2 starting template citation updated to reflect post-fix template at
  dedcf69
- §3 section header renamed; substantive paragraph explaining WHY
  Set<Dimension> not Dimension (cites PM caught violation + P3 fail-open
  framing)
- §3 YAML example: jq script updated to set-intersection check
- §4.5 hard constraint: dimensions: Set<Dimension> with members from enum;
  empty set invalid
- §5 acceptance: every group has dimensions: Set<Dimension>; multi-dim
  fidelity language
- §6 pilot description: 'singleton {cost} dimensions' phrasing; class wave
  reviewer-check language updated
- §7 STOP: added multi-dim escalation path; explicit warning against
  defaulting to singleton {primary}
- §8 surviving artifact: (group_name, dimensions) — set-typed column survives
- inline illustrative table: explicit set-literal notation with multi-dim row
  example (lbp_demonstration: {complexity, cost})

Same authority chain absorbs cleanly: brief (primary) + template (data
attachment) now both set-typed; Verification Mgr inherits coherent
semantic.

* docs(briefs): fix boolean polarity inversion + add polarity invariant per openai-pro RC on template

PM (msg_9a188e22) surfaced openai-pro BLOCKING re-review (#9721) on template
PR #2721 at 93080af — caught load-bearing boolean polarity inversion:
brief stated skip_* formula as (affected ∩ row.dimensions) ≠ ∅ (skip when
intersection NON-empty) while CI consumer wires if: skip != 'true' (run
when skip is false). Net effect: literal-following Mgr/worker would wire
the gate to silently skip AFFECTED tests when intersection is non-empty.
TESTING.md + Boundary Discipline violation.

PM fixed template at 262f42d (4 sites inverted; explicit polarity table
added at §1/§3/§4/§5).

Same risk on this brief (#2719) at the post-dissolution mapping site I
authored when absorbing the prior dim-set fix at efacecd. Fix:

§0 authority bullet (line 10, the inversion site):
  before: 'skip_* flags become (∩ ≠ ∅)' [INVERTED — fail-open]
  after:  'skip_* flags become skip_<group> = (∩ = ∅)' [canonical]
  + explicit polarity check note + carrier-vs-contract explanation
  + skip-form / run-form equivalence stated

§3 substantive paragraph (after Set<Dimension> WHY): added Polarity
invariant block citing PM's caught inversion + 262f42d fix + explicit
warning that skip = (∩ ≠ ∅) is the canonical fail-open boolean-polarity
bug pattern.

§4 hard constraint #5 (dimensions field): added inline Polarity invariant
restating the canonical skip-form + run-form equivalent + 'never invert'
clause.

§5 acceptance: added 'Polarity check passes' criterion enumerating the
acceptable forms + naming the inverted form as the fail-open pattern to
reject in review. Self-test text clarified: cost-dimension groups run,
other-dimension groups skip (verifies correct polarity in actual gate).

YAML example at §3 (lines 139-149) was already polarity-correct (skip iff
intersection empty; skip=true when intersection empty) so unchanged.

Single-pass absorption per PM recommendation — both brief and template
now lockstep on polarity semantics. Verification Mgr inherits both files
without polarity mismatch in finalization.

* WIP: gunbc Director

* docs(briefs): align §0 example names with §1 naming convention (cursor exploratory)

Per cursor APPROVE exploratory observation on PR #2719 sha 13b0db9
(review #9732):

§0 line 25 illustrative outputs used abbreviated names (skip_lens /
skip_emit / skip_parser) while §1 line 53-54 establishes strict
'skip_<group_name>' naming convention matching the per-group table
verbatim. Non-policy violation per cursor but tightening avoids ambiguity
for implementer.

Fix: replace abbreviated names with full-form (skip_cost_lens /
skip_emit_target / skip_parser_grammar) + cross-reference §1 naming
convention in the same sentence. Brief now consistent across all naming
sites.

* docs(briefs): add P3 fail-closed shared-infrastructure full-run bucket per codex BLOCKING

codex REQUEST_CHANGES on PR #2719 at sha 52c6cf0 (review #9744):

Line 102 narrowed required-paths inventory to 'src/v3/*' deps only; the
illustrative table at lines 114-118 followed that shape. A PR that changes
shared test infrastructure or selection machinery outside src/v3/*
(.github/workflows/ci.yml, scripts/*, Cargo.lock, rust-toolchain.toml,
etc.) would be classified as 'unaffected' for every per-group regex and
silently skip tests whose behavior actually changed.

That's the fail-open boundary class P3 forbids + TESTING.md
behavior-driven discipline violation. Real correctness issue in the
proposed mechanism, not just an implementation detail.

Fix: add shared-infrastructure full-run fail-closed bucket as the
join-point that catches inter-group / cross-cutting changes:

§2 (inventory sources): added 'Shared-infrastructure full-run fail-closed
bucket' subsection with explicit mechanism — changes job computes
force_full_run = (any changed file matches shared-infra regex); when
true, all per-group skip_* short-circuit to false. Regex spec:
^(\.github/.*|scripts/.*|Cargo\.(toml|lock)|rust-toolchain\.toml|
\.cargo/.*|build\.rs)$. Names the structural rationale: per-group
regexes cover ONLY their own src/v3/* deps; the full-run trigger is
the join-point. Fail-closed by construction.

§4 hard constraint #9 (new): formalizes the invariant + 'never collapse
the full-run trigger into per-group regexes' (structural fail-open shape).

§5 acceptance: added 'Shared-infrastructure full-run check passes' as
separate criterion + self-test case (c) — a PR touching only
.github/workflows/ci.yml or Cargo.lock or scripts/check-test-timeout.sh
MUST run all test groups. Expanded self-test from 3 to 4 cases (a/b/c/d).

§2 added [Mgr-fill]: validate shared-infra regex against representative
recent PRs.

Single-pass absorption; brief now P3 fail-closed at the cross-cutting
boundary.

* WIP: gunbc Director

* docs(briefs): fix two openai-pro BLOCKINGs — harness-arm in shared-infra regex + cargo test substring not glob

openai-pro REQUEST_CHANGES on PR #2719 at sha 0d3b44b (review #9749 +
manual c4426188322):

BLOCKING #1 (P3 Fail-Closed): brief at line 104 names 'harness code' as
a class to catch in full-run regex but the actual regex at line 109 had
no harness/test-selection arm. Harness-only changes (e.g., to
tests/integration/common/* or sg0_census_test.rs) would miss both
full-run regex AND per-group regexes — silent skip.

BLOCKING #2 (TESTING.md fail-closed CI): test_pattern field documented
as 'cargo test arg pattern' but examples used glob-looking syntax
(cost_lens_*, *_emit_*). Cargo positional test arg is a libtest SUBSTRING
filter, not a glob. Worker following the brief literally would produce
a step that runs zero intended tests + exits successfully — silent skip
converting 'selected group tested' into 'selected group filtered out.'

Fixes:

#1 (harness arm in shared-infra regex):
- §2 mechanism: extended regex to include
  src/v3/compiler/tests/integration/common/.*,
  sg0_census_test.rs, test_runner_test.rs, t_pb_b_1_dag_runner_test.rs,
  integration.rs, integration test entry points
- §2 new paragraph naming the harness/test-selection-machinery arms
  explicitly + hard rule: harness-class files MUST never appear in a
  per-group required_paths_regex
- §4 hard constraint #9: extended invariant to include harness class
  with explicit file list
- §5 acceptance: extended self-test case (c) to include harness-class
  example (common/cached_compile.rs) + explicit verification list

#2 (cargo test substring, not glob):
- §1 YAML examples: cost_lens_* → cost_lens; *_emit_* → emit; added
  IMPORTANT comment explaining libtest substring semantics +
  forbidding glob syntax
- §2 test_pattern column spec: re-documented as 'libtest test-name
  SUBSTRING filter (NOT a glob)' with cost_lens example + glob
  forbiddance + --exact alternative
- §2 inline illustrative table: cost_lens_* → cost_lens (and others);
  added trailing comment naming substring semantics
- §4 new hard constraint #10: test_pattern is substring filter not
  glob; self-test that the value substitutes verbatim into cargo test
  and runs positive number of tests
- §5 acceptance: new 'test_pattern substring-filter check passes' criterion
  with empirical pilot-wave validation requirement

Brief now P3 fail-closed at both the boundary (shared-infra full-run
including harness) AND the selector (substring filter that workers can
copy verbatim without silent zero-test execution). Single-absorption
pass; awaiting fresh review at new HEAD.

* docs(briefs): reframe PM template citation per codex P1/P2 — template is on PR #2721, NOT yet landed on main

codex REQUEST_CHANGES on PR #2719 (review #9754):

Line 128 named docs/briefs/r3-ci-layer-2-pm-prestaged-mgr-fill-template.md
as a 'landed' starting authority, but git ls-tree origin/main returns no
blob and git ls-files returns nothing. A worker following this brief
would be sent to a non-existent source of truth — INVARIANTS P1/P2
authority-grounding violation in a dispatch document.

Verified at HEAD:
- git ls-tree origin/main -- docs/briefs/r3-ci-layer-2-pm-prestaged-mgr-fill-template.md → empty
- gh pr view 2721 → state=OPEN, mergedAt=null
- Template lives on PR #2721's branch only

Fix: reframe the template citation to acknowledge PR #2721 is open-not-landed.
- 'landed via PR #2721' → 'open as PR #2721 ... NOT yet landed on main'
- Added codex BLOCKING citation + verification receipt (git ls-tree result)
- Added explicit authority caveat: Verification Mgr finalization MUST
  coordinate merge sequencing — (a) merge #2721 first, OR (b) read from
  PR #2721 branch until it merges
- Named PM (deep-wolf-155) as PR #2721 author + cross-link for merge coordination
- Cited sha 262f42d (PR #2721 post-fix state per PM msg_125e3aa5)

Brief now accurately grounded on the actual file location (PR #2721 branch)
with merge-sequencing guidance for Mgr finalization. Authority chain
honest about in-flight vs landed state.

* WIP: gunbc Director

* docs(briefs): absorb 3 BLOCKING findings (Brian + codex) — R4 lifecycle reframe + canonical 2-step + count fix

Brian inline BLOCKING #1 + codex BLOCKING #1 (P5 dissolution-trigger
authority): brief framed dissolution as R3 close-blocking gate
'ci_uses_provable_minimal_affected_set_selection' but
docs/design-affected-set-lens.md:3 = 'R4 wishlist', :354 = 'CI integration
sketch (deferred to R4 full delivery)', :366 = 'CI integration is R4
full-delivery work'. No ROADMAP authority exists for the cited gate name
— that was Director-tier speculation.

Brian inline BLOCKING #2 + codex BLOCKING #2 (Facts Flow Forward / surviving
schema): §3 post-dissolution sketch only encoded dimension intersection,
silently dropping NodeRef intersection. Canonical 2-step per design §5:359
requires BOTH (TestClaim.refs ∩ affected_nodes) ≠ ∅ AND (TestClaim.dims ∩
changed.dims) ≠ ∅. Reducing surviving schema to (group_name, dimensions)
too early.

codex non-blocking: slow-test-exemptions.txt count cited as 78 (PM
template value); actual is 80 at 2026-05-12T00:50Z (verified locally:
grep -v '^#' ... | grep -v '^$' | wc -l = 80).

Fixes (single absorption pass):

§0 'Bridge-debt → dissolution lifecycle' bullet:
- Reframed from 'R3 close-blocking gate' to 'R4-bounded dissolution
  lifecycle (NOT R3 close)' with explicit citation of design doc :3 + :354
  + :366. Names R4.B as R4 owner. Removes the speculative gate name.
  Names Brian's BLOCKING #1 absorption.

§0 NEW 'Post-dissolution selection semantics (canonical 2-step join)'
bullet: explicit NodeRef + dimension joins per design :359; run formula;
skip formula; bridge coarseness acknowledgment (path-regex over-approximates
canonical lens; fail-closed-safe but coarser). Names Brian's BLOCKING #2
absorption.

§0 polarity check bullet: updated skip-form to reflect 2-step (NodeRef-empty
OR dim-empty ⇒ unaffected ⇒ skip).

§2 inventory source (a): count 78 → 80 at 3 sites (replace_all), with
explanation that count grows over time + Mgr re-runs grep at finalization
rather than relying on stale citations.

§2 table column spec: added 'testclaim_references' as 5th column. Cited
Brian's BLOCKING #2; explains bridge-tier proxy vs post-dissolution proxy.

§2 [Mgr-fill]: extended to require testclaim_references computation per
canonical 2-step.

§3 YAML post-dissolution sketch: rewrote classify step to compose BOTH
NodeRef AND dimension intersections via jq + cite Brian's BLOCKING #2
absorption inline. Header comment names R4.B authority and acknowledges
no current ROADMAP gate ID.

§4 #4 PR-body bridge-debt template: reworded from 'R3 close-blocking gate'
to 'R4.B Introspect-lens saturation lane CI integration delivery; NOT R3
close-blocking.'

§8 surviving artifact: corrected from (group_name, dimensions) to
(group_name, dimensions, testclaim_references) per canonical; cited
Brian's BLOCKING #2.

Removed all references to 'ci_uses_provable_minimal_affected_set_selection'
as a current ROADMAP gate name; replaced with R4.B owning-lane references
+ explicit acknowledgment of authority gap.

Brief now P5-honest: dissolution trigger is checkable (R4.B owning lane)
even if no concrete gate ID yet; surviving schema preserves both lens
join inputs per canonical algorithm.

* docs(briefs): reconcile §3 substantive + §7 STOP with §0/§8 — surviving schema is 3-column (cursor internal-consistency catch)

cursor REQUEST_CHANGES on PR #2719 sha 540113f (review #9767):

Two internal contradictions surfaced from my partial absorption of Brian's
BLOCKING #2:

(a) §3 substantive paragraph still said '(group_name, dimensions) mapping
survives the dissolution — only required_paths_regex column gets retired'
contradicting §0 + §8 which were updated to 3-column (group_name,
dimensions, testclaim_references).

(b) §7 STOP bullet referenced 'Layer 2 dissolution shape doesn't match
(group_name, dimensions) schema' — 2-column framing, same contradiction.

Fix:

§3 substantive paragraph (around the parallel-representation-debt rationale):
- 2-column → 3-column framing
- both dimensions AND testclaim_references must be authored
- cite design §:359 canonical 2-step join
- cite cursor internal-consistency catch alongside Brian's BLOCKING #2

§7 STOP escalation bullet:
- (group_name, dimensions) → (group_name, dimensions, testclaim_references)
  + cite canonical 2-step join

Verified via grep: all remaining
references are within meta-statements explicitly documenting the removal
(line 10 + line 268); no live references remain. All
appearances are either in updated 3-column contexts or in meta-statements
referencing the absorption (line 15 catch citation).

Brief now internally coherent across §0, §3, §7, §8 on:
- dissolution trigger (R4.B owning lane, NOT removed-gate-name)
- surviving schema (3 columns including testclaim_references)
- canonical 2-step join semantics

* docs(briefs): fix stale 78 inventory references at §2 lines 114 + 141 per openai-pro BLOCKING

openai-pro REQUEST_CHANGES on PR #2719 sha 8ae7938 (review #9779):

Brief had stale '78 active >2s entries' at line 114 + 'All 78 ... entries'
at line 141, despite §0 line 19 + §2 line 157 stating live count is 80
and Mgr should re-run count at finalization. A worker following §2
literally could build the gating table from stale 78-entry basis,
omitting 2 slow-test entries — fail-open shape against the brief's own
P3 fail-closed contract (under-inventory = exemption falls in neither
per-group regex nor full-run bucket = silently skipped).

Fix:

§2 inventory source (a) (line 114): replaced 'start with the 78 active
>2s entries' with 'start with the current live count of active >2s
entries (Mgr MUST re-run grep ... | wc -l at finalization; 80 at
2026-05-12T00:50Z but count grows; do NOT cite the stale 78 from PM
template PR #2721 or any earlier reference)'. Added 'fail-closed
completeness invariant' inline: every active exemption MUST appear in
either a per-group required_paths_regex OR the harness/shared-infra
full-run bucket; no exemption left unclassified.

§2 PM template description (line 141): 'All 78 entries' → 'PM-grouped
entries (PM template snapshot was 78 at template authoring time; live
count grows — Mgr re-verifies via wc -l at finalization, NOT this
stale historical reference)'. Added note that the 9-cluster taxonomy
survives count growth; Mgr maps new entries to existing clusters or
escalates if a new cluster surface emerges.

Brief is now internally consistent on inventory-count freshness:
- §0 line 19: live 80 with verification command
- §2 line 114: re-run command at finalization; explicit do-not-cite-78 instruction
- §2 line 141: PM template snapshot historical; live count grows
- §2 line 157 (Mgr-fill): re-run grep, don't trust stale citations

12th distinct review-class catch this polish cycle: inventory-citation
freshness as fail-closed completeness invariant.

* docs(briefs): §5 acceptance requires testclaim_references explicitly per codex BLOCKING #9780

codex REQUEST_CHANGES on PR #2719 sha 8ae7938 (review #9780):

Finding #1 (stale 78 at lines 114 + 141) already fixed at prior commit
487d175; codex finding overlaps with openai-pro #9779 absorbed before.

Finding #2 (new): §5 acceptance at line 228 only required dimensions:
Set<Dimension> on each group entry, NOT testclaim_references: Set<NodeRef>,
even though the brief makes that column load-bearing at:
- §0 line 104 (post-dissolution selection canonical 2-step)
- §3 line 178 (substantive paragraph: 3-column surviving schema)
- §8 line 269 (surviving artifact 3-column)

A Mgr reading §5 acceptance literally could call PR-set 'done' with
dimensions-only column population — that's the dimensions-only closeout
codex flags as facts-flow-forward violation.

Fix: §5 acceptance adds new explicit criterion:
'Every group entry has testclaim_references: Set<NodeRef> field' with
explicit citation chain (design §:359 + Brian BLOCKING #2 + codex
BLOCKING #9780). Includes bridge-tier-proxy vs post-dissolution-proxy
note. Includes 'Dimensions-only acceptance closeout is rejected: P2
facts-flow-forward requires both lens-join inputs.'

§5 acceptance now coherent with §0/§3/§8 on the 3-column surviving
schema; no path to 'done' that skips testclaim_references.

13th distinct review-class catch this polish cycle:
acceptance-vs-substantive-text divergence on load-bearing fields.

* docs(briefs): Director scaffold for cold-v3 rebuild coordinator (Phase 3-pattern; per-cut child workers)

Per PM greenlight msg_07f73de0 + Brian operator greenlight at gunbc#846
reply (~01:25Z 2026-05-12). Pre-authored scaffold per
feedback_pre_authored_brief_queue + feedback_director_mgr_energy_input;
activation triggers on empirical post-#2723 cold-v3 wall-clock measurement.

Scope: rebuild 20 hot-fix-2026-05-12-tagged cut tests under
OnceLock/cached_compile/shared-fixture amortization. Each rebuild PR:
- Removes #[ignore] attribute
- Retires slow-test-exemptions.txt row
- Decrements TEST_TIMEOUT_MAX_EXEMPTIONS in lockstep
- Verifies <2s wall on cold ubuntu-latest

Brief covers:
- §0 scope: full 20-test inventory grouped into 9 clusters (A-I) by
  lane + amortization affinity
- §1 mechanism: 4-step per-cut worker pattern (baseline, refactor,
  verify, re-enable + retire-exemption)
- §2 6 hard constraints (preserve semantics, ratchet-down per PR,
  amortization-mechanism-only, no new hand-Rust, per-cluster fidelity,
  re-enable-with-ratchet-down enforcement)
- §3 acceptance: per-PR + final cold-v3 ≤10min + ratchet floor ≤80
- §4 decomposition: pilot (Cluster A) → high-impact (Cluster H TC1
  140s) → parallel rollout → ratchet sweep
- §5 STOP-and-escalate criteria
- §6 cross-coordinator notes:
  - T-LAS Mgr seat gap (Cluster F) — Director surfaces ownership
  - Phase 3 #84 cluster overlap — Verification Mgr decides Layer 2
    rebuild PR vs Cluster M Phase 3 PR routing
  - Layer 2 brief #2719 INDEPENDENT — rebuild is structural regardless

Activation decision branch:
- post-#2723 cold-v3 >20min → second cut session
- 10-20min → rebuild alongside possible second-cut
- ≤10min → rebuild can de-prioritize

Per-cluster routing:
- A+I → PB Mgr (Lane 3 Stage 3c)
- B → Substrate Mgr (M1_5_DESIGN)
- C/D/E/G → Verification Mgr (this brief's coordinator)
- F (T-LAS) → Director-routed operator-tier (no standing Mgr seat)
- H (TC1 substrate-adjacent) → Substrate Mgr or dedicated session

Authority chain documented in footer.

* docs(briefs): absorb Brian + codex 3-finding BLOCKING wave (P5 receipts, dynamic ratchet floor, polarity-residual)

Brian inline BLOCKINGs + codex scheduled review BLOCKING #9XXX at PR #2725
sha 698ba61 (4 findings total; codex overlaps with all 3 Brian findings):

(1) #2725 line 70 (constraint #4) — shared-fixture helper carve-out
permits expanded hand-Rust under src/v3/compiler/tests without INVARIANTS
P5 receipt. Brian: P5 receipt required for new/expanded src/v3 Rust.
Codex: require P5 receipt OR state SG-0-neutral without helper expansion.

(2) #2725 line 83 (§3 acceptance final bullet) — hard-codes ratchet floor
≤80 (pre-hot-fix baseline), preserving stale debt. Brian: current main has
84 active exemptions with 20 hot-fix rows; post-rebuild floor should be
recomputed, not preserved at 80. Codex: derive final floor from live
non-hot-fix exemptions at Mgr finalization; delete hard-coded ≤80.

(3) #2719 line 217 (§4 hard constraint #5 Polarity invariant sub-bullet) —
restates skip formula as dimension-only, contradicting two-step
NodeRef+dimension contract. Brian: silently drops testclaim_references in
violation of P2 Facts Flow Forward. Codex: rewrite every formula to skip
when refs∩nodes empty OR dims∩changed_dims empty. (Partial-absorption-
residual: cursor's catch on #2725 review #9799 was fixed at §3 substantive
paragraph at commit 403833e but didn't propagate to §4 constraint #5
sub-bullet at line 217 — different polarity-mentioning site within the
same brief.)

Fixes (single-pass per discipline; same pattern as prior 14-catch cycle):

#2725 constraint #4 (line 70) rewrite:
- 'No new hand-Rust beyond shared-fixture helpers' (carve-out) →
  'Shared-fixture helpers require P5 receipt + SG-0-neutrality'
- Per-PR P5 receipt explicit: (a) helper LOC delta cited, (b) dissolution
  path named (helper retires when cluster's pattern lands in .dag
  TestClaim authority), (c) SG-0 census-delta computation showing net
  ≤ 0
- SG-0-neutrality enforcement: helpers may add lines but net delta ≤ 0
  (helper additions offset by exemption-row retirements + ratchet-down).
  Net positive = escalate (substrate-shape signal)

#2725 §3 acceptance final bullet (line 83) rewrite:
- 'ratchet floor returned to ≤80 (pre-hot-fix baseline)' → 'ratchet floor
  recomputed DYNAMICALLY from live state at activation'
- Concrete computation: starts at current main HEAD's
  TEST_TIMEOUT_MAX_EXEMPTIONS (84 at dfbc010; verify via grep at Mgr
  finalization); each rebuild PR decrements by N (cuts rebuilt that PR);
  post-all-20-rebuild target = (value at activation) - 20 (e.g., 64 at
  current state)
- Removed '≤80 pre-hot-fix baseline' framing
- Explicit acknowledgment: 80 was ITSELF stale debt; 16 non-hot-fix
  exemptions have separate paydown owners; rebuild does NOT freeze goal
  at 80; long-run target per feedback_pb_zero_is_r3_close_target is 0

#2719 §4 constraint #5 (line 217) rewrite:
- Header changed: '...dimensions: Set<Dimension> field on every group
  entry' → '...dimensions: Set<Dimension> + testclaim_references:
  Set<NodeRef> fields on every group entry'
- Polarity invariant rewritten to canonical 2-step join (BOTH NodeRef AND
  dimension intersections; skip = either empty)
- Two fail-open bug patterns explicitly named: (a) inversion (b)
  dimension-only collapse
- Bridge-tier proxy framing preserved (path-regex over-approximates
  canonical; fail-closed-safe coarseness)

15th + 16th + 17th distinct review-class catches this polish cycle (16
on #2719 brief; #15 on rebuild scaffold #2725):
- #15 (BLOCKING #1): shared-fixture helper P5 receipt obligation
- #16 (BLOCKING #2): dynamic ratchet floor recomputation
- #17 (BLOCKING #3): polarity-residual at second site (partial-absorption-
  residual within partial-absorption-fix; pattern: 'when canonical
  algorithm gets corrected, ENUMERATE all polarity-mentioning sites'
  is the discipline)

* docs(briefs): apply §3 polarity 2-step rewrite on rebuild-scaffold branch (cursor #9815 catch + #2719-branch parity)

cursor APPROVE_WITH_COMMENTS on #2725 review #9815 caught that line 208
(§3 substantive Polarity invariant paragraph) on rebuild-scaffold branch's
copy of #2719 brief was still dimensions-only — even though line 217 (§4
constraint #5 sub-bullet) was updated to canonical 2-step in commit
900d5a3.

Root cause: my prior #2719 polarity fix at commit 403833e was on #2719's
own branch (director/r3-ci-layer-2-path-conditional-gating-scaffold) and
never propagated to main → never reached rebuild-scaffold branch's copy
of the #2719 brief brought in via main-merge.

Applied same §3 polarity rewrite on rebuild-scaffold branch for parity
with #2719 branch's content:
- run = (refs ∩ nodes) ≠ ∅ AND (dims ∩ changed_dims) ≠ ∅
- skip = ¬run = either intersection ∅
- Explicit naming of TWO fail-open patterns: (a) inversion (b)
  dimension-only collapse
- Bridge-tier proxy framing preserved

Cross-branch state now consistent:
- #2719 branch (director/r3-ci-layer-2-path-conditional-gating-scaffold)
  has canonical 2-step at lines 208 + 229 (via 403833e)
- #2725 branch (director/r3-ci-cold-v3-rebuild-coordinator-scaffold) has
  canonical 2-step at lines 208 + 229 (via 900d5a3 + this commit)

Both branches' copies of #2719 brief now structurally identical on
polarity semantics. Will fully reconcile at merge time if both PRs land
separately.

18th distinct review-class catch this polish cycle:
cross-branch-divergence-on-shared-doc — when two Director-scaffold PRs
both touch a shared brief (one via direct edit, one via main-merge),
fixes on one branch must explicitly propagate to the other branch OR
the shared content reconciles at merge time. Pattern: 'shared doc in
two PRs requires explicit cross-branch parity discipline'.

* docs(briefs): fix Phase 4 ratchet sweep residual ≤80 → dynamic (value − 20) per codex BLOCKING #9827

codex BLOCKING on #2725 review #9827 caught residual at line 92 (§4 Phase 4
ratchet sweep description) — still said 'back to ≤80' despite §3 acceptance
bullet's stale-baseline correction (which removed the ≤80 framing in favor
of dynamic '(value at activation) - 20').

Same partial-absorption-residual class as cursor's earlier catches:
fixing the §3 acceptance bullet correction didn't propagate to §4 Phase 4
description; sites referring to the same stale value need parallel updates.

Fix: Phase 4 description now uses dynamic '(value at activation) − 20'
(e.g., 64 at current state of 84) with explicit acknowledgment that 80
was itself stale debt + cross-link to feedback_pb_zero_is_r3_close_target
naming the long-run target = 0 exemptions.

21st distinct review-class catch this polish cycle:
phase-description-vs-acceptance-bullet-residual — when an acceptance
bullet gets a corrected target, the phase descriptions that motivate
phases toward that target need parallel updates. Pattern: 'when target
gets corrected, ENUMERATE all phase descriptions / decomposition / STOP
criteria that motivate work toward that target.'

* fix(#2725): cursor BLOCKING #9834 absorbed

Two findings addressed:

1. Line 76 copy-paste slip: "The Layer 2 PR-set is acceptable when:"
   in a cold-v3 rebuild brief. Changed to "The cold-v3 rebuild PR-set
   is acceptable when:" to match brief's actual scope. INVARIANTS.md
   P1 modeling faithfulness for dispatch authority.

2. Line 70 prose tightening: SG-0-neutrality framing previously
   conflated SG-0 census mechanism with exemption-list mechanism
   ("helper additions offset by exemption-row retirements +
   ratchet-down"). These are DIFFERENT bookkeeping: SG-0 counts
   hand-Rust files/lines per sg0_census_test.rs; exemption-row
   retirement only reduces slow-test-exemptions.txt count. Corrected
   prose: helper-LOC additions in common/* MUST be offset by EQUAL-
   or-greater LOC reductions in per-test files consuming the helper
   (shared fixture extraction → per-test setup boilerplate dropped).
   Exemption-row retirement + ratchet-down are independent
   obligations per constraint #2 and do NOT count toward SG-0
   census-delta.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* WIP: gunbc Director

* fix(#2725): openai-pro REQUEST_CHANGES — 2 BLOCKING findings absorbed

Finding 1 (P3 Fail-Closed): Layer 2 shared-infra regex anchored Cargo.toml/
Cargo.lock/build.rs to workspace-root only. Crate-local manifests (e.g.,
src/v3/compiler/build.rs per CODING.md:319) would NOT match, silently
skipping tests for crate-local manifest/build-script changes — fail-open
boundary class P3 forbids. Fixed by changing the anchored alternates to
use (.*/)?Cargo\.(toml|lock) and (.*/)?build\.rs — non-capturing optional
path prefix matches both root-level AND any-depth crate-local files.

Finding 2 (ratchet/test discipline): Cold-rebuild brief had execution-path
contradiction. §2#2 + §3 require same-PR lockstep ratchet-down. But §4
Phase 4 description said "drops TEST_TIMEOUT_MAX_EXEMPTIONS to (activation)
- 20", creating a fail-open path where workers could defer per-PR ratchet-
down to Phase 4 cleanup. Reframed Phase 4 as VERIFICATION + budget-tighten
(NOT decrement). Phase 4 verifies cumulative ratchet matches target +
drops cold-CI --timeout. If verification finds mismatch, escalate per §5
(per-PR discipline violation), do NOT silently patch.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant