Repository navigation
fix(output): make the assertion_not_credited sentence cause-neutral (#8780) - #8920
Conversation
…8780) Bless 36 fixtures (101 expected files) for the new sentence. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YFmWzyi2hqh4D77XfiPRiq
|
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 4 minutes. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughThe ChangesAssertion credit wording
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~12 minutes Merge Risk: ⚪ Minimal · up to
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YFmWzyi2hqh4D77XfiPRiq
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm two-tier docs (OUTPUT_SCHEMA.md + triage-a-finding.md) use parallel but divergent phrasings of cause-neutral wording; risk that one drifts again on the next cause addition.
Refuted
- Helper extraction or duplication risk from the wording rewrite.; refuted because: Single-line string literal change in one match arm; no helper introduced or duplicated. Fixture updates are mechanical blessed-output reflects, not duplicated logic.
- Sensor
riprfailed (exit code 2), indicating the goldens-check tool itself contradicts the blessed expectations and the fixtures need re-bless or the change is unsound.; refuted because: Only fixture-side mutations in the diff are the literalwhy/assertion not credited:sentence replacements that match the one producer string inrelated_test_miss.rs; no structural JSON or routing change. Local runs in the PR body (cargo xtask goldens checkclean apart from an unrelated offline pre-flight gap,cargo xtask precommitpasses, targeted lib test passes) confirm the producer sentence and the 36 blessed files agree. Ripr exit 2 is consistent with the bless workflow (goldens in 'Pending' state until a follow-up bless), not a contradiction.
Parked follow-ups
- Policy contract line in policy/output_contracts.txt was edited; wording now lists 'local macro, feature cfg or another limit' but only one
related_test_miss\|assertion_not_creditedrow exists, so a future analyzer improvement that adds a structured cause code may collide with the prose cause enumeration. - docs and policy duplicate the cause list across three locations; smallest-complete-fix should reduce that surface before the oracle-phrase follow-up lands and re-blesses the same fixtures.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- ripr sensor reported exit code 2 with no receipt, so the live golden run that produced this PR's fixture updates cannot be independently re-validated in this lane; cargo-test scheduled-late.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YFmWzyi2hqh4D77XfiPRiq
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- Doc/policy prose enumerates cause examples (local macro, feature cfg, another limit); the producer sentence is cause-neutral by design and punts cause to the finding's note. If the per-finding note ever loses that detail, the user-facing summary regresses. Consider making the contract a single-source string (const) shared by producer, docs, and policy to prevent drift on the next cause addition.
Verification questions
- Confirm docs and policy mirror the producer string but use parallel-but-divergent phrasings: schema adds '(a local macro, a feature cfg or another limit can each cause it)'; triage how-to adds 'The finding's note names the cause'; policy rewrites the contract description.
Refuted
- Helper extraction or duplication risk from the wording rewrite.; refuted because: Single-line string literal change in one match arm; no helper introduced or duplicated; fixture updates are mechanical blessed-output reflects, not duplicated logic.
- ripr exit 2 indicates the goldens check contradicts the blessed expectations, so the fixtures need re-bless or the change is unsound.; refuted because: Sensor note and PR body converge: every fixture mutation is a literal sentence replacement matching the one producer string; no structural JSON or routing changes. Ripr exit 2 is the documented signal for blessed-output mismatches, which is exactly what this diff intends to update. The author's local
cargo xtask goldens checkclean apart from one unrelated offline pre-flight gap is consistent with this being a bless flow, not a soundness failure.
Parked follow-ups
- gh-actions bot flagged a doc-drift risk between OUTPUT_SCHEMA.md and triage-a-finding.md as a one-time verification question; not a current finding - and the diff updates both, so the risk is addressed in this PR.
- 36 fixtures' why fields and human/human-full lines now reflect the new sentence byte-for-byte; the prior two-tier (OUTPUT_SCHEMA vs triage) drift is closed but the two phrasings diverge (OUTPUT_SCHEMA adds '... Another limit can each cause it'; triage says 'feature cfg on the test, for example').
- cargo-test receipt absent; PR body claims
cargo test -p ripr --lib related_test_misspasses and goldens-check clean except one unrelated offline gap, but reviewer-side witness not on disk yet.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- cargo-test receipt absent; PR body claims
cargo test -p ripr --lib related_test_misspasses and goldens-check clean except one unrelated offline gap, but reviewer-side witness not on disk yet.
…ribute, not a macro rebinding (#8388) rand 94c9078 uniform_other.rs test_char_bad_deser is "assertion not credited" because it carries #[cfg(feature = "serde")], whose availability ripr cannot evaluate; no macro is rebound. Reproduced on a minimal crate: the same test without the gate is credited. The refusal is deliberate (analyzer limit, not a gap), so the guard is unchanged. A unit test pins the gated refusal, the credited ungated control and a still-refusing foreign glob. The misleading sentence was already made cause-neutral on main (#8920). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AUS4vFoCEv5DiNwucKqSbC
…ot a macro rebinding (#8388) (#8937) * test(owner-pin): pin that a feature-gated test is refused for its attribute, not a macro rebinding (#8388) rand 94c9078 uniform_other.rs test_char_bad_deser is "assertion not credited" because it carries #[cfg(feature = "serde")], whose availability ripr cannot evaluate; no macro is rebound. Reproduced on a minimal crate: the same test without the gate is credited. The refusal is deliberate (analyzer limit, not a gap), so the guard is unchanged. A unit test pins the gated refusal, the credited ungated control and a still-refusing foreign glob. The misleading sentence was already made cause-neutral on main (#8920). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AUS4vFoCEv5DiNwucKqSbC * test(owner-pin): check the assert_eq! oracle in the feature-gate pin's controls (#8388) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AUS4vFoCEv5DiNwucKqSbC --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steven · project thread
Governing issue or accepted claim: #8780
Acceptance delta (one sentence): The
assertion_not_creditedmiss sentence no longer says "runs as the standard macro" when the cause can be a feature cfg or another limit.Before: a
#[cfg(feature = ...)]test was reported "assertion not credited: ripr could not establish that it runs as the standard macro", though no macro was involved.After: "assertion not credited: ripr could not establish that this assertion counts here".
How: one sentence in
output/related_test_miss.rs, plus docs (OUTPUT_SCHEMA.md, triage how-to,policy/output_contracts.txt), a changelog fragment, and one bless of 36 fixtures (101 expected files). Analyzer-limit "missing" text is untouched. The #8388/#8747 oracle-phrase wording follows as a separate PR (same fixtures, so sequenced after this).Local:
cargo xtask goldens checkclean except the offlineowner_return_pin_fallible_literalpreparation gap;cargo xtask precommitpasses;cargo test -p ripr --lib related_test_misspasses.Generated by Claude Code