Repository navigation
fix(pairing): pair a flag-selected local boundary through a forwarding test helper - #9525
Conversation
…g test helper (#9509) An equality fact between an owner parameter and a local that evaluated to a plain integer now names the value (bytes == 1024) instead of the local (bytes == unit), on either side of the comparison. The same-test loan pairing matches parameter == literal terms against the literals the helper call feeds, so a helper that forwards its parameters to the owner and asserts the exact result now pairs. A helper that computes an argument or asserts only that the result is non-empty still does not. Adds three corpus cases. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
|
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 42 minutes. View limit details
Comment |
|
Review of record, head 560c651. Gemini and CodeRabbit are over quota, so no provider review exists.
Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Generated by Claude Code |
… own test file (#9509) Review found the rewritten parameter == integer fact is pooled across related tests and matched by line and call text, so a second file's helper call on the same line could pair through another file's unasserted boundary call. The fact now carries its test file and loan pairing requires it to match. Adds the unit control and the traceability rows. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
|
Review of record update, head d77e8af. My earlier independent trace (head 560c651) missed the pooled-fact path that Devin found; I then reproduced it (scratch crate, Generated by Claude Code |
There was a problem hiding this comment.
Confirmed findings
- Lane scope (JS worker handoff / async / GC / detach / Transferable) does not apply: this is a pure Rust analyzer change with no JS runtime, no workers, no transferable buffers. Out-of-scope by design.
- Traceability entry adds the two activation/pairing unit tests but lists neither the new corpus cases nor the authored subject, matching the #9276 precedent cited in the review-of-record. Devin-2 raised this earlier and the author marked it fixed; including cases/subjects in the spec mapping would make the pairing behavior more discoverable from spec to fixture.
Verification questions
- Confirm checked corpus siblings cover exact forwarding, weak assertion, and computed argument helper behavior, but not nested or method-based forwarding wrappers.
- Confirm corpus fixtures encode distinct exact, weak, and computed-argument routes and expect exposed, weakly_exposed, and infection_unknown respectively.
Refuted
- Computed or weak helper assertions should produce the same pairing credit.; refuted because: The pairing route still requires exact parameter/literal terms and the corpus retains distinct bumped/blind outcomes; broad execution remains residual risk.
- A second architecture is needed: a global fact->test index keyed by (file,line,text) rather than per-test stamping.; refuted because: Per-test stamping is strictly smaller: it adds one Option field, one Some(...) site in the renamed branch, and a single
is_none_orpredicate. A global index would change ownership, threading, and cache shape for the same correctness property. The smaller fix is also testable with one unit control (a_fact_from_another_test_file_does_not_pair_a_loan_call_on_the_same_line). - Subject
authored-local-boundary-loanis a same-file helper-fan-out; a true two-file false-credit repro is missing from the corpus and only covered by a unit test in boundary_pairing.; refuted because: Author explicitly notes on the review of record that a two-file corpus subject was not added; unit control + scratch reproduction cover the path, and priorgoldens check/verdict-corpus check-all/precommitpass. The corpus remains conservative (3 new rows, no movement of others). - Renaming the local's side to the integer value could cause a non-Parameter side (e.g. literal 1024 on both sides) to be misclassified as a parameter, enabling a new pairing path; refuted because: EqualitySide::new classifies side as Parameter only when
parameter == Some(text.trim())and resolved is not a Local; a literal-equal literal operand takes SideKind::Other and keeps both texts. Unit test assertsa == bcase stays names_value==false. - The change could involve active-view backing-store aliasing, resize/detach, or stale length snapshots.; refuted because: False premise: no buffer, ArrayBuffer, TypedArray, resize, detach, transfer, or length-snapshot implementation appears in the changed code or supplied diff.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Parked follow-ups
- Fact.file identity is a path equality (
*file == test.file) onPathBuf. Symlinks or repo-relative vs workspace-relative path forms on the same on-disk test file would compare unequal and the fact would not pair for that test. Not a security issue; flagged as residual for human review of the corpus sandbox path normalization. - The real bytesize caller/method-hop shape is intentionally parked rather than part of this analyzer change.
…9441) Main's ledger wiring test failed after #9525 fixed these cases. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014doxtTEYf5uCgqiWJV8ffG
…tests (#9568) * ci(windows): read the selector consumer from the same ref as the storage tests (#9521) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014doxtTEYf5uCgqiWJV8ffG * ci(windows): build the hang-hunt server into the checkout target (#9526) The external target-dir left the repo cargo config's relative TEMP pointing at a missing directory, so every shard failed at link time (LNK1104). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014doxtTEYf5uCgqiWJV8ffG * ci(windows): fix hang-hunt PowerShell parse error in log-copy message (#9526) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014doxtTEYf5uCgqiWJV8ffG * ci(windows): cover pipe-vs-redirect and release-vs-debug in the hang hunt (#9526) 24 redirected debug-server iterations did not hang; the packaged rehearsal pipes through Tee-Object and uses a release server. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014doxtTEYf5uCgqiWJV8ffG * ci(windows): spell the hang-hunt release build as a literal command (#9526) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014doxtTEYf5uCgqiWJV8ffG * fix(corpus): drop three known_false rows that no longer score false (#9441) Main's ledger wiring test failed after #9525 fixed these cases. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014doxtTEYf5uCgqiWJV8ffG * Drop the stale-ledger edit; #9588 owns main's known_false drift Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014doxtTEYf5uCgqiWJV8ffG * test(ci): exercise the hang hunt's generated pipe script with a controlled nonzero child (#9526) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014doxtTEYf5uCgqiWJV8ffG --------- Co-authored-by: Claude <noreply@anthropic.com>
Summary
bytes == 1024instead ofbytes == unit, whichever side the local sits on. The same-test loan pairing (rust: an assert_eq! inside a local check_* test helper is refused, so fully discriminated changes read weakly_exposed #6482) matchesparameter == literalterms against the literals the helper call feeds, so it could never match the local's name.fn expect_tier(want, bytes, si) { assert_eq!(want, tier(bytes, si)) }) now pairs for a flag-selected local boundary. Before, the verdict stopped atweakly_exposedwithsame_test_pairing_missing.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proposal:
Spec: RIPR-SPEC-0158
ADR:
Plan item:
Governing issue or accepted claim: #9509 (parent #9276)
Acceptance delta (one sentence): A forwarding test helper that asserts the exact result pairs with a flag-selected local boundary, and a helper that computes an argument or asserts a weak property still does not.
Verification
authored-local-boundary-loan, three runtime-labelled cases:-hit(both mutants killed, nowexposed),-blind(helper only asserts non-empty, both mutants survive, staysweakly_exposed),-bumped(helper passesbytes + 1, boundary mutant survives,infection_unknown). Mutant outcomes were run withcargo teston the subject.verdict-corpus check-all: no row moved except the three new ones; false verdicts 0 of 3 on the new cases.goldens checkpasses with no re-bless.cargo xtask precommitpasses. Unit testan_equality_fact_names_the_integer_a_local_evaluated_tocovers both orientations plus boolean and non-parameter negatives.Not in scope: bytesize's real shape still has two callers and a method hop (#9329, next in the order).
Generated by Claude Code