Repository navigation
fix(human): don't claim a callee-only test asserts here (#7055) - #8705
Conversation
The ReachableUnrevealed ASSERTION_CONTEXT_UNESTABLISHED hint said a related test asserts here even when reach evidence was callee-only. Guard that arm with !callee_only so it falls back to NO_CALLING_TEST_HINT. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
|
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 29 minutes. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughFor ChangesAssertion hint correction
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
Author self-review of exact published head e9a4af73324a07cf9dc9f3007ae80b4ca7d0d16d (GitHub cannot REQUEST_CHANGES from the author; COMMENT is not approval).
reviewed_head_sha: e9a4af73324a07cf9dc9f3007ae80b4ca7d0d16d
integration_basis: origin/main 2cdbee5f3c428337e2b293eebc65f8cc2f8002b2 (behind-only; merge-base b5b136c10; sections.rs untouched on main; merge-tree shows no content conflict)
claim_boundary: #7055 A2 only — ReachableUnrevealed ASSERTION_CONTEXT_UNESTABLISHED digest hint must not claim a reaching test when callee_only
changed_surfaces_and_semantic_owners_inspected:
- owner: output::human::sections::classification_hint (production decision)
- consumer: digest Why {class}: line at sections.rs (finding_digest path)
- sibling: observe==No && !callee_only / NO_CALLING_TEST_HINT fallback; partial_path_hint already callee-only-guarded
- tests: new callee_only_unestablished_assertion_falls_back_to_no_calling_test_hint plus existing callee_only_hint_never_claims_a_reaching_test
- changelog fragment only; fenced surfaces untouched
blocking_findings: none from source/oracle inspection
non_blocking_suggestions: MatchArm family is not separately asserted (helper pins ReturnValue / assert_eq!); guard is family-independent
refuted_or_stale_findings: Gemini quota warning and CodeRabbit rate-limit are missing-provider review, not clean review
proof_and_ci_observed:
- intended RED on unfixed arm (exit 101): asserts-here sentence vs NO_CALLING_TEST_HINT
- 8/8 classification_hint tests after guard
- cargo xtask precommit pass; check-fast 10 ran / 3 skipped / 2 files including workspace clippy
- goldens check exit 0 after prepare closed owner_return_pin_fallible_literal; no drift / no bless
proof_or_review_missing:
- hosted required qualification (Draft currently skips the Rust merge gate)
- external review providers quota/rate-limited
- live analyzer producer for this exact state combination remains NOT_ESTABLISHED
affected_currentness_dimensions: production implementation, test stimulus, test oracle, public claim (changelog)
residual_assumptions_and_non_claims: no weakly_exposed / classification change; no fixture golden re-bless; A1 first-action wording unchanged
disposition: REVIEW_INCOMPLETE (source/oracle complete; hosted required checks not yet requested/inspected on this published head)
Mutation/removal challenge: removing && !callee_only reproduces the observed RED. The existing #7003 test does not catch this arm because it never sets ASSERTION_CONTEXT_UNESTABLISHED.
No source blocker. Next: mark Ready for hosted qualification, then re-enter this record for exact-head CI before merge.
|
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 verification checks before upstream.
Verification questions
- Confirm matchArm family unestablished-assertion text is asserted only indirectly via the ReturnValue helper; not a sibling-path gap but a test-coverage delta worth noting.
- Confirm no live analyzer producer creates callee-only + ASSERTION_CONTEXT_UNESTABLISHED today (author-recorded NOT_ESTABLISHED per #7192). Proof is therefore a renderer-contract RED/GREEN only; a real producer landing later could regress if it fails to consult the same hint arm. Acceptable given narrow scope, but trust surface stays small.
Refuted
- The && !callee_only guard could mask legitimate reaching-test evidence when reach state is Yes but callee_only=true (contradictory state).; refuted because: callee_only flag is computed independently of StageState::Yes/Weak/No reach; if both are true, the design intent (per #7192) is that callee-only reach is insufficient to claim a reaching test. Guard is correct.
- Other digest routes would also emit a reaching-test sentence for callee-only reach and need the same guard; refuted because: Only one ReachableUnrevealed arm synthesizes that sentence; partial_path_hint is already callee-only-guarded; finding_digest Why {class} is the sole consumer.
- Helper abstraction (macro-name selector) should also be callee-only guarded to prevent duplication; refuted because: Guard placed once at the outer ReachableUnrevealed arm discriminator; macro-name selection only runs when the branch is entered, and sibling observe==No arm already proves the single-guard pattern. No duplication risk; helper shape unchanged.
Parked follow-ups
- MatchArm family wording is not separately asserted; helper pins ReturnValue so the guard is family-independent for this arm.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Hosted CI classification (exact head
|
Prerequisite taken (head
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
Author self-review of exact published head 65babad7e2051be254853647bcc2ab3bc0913642 after taking the landed #8690 prerequisite from main (GitHub cannot REQUEST_CHANGES from the author; COMMENT is not approval).
reviewed_head_sha: 65babad7e2051be254853647bcc2ab3bc0913642
parents: e9a4af733 (A2) + e54499e2d (origin/main)
integration_basis: origin/main e54499e2d7134d4619cf545c689d5da4c8f7bbca
claim_boundary: #7055 A2 only — ReachableUnrevealed ASSERTION_CONTEXT_UNESTABLISHED digest hint must not claim a reaching test when callee_only
changed_surfaces_and_semantic_owners_inspected:
- A2 production/oracle files unchanged vs e9a4af733: sections.rs !callee_only guard + unit test + changelog fragment
- unique vs origin/main: those two files only; merge-tree clean
- inherited LSP coordination taken from #8407 squash on main (note_analysis_failure_disclosed before publish_analysis_status); not copied from #8693
blocking_findings: none from A2 source/oracle; previous inherited required-check red is repaired on the new integration basis
proof_and_ci_observed:
- exact-base origin/main e54499e2d: generic_client_analysis_failure_is_shown_once_and_only_to_generic_clients exit 0 (0.10s)
- prior e9a4af733 / 4889d21b0: that test exit 101 (inherited)
proof_or_review_missing:
- hosted required qualification on 65babad7e not yet inspected
- combined-tree focused A2+LSP tests running locally after this review record
affected_currentness_dimensions: integration basis, candidate head identity (A2 production/stimulus/oracle/public claim unchanged)
residual_assumptions_and_non_claims: #8693 remains an optional later simplification of two LSP disclosure paths; A2 does not close #8690
disposition: REVIEW_INCOMPLETE (A2 source/oracle still complete; hosted required checks must be green on this new head before merge)
No A2 source blocker. Next: inspect exact-head required CI on 65babad7e, then squash-merge when green.
|
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 verification checks before upstream.
Verification questions
- Confirm matchArm family wording is asserted only indirectly via the shared helper; #7192 already documented the producer as NOT_ESTABLISHED, so this is a renderer-contract guard, not a live-producer regression risk today.
- Confirm sensor evidence gap: ripr sensor failed (exit 2) and cargo-test is scheduled-late; local proofs cited in PR body are not reproducible from the lane packet and rely on author-run commands.
Refuted
- RED/GREEN proof is insufficient because no live analyzer producer currently emits the callee-only + ASSERTION_CONTEXT_UNESTABLISHED combination, so the renderer guard is untested against a real producer.; refuted because: The PR body and PR thread both acknowledge this is a renderer-contract test; the test pins exact strings for both the callee-only and the owner-reaching unestablished paths, which is the contract surface. A future producer regressing the hint must still consult this arm, so the contract coverage is sufficient.
- A dedicated helper for the callee-only + unestablished-assertion decision would reduce cognitive load and centralize the rule.; refuted because: The function already encodes two parallel callee_only gates inline (observe==No arm, partial_path_hint arm); introducing a one-shot helper would diverge from local convention and is not reused, so the smallest complete fix is the inline conjunct.
- Guard masks legitimate reaching-test evidence when reach=Yes and callee_only=true (contradictory state should still surface a reaching test).; refuted because: callee_only is a property of reach-evidence origin, not StageState; per #7192 design, callee-only reach is insufficient to claim a reaching test even when aggregated reach is Yes. Guard is correct.
Parked follow-ups
- Family coverage is asserted only via the ReturnValue helper; MatchArm variant of the unestablished-assertion arm is exercised indirectly because classification_hint picks family inside the same arm the test reaches.
|
Claimed for the open-PR sweep (thread "Hard-cut admission"), 2026-10-22 03:05Z. Plan: merge main, precommit, review of record, merge-ready, squash on green. Generated by Claude Code |
|
Review of record, head 2a65267 (= 65babad merged with current main; no conflicts).
Applying Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs one test-proof clarification before upstream.
Verification questions
- Confirm prior bot review on the previous head (e9a4af7) flagged the inherited LSP generic_client_analysis_failure test as a red on exact base, then on the merged head 65babad the same test passes (origin/main e54499e repair by #8407). Lane-side that repair is outside A2's diff but is now inherited on the integration basis used by this branch.
Refuted
- The missing live analyzer producer makes the renderer test insufficient or invalid.; refuted because: The seeded PR context already identifies this as NOT_ESTABLISHED; the changed behavior is the renderer contract, and the focused test directly exercises that branch.
- Adding && !callee_only masks a legitimate reaching-test claim when StageState::Yes and callee_only=true co-occur (contradictory state).; refuted because: callee_only is computed independently of reach StageState per #7192 design; if both hold, callee-only reach is intentionally insufficient to claim a reaching test, so the guard is the correct fix, not a mask.
Parked follow-ups
- MatchArm family wording (
assertvs ReturnValue'sassert_eq!) for the unestablished-assertion sentence is asserted only indirectly via the shared helper, not via a family-specific test. Author already acknowledged as non-blocking coverage delta.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Summary
Closes #7055.
A2 is the last open item on #7055 (A1 landed in #7192). The
ReachableUnrevealed+ASSERTION_CONTEXT_UNESTABLISHEDdigest hint no longer claims "a related test asserts here" when reach evidence is callee-only. That arm now requires!callee_only, matching the siblingobserve == Noarm, and falls back toNO_CALLING_TEST_HINT.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Governing issue or accepted claim: #7055 A2 (A1 accepted in #7192).
Spec: RIPR-SPEC-0122 bounded human check output (existing digest-hint honesty; no spec text change).
Acceptance delta: a callee-only
reachable_unrevealedfinding whose observe summary isASSERTION_CONTEXT_UNESTABLISHEDrendersno test is seen calling this change, not an assertion-presence sentence.Candidate Relationships
Candidate branch:
cursor/7055-a2-callee-only-unestablished-hint-3882Stack parent or prerequisite PR: none (took already-landed #8407/#8690 LSP coordination from
main; did not absorb #8693)Proposed replacement of PR: none
Scope
Production delta:
classification_hintincrates/ripr/src/output/human/sections.rsadds&& !callee_onlyto theASSERTION_CONTEXT_UNESTABLISHEDarm. Consumer remains the digestWhy {class}:line.Evidence delta: unit test
callee_only_unestablished_assertion_falls_back_to_no_calling_test_hintnext tocallee_only_hint_never_claims_a_reaching_test, plus a changelog fragment.Scope Classification
Single acceptance criterion: callee-only + unestablished-assertion +
ReachableUnrevealedyieldsNO_CALLING_TEST_HINT; non-callee unestablished-assertion keeps the establishedassert_eq!sentence.Non-goals: classification, ranking, admission, first-action cards (A1), analyzer reach production, goldens/fixture re-bless, specs/traceability, avoided PRs #8602/#8619/#8608/#8172/#8649/#8660.
Support-tier Impact
Policy Impact
Proof
What this proves: the previously unguarded arm is now discriminated by a test that failed on current main and passes with the guard; sibling hint tests still pass; goldens did not drift after prepare closed the one environment gap.
What this does not prove: a live analyzer producer for callee-only +
ASSERTION_CONTEXT_UNESTABLISHED(still a narrow renderer-contract state; #7192 recorded that producer as NOT_ESTABLISHED); hosted required CI; MatchArm family wording (helper uses ReturnValue; the guard is family-independent).Combined-tree after merging
origin/maine54499e2d: 8/8classification_hinttests pass;generic_client_analysis_failure_is_shown_once_and_only_to_generic_clientsexit 0 on both that main and merged head65babad7e. Unique vs main remains the two A2 files.Claim Boundary
May claim: callee-only findings no longer get the unestablished-assertion "asserts here" digest sentence. Must not claim: runtime mutation results, that every fixture currently produces this combination, or that A1/first-action wording changed.
Rollback
Revert this commit; the unestablished-assertion arm again emits the assertion-presence sentence for callee-only reach.
Spec-Test-Code Traceability
callee_only_unestablished_assertion_falls_back_to_no_calling_test_hintcrates/ripr/src/output/human/sections.rs::classification_hintStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
n/a (no workflow/policy/CI change)
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
cargo fmt --checkcargo xtask precommitclassification_hinttestscargo xtask check-fast(includes workspace clippy)cargo xtask goldens check(no drift)Continuation