Skip to content

test(goldens): mask the refusal-reason wording after "no repair start offered:" in human goldens (#10702 prerequisite) - #10860

Merged
EffortlessSteven merged 2 commits into
mainfrom
claude/fix-10702-c0-mask-refusal-reason
Oct 27, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
claude/fix-10702-c0-mask-refusal-reason

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven Zimmerman · project thread

Governing issue or accepted claim: #10702
Acceptance delta (one sentence): Rewording the plain-language reason after no repair start offered: no longer requires re-blessing hundreds of fixture goldens, while a repair start flipping to a refusal (or the refusal line appearing, disappearing or moving) is still golden drift.

What changed

compare_golden in xtask/src/reports/fixtures.rs masks the text after no repair start offered: in human goldens. The line must still be present at the same position. Unit test with discriminating negatives; note in docs/PR_AUTOMATION.md; changelog fragment.

Why

The only existing way to reword a refusal reason is to re-bless every fixture (the #10702 check-side change drifted 243 fixtures / 486 files, over the 160-file admission cap).

Trade-off (policy change, please review)

Only the explanatory prose after each refusal variant's fixed opening is no longer pinned by fixture goldens (it stays pinned by unit and integration tests such as check_repair_agree, return_value_repair_start, navigation/task_first tests). Still pinned: refusal vs start, position, the refusal variant (its fixed opening), and the still missing: / It is also still missing: lists. A reason matching no known variant is compared verbatim, and check.json is never masked. See docs/PR_AUTOMATION.md.

Proof

compare_golden and mask unit tests pass; cargo xtask goldens check exit 0 on the current head. cargo xtask precommit policy gates passed up to the covered_by instrument, which timed out on a cargo lock, and later reruns hit a linker Bus error from a full disk (infrastructure, not source); hosted CI is the remaining precommit evidence.


https://claude.ai/code/session_01SzaVANa7TfksaDfKNo2YUE


Generated by Claude Code

…ison (#10702)

Rewording a repair refusal re-blessed one line in each of hundreds of
fixtures. Compare the refusal line by presence and position; a repair start
flipping to a refusal (or the reverse) is still drift.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SzaVANa7TfksaDfKNo2YUE
@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!

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 23 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 161 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 1a161127-a9d2-4afe-9337-5d7b66499269
Commits

Reviewing files that changed from the base of the PR and between 3892998 and cb966d3.

Files selected for processing: 3
  • changelog.d/10702-golden-refusal-reason-mask.md
  • docs/PR_AUTOMATION.md
  • xtask/src/reports/fixtures.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

… the reason mask (#10702)

The human-golden mask replaced everything after `no repair start offered:`,
so a refusal changing from one RepairRouteRefusal variant to another passed
goldens check. Mask only the prose after each variant's fixed opening, keep the
`still missing:` / `It is also still missing:` lists compared, and compare an
unrecognized reason verbatim. Add a compare_golden test covering reworded prose,
variant change, list change, and an unmasked check.json.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SzaVANa7TfksaDfKNo2YUE
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 27, 2026 07:46
@EffortlessSteven EffortlessSteven self-assigned this Oct 27, 2026

@devin-ai-integration devin-ai-integration 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.

Devin Review found 2 potential issues.

Devin Review

Comment thread xtask/src/reports/fixtures.rs Resolved
Comment thread xtask/src/reports/fixtures.rs Resolved

@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 reviewer attention before upstream: findings remain.

Confirmed findings

  • A still-missing refusal whose explanatory prose omits the configured list end is partially masked, so the unmasked tail can differ between expected and actual outputs.

Verification questions

  • Confirm rEPAIR_REFUSAL_RULES manually mirrors RepairRouteRefusal::advisory; a producer wording change that leaves an old prefix recognized can shift prose into the masked region instead of failing closed.
  • Confirm the rule table manually mirrors producer refusal variants, but the shown tests do not prove parity with RepairRouteRefusal::advisory.
  • Confirm the PR claim that the refusal line's position is pinned is only enforced indirectly by whole-document comparison; the helper itself does not validate that the marker occurs at a specific semantic location.

Refuted

  • A reworded advice opening that prevents locating the missing-evidence boundary silently hides list changes.; refuted because: The implementation falls back to comparing the unmapped or unmaskable body verbatim, matching the explicitly documented fail-closed policy and the seeded author response.
  • The change might incorrectly apply refusal masking to check.json or alter non-refusal prose.; refuted because: Rejected: compare_golden branches by surface, and the helper only transforms lines beginning with the exact marker after indentation.

Parked follow-ups

  • The architecture duplicates producer refusal-variant definitions in the xtask layer, so producer wording changes can require synchronized updates.

Evidence gaps

  • The ripr sensor failed with exit code 2, while cargo-test evidence is still scheduled for the late phase, leaving the advertised proof and rule synchronization unverified in the available packet.
  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven
EffortlessSteven merged commit 0c6a5a7 into main Oct 27, 2026
60 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/fix-10702-c0-mask-refusal-reason branch October 27, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants