Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
f0363cd
WIP: R3 gate #87: lens_cementing_test_discipline_complete
briansrls May 10, 2026
7e2eba6
WIP: R3 gate #87: lens_cementing_test_discipline_complete
briansrls May 10, 2026
0d3b5b8
docs(r3): promote gate #87 to CONSUMER_LANDED + PASSING
briansrls May 10, 2026
23e4e70
test(v3): make gate #87 cost_target_realization receipt behavior-driven
briansrls May 10, 2026
58bd298
WIP: R3 gate #87: lens_cementing_test_discipline_complete
briansrls May 10, 2026
7214c67
fix(v3): INVARIANTS P5(b) in-source receipt for gate #87 integration
briansrls May 10, 2026
c00d71c
docs(r3): refresh Cluster M risk row after #86 lands on main
briansrls May 10, 2026
ec73700
Merge remote-tracking branch 'origin/main' into session/sleek-swift-736
briansrls May 10, 2026
0fdcdfe
docs(v3): make gate #87 P5(b) module receipts merge-diff honest
briansrls May 10, 2026
58cd1c0
Merge remote-tracking branch 'origin/main' into session/sleek-swift-736
briansrls May 10, 2026
9f6354c
Merge remote-tracking branch 'origin/main' into session/sleek-swift-736
briansrls May 10, 2026
45a4346
Merge remote-tracking branch 'origin/main' into session/sleek-swift-736
briansrls May 10, 2026
b41babd
WIP: R3 gate #87: lens_cementing_test_discipline_complete
briansrls May 10, 2026
7f90952
WIP: R3 gate #87: lens_cementing_test_discipline_complete
briansrls May 10, 2026
df25da5
ci: SG-0 PR-body append for #2639 (gate #87 census +1)
briansrls May 10, 2026
fe2b71f
Merge remote-tracking branch 'origin/main' into session/sleek-swift-736
briansrls May 10, 2026
957392c
WIP: R3 gate #87: lens_cementing_test_discipline_complete
briansrls May 10, 2026
239f223
WIP: R3 gate #87: lens_cementing_test_discipline_complete
briansrls May 10, 2026
ebc6eab
chore: sync slow-test ratchet comment with default 47
briansrls May 10, 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
6 changes: 3 additions & 3 deletions docs/r3-program-plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ This principle is NOT a separate lane; it's a per-lane gate-shape requirement ap
| 84 | `every_rust_test_ports_to_dag_or_generated` | state-check | T-Tests-As-Data-Completeness | DECLARED (added to §"Acceptance" 2026-05-06) | thesis facet 3; every Rust test ports |
| 85 | `forall_exists_quantifier_substrate_landed` | substrate-shape | T-Tests-As-Data-Completeness | DECLARED (added to §"Acceptance" 2026-05-06) | ForAll / Exists quantifier substrate |
| 86 | `program_generator_carrier_landed` | substrate-shape | T-Tests-As-Data-Completeness | **CONSUMER_LANDED + PASSING** — `ProgramGenerator` + `ProgramShape` carriers landed in `src/v3/std/verification.dag`; generated bootstrap snapshots refreshed by `regen_bootstrap` | ProgramGenerator substrate carrier; follow-on quantified-claim consumer wiring remains under #85/#84 |
| 87 | `lens_cementing_test_discipline_complete` | state-check | T-Tests-As-Data-Completeness | DECLARED (added to §"Acceptance" 2026-05-06) | every `.dag` lens has cementing test against frozen v2-oracle |
| 87 | `lens_cementing_test_discipline_complete` | state-check | T-Tests-As-Data-Completeness | **CONSUMER_LANDED** (PR #2639 — per-`regen.dag` harness inventory + `t_pb_b_1_dag_runner_test::r3_gate_87_cementing_regen_lens_suites_pass_through_runner`; Lane-E merge-sort `DifferentialEquals` + `SymbolicCostExprEquals` smoke; `Compiles` placeholders + `r3_gate_87_lens_cementing_regen_receipts_test.rs` Rust receipts where strict modules cannot freeze lens carriers) | **§Acceptance (canonical):** every `.dag` lens has cementing test **against frozen v2-oracle on same source** (`r3-structure.md` §Acceptance). **Ledger:** **not PASSING** while eight regen harnesses remain `Compiles`-only placeholders; **PASSING** waits full per-lens frozen-oracle / `LensOutputEquals` parity per that acceptance (§1.7 slice-vs-corpus rule). |
| 88 | `lens_application_carrier_landed` | substrate-shape | T-Lens-Application-Surface | CONSUMER_LANDED (Slice A receipt PR #2145) | EnforcedApplication + IntrospectApplication carriers in `src/v3/std/lens_application.dag` |
| 89 | `section_ref_substrate_landed` | substrate-shape | T-Lens-Application-Surface | CONSUMER_LANDED (Slice A receipt PR #2145) | SectionRef disjoint sum (DeclarationScope / NodeScope) in `src/v3/std/lens_application.dag` |
| 90 | `lens_enforcement_carrier_landed` | substrate-shape | T-Lens-Application-Surface | CONSUMER_LANDED (Slice A receipt PR #2145) | parametric `LensEnforcement<Output, Budget>` + `EnforceableLens<Output, Budget>` carriers in `src/v3/std/lens_application.dag`; per-lens data instances co-located with each lens land in Slice B |
Expand Down Expand Up @@ -430,7 +430,7 @@ Each retires per its natural-owner program prerequisites. Verification Mgr's `br
| T-Free-Consequences-Demonstration | YELLOW | `r3-v-free-consequences-worker`; cycle PR-merge evidence (gate-promotion separate): PR #2495 (`auto_parallelism_independent_binds_emit_parallel` work) — partial evidence toward §1.8 #43 promotion. Per §1.8 canonical status: **#43 DECLARED** (PR #2495 merged but gate not yet promoted). T-Free's canonical demo-gate range is #43-#52 per `r3-structure.md` §"Lane structure"; upstream-lane PR-merge evidence (NOT credited to T-Free; tracked in their own rows per §1.8): #10/#33/#37/#40/#72 cycle merges all show similar PR-merged-not-yet-promoted patterns in their canonical lanes | R2-Evaluator + T-CostLens-Composition (advancing); residual demo gates #44-#52 DECLARED per §1.8 | post-deps; PR-merge evidence accruing for #43 awaiting status drift promotion |
| T-E-P-Producer-Broadening | YELLOW | **PR #2528 [codex] Mark E-P producer coverage gate landed MERGED 2026-05-10**; foundational substrate work in flight; descent_evidence completeness driving cluster F | (foundational; in flight; coordinates with T-CostLens-Composition + T-Lens-Application-Surface) | weeks |
| T-Lens-Behavioral-Parity | YELLOW | **snappy-raven-508 active on gate #73 lens behavioral parity demonstration** PR #2525 (was 1 failing earlier this cycle, now 4 passing); **crisp-bee-655 active on gate #78 e_p_sub_value_relation_per_call_landed** PR #2534 (1 pending) | T-E-P-Producer-Broadening (substrate readiness; advancing) | post-T-E-P; #73 + #78 in flight |
| T-Tests-As-Data-Completeness | YELLOW | `r3-v-tests-as-data-*` briefs; **PR #2287 Verification V1 (TC1 first slice) MERGED 2026-05-10**; cementing-test discipline gate #87 standing | TestClaim infra (R1 DB-15 schema landed); T-LBP COMPLETE for executable lens cementing | (TBD) |
| T-Tests-As-Data-Completeness | YELLOW | `r3-v-tests-as-data-*` briefs; **PR #2287 Verification V1 (TC1 first slice) MERGED 2026-05-10**; **§1.8 gate #87 CONSUMER_LANDED (PR #2639 partial harness + runner — not §Acceptance PASSING)** | TestClaim infra (R1 DB-15 schema landed); T-LBP COMPLETE for executable lens cementing | (TBD) |
| T-Lens-Application-Surface | YELLOW | `r3-substrate-tests-as-data-carrier-slice-1-stop-ping`; **crisp-raven-202 active on R3 F2 ShapeATarget closed enum vs LanguageSpec extensibility** (Class F; ontology duplication) PR #2473 (currently 1 pending) | T-Lens-Behavioral-Parity COMPLETE | post-LBP |
| T-Workflow-As-Data | YELLOW | `r3-v-bridge-row-*` + `design-timing-lens`; tidy-koi-836 + warm-lark-189 + still-ibex-188 active on T-LAS / T-Workflow-As-Data demo workers (Cursor Cloud agents) | T-Lens-Behavioral-Parity COMPLETE | post-LBP |
| T-Lens-Self-Application | RED | (waits on Workflow-As-Data + LAS) | T-Workflow-As-Data + T-Lens-Application-Surface | post-WAD+LAS |
Expand Down Expand Up @@ -1049,7 +1049,7 @@ Substrate canvas + plan-poke-hole both folded in. Key absorptions:
| Q-Reification | Substrate-fact-introduction (P1 procedure) for compiled-Dag → evaluator-Value reification — does R3 require a new `ReflectedProgram<T>` carrier, or is `src/v3/std/substrate.dag::Dag` already the reflected program? | **Option A (Dag-as-carrier) ratified** — `Dag` IS the reflected program; no new substrate carrier required. `ReflectedProgram<T>` rejected (4-fail per `feedback_no_metadata_markers` + `feedback_parallel_representation_debt` + `feedback_dissolve_bridges` + `INVARIANTS.md` **P2 single authority** — adding a parallel `ReflectedProgram<T>` carrier alongside `Dag` would introduce duplicate authority for the same structural fact). Proposal landed at [PR #2096](https://github.com/gunb-ai/gunbc/pull/2096) (merge commit `fec869202`, 2026-05-07); receipt = pass-by-construction (no new `.dag` declaration added to `src/v3/std/`). | **RATIFIED 2026-05-07 (Option A)** — Gate A receipt PR (Substrate Mgr): brief patches `ReflectedProgram<T>` → `Dag` across `r3-v-pattern-a-tc1-v1-worker.md` + `r3-pr-e6-g1a-option3-static-lens-worker.md` + `r3-pr-e8-w1-producer-contract-test-plan-worker.md`; #1960 closed-as-non-addition. Gate B (Verification TC1 V1 lens body in `.dag` + Evaluator E3.c representative consumes `Dag`) coordinates separately. |
| Q-Lens-Behavioral-Parity-R3-Closeability | **WAS RED** (T-Lens-Behavioral-Parity 4-lens scope L-XL + 4 sub-slices per lens + T-E-P-Producer-Broadening foundational dep; Substrate Mgr honest assessment: may not close cleanly in R3 timeline). **Substrate Mgr S2 canvas authored 2026-05-06** (`docs/briefs/r3-substrate-s2-t-lbp-scope-calibration-canvas.md`): per-lens × per-sub-slice blocker matrix (16 cells); option (a) full T-LBP / option (b) narrow to complexity+cost / option (c) substrate-gap subdivision feasibility analysis. | **Director ratified option (b) 2026-05-06** at [gunbc#828 #issuecomment-4385329180](https://github.com/gunb-ai/gunbc/issues/828#issuecomment-4385329180) (zesty-bear-812 Director session; cross-relayed via deep-wolf-155 propagation PR). **Q1 (option a) REJECTED**: requires landing 4c (caller-side effect-set pinning carrier) inside R3 — substrate-fact-introduction-without-confirmed-bridge-consumer; circular against R3 close per `INVARIANTS.md` P1. **Q2 (option b) RATIFIED**: T-LBP narrows to **complexity + cost lenses only** in R3 (both share T-E-P producer dependency; closing simultaneously is critical-path fastest). **Carved to R4** per `docs/r4-carve-out-routing.md` (commit `811de219f`): C1 parallelism lens (Stage 2e walker port substrate exists; port + rewire), C2 effect_enumeration lens (4c carrier P1 substrate-fact-introduction required), C3 #83 register zero-proxy/zero-stub narrowed to in-R3 lenses (complexity + cost) with parallelism + effect_enum entries documented as R4-carved. Q3 N/A. **AMENDED 2026-05-09 — option (b) carve-narrowing DISSOLVED** per Director carve-promotion-IN-R3 ratification at gunbc#846 #issuecomment-4412330468 + (a) ratification at #issuecomment-4412380947 + operator framing 2026-05-09 ("0 hand-Rust including tests AND stage0; bootstrap is data + self-generated"). C1/C2/C3 carves DISSOLVED; gates #81/#82/#95 PROMOTED-IN-R3 within Cluster F (T-LP-Retirement) per [`docs/audit/r3-cluster-f-sequencing-plan-2026-05-09.md`](audit/r3-cluster-f-sequencing-plan-2026-05-09.md); gate #83 register fires for ALL 4 in-R3 lenses (complexity + cost + parallelism + effect_enum) at R3 close. Substrate-readiness audit at PR #2363 confirms all 3 carves are substrate-ready (effects.dag substrate exists for parallelism walker port; locked design `docs/design-effect-enumeration-resource-threading.md` §3.2 + §6.2 says Operation carrier already exists at services.dag:122 — no new top-level carrier required for effect_enum atomic migration; #95 demo cascades on #81 + T-LAS Slice B). | **RATIFIED 2026-05-06 (option b)** — INITIAL T-LBP narrowing; **AMENDED 2026-05-09 (carve-promotion-IN-R3 DISSOLVES option b carve-narrowing)** — full T-LBP all 4 lenses R3-load-bearing within Cluster F. |
| Q-PB0-Trajectory-Risk5 (NEW 2026-05-09) | **SG-0 census trajectory growth risk** — per PM PB-0 velocity walk at PR #2358 + `docs/audit/r3-pb0-velocity-walk-2026-05-09.md`: SG-0 census grew **+30 entries in 9 days** (120 → 150 fragments-inclusive surface per ROADMAP.md:177; numbers updated 2026-05-09 post-codex non-blocking on PR #2361 sha `b925b174`) at +3.3/day, gates #8 + #84 cannot reach zero at observed velocity. **Severity: load-bearing for R3 thesis** — at current trajectory, R3 close is structurally impossible inside 8-12 week window without bulk-dissolution events firing. | Per PM remediation program at `docs/audit/r3-cluster-m-sequencing-plan-2026-05-09.md`: track SG-0 daily; require 4-6 bulk-dissolution events to fire on critical path. Cluster M reclassification (Risk 6) is the load-bearing driver. Tighten SG-0 PR-window option-(c) discipline so deferrals require concrete dispatch evidence (proposed amendment to ROADMAP:177 + `scripts/check-pr-sg0-net-shrink-discipline.sh`). | **RATIFIED 2026-05-09 (Branch A: PB-0 stays load-bearing for R3)** per Director acknowledgment at gunbc#846 #issuecomment-4412008376 + operator directive ("course correct; existing plan stays canonical; staffing is not a concern"). Remediation program PR pending. |
| Q-PB0-ClusterM-Cold-Risk6 (NEW 2026-05-09) | **Cluster M (T-Tests-As-Data-Completeness) dispatch status** — gates #84/#85/#86/#87 all DECLARED with no active worker at HEAD; ~80-90 of 101 SG-0 test entries dissolve via Cluster M bulk event. **Severity: load-bearing-blocking — without Cluster M dispatch, gate #84 cannot close inside 8-12 week R3 window.** | Per PM `docs/audit/r3-cluster-m-sequencing-plan-2026-05-09.md`: 3-phase dispatch program — Phase 1 parallel #85 + #86 substrate canvases (Substrate Mgr, ratification needed) → Phase 2 #87 cementing-test discipline (Verification Mgr, PM-pre-authored brief) → Phase 3 #84 bulk-port (Verification coordinator + per-class workers). 4-8 week total window with parallel dispatch per operator "staffing is not a concern" directive. | **RATIFIED 2026-05-09** per Director acknowledgment at gunbc#846 #issuecomment-4412008376 (Cluster M moves to critical-path; PM authors sequencing plan + briefs). Substrate Mgr canvases for #85/#86 + Verification Mgr briefs for #87/#84 dispatch awaiting plan ratification. |
| Q-PB0-ClusterM-Cold-Risk6 (NEW 2026-05-09) | **Cluster M (T-Tests-As-Data-Completeness) dispatch status** — gates #84/#85 remain DECLARED with no active worker at HEAD; **§1.8 #86** `program_generator_carrier_landed` is **CONSUMER_LANDED + PASSING** on `main` (PR #2645); **gate #87** has **CONSUMER_LANDED** Phase-2 harness + runner receipts (PR #2639) but **§Acceptance PASSING remains open** (full frozen-v2-oracle cementing per `r3-structure.md`); ~80-90 of 101 SG-0 test entries dissolve via Cluster M bulk event. **Severity: load-bearing-blocking — without Cluster M dispatch, gate #84 cannot close inside 8-12 week R3 window.** | Per PM `docs/audit/r3-cluster-m-sequencing-plan-2026-05-09.md`: 3-phase dispatch program — Phase 1 parallel #85 + #86 substrate canvases (Substrate Mgr, ratification needed) → Phase 2 #87 cementing-test discipline (Verification Mgr, PM-pre-authored brief) → Phase 3 #84 bulk-port (Verification coordinator + per-class workers). 4-8 week total window with parallel dispatch per operator "staffing is not a concern" directive. | **RATIFIED 2026-05-09** per Director acknowledgment at gunbc#846 #issuecomment-4412008376 (Cluster M moves to critical-path; PM authors sequencing plan + briefs). Substrate Mgr canvases for #85/#86 + Verification Mgr briefs for #87/#84 dispatch awaiting plan ratification. |
| Q-Cluster-M-Reclassification (NEW 2026-05-09) | **Cluster M reclassified from "parallel" to "critical-path-load-bearing" for PB-0 closure thesis** — corrects PR #2300 §2 cluster-analysis classification per Director ratification 2026-05-09. Rationale: ~80-90 of 101 SG-0 test entries dissolve via Cluster M single bulk event; per-file retirement velocity cannot make up the gap. | Adopt new dependency picture in §2 / §6: A T-E-P → B T-LBP → **M T-Tests-As-Data-Completeness (critical-path)** → gate #84 + ~80% test-side dissolution. Plus parallel critical: Cluster F (T-LP + PB-Runtime) for ~14 non-test dissolution + Cluster K (T-Tier3) + T-V2-Retirement. M → B → E sequencing-criticality (Cluster B oracle-freeze MUST precede T-V2-Retirement, per existing risk in PR #2300 §4 Risk 2). | **RATIFIED 2026-05-09** per Director acknowledgment at gunbc#846 #issuecomment-4412008376. PM updates §2 / §6 / §1.8 status table to reflect critical-path-classification in subsequent commit. |

---
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-test-timeout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ log_file_arg=${1:-}
budget_ms=${2:-${TEST_TIMEOUT_MS:-2000}}
pkg=${TEST_TIMEOUT_PACKAGE:-v3-compiler}
exempt_file=${TEST_TIMEOUT_EXEMPT:-scripts/slow-test-exemptions.txt}
max_exemptions=${TEST_TIMEOUT_MAX_EXEMPTIONS:-46}
max_exemptions=${TEST_TIMEOUT_MAX_EXEMPTIONS:-47}

script_dir=$(cd "$(dirname "$0")" && pwd)
repo_root=$(cd "$script_dir/.." && pwd)
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci-merge/sg0-pr-body-append.2639.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SG-0 hand-path delta: +1

SG-0 pairing: (b) https://github.com/gunb-ai/gunbc/issues/2609

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: The +1 src/v3 Rust-test addition is paired only to issue #2609; INVARIANTS.md P5 requires a checkable receipt, and a deferral must name the lane plus a concrete ROADMAP row.

2 changes: 2 additions & 0 deletions scripts/slow-test-exemptions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,6 @@ t_ci_workflow_as_data_demo_test::ci_workflow_as_data_demo_timing_dimension_repor

t_las_complexity_contract_compile_error_test::complexity_violation_compile_error_demonstrated # ROADMAP gate #92 / issue #1952: T-LAS `compile_to_dag` demo fixture with prepended complexity authority + 64MiB stack thread — cold CI ~14s wall. Dissolution: delete this line and lower `TEST_TIMEOUT_MAX_EXEMPTIONS` in `scripts/check-test-timeout.sh` in the same commit once `RUSTC_BOOTSTRAP=1 cargo test -p v3-compiler complexity_violation_compile_error_demonstrated -- -Z unstable-options --report-time` reports <=2000ms wall on cold CI after shared `OnceLock` / slimmer demo (TESTING.md Phase-0 ratchet pattern; cf. `t_demo_canonical_suites_are_runner_visible` above).

t_pb_b_1_dag_runner_test::r3_gate_87_cementing_regen_lens_suites_pass_through_runner # R3 gate #87 / gunbc#2609 (Cluster M Phase 2): 10× cold `compile_to_dag` on `tests/dag/t_r3_gate_87_cementing_regen_*.dag` + `TestRunner::run_suite` per regen lens; ~3.7s wall on CI. Paydown: shared `OnceLock` lower cache across table rows or shrink claim set once frozen `LensOutputEquals` / v2-oracle carriers land (`docs/r3-program-plan.md` §1.8 #87 Notes; TESTING.md Phase-0 ratchet).

thesis_validation_test::kf_1_structural_list_operation_ordering_holds # KF-1 thesis validation remains compile-heavy on CI runners; TESTING.md test-shape paydown owns future decomposition, not TM-0.
46 changes: 46 additions & 0 deletions src/v3/compiler/tests/dag/t_r3_gate_87_cementing_regen_cost.dag
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// R3 gate #87 — `LensRegistryEntry` `cost` (complexity.dag) Lane-E harness on merge-sort
// (`r1_merge_sort_pair.v3` program text; same authority as `r1_gates.dag` `complexity_merge_sort_v3_matches_v2_oracle`).
//
// T-LaneE stubs: `DeclarationRef` lowering only (bodies `miss_int_lookup()` — **not** consulted).
// `DifferentialEquals(v3_program_cost, v2_oracle_cost, …)` → `test_runner::eval_lane_e_differential_cost_lineage`:
// host forward-fold vs emit `lens_cost::cost_of` (see `r1_gates.dag` comment block ~`v3_program_cost`).

module v3.compiler.tests.t_r3.gate_87_cementing_regen_cost

import std.substrate { Dag, PortId }
import std.verification {
DifferentialEquals,
ProgramOutputBind,
TestClaim,
TestSuite
}
import v3.std.lookup { Lookup, miss_int_lookup }

fn v3_program_cost(d: Dag, port_id: PortId) -> Lookup<Int> =
miss_int_lookup()

fn v2_oracle_cost(d: Dag, port_id: PortId) -> Lookup<Int> =
miss_int_lookup()

data merge_sort_out: Int = 0

data gate87_merge_sort_program_input: ProgramOutputBind = {
output_ref: merge_sort_out
}

data gate87_merge_sort_v3_matches_v2_oracle: TestClaim = {
name: "cementing_regen_cost",
source: "import std.list { List, cons, singleton, empty }\n\nlet xs: List<Int> = cons(2, singleton(1))\n\nfn merge_sort_pair(xs: List<Int>) -> List<Int> =\n match xs {\n Empty => empty()\n Cons(p0) =>\n match p0.tail {\n Empty => xs\n Cons(p1) =>\n match p1.tail {\n Empty =>\n if p0.head < p1.head\n then cons(p0.head, singleton(p1.head))\n else cons(p1.head, singleton(p0.head))\n Cons(_) => xs\n }\n }\n }\n\nlet merge_sort_out: List<Int> = merge_sort_pair(xs)\n",
file_name: "r3_gate_87_merge_sort_pair.v3",
predicate: DifferentialEquals(
v3_program_cost,
v2_oracle_cost,
gate87_merge_sort_program_input
),
requires: []
}

data r3_gate_87_cementing_regen_cost_suite: TestSuite = {
name: "r3-gate-87/cementing/regen/cost",
claims: [gate87_merge_sort_v3_matches_v2_oracle]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// R3 gate #87 — `LensRegistryEntry` `cost_symbolic` (`cost.dag`) cementing in `.dag` form.
// `SymbolicCostExprEquals` applies the emitted symbolic-cost lens to `TestClaim.source`
// and compares against a frozen `SymbolicCost` witness (same pattern as
// `symbolic_cost_expr_equals_smoke` in `m1_5_verification_test.rs`).

module v3.compiler.tests.t_r3.gate_87_cementing_regen_cost_symbolic

import std.algebra { SymbolicCost }
import std.verification { SymbolicCostExprEquals, TestClaim, TestSuite }

data gate87_symbolic_cost_expected: SymbolicCost = ConstantCost(0)

data cementing_regen_cost_symbolic_claim: TestClaim = {
name: "cementing_regen_cost_symbolic",
source: "let lit: Int = 7",
file_name: "r3_gate_87_symbolic_lit.v3",
predicate: SymbolicCostExprEquals(gate87_symbolic_cost_expected),
requires: []
}

data r3_gate_87_cementing_regen_cost_symbolic_suite: TestSuite = {
name: "r3-gate-87/cementing/regen/cost_symbolic",
claims: [cementing_regen_cost_symbolic_claim]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// R3 gate #87 — `LensRegistryEntry` `cost_target_realization` (`.dag` harness placeholder).
// Rust consumer receipts: `lens_cost_target_realization_test.rs`.

module v3.compiler.tests.t_r3.gate_87_cementing_regen_cost_target_realization

import std.verification { Compiles, TestClaim, TestSuite }

data cementing_regen_cost_target_realization_claim: TestClaim = {
name: "cementing_regen_cost_target_realization",
source: "let _: Int = 0",
file_name: "r3_gate_87_cost_target_realization_smoke.v3",
predicate: Compiles,
requires: []
}

data r3_gate_87_cementing_regen_cost_target_realization_suite: TestSuite = {
name: "r3-gate-87/cementing/regen/cost_target_realization",
claims: [cementing_regen_cost_target_realization_claim]
}
Loading
Loading