Repository navigation
test(goldens): mask the refusal-reason wording after "no repair start offered:" in human goldens (#10702 prerequisite) - #10860
Conversation
…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
|
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 23 minutes. View limit details
Comment |
… 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
There was a problem hiding this comment.
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.
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_goldeninxtask/src/reports/fixtures.rsmasks the text afterno repair start offered:in human goldens. The line must still be present at the same position. Unit test with discriminating negatives; note indocs/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 thestill missing:/It is also still missing:lists. A reason matching no known variant is compared verbatim, andcheck.jsonis never masked. Seedocs/PR_AUTOMATION.md.Proof
compare_goldenand mask unit tests pass;cargo xtask goldens checkexit 0 on the current head.cargo xtask precommitpolicy 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