Repository navigation
fix(python): boundary gate declines reversing flips and rebound operands (#9426) - #9726
Conversation
…ands (#9426) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Md92nb17wXfHAmQNvaWYu3
…y-shadow # Conflicts: # fixtures/python-verdict-corpus/spec-coverage.toml
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Md92nb17wXfHAmQNvaWYu3
…y-shadow # Conflicts: # fixtures/python-verdict-corpus/spec-coverage.toml
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Md92nb17wXfHAmQNvaWYu3
|
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 2 minutes. View limit details
Comment |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the source is threaded into boundary classification, but name_rebound_in_owner scans the whole owner source including nested scopes, so an inner-function rebinding can conservatively downgrade an outer parameter's boundary evidence.
- Confirm the implementation uses textual rebinding detection and has no focused adversarial tests for multiline targets, annotations, comprehensions, or semicolon-separated bindings.
Evidence gaps
- ripr sensor failed (exit 2) so no direct self-witness from the changed crate; cargo-test receipt is scheduled-late only and the two corpus row flips are unverified by sensor.
- Model proof intent was rejected by deterministic validation.
- The failed ripr sensor provides no positive compiler receipt for the modified Rust source.
|
Review of record, head 08df735 Angles: correctness and edge cases, tests and regressions, spec and contract.
Merging with expected head 08df735. Generated by Claude Code |
Governing issue or accepted claim: #9426 (parent #9412)
Acceptance delta (one sentence): Python verdict corpus rows
py-hostile-builtin-name-shadowandpy-shapes-generator-boundmove from false actionable gap to credited, removing both known-false rows.Change
Owner:
crates/ripr/src/analysis/language/python/boundary.rs(predicate boundary gate).<<->>,<=<->>=, same operands, same order): when a strong call places both operands at statically unequal literals, the equality-boundary requirement is not applied (every unequal pair differs). Calls that only place the operands equal or unresolved fall through to the existing rules.start -= 1, assignment,fortarget, walrus), the boundary downgrade is declined (activation unresolved, no missing-boundary repair target). Condition headers ending in:are not treated as annotations; derived locals (age = int(text)) are not parameters and keep the gap.guard_activation.rs(name_rebound_in_owner); no rescoring.Tests
Positive and discriminating negatives in
classify/tests.rs: reversing flip with unequal inputs credited; adjacent flip>->>=with unequal inputs stays a gap; rebound loop operand declines; unrebound operand, parameter used only inifheaders, and derived local keep the gap.Corpus rows moved (
bless --language python, only these two)py-hostile-builtin-name-shadow: gap -> credited (reversing flip>-><on unequal inputs 2, 9).py-shapes-generator-bound: gap -> credited (startrebound bystart -= 1; boundary unknown, not missing).Known-false files for both deleted under
fixtures/python-verdict-corpus/known-false/. A first draft also movedpy-idioms-raises-boundary(localage = int(text)); fixed by restricting the rebound check to parameters, so that row is unchanged.Not fixed
Nothing in scope left. Note: a reversing flip proven only by an equal-pair call is still credited via the existing equality observation (pre-existing behavior, unchanged).
Verification
cargo xtask verdict-corpus check --language python(false verdicts 15/194),cargo xtask precommitexit 0, python unit tests 838 passed.Generated by Claude Code