Repository navigation
fix(rust): credit test_case arrow rows only when their inputs tell the edit apart - #10804
Conversation
…10797) A coincident row (input where old and new return agree) no longer credits; one discriminating row among coincident rows still does. Cache generations bumped 1.114 / 0.121 / file facts 1.49. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 28 minutes. View limit details
Comment |
…dd coincident-row corpus case; refresh boundary_gap hashes (#10797) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri
|
|
….122 / 1.50 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri
|
Review of record, head ba1d789. Nothing blocking. Angles: correctness (template substitution, shadowing, receiver precedence), tests (runtime-labelled negatives: Findings and resolutions: Graphite/Devin negated-receiver parenthesization fixed; string-row split admission fixed; coincident-row honesty case added with grip proven against the pre-fix analyzer; Local: seam_cache 199 pass, arrow and cache_clear_safety tests pass, verdict-corpus check-all and Generated by Claude Code |
There was a problem hiding this comment.
Refuted
- The extractor might retain AST references with lifetimes shorter than the synthesized facts, creating dangling references.; refuted because: The implementation copies text into owned String pieces and stores only parameter indices; no AST node or borrowed slice is retained in OracleFact construction.
- The changed arrow-row substitution could corrupt or misread a live backing store through stale length or aliasing state.; refuted because: The implementation clones syntax-derived text into owned Strings and substitutes values into a newly constructed expression; it has no shared mutable buffer, resize operation, detach/transfer operation, or cached length used as an index.
- The change introduces an unsafe worker/async handoff or ownership-transfer boundary.; refuted because: No JavaScript, worker, async, GC, detach, transfer, thread, channel, unsafe, or raw-pointer code is introduced on the changed path; the implementation is synchronous AST analysis and string construction.
- The new independent fixture duplicates existing unit coverage without architectural value.; refuted because: The unit test and honesty corpus exercise different boundaries: the former verifies analyzer behavior directly, while the latter independently detects false promotion after re-blessing and is required by the repository's honesty-corpus invariant.
- Untrusted attribute text can become executable synthesized Rust and become an exploit primitive.; refuted because: Admission is allowlisted to plain literals; strings are refused; argument count must match; parameter substitution is parenthesized; template bindings and non-plain parameter uses make the whole function unread.
Parked follow-ups
- The semantic oracle change is paired with cache-generation bumps and an independent honesty-corpus fixture, so related consumers should not reuse stale unsubstituted facts.
Evidence gaps
- The planned ripgrep sensor failed with exit code 2, so this lane's source reading cannot be supplemented by a successful ripgrep receipt.
- Model proof intent was rejected by deterministic validation.
Governing issue or accepted claim: #10797
Acceptance delta (one sentence): a
#[test_case(.. => literal)]row now reads asassert_eq!(returned with the row's arguments substituted, literal), so a coincident row (old and new return the same value for that input) no longer credits while a discriminating row still does.Found by a runtime-labelled negative against #10734:
0 => 0wasexposedbefore and isweakly_exposednow;1 => 2and a two-row case still credit.self, non-simple patterns, any pattern binding in the tail (closure/let shadowing), and any parameter use that is not a plain one-segment path (field, method, macro).test_case_arrow_expected_value(16 pass).goldens check,precommitall exit 0.Generated by Claude Code