Repository navigation
feat(analysis): pair a check helper's assertion on a forwarded method-hop result (#9329) - #9642
Conversation
…eld in helper transfer A helper chain may now cross one receiver call on a typed parameter into a unique inherent self method (HelperHop::receiver), and the entry's receiver argument is read as a canonical constructed string from Type(<literals>) or a const fn constructor over literals and same-file constants. self.<index> is the only projection that binds, and the cell never reaches an owner row. Every other shape keeps the earlier stop or withdraws the rows. A free-function callee no longer counts a caller whose only mentions are receiver calls. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
…r-call name A free-function owner reached through a method-hop chain is related to a test only through the chain entry: a call fact whose sole mention of the owner's name is a receiver call (expected.to_string() in a test helper) no longer relates the test by name, which had hidden the helper_owner_call relation and let the changed boundary read as a weak gap on a discriminated edit. A method hop never forwards a result and is declined by the weak-oracle and effect-target checks, so the verdict stays propagation_unknown. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
…op in RIPR-SPEC-0158 Six authored cases with real-mutant truth: a boundary row read through a method hop and const-constructor receiver, a row-near-boundary trap, a rebound receiver, a non-literal constructor argument, a second unreadable constructor, and the to_string name collision. Adds the spec behavior, acceptance examples, test mapping and changelog fragment. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
…er a test reaches A callee with several direct callers (a Display::fmt beside the to_string_as method) declined the whole chain. Resolve each caller on its own and keep the chain of the single caller a related test reaches; a caller no test reaches contributes nothing. Decline, naming the edge, when no caller is reached, when two are reached, when a test calls the callee itself, or when the callee has more than eight callers. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
…d changelog Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
…and parenthesized literals as receiver cells A test-local binding of the constructor name, a method that may change the field before the owner reads it, and a quoted literal holding a parenthesis each produced a wrong or dropped row (Devin review on #9602). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
…-hop result A test helper whose only statement is an assert_eq! on the method hop's receiver call (b.to_string_as(si)), over methods that hand the owner's result back unchanged, observes the owner's result. Count that chain as forwarding at propagation and pair the helper's discriminating assertion with the transferred boundary row on the helper-call line, reusing the helper-loan pairing shape and the shared forwarding validators. A dropped, let-bound, transformed or shadowed result still abstains. A receiver call of a free owner's name (expected.to_string()) no longer makes the expected side "computed through the owner", which capped the exact pin to weak and read a discriminated edit as a gap. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
…er negatives Extend authored-method-hop with an owner that has a second, unreached Display caller (positive), a helper reaching two callers, a method that transforms the result and a helper that drops it. Truth comes from cargo test on a copy outside the workspace, mutant by mutant. The three existing method-hop rows move from limited to credited, credited and gap. Document the multi-caller and asserting-entry rules in RIPR-SPEC-0158. 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 3 minutes. View limit details
Comment |
Review of record (head eadefe4)Angles: an independent adversarial false-credit review (boundary_pairing, helper_transfer, reveal), plus my own reproduction of each claimed path with the branch binary on scratch crates (
Local Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- crates/ripr/tests/helper_wrapper_reach.rs:1197 — No negative test asserts that the asserting-entry rule is inactive when the test passes a non-typed receiver (e.g.
check("1 big", &Size(1_024), true)or alet b = Size::kib(1); check(...)form). The pair already covers transformed and unobserved helpers, but not the boundary row's path into the chain, so a future regression that re-credits a typed-parameter gate failure could pass the tests silently. Consider adding one helper_wrapper_reach test where the test passes&Size::kib(1)to assert!exposed(stays limited). - crates/ripr/src/analysis/classify/helper_transfer/asserting_entry_tests.rs:62 — The negative test only covers a small set of transform/drop patterns. A body with a doc comment
///outside{(function-level) is fine, but a body with an inner doc comment//!or attribute#[allow(...)]betweenfn name(args) {and the assertion is not exercised. asserting_method_entry requires masked.len() == body.len(), so a comment inside the body would correctly fail-closed, but the unit test does not assert that behavior. Add one case: helper body// note\n assert_eq!(expected, b.to_string_as(si));-> rejected.
Verification questions
- Confirm the transformed-result integration oracle uses assert_ne!, whereas the principal positive spec shape uses assert_eq!; add an assert_eq! transformed-result integration case if this syntax-specific route matters.
- Confirm the feature surface spans classifier, syntax, reveal, integration tests, and corpus fixtures; docs and expected rows align with the stated accept/reject behavior.
- Confirm assert_ne! helper bodies are matched by assertion_comparison_operands but the parenthesis offset is computed against 'assert_eq!'.len(), so an assert_ne! with the same byte count after the macro name is fine but a one-off number/length in the assertion cannot be ruled out without a targeted test.
Refuted
- The new eager-call pairing may read a stale view length after a backing-store resize, detach, or transfer.; refuted because: No active-view or native-buffer object participates. HelperLoan::eager_call_lines is analyzer metadata populated from syntax call lines and consumed synchronously during immutable classification; the PR has no detach/resize/transfer path.
- This Rust analyzer change could introduce a worker/async handoff memory-lifetime or transfer-safety defect.; refuted because: No worker, async, GC, detach, native boundary, or transfer path is changed; unsafe-review found no new gaps or worsened findings.
Parked follow-ups
- eager_call_lines superset semantics tested by fixture check_pretty's ByteSize::kib(1) call with shared line; sibling check_twin still triggers both-caller decline via the multi-caller path, not via entry_loan.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
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.
Confirmed findings
- entry_loan_pairs_boundary_call reuses
line_at_call_budgetto fail closed on busy lines, but the new eager_call_lines path introduces lines likecheck("1 big", Size::kib(1), true)where the helper call's text contains another call's text. The 'one helper call, no other top-level call' check passes when Size::kib(1) is inside arguments, but a future test that adds a sibling helper call on the same line would silently zero the pair. Coverage missing in helper_wrapper_reach.rs (no negative for two-helper line). is_identifierandcontains_wordare used byasserting_method_entrybut not re-exported from helper_transfer's existing public surface; if the function is meant to grow to cover more receiver shapes (e.g.&b,selfon impl method), the comment-stripping viamask_rust_comments_and_stringsis a second string-walk overtop.caller.bodyand the body has already been masked once for the{ ... }extract. A single masked handle threaded through the function would keep that contract testable.
Verification questions
- Confirm eager_call_lines is populated only when start-line == end-line of the call, so a multi-line call expression still flows through call_lines (fail-closed path).
- Confirm asserting entry is fail-closed: masked body must equal raw body (no inner comments/strings), exactly one assert_eq!/assert_ne! statement, one operand the rebuilt call, and the other free of receiver/method/owner direct call.
- Confirm entry-loan pairing lacks direct regression coverage for non-typed receivers and let-bound constructor inputs.
- Confirm
calls_owneris introduced to handle free-owner receiver-only mentions, butmentions_only_as_receiver_callis a new helper on helper_transfer. The naming suggests a method-level helper but the spec only uses it for free-function owners viais_some_and(\|symbol\| !symbol.0.contains("::impl "))in reveal.rs. Architecture-wise, the right home is reveal.rs's text-utility cluster, not helper_transfer.rs, since it doesn't depend on helper/hop state.
Refuted
- A
Box::from(slice)/Box::<[u8]>::from(slice)allocation-failure path is added or weakened by this diff.; refuted because: The diff is purely in the ripr analyzer: helper classification, boundary pairing, owner-pin reveal, and verdict corpus fixtures. NoBox::fromslice pattern is touched, no allocator surface is modified, and the neweager_call_lines: Vec::new()andentry_loanclosures are deterministic. Allocation failure is not raised by the current diff or seeded thread. - The failed ripr sensor proves a security-critical defect in the new classification path.; refuted because: Exit code 2 establishes missing analyzer evidence, not a security exploit. The added tests and corpus cases specifically exercise false-credit boundaries, and no memory-safety or sensitive-data impact is identified.
- The two transformed/unobserved corpus rows are not real test gaps but an intentional abstention; the integration test bytesize_shape_not_observing_the_method_result_is_not_exposed already exercises a dropped-result helper and a let-bound transformed helper and asserts !exposed; refuted because: crates/ripr/tests/helper_wrapper_reach.rs:1226 covers both cases at the predicate-finding level. The two new corpus rows pin the propagation_unknown classification; they are not tests but verdict observations.
- PR could introduce a stale active-view length that survives a detach/transfer and is read as a snapshot.; refuted because: Diff touches only Rust analyzer code, fixtures, docs, and JSON. No ArrayBuffer/TypedArray/ResizableBuffer/SharedArrayBuffer/detach/transfer/structured-clone surface is present. HelperLoan.eager_call_lines is a Vec of source line numbers, not an active-view byte length, and the new entry_loan_pairs_boundary_call recomputes which call an activation row describes from call text, not from any cached length.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Parked follow-ups
- entry_loan deliberately drops the owner-name identity gate that
helper_loanapplies; the spec justifies this only for asserting_method_entry, but the new closure is plumbed into WrapperEntryPairing where any future chain shape reusing it would silently inherit that bypass. Worth a comment cross-link so the gate-skip is not copy-pasted elsewhere.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REPAIR_REQUIRED on 241eab8 for the new owner-result admission. False exposed was not reproduced.
reviewed_head_sha: 241eab8
integration_basis: PR base 4ae001a; independently fetched main 27949d7. Candidate tree da83c06f65cd073024845ceae0a1457c1e8c0141. No candidate source edits.
[P1] Bind the callee in each forwarding hop before admitting the asserting entry
At helper_transfer.rs:1817, asserting_method_entry lifts the observed chain's result-forwarding refusal. Its lower-hop check follows a bare callee name but does not establish that the callee in that caller file is the changed owner. A separate module can import std::cmp::min while the changed root function is also named min. The observed result then belongs to std::cmp::min, not the changed owner.
Dependency-free reproduction (package edition 2021):
// src/lib.rs
pub const KB: u64 = 1_000;
pub const KIB: u64 = 1_024;
pub struct Size(pub u64);
impl Size {
pub const fn kib(count: u64) -> Self { Size(count * KIB) }
}
mod display;
pub fn min(bytes: u64, si: u64) -> u64 {
let unit = if si == 1 { KIB } else { KB };
if bytes <= unit {
1
} else {
2
}
}
#[cfg(test)]
mod tests {
use super::*;
fn check(want: u64, size: Size, si: u64) {
assert_eq!(want, size.shown(si));
}
#[test]
fn observes_std_min() {
check(1, Size::kib(1), 1);
}
}// src/display.rs
use super::Size;
use std::cmp::min;
impl Size {
pub fn shown(&self, si: u64) -> u64 {
min(self.0, si)
}
}Analyze the line-10 diff if bytes < unit { -> if bytes <= unit { through ripr check --root <fixture> --diff <change.diff> --mode fast --format json. Fresh main and candidate executions both finish with infection_unknown and zero exposed findings; candidate alone changes propagate unknown -> yes. Native cargo test --offline --manifest-path <fixture>/Cargo.toml --lib executes and passes 1/1 test with the edited root function. The import fixes the actual caller to std::cmp::min; the root owner is uncalled.
The stage's owner-local return-sink summary alone is not the finding. The defect is accepting this wrong callee as owner-result forwarding under the new SPEC-0158 asserting-entry contract (lines 93-106) and AGENTS.md's entity-identity invariant. The final unknown verdict limits the observed impact; it does not establish the admitted owner/result identity. No claim that this control currently reads exposed.
Fix direction: repair the existing candidate's shared call/chain owner so each admitted hop checks caller-file imports/shadowing and callee identity, or refuses that unresolved hop. Retain a split-module wrong-owner regression that rejects this admission, together with the legitimate forwarding positive. Do not promote the final class or re-bless the control as exposed.
Fresh proof observed in this cloud environment:
- Rust 1.95.0, x86_64-unknown-linux-gnu; candidate public API command
cargo test --locked -p ripr --no-default-features --features lang-rust --test helper_wrapper_reach bytesize_shape -- --nocapture: 2 passed, 37 filtered. It invokes check_workspace and rendered JSON. - Identical inputs on independently built main vs candidate: existing method-hop-field-read-hit and method-hop-field-read-name-collision each move propagation_unknown -> exposed; new method-hop-multi-caller-hit does likewise. Transformed-result and unobserved-result controls remain propagation_unknown on both.
- Retained authored-method-hop baseline: native Cargo executes 10/10 passing tests. Individual <= and > mutants of pretty each fail only pretty_formats_one_binary_unit (9 pass/1 fail); the same two mutants of masked and unseen each pass all 10 tests. These are newly executed results, not the saved truth labels.
- Candidate native controls: borrowed typed receiver and inert comment retain exposed; two helper calls sharing a line withhold exposed (weakly_exposed). This refutes the review premise that a borrowed typed receiver must be refused. Existing receiver_value/tests.rs explicitly accepts borrowed constructor values, and method_hop_tests.rs accepts reference parameters. Masking preserves length; it does not require raw and masked contents to be equal. Coverage/style suggestions are non-blocking; no unrelated active-view, allocator or async-lifetime defect was found.
- Candidate executable sha256 41f28a9e7a72149979a6696246cc6962f49c1fd25b10d995b140773af16dbd28; main executable b4b83f1120daadeccfa7926c2cba0f8137006c928f1f5dd4e9ed78bf8caf246e. Builds used separate source trees, serial Cargo invocations, Rust-only features, two jobs and no debug/incremental output. Full default-feature qualification is separate.
Inspected surfaces: all changed source, test/corpus stimulus and literal oracles, SPEC-0158/changelog, helper-transfer/activation/owner-pin/reveal consumers, actual CLI/JSON, current review comments and submissions. Independent source and oracle review informed the controls; the delivery lead verified their load-bearing results. No literal-boundary #9637 repair, rival branch, or protected-scope work was created.
proof_or_review_missing: complete hosted qualification and actual checkout identity. Existing run https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/39772196360 attempt 1 is already running; last inspected job 119802500498 had required Rust tests in progress and Schema producer sweep pending. The job explicitly contains the #9560 sweep; it has not been counted as passed. Earlier author precommit/goldens/corpus results remain reported evidence on their original head, not newly run checks. #9628's missed-credit ratchet is still an open PR, absent from fetched main; this review establishes two existing-row improvements, not a committed ceiling edit or a fresh whole-corpus metric.
Owner / governing claim: existing #9642 candidate under #9329 and #9638; no ownership transfer or rival implementation.
Dependency: accepted owner/result admission finding above; existing required qualification remains running and must not be duplicated.
Next: repair this same candidate, preserve the forwarder and surviving-mutant controls, then refresh affected native proof and current-head review/CI. The delivery lead retains integration responsibility. No merge clearance is issued.
…callee A hop whose file imports or macro-defines the callee name, or whose body rebinds it, no longer lets the asserting-entry admission count the observed result as the changed owner's (std::cmp::min vs a local min). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
main does not compile until #9701 lands (E0425 on the refusal subject in validate_artifact_identity); the one-line change is identical to #9701's and no-ops once main carries it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
There was a problem hiding this comment.
Confirmed findings
- The pre-existing bare-name hop binding in hops_forward_owner_result and chain caller enumeration is called out by the author as not changed here and filed on #9603. From a source-route view this is a parallel public API to the new hops_call_the_indexed_callees gate; if #9603 is not closed before this PR merges, the same foreign-std::cmp::min class of bug can re-enter via a different route.
- Active-view lens: PR touches no ArrayBuffer/TypedArray/resizable-buffer/detach/transfer surface; the only new collection shape is Vec of line numbers. Lane has no public active-view finding.
- The
method-hop-field-read-traprow now lands on the weak-gap label, but the spec bullet at line 99 still describes it as 'ripr must not credit it and reads the weak gap' and the surrounding accept/reject block at lines 214-220 never names the weak-gap contract for cases that read no boundary row. Earlier review (github-actions[bot] summary) flagged the gap vs limited wording as ambiguous; tying the weak-gap label to a single sentence and one example row is insufficient. (docs/specs/RIPR-SPEC-0158-bounded-value-transfer.md:99). - crates/ripr/src/analysis/syntax/owner_pin.rs:122 — HelperLoan.eager_call_lines is added but only boundary_pairing::entry_loan_pairs_boundary_call consumes it. helper_transfer::helper_loan (and its existing test surface) still keys on call_lines; if a future admission path also wants the eager set, it must reach into the same field. Worth a one-line doc note that eager_call_lines is intentionally a superset and that consumers must re-derive 'which call an activation fact describes' on those lines, matching the comment already on the field.
- Author's own changelog bullet lumps two different verdicts (field-read row flip limited->credited and trap row flip limited->gap) under one sentence; a future reader cannot tell from the bullet which corpus row changed which way without diffing the case files.
Verification questions
- Confirm pR body mutation claim says
<=and>each kill for the hit and both-reached cases and survive for transformed/unobserved. The hit case (bytes <= unitvsbytes < unit) does flip onSize::kib(1)+si=true, so the kill is real; for both-reached,<=does NOT kill (see observation 3) — only>does. Mismatch is with the PR body's own mutation proof, not the code under review, so summary-only. - Confirm github-actions review's first finding (no negative asserting the asserting-entry rule is inactive for a non-typed receiver) is still open in test form: bytesize_shape_not_observing_the_method_result_is_not_exposed covers dropped/let-bound helpers but not 'typed-receiver gate fails closed' (e.g.
check("1 big", &Size(1_024), true)). Pairs with the seed ofasserting_entry_tests.rswhich only exercises the typed receiver happy/sad path. - Confirm entry_loan_pairs_boundary_call's per-line 'one helper call, no sibling top-level call' check at boundary_pairing.rs:402-421 is a weaker gate than the standard loan_pairs_boundary_call: it only rejects when a non-helper call on the line is NOT textually contained in the helper call's text, and it does not assert the row is the helper's own. A second helper call on the same eager line (
check(x); check(y);) would slip past owner_call_count because owner_call_count counts helper call occurrences in the helper-call TEXT not the line. No negative test covers two-helper-on-same-line in helper_wrapper_reach.rs. - Confirm corpus row method-hop-multi-caller-both-reached.json expects 'limited/infection_unknown' with a hand-run
bytes > unitmutant that also fails cargo test. The listed mutant isbytes <= unitwhich passes twin (the<is replaced by<=, so the boundary-inclusive case still formats as before — the extra statement insidecheck_twinmakes both mutants survive). The truth field saystests_failedforbytes <= unitbut that contradicts the reasoning. This is a corpus-truthing question, not a code bug. - Confirm entry-Loan accepts a multi-call line like
check("1 big", Size::kib(1), true)only when one helper call exists and every other call's text is contained in the helper call's own text. A future two-helper line (e.g.check(x); probe(y);) would silently zero-pair without any test guarding it.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package ripr --test agent_command_journey. This is a current failure, not a red/green witness.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
CI status on f75b5be (not this PR's)Every red check on f75b5be ( Generated by Claude Code |
There was a problem hiding this comment.
Confirmed findings
- crates/ripr/tests/helper_wrapper_reach.rs:1233 — No negative for entry_loan_pairs_boundary_call on a line where another non-helper top-level call sits beside the helper (e.g.
tracing::debug!("x"); check("1 big", Size::kib(1), true);). Add one bytesize helper to assert !exposed so a future sibling-call regression is caught. - pre-existing hops_forward_owner_result / chain caller enumeration still do not bind the lower-hop callee identity; the same std::cmp::min class of bug can re-enter there until #9603 closes.
Verification questions
- Confirm current regression coverage does not scan lexical binding forms beyond let/fn declarations, leaving a possible same-named closure/parameter/use-alias route requiring manual confirmation or follow-up tests.
- Confirm boundary pairing consumes eager_call_lines but independently requires a unique helper call and a matching activation row naming only owner parameters, so argument-contained calls cannot substitute an unrelated call fact.
- Confirm call-line ambiguity handling lacks a direct regression test for two helper calls on one line.
- Confirm entry_loan_pairs_boundary_call's
helper_call.text.contains(&*call.text)is the only gate against a sibling call on the line; if that call's text is a substring of the helper's, the helper call is still the only oneiter().filter(name == loan.name)returns, so a non-helper call (debug!(check(...))) silently zeros the pair. - Confirm a same-line sibling helper-call negative is absent from the changed integration coverage, leaving eager_call_lines' line-selection contract verified mainly by implementation and corpus artifacts.
Refuted
- The helper assertion may be paired with an unrelated boundary call on the same line.; refuted because: entry_loan_pairs_boundary_call filters through line budget and requires the activation row to contain the selected helper-call text and owner-parameter-only terms.
- Operand match is token-level after whitespace squash, not syntactic; an expected operand like 'format!("{}", b.to_string_as(si))' would still be admitted because the formatted text equals the squashed call.
- The new assertion-entry pairing creates a worker/async/GC handoff lifetime risk.; refuted because: The diff contains no worker, thread, future, JavaScript value, garbage-collector-managed object, detach operation, transferable resource, unsafe pointer, or ownership transfer. Its references and loans are synchronous analyzer borrows constrained by Rust lifetimes.
- The changed receiver-call naming logic could expose an unsafe memory or information-disclosure primitive.; refuted because: The diff operates on analyzed Rust source and test facts; it introduces no unsafe blocks, raw pointers, unchecked indexing, allocations, I/O, or secret handling.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
# Conflicts: # changelog.d/9329-method-hop-field-read.md # crates/ripr/tests/helper_wrapper_reach.rs # docs/specs/RIPR-SPEC-0158-bounded-value-transfer.md
…ries Main's tip (280e020) landed .ripr/traceability.toml with the RIPR-SPEC-0288 entry truncated: its outputs array is unterminated, the following [[behavior]] header for RIPR-SPEC-0289 is missing, and the 0288 metrics array is absent. tomllib rejects main's tip file at line 18162 and cargo xtask check-traceability fails on every PR merge ref built on it. This merge restores the three missing pieces exactly as the sibling entries and RIPR-SPEC-0288's own spec (line 198: unit_test_pass_rate) declare them. tomllib parses the result (303 behavior entries) and cargo xtask check-traceability passes.
Main's #8989 added RustTestStub.already_present but landed without updating the hand-built stub in next_repair_start_preserves_a_literal_backslash_unix_root, so cargo check --workspace --all-targets fails E0063 on main's tip (0285907) and on every merge ref built on it — reproduced locally on the exact tree before this fix. The stub models a brand-new empty integration file, so the faithful value is already_present: false, matching the sibling initializers at test_stub.rs:1668 and :1725 and the producer in analysis/test_stub.rs. cargo check -p ripr --all-targets now passes and cargo test -p ripr --lib app::test_stub is 23 passed, 0 failed.
There was a problem hiding this comment.
Verification questions
- Confirm entry pairing now has fail-closed behavior for ambiguous helper calls, but the diff lacks a direct regression for two helper calls on one line.
- Confirm the typed-receiver admission path has no focused negative proving a non-typed helper argument remains unexposed.
- Confirm the new corpus includes a discriminating multi-caller case but deliberately leaves the both-reached case as limited despite its runtime-killed mutant.
- Confirm the previously reported same-line sibling-call ambiguity remains an uncovered boundary-pairing branch.
- Confirm the source-route evidence does not cover all lexical rebinding or alias forms admitted by Rust, so sibling binding routes remain a bounded verification risk.
Refuted
- The new boundary-pairing route might pair an unrelated activation row when a helper call shares a line with another call.; refuted because: entry_loan_pairs_boundary_call requires a unique helper call and rejects unrelated top-level calls on that line; the seeded review identifies this as a coverage request rather than a reproduced defect.
- eager_call_lines introduces a stale backing-store view that could diverge after mutation.; refuted because: The field owns a Vec populated during the current owner_pin analysis pass. Consumers use those line numbers with the current test.calls and activation evidence; there is no shared buffer, slice view, or mutation/resize API.
- The changed eager-call metadata crosses a worker, async, GC, detach, or transfer boundary.; refuted because: The patch uses ordinary Rust Vec values and synchronous function calls; it adds no JavaScript runtime object, asynchronous task, shared-memory handle, detached resource, or ownership transfer.
- The new path could retain borrowed data beyond the validity of the owner or test summaries.; refuted because: The added state is owned Vec and existing references are tied to the borrowed summaries passed to the relevant functions; no self-referential structure, unsafe dereference, or lifetime extension is introduced.
Evidence gaps
- The trap corpus has no mutant witness proving that the asserted boundary remains non-discriminating.
- Model proof intent was rejected by deterministic validation.
Parked follow-ups
- The callee-binding repair addresses the seeded foreign std::cmp::min false-credit concern, but lexical binding analysis remains narrower than full Rust name resolution.
|
Review of record, head 480e7a5 Angles: correctness and false credit (callee identity, receiver cells, Findings: Steven's P1 callee-identity review is fixed (workspace-unique callee, no import or rebinding in the hop) and he verified it at 440f39d. The red checks on the intermediate heads were a main compile break (duplicate Generated by Claude Code |
Summary
assert_eq!is onb.method(args)(the method hop's result) now pairs that assertion with the owner when the hop forwards the owner's result, so a discriminated bytesize-shaped edit readsexposedinstead ofpropagation_unknown.expected.to_string()) no longer counts as "expected computed through the owner", which capped the exact pin to weak.authored-method-hopcases (method-hop-multi-caller-hitcredited and exposed;-both-reachedinfection_unknown;-transformed-resultand-unobserved-resultpropagation_unknown). The three existing field-read rows move:-hitand-name-collisionfrom limited to credited,-trapfrom limited to gap. No other corpus row moves; false verdicts stay 0.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Spec: RIPR-SPEC-0158
Governing issue or accepted claim: #9329 (under #9276); also #9638 (forwarded-result missed credit)
Acceptance delta (one sentence): a bytesize-shaped method hop with a discriminating
assert_eq!on its result readsexposed, and unobserved or transformed results still abstain.Candidate Relationships
Candidate branch: claude/9329-method-hop-b
Stack parent or prerequisite PR (if any): #9602 (base branch claude/9329-method-hop-a; retarget to main when it lands)
Proof
cargo xtask precommit,cargo xtask goldens check,cargo xtask verdict-corpus check-all: pass on this head.<=and>each fail the tests for the hit and both-reached owners (killed) and pass for the transformed and unobserved owners (survive), matching the labels.Generated by Claude Code