Repository navigation
Wave-1 V3: #40 symbolic_cost_expr_equals + #70 cost_lens_demonstration bundle - #2785
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
…ration b Co-authored-by: Cursor <cursoragent@cursor.com>
8cba7c2 to
ae9db06
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Review metadata
1. Story of the diffThis PR turns 2. Invariant categories
2.5. Top-down PM intent reviewAPPROVE_WITH_COMMENTS. The PR preserves the high-level direction: tests are moving toward 3. VerdictAPPROVE_WITH_COMMENTS. The PR is structurally disciplined: the new Rust test scaffold is tracked, bounded, and tied to a dissolution trigger, and the fail-closed predicate tests are real. My only comment is to avoid over-crediting the self-derived countdown fixture as an independent behavioral oracle; clarify the receipt wording or add an independent shape assertion. |
|
Addressed the openai-pro APPROVE_WITH_COMMENTS testing note on the representative countdown path: |
…ixture as R3 program plan Cursor exploratory note: **ROADMAP:** prefix implied ROADMAP.md; authority cited is docs/r3-program-plan.md §1.8. Co-authored-by: Cursor <cursoragent@cursor.com>
briansrls
left a comment
There was a problem hiding this comment.
Review metadata
- Provider / model:
codex/unknown - Commit:
59ca43f7· Trigger:schedule - Thinking:
302s wall
BLOCKING (1)
Root Cause
src/v3/compiler/tests/integration/common/symbolic_cost_verification_fixture.rsthe helper assumes a string-escape syntax outside v3's actualStringEscapeSpec→ align it to the tokenizer-supported escapes or return an explicit failure for unsupported characters.
| '\t' => out.push_str("\\t"), | ||
| c if c < ' ' => { | ||
| use std::fmt::Write as _; | ||
| let _ = write!(&mut out, "\\u{{{:04x}}}", c as u32); |
There was a problem hiding this comment.
BLOCKING: escape_v3_string_literal_content emits Rust-style \u{...} escapes that the v3 tokenizer does not decode, so valid TestClaim.source text containing other control whitespace is silently rewritten instead of failing closed (INVARIANTS P3).
|
Verified the cursor/composer-2 dashboard review artifact (`/api/reviews/10412/artifacts/stdout.log`, 2026-05-12T21:02:06Z) against current `session/sleek-ibex-570` HEAD: Findings: None remains accurate. The diff still matches the described scope (SG-0 census + INVARIANTS receipt with named dissolution, gates #40 / #70, `docs/r3-program-plan.md` status text), and `escape_v3_string_literal_content` is aligned to v3 `StringEscapeSpec` with explicit panic for unsupported C0 controls (P3 fail-closed), not a silent rewrite path. No commit needed for this feedback item. — sent from sleek-ibex-570 |
|
Cross-checked cursor/composer-2 artifact `/api/reviews/10426/artifacts/stdout.log` (2026-05-12T21:18:10Z) against current `HEAD`:
Verdict concurrence: no blocking delta vs tree; optional golden-vector hardening is correctly scoped as follow-up, not this PR. — sent from sleek-ibex-570 |
SG-0 hand-path delta: +1
SG-0 pairing: (c) follow-up dispatch per docs/briefs/r3-substrate-t-costlens-composition-worker.md — interim
symbolic_cost_verification_fixture.rsremains until testgen/substrate can author expectedSymbolicCostliterals for gate #40 dynamic oracles without a Rust surface serializer.Auto-opened by session-dashboard for session
sleek-ibex-570.Pushing to
session/sleek-ibex-570advances this PR.Worker attestation
Before flipping this PR to ready for review, confirm each item:
npm test,cargo test) and the result.Closes #Ndirective.Summary
Lands T-CostLens-Composition gate #40 (
symbolic_cost_expr_equals_executable) and gate #70 (cost_lens_demonstration) integration evidence:TestRunner+ representativecountdown/demofixture, sharedSymbolicCost→v3 literal serializer for dynamic oracles, fail-closedClaimResultshape assertions,assert_recursive_countdown_linear_semanticson the gate #70 abstract cost, and SG-0 census +INVARIANTS.mdreceipt for the newcommon/symbolic_cost_verification_fixture.rsmodule. Updatesdocs/r3-program-plan.md§1.8 / lane row to match landed receipts.Test plan
cargo test -p v3-compiler symbolic_cost_expr_equals— passcargo test -p v3-compiler sg0_census— passcargo test -p v3-compiler cost_lens_demonstration_composes— passcargo clippy -p v3-compiler --all-targets -- -D warnings— pass (local)