Repository navigation
fix(goldens): bless the --kind error_path suffix #6306's render added (#7141) - #7143
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Author review (head 84e528f): one-line golden bless + changelog, no production code. The blessed line is the spec-mandated render (RIPR-SPEC-0122: the stub route always carries --kind ), \error_path\ matches this Err-sink finding's probe family, and 110 blessed siblings carry the same suffix shape — this golden was simply missed by #6306's re-bless, which merged green on a pre-#7094 ref. Full \goldens check\ EXIT 1 with exactly this drift before, EXIT 0 after; no other drifts at main tip. REVIEW_READY pending the routed gate. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review. Summary by CodeRabbit
WalkthroughThe ChangesError-path golden update
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The expected command matches the documented format, and the pending golden update covers the fixture outputs. No actionable merge risk remains. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the defect, the intended golden change, the relevant specification, and the reported proof result. It does not follow most required template sections, including source-boundary confirmation, candidate relationships, scope classification, policy impact, rollback, traceability, static checks, engineering checks, and gate results. Resolution Complete the required description-template sections. At minimum, document the source boundary, links and acceptance delta, candidate relationships, scope and non-goals, support and policy impact, proof commands and results, claim boundary, rollback, spec-test-code traceability, static-language status, CI economics as n/a if applicable, engineering checks, and applicable gate results.
✨ Finishing Touches🧪 Generate unit tests (beta)
A rabbit checks the golden line, Comment |
There was a problem hiding this comment.
Decision
- Needs focused proof failure resolved before upstream.
Verification questions
- Confirm pATCH IS NOT A TEST: zero test sources changed; only expected-fixture goldens + a CHANGELOG note. So the diff cannot independently prove the render is correct; trust depends on the pre-existing xtask goldens check baseline and the 110 blessed siblings. The CHANGELOG claim that 'expected/human-full.txt' was updated is also inconsistent with the actual diff.
- Confirm sPEC-CITED CORRECTNESS, NOT TESTED: RIPR-SPEC-0122 mandates '--kind '. The chosen family (error_path) is asserted by the PR author because it 'matches this Err-sink finding's probe family'. There is no new focused test pinning error_path for Err-sink fixtures; conformance reduces to the renderer's deterministic output + xtask check. If the renderer were ever to emit a different family for this fixture, the bless would silently chase the wrong render.
- Confirm no executable late-phase cargo-test receipt has landed yet for this fixture directory; trust rests on the PR author's pre/post goldens check exit-status claim (EXIT 1 before / EXIT 0 after) rather than a witnessed receipt.
Refuted
- The --kind error_path suffix is gratuitous decoration, not spec-mandated, so blessing this golden rubber-stamps render drift.; refuted because: RIPR-SPEC-0122 mandates --kind on the stub route; error_path matches the Err-sink fixture's family, and 110 sibling blessed stubs carry the same suffix shape — this is a missed re-bless from #6306, not gratuitous decoration.
- the blessed suffix is merely whitespace/formatting and hides a behavior change in this Err-sink fixture; refuted because: rejected: net textual delta is the single literal suffix ' --kind error_path' appended to the agent-stub line, matching RIPR-SPEC-0122; no other behavior surface changes in fixtures/expected.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked -p xtask --test goldens_check rust_adversarial_shared_error_variant_proximity. This is a current failure, not a red/green witness.
Evidence gaps
- cargo-test sensor is scheduled-late, not missing; the goldens-check red/green proof (
cargo xtask goldens check) is the discriminating oracle for this tests-only change and remains unverified in evidence. - Model proof intent was rejected by deterministic validation.
- Pending goldens check receipt (cargo-test scheduled-late) is the discriminating proof; EXIT 1 before with exactly this drift, EXIT 0 after is the only proof needed.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
…-variant fixture #6306's stub-route render appends --kind error_path to the agent stub drill-in when the resolver yields an error-path stub; this fixture's error_path finding now renders the flag. Formatting-only drift on one drill-in line; verdict class unchanged. The same drift is red on main's own tip (3ec3d8b Rust Small Result failure) and repair PR #7143 carries the identical blessing; this keeps the lane provable either way.
…diff-orderfile-pin-5325
…hod calls (#6713) (#6760) * fix(rust): stop crediting a free fn from same-named type-path and method calls (#6713) A module-level fn is reached only by a bare or module-qualified call. ByteSize::kb(1000) and size.kb() no longer make the free kb a direct_owner_call in diff-mode relations or compact grip, and their arguments no longer count as the free function's activation values. Fails open when the parser did not establish the impl context. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U7GbrVC98fTYnLnhe3vhFM * fix(rust): read a free fn's arguments from its own call site (#6713 review) Review of dbbba50 found a same-line Type::name(..) still supplied the free fn's activation values, two more activation sites matched on the name alone, and primitive qualifiers (u64::name) read as modules. Argument readers now start at the free call site in grip and diff activation and owner-result binding; primitive types count as type qualifiers; turbofish skips '->'; captured calls are checked before the masked body. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U7GbrVC98fTYnLnhe3vhFM * fix(rust): read boundary operands from a free fn's own call site (#6713 review) boundary_equality_overlap_score (grip) and owner_call_activates_boundary (diff) still took arguments from the first same-named call on the line, so a test calling only Gate::over(100, 100) closed the free over's equality boundary. Both now start at the free call site. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U7GbrVC98fTYnLnhe3vhFM * fix(rust): pair boundary oracles only through a free fn's own call sites (#6713 review) Assertion pairing read Gate::over(100, 100) as observing a free over, the line-level fallback counted receiver calls as second owner calls, and a spaced or turbofish free call could borrow a later same-line Type::name(..) call's arguments. Boundary pairing now collects only free call sites for a free owner, and free_function_call_text returns a span only for a contiguous name( spelling. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U7GbrVC98fTYnLnhe3vhFM * fix(rust): accept spaced and turbofish free calls in the call-text reader (#6713 review) e2f73ab narrowed call_text_may_call_free_function to the contiguous name( spelling, so kb (1) and kb::<u8>(1) stopped counting as free calls. Use the full free-call reader for the presence check and route the owner-result binding gate through it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U7GbrVC98fTYnLnhe3vhFM * docs(changelog): add section header to the #6713 fragment Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U7GbrVC98fTYnLnhe3vhFM * docs(changelog): count 11 of 12 free fns in the #6713 fragment Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U7GbrVC98fTYnLnhe3vhFM * fix(rust): gate helper-derived free-fn credit on the call spelling (#6713 review) Review threads on #6760: a helper whose body calls only `Widget::render_unit()` still credited the free `render_unit` by name, a nested `fn kb(..)` declaration read as a call, and a bare `name(` token inside an opaque property macro leaked through the body fallback. - Every helper index (by file, name, module path, package, and the bounded graph extensions) gains a free-spelling projection: edges carried by a bare or module-qualified call spelling, with direct-imported edges included by their scoped-import callee identity. Free owners match only the projection; relation and compact-activation helper and target-affinity arms read it. - is_free_function_call_at rejects a spelling preceded by the fn keyword, so a nested declaration never establishes a free call. - test_calls_free_function's body fallback excludes opaque property-macro ranges, matching body_contains_owner_call. - Regression tests: wrapper negative + positive control, nested-fn controls in the classify and grip relation modes, and the mixed associated/opaque-macro case. * fix(rust): drop the unused name-based owner call count after the free-aware counts (#6713 review) * test(goldens): bless the free-call source argument value on the owner-pin fixtures (#6713) value_facts_for_test and owner_call_parameter_values now read a free fn's argument values from its own bare or module-qualified call site. In owner_return_pin_if_false and owner_return_pin_unpolled_async the weight(4) call is a genuine free call through a direct import, so the static source function-argument value (input = 4) surfaces beside the existing assertion-argument source value. Verdict class unchanged: reachable_unrevealed, observation no, discriminator no. * fix(rust): keep the range-bound bare call a free call in the #6713 reader (#7006) The receiver-dot rejection in is_free_function_call_at misread the first dot of a range (0..count_all(items)) as a receiver, demoting main's range-bound control to WeakTokenSubstring. Apply the same rule receiver_dot_before uses: only a dot not itself preceded by a dot is a receiver. Pin the reader-level case beside the relation-level control. * fix(rust): check every free-call spelling against the opaque ranges (#6713 review) Graphite re-review: test_calls_free_function's body fallback tested only the first free-call offset against the opaque property-macro ranges, so a macro-internal token could hide a genuine bare call later in the body and demote the relation. Iterate every free-call spelling; any one outside the opaque ranges establishes the call. Regression: given_free_fn_when_genuine_call_follows_macro_internal_token_then_direct_owner_call. * test(goldens): bless the --kind error_path suffix on the shared-error-variant fixture #6306's stub-route render appends --kind error_path to the agent stub drill-in when the resolver yields an error-path stub; this fixture's error_path finding now renders the flag. Formatting-only drift on one drill-in line; verdict class unchanged. The same drift is red on main's own tip (3ec3d8b Rust Small Result failure) and repair PR #7143 carries the identical blessing; this keeps the lane provable either way. * docs(goldens): deduplicate the owner-pin blessing ledgers and renumber the #6713 entry to (14) (#6713 review) The round-5 ledger union appended main's (1)-(13) history after a (13)-headed #6713 entry, duplicating the ledger and attributing the #6713 reason to the wrong number. Both owner-pin fixtures now carry (1)-(12) once, (13) as main's #5471 merge re-bless, and (14) as the #6713 free-call argument value. goldens check passes. --------- Co-authored-by: Claude <noreply@anthropic.com>
Closes #7141.
Main tip is red on \goldens check: #6306 taught the stub route to carry --kind\ and re-blessed ~135 human goldens, but this fixture's golden (last blessed by #7094) still carries the pre---kind\ line, so every merge-ref run fails \Golden output contracts\ (first observed on docs-only #7118).
This blesses the single missed line. The render is the correct one, not the golden:
ipr agent stub --root --at : --kind ;
Proof: full \cargo xtask goldens check\ EXIT 1 with exactly this drift before, EXIT 0 after. No production code touched.