Repository navigation
fix(analysis): leave derived tuple projection unverified after a conditional exit (#4135) - #11802
Conversation
…itional exit (#4135) top_level_projection_observes now returns None when a conditional or diverging exit (return, ?, break/continue, panic-family macro, process::exit) precedes the last observation, instead of promoting from assertions that are not unconditionally reachable. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzQvtpKrgEnbdSoyCd8
|
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 5 minutes. View limit details
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
…tional-exit fixture check-user-text counts a new expected/human.txt path against 0 at the merge-base, and this fixture's default human output carries banned plain-language terms. The human golden is optional (the runner compares it only when present); the fixture keeps check.json and human-full.txt, which pin the same non-promotion and are not scanned. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzQvtpKrgEnbdSoyCd8
Governing issue or accepted claim: #4135
Acceptance delta (one sentence): A derived-local tuple arm whose related test places its assertions after a conditional or diverging exit is no longer promoted to
exposed; the projection oracle returns unverified (None) instead.What changed
top_level_projection_observes(derived_admission.rs): after all three observations are found, any statement up to the last observation containingreturn,?,break/continue,panic!/unreachable!/todo!/unimplemented!, or a*::exit(..)call makes the resultNone. Closure bodies and nested items are skipped (not executed by declaration). The existing unconditional-return;boundary is unchanged.Some(true)), trailing-exit and uninvoked-closure/item controls.match_arm_tuple_derived_conditional_exit_before_assertion+must_not_promotecorpus caserust_tuple_derived_conditional_exit_before_assertion_no_promotion.Deliberate trade-offs (safe direction)
panic!/?in setup and abreak/continueinside a local loop count as exits, so idioms likelet Some(x) = y else { panic!() }orfallible()?yieldNone(unverified) rather than a promotion. A missed promotion is preferred over a wrong one.Verification
derived_admission,cargo xtask fixtures(new fixture),cargo xtask check-evidence-promotion-honesty,cargo xtask goldens check.cargo xtask precommitstopped locally atcheck-rust-source-role-authorityonrepair_attempt/mod.rs, a file this PR does not touch; that was main's failure and is fixed by fix(repair): unbreak main after #11596 (role-authority sniff, stale refusal assertions) #11734, which this branch now includes.Not covered
terminal_flowprojection path and the whole-seam repair judgment are separate owners and unchanged.🤖 Generated with Claude Code
https://claude.ai/code/session_01YVdGzQvtpKrgEnbdSoyCd8