Skip to content
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
163ec83
test(r3): strict-fire gate #83 — zero PROXY/STUB on T-LBP register slice
briansrls May 13, 2026
f7f260d
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
482dc22
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
36a0f8d
docs(test): correct regen↔register exemplar in lens_register_correspo…
briansrls May 13, 2026
259e55a
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
d6f1488
docs(r3): align Gap 4 gate #83 with F-γ.2 canonical close predicate
briansrls May 13, 2026
77bb344
test(r3): align gate #83 failure text with narrow ratchet vs F-γ.2
briansrls May 13, 2026
7b09881
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
cf7f269
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
bba1bbb
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
722f64d
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
8ade49e
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
d2819e1
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
6b2912d
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
c475ff8
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
dcdb478
test(r3): document gate #83 handoff after duplicate test removal
briansrls May 13, 2026
b5b861b
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
53f6cd6
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
1063d81
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 13, 2026
6fc7464
test(r3): plain-text gate #83 assert message (composer exploratory)
briansrls May 14, 2026
ac68bf2
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 14, 2026
2c824fc
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 14, 2026
38d6583
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 14, 2026
4af5706
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 14, 2026
0f7c8fb
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 14, 2026
9dc2ef6
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 14, 2026
ed24203
Merge remote-tracking branch 'origin/main' into session/valiant-carp-760
briansrls May 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/r3-actual-close-plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,14 @@ The closure-ledger row currently stale @ #1191-#1231 era; close also requires th
- #80 cost = **PASSING** ✓
- #81 parallelism = **R3-LOAD-BEARING**, F-α sub-phase pending (Stage 2e walker port from `workflow_parallelism.rs` → `.dag`)
- #82 effect_enum = **R3-LOAD-BEARING**, F-β.1 canvas + F-β.2 atomic-migration pending
- #83 lens_capability_register_zero_proxy_zero_stub = **DECLARED** (proxies/stubs still exist for 3 of 4 lenses)
- #83 `lens_capability_register_zero_proxy_zero_stub` (**§1.8 program gate / Cluster F sub-phase F-γ.2**) = **DECLARED** — canonical receipt is the **post-all-four-BEHAVIORALLY-COMPLETE** register cascade per `docs/audit/r3-cluster-f-sequencing-plan-2026-05-09.md` §1.4.2 and `docs/r3-structure.md` §Acceptance (not merely "no PROXY/STUB" while two rows stay **PARTIAL**). `parallelism.dag` and `effect_enumeration.dag` remain **PARTIAL** in `docs/v3-lens-capability-register.md` and `std.verification` `lens_capability_register_rows` until **#81** / **#82** land; **§1.8 #83 PASSING** stays **downstream of F-γ.2** (INVARIANTS P2 — one close predicate; no dilution).
- **Narrow CI ratchet (green at HEAD, necessary not sufficient):** `lens_register_correspondence_test::r3_gate_83_lens_capability_register_has_zero_proxy_zero_stub` enforces **zero** `BEHAVIORALLY PROXY` / **zero** `BEHAVIORALLY STUB` on the four T-LBP basenames in the markdown capability table — does **not** replace the F-γ.2 §1.8 gate.

**What's missing**:
- Complexity: `ComplexitySummary` TestClaim literals (bridge-Rust to native-.dag migration)
- Parallelism: Cluster F sub-phase F-α (Stage 2e walker port)
- Effect: Cluster F sub-phase F-β.1 (canvas) + F-β.2 (atomic-migration impl)
- Register: zero-proxy-zero-stub for all 4 lenses post-sub-phase landings
- Register: **PARTIAL → COMPLETE** for parallelism + effect_enum via **#81** / **#82**, then **F-γ.2** register sweep for full **#83** closure (PROXY/STUB-zero sub-check above already green)

**Plan to cash**:
- **Owner**: warm-wolf-698 (Substrate Mgr) for canvases + worker dispatch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
//!
//! Directionality is the one written into the register's Discipline
//! section — regen → register is required; extra register rows are
//! allowed. `idempotency.dag` and `parallelism.dag` are the current
//! example: both have register rows (as `BEHAVIORALLY STUB` lenses
//! whose authority lives in Rust) but no `regen.dag` entry, because
//! they are not regenerated into a `lens_*_generated.rs`. That is
//! exactly the posture the register documents; a bidirectional
//! allowed. `idempotency.dag` is a current example: it has a register row
//! but no matching `LensRegistryEntry` in `regen.dag` (it is not wired
//! through that registry's `regen_lens` / `lens_*_generated.rs` path).
//! That is exactly the posture the register documents; a bidirectional
//! ratchet would misread those rows as drift.

use std::collections::BTreeSet;
Expand Down Expand Up @@ -296,8 +295,12 @@ fn r3_gate_83_lens_capability_register_scope_is_explicit() {
);
}

// Full §1.8 gate #83 / Cluster F F-γ.2 closure is tracked in `docs/r3-actual-close-plan.md`
// Gap 4 (post-all-four-BEHAVIORALLY-COMPLETE). The test below is only the markdown
// PROXY/STUB slice; `r3_gate_83_current_register_blockers_are_explicit` was removed as
// a duplicate of the same predicate — keep Gap 4 + this assert message in sync when
// `parallelism.dag` / `effect_enumeration.dag` move PARTIAL → COMPLETE.
#[test]
#[ignore = "strict-fire gate #83; unignore when cost/parallelism sibling slices remove PROXY/STUB"]
fn r3_gate_83_lens_capability_register_has_zero_proxy_zero_stub() {
let rows = capability_table_rows();
let blockers: Vec<_> = R3_LENS_BEHAVIORAL_PARITY_SCOPE
Expand All @@ -320,38 +323,11 @@ fn r3_gate_83_lens_capability_register_has_zero_proxy_zero_stub() {
.collect();
assert!(
blockers.is_empty(),
"R3 gate #83 requires ZERO PROXY / ZERO STUB in the capability register for \
the four in-R3 T-Lens-Behavioral-Parity lenses. Remaining blocker(s): {blockers:?}."
);
}

#[test]
fn r3_gate_83_current_register_blockers_are_explicit() {
let rows = capability_table_rows();
let blockers: Vec<_> = R3_LENS_BEHAVIORAL_PARITY_SCOPE
.iter()
.copied()
.filter_map(|basename| {
let behavioral = rows
.iter()
.find(|(row_basename, _)| row_basename == basename)
.map(|(_, behavioral)| behavioral.as_str())
.unwrap_or("<missing>");
let normalized = behavioral
.trim()
.trim_matches('*')
.trim()
.to_ascii_uppercase();
(normalized == "PROXY" || normalized == "STUB")
.then(|| format!("{basename}: {behavioral}"))
})
.collect();
assert_eq!(
blockers,
Vec::<String>::new(),
"Gate #83 is not ready to strict-fire until sibling lens-completion slices \
remove all PROXY/STUB statuses. If this changed, update the strict-fire \
posture in `r3_gate_83_lens_capability_register_has_zero_proxy_zero_stub`."
"R3 gate #83 — narrow markdown register ratchet (`docs/v3-lens-capability-register.md` \
`## Capability table`): the four T-Lens-Behavioral-Parity basenames must not read \
BEHAVIORALLY PROXY or BEHAVIORALLY STUB. Necessary for gate #83, not the full §1.8 / \
Cluster F F-γ.2 close (that stays downstream of all-four-BEHAVIORALLY-COMPLETE per \
`docs/r3-actual-close-plan.md` Gap 4). Remaining PROXY/STUB blocker(s): {blockers:?}."
);
}

Expand Down
10 changes: 6 additions & 4 deletions src/v3/lenses/emission_provenance.dag
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
//
// Status: STRUCTURALLY TERMINAL (fns); LENS-INSTANCE FIXTURE-BOUND;
// BEHAVIORALLY DEFERRED.
// (Same staging shape as `lenses.cost` STRUCTURALLY TERMINAL /
// BEHAVIORALLY PROXY and `lenses.dag_shape` producer-only.)
// (Same *structural lens first, behavioral wiring later* staging discipline
// as historical `lenses.cost` work — `lenses.cost` is now BEHAVIORALLY COMPLETE
// for its abstract scope — and `lenses.dag_shape` producer-only patterns.)
//
// **What lives here vs. the test fixture:** this file authors the five
// structural fns the `Lens<C>` framework requires (`read_provenance`,
Expand All @@ -30,7 +31,8 @@
// for each emitted line — instrumentation hooks in
// `src/v3/compiler/src/emit/rust_target.rs`'s `render_named_template`
// call sites. That code-side work is a separate downstream slice
// (precedent: `lenses.cost` BEHAVIORALLY PROXY). This file authors
// (precedent: `lenses.cost` staged structural APIs before behavioral
// completion). This file authors
// the structural lens shape so the carrier + lens declaration are
// landed and consumable; the `read` body is a fail-closed `Empty`
// stub until producer wiring lands.
Expand Down Expand Up @@ -58,7 +60,7 @@ fn _seed_list_provenance_empty() -> List<EmissionProvenance> = Empty

// Per-Behavior provenance read.
//
// 🟡 STUB. Returns `Inhabits(Empty)` — every Behavior contributes an
// 🟡 Placeholder read. Returns `Inhabits(Empty)` — every Behavior contributes an
// empty provenance list. Producer wiring (instrumenting
// `render_named_template` call sites in `rust_target.rs` to record
// rule-fired-at-line per Behavior) is a separate downstream slice.
Expand Down
Loading