Skip to content

fix(goldens): bless the --kind error_path suffix #6306's render added (#7141) - #7143

Merged
EffortlessSteven merged 1 commit into
mainfrom
fix/7141-golden-kind-bless
Oct 8, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
fix/7141-golden-kind-bless

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

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:

  • RIPR-SPEC-0122 mandates
    ipr agent stub --root --at : --kind ;
  • \error_path\ is this finding's probe family (Err-sink fixture);
  • 110 already-blessed sibling stub lines carry --kind, including --kind error_path\ in neighboring error fixtures.

Proof: full \cargo xtask goldens check\ EXIT 1 with exactly this drift before, EXIT 0 after. No production code touched.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven

Copy link
Copy Markdown
Member Author

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.

@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: ced6d3ad-5744-4671-89ed-095a1a1944a6
📥 Commits

Reviewing files that changed from the base of the PR and between 3ec3d8b and 84e528f.

📒 Files selected for processing (2)
  • fixtures/rust_adversarial_shared_error_variant_proximity/expected/CHANGELOG.md
  • fixtures/rust_adversarial_shared_error_variant_proximity/expected/human.txt
🔗 Linked repositories identified

CodeRabbit 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

  • Bug Fixes
    • Corrected the suggested ripr agent stub command to include the error_path kind for this route. The command now provides the route type needed to match the expected output, making the generated guidance more complete and accurate.

Walkthrough

The rust_adversarial_shared_error_variant_proximity fixture now expects the suggested ripr agent stub command to include --kind error_path. Its changelog records the pending golden update.

Changes

Error-path golden update

Layer / File(s) Summary
Update expected stub command
fixtures/rust_adversarial_shared_error_variant_proximity/expected/human.txt, fixtures/rust_adversarial_shared_error_variant_proximity/expected/CHANGELOG.md
The expected command now includes --kind error_path. The changelog records the golden update and lists the expected files to update.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to 84e52

The expected command matches the documented format, and the pending golden update covers the fixture outputs. No actionable merge risk remains.

Architecture Summary

Architecture risk: 🔵 Low · up to 84e52

The change affects 1 system.

Changed systems: fixtures

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — fixtures (service) was modified; 2 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in fixtures/rust_adversarial_shared_error_variant_proximity/expected/CHANGELOG.md: Added a pending golden update entry noting that the stub route always includes the --kind suffix per spec and 110 blessed siblings, and listing expected/check.json, expected/human.txt, and expected/human-full.txt.
  • observed — Modified behavior in fixtures/rust_adversarial_shared_error_variant_proximity/expected/human.txt: The suggested ripr agent stub command now specifies --kind error_path; the previous command had no --kind option.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning 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-boundar… 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, …
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Issue #7141 requires the human.txt golden for rust_adversarial_shared_error_variant_proximity to include the rendered --kind <family> suffix and requires a green golden check. The diff updates l…
Out of Scope Changes check ✅ Passed The pull request changes only the affected fixture golden and its expected-output changelog. The changelog explains the --kind error_path correction and supports the linked issue. No unrelated produ…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Title check ✅ Passed The title clearly identifies the golden-output fix and the missing --kind error_path suffix. It is directly related to the primary change, although the issue and PR references add some noise.
Full details: Description check

Explanation

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.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the golden line,
“Error path,” it reads just fine.
The kind flag hops into the call,
The changelog notes the update all.
Then off it bounds beneath the moon.

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 8, 2026 03:26
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 8, 2026 03:26
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

EffortlessSteven added a commit that referenced this pull request Oct 8, 2026
…-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.
@EffortlessSteven

Copy link
Copy Markdown
Member Author

REVIEW_READY (head 84e528f): one-line spec-mandated golden bless + changelog, no production code. Required gate green on the exact head (Ripr Rust Small Result pass, Rust gates pass 38m59s, run 37722757821); 0 review threads. Merging to unblock the backlog's goldens wall (#7141).

@EffortlessSteven
EffortlessSteven merged commit 00eaadc into main Oct 8, 2026
28 of 29 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/7141-golden-kind-bless branch October 8, 2026 04:18
EffortlessSteven added a commit that referenced this pull request Oct 8, 2026
EffortlessSteven added a commit that referenced this pull request Oct 8, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

goldens: main-tip drift in rust_adversarial_shared_error_variant_proximity human.txt line 30 (--kind suffix)

1 participant