Repository navigation
fix(repair): a proximity test pinning another function cannot credit any seam kind (#12146) - #12254
EffortlessSteven wants to merge 6 commits into
Conversation
|
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 39 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! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY — head d292299
Review of #12254 (fixes #12146) at the current head. d292299 differs from the 9b3896c I was first asked about only by 15 lines of RIPR-SPEC-0094 text. I built ripr at the merge base (f7d4d71) and at 9b3896c and ran both on the six re-blessed fixtures and the honesty subject; the code and goldens did not change between 9b3896c and d292299. I did not run the lib or integration tests (the test binaries cannot be linked here), so the new unit test is read, not executed.
The rule
credited_related_tests no longer gates on SeamKind::MatchArm. A test related to the owner only by proximity or assertion affinity loses any assertion that calls an indexed function with no name path to the owner (assertion_pins_other_function, which fails closed on implicit dispatch and checks the owner's full reverse closure). Any test that calls the owner, or whose assertion also reaches it, keeps the assertion. The credited views are built once per seam and shared by the oracle ranking (the owner-reach walk happens once, not per test).
Each of the six flips is correct (checked with the built binaries)
| Fixture | merge base | this head | Why |
|---|---|---|---|
owner_parameter_token_coincidence (tax) |
strongly_gripped, "no repair start; check and repair conflict" | weakly_gripped, discriminate weak, repair start offered | The only strong credit came from subtotal_multiplies, which asserts subtotal(3,100)==300 and never reaches tax. tax_is_owed has assert!(owed > 0). A weak-assertion gap with a direct owner call is a legitimate repair target. |
proximity_unrelated_oracle_not_credited (make) |
strongly_gripped | reachable_unrevealed (yyunn) | Strong oracle came from other_test, a different function's assertion. Repair still not offered; it now names the missing return-value assertion. |
one_hop_field_projection_wrong_sink (stats) |
activation_unknown, strong oracle | reachable_unrevealed, oracle none | Strong credit was sentinel() == 19, unrelated. |
owner_return_pin_pointer_glob_shadow |
activation_unknown, strong | reachable_unrevealed, none | Credit came from f(2)==6 resolved to the decoy; no owner path by name. |
owner_self_body_same_name_with_caller_control (get, peek) |
strong from other_test |
none | Same pattern. |
rust_slice_table_try_exit (mean_latency, ratio) |
strongly_gripped / activation_unknown | reachable_unrevealed | They were credited by other functions' table tests. |
Direct-owner seams in the same fixtures (average, discount, initial) keep their strong credit and class, and in the honesty subject reduce's own tokens > 9 is unchanged (weakly_gripped, strong oracle from reduce_over's direct call). consume's wait < 5 goes from activation_unknown yyyyy-with-strong-oracle to reachable_unrevealed, matching the owner's probe. The unit test pins full and compact paths to (Unknown, No, No) for the other-function case, Yes/Yes/Yes when the same test also calls consume, and the own-predicate control.
Only one flip changes actionability toward offering a repair (owner_parameter_token_coincidence), and that one is a true weak-assertion gap. The other five still do not offer one.
Minor, non-blocking
- Four goldens drop "a test input that reaches the changed code" from the missing list: the seam's class moved from
activation_unknowntoreachable_unrevealed, which carries no "incomplete evidence stage: activation" item, while the activation stage in those seams still reads unknown (e.g.mean_latency's boundary operands are unresolved). No repair start is offered in any of them, so this is wording; it would be more accurate if the activation need stayed in the list. Worth a follow-up issue rather than a block. rust-repo-exposure-uncalled-sibling.jsonregenerated as many lines but the content change is two related-test oracle strengths and their order (conversionsnownoneforas_kb); metrics are unchanged.
Cache
1.134 / 0.138 is the next free value on origin/main (still 1.133 / 0.137), and I recomputed the boundary_gap unchanged-after-attempt chain: content hashes and receipt entries are consistent. #12246 claims the same 1.134 / 0.138. Whichever merges second must re-bump (to 1.135 / 0.139) and re-chain; the hash values will change then, so the second PR needs a delta review.
Ripr Rust Small Result was not visible on this head; it must be green on the exact head before merge.
Generated by Claude Code
|
The Also merged main (#12211 took cache 1.134) and re-bumped to 1.135 / 0.138 with the first-useful-action hashes re-chained; new head is pushed for a delta review. Generated by Claude Code |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY — head 9572a48
Delta review of #12254 against d292299 (my REVIEW_READY). The push is one merge commit of origin/main (bringing in #12211, f7d4d71..4ec3eda) plus the re-bump. I did not run the test suites; I read the diffs, recomputed the hash chain, and built ripr at this head to probe the interaction with #12211.
seam_cache.rs conflict resolution — correct
origin/main is at full 1.134 (#12211: local-bound proximity assertions, #12056) with sharded and compact still 0.137. This head keeps main's 1.134 line and its doc comment intact and adds 1.135 for #12146 on top, with sharded and compact at 0.138 (doc lines say "same as full 1.135"), and the version-assert test, OUTPUT_SCHEMA.md and the two currentness constants (gap_corpus_currentness.rs, xtask/src/tests/rust_corpus_projection.rs) are all at the new values. The merge introduced no other change in this file.
Hash chain: I recomputed the boundary_gap unchanged-after-attempt files with the raw_json_placeholder_v1 rule. Both repo-exposure files hash to their stored content_sha256 (f36590e9…), agent-verify.json carries the same before/after value, and the whole-file hashes in agent-receipt.json match the two repo-exposure files and agent-verify.json.
Side note on #12211 (not this PR): it bumped only the full cache to 1.134 and left sharded and compact at 0.137, although it changes classification. This PR's 0.138 bump covers it going forward.
Does #12211 interact with the every-seam-kind gate? Only by not composing
#12211 changed ripr check's per-assertion path: its assertion_pins_other_function closure now takes the test and appends each single immutable local's initializer to the assertion text, so let r = reduce(3); assert_eq!(r, Reduction::Over(3)) counts as pinning reduce. The repo-seam gate in this PR (credited_related_tests in test_grip_evidence.rs) still calls TransitiveReach::assertion_pins_other_function(&oracle.text) on the assertion text alone, so it does not see the initializer.
Probe on the built head, honesty subject proximity-other-function with the test rewritten to bind the call first:
assert_eq!(reduce(3), Reduction::Over(3)):consume'swait < 5isreachable_unrevealed, oraclenone(the gate works).let r = reduce(3); assert_eq!(r, Reduction::Over(3));:consume's three match-arm seams readstrongly_grippedwith a strong oracle fromreduce_over, andwait < 5readsactivation_unknownwith the strong oracle published. The gate is bypassed by the local-binding spelling.
That is not a regression from this PR or the merge (match arms had the same limit after #12132, and ripr check and the repo seam now disagree on that spelling), but the gate's comment says the repo seam "must agree" with ripr check. I recommend a follow-up that feeds the same local-initializer text into the repo-seam gate (it needs the index and the test, which credited_related_tests can be given), with a pin on this exact spelling. I would not block this PR on it.
Cache value collision with #12246
#12246 is still at 1.134 / 0.138 (head 1eaba50). 1.134 is now taken on main, so it must move to at least 1.135/0.138 for the full cache, and sharded/compact 0.138 is what this PR uses. If both PRs land with 1.135/0.138, the second to merge has to re-bump to 1.136/0.139 and re-chain the same boundary_gap hashes, and I will delta-review that one.
Ripr Rust Small Result was not visible on this head (ranking failure noted by the coordinator as a separate main break); it must be green on the exact head before merge.
Generated by Claude Code
|
Ranking attribution and claim-boundary reconciliation for the existing #12254 owner. The main job 124976929790 on Please reconcile the identical-main attribution with those subjects. Recover the retained per-pick rows and use the existing #7167 matched-pick attribution to distinguish admission/removal, ordering and answer-key joins before assigning cause or changing a baseline. A capped 300-file listing across the main span is not exhaustive causal proof. Preserve #12246’s separate missing-snapshot owner. Separately, #12264 records the pre-existing immutable-local assertion gap: the current repo-seam gate uses |
|
Correction to my earlier "main fails the same step" comment: that was wrong. The main run (f7d4d71) fails on a pick count (39 → 38) with diversity 27/38 not regressed; this PR's jobs fail on Generated by Claude Code |
|
Gate-triage record for the ranking red on this PR (verified 2026-11-02 via retained per-pick rows, no code changes made). Verdict: stale-baseline handoff, not a candidate defect. The PR behaves as specified; the pooled share moves 0.7179 (28/39 baseline) to 0.7 (28/40) because it restores two true rust-hex error_variant picks that the old baseline hid behind over-credited affinity oracles. Evidence (matched by repo pin + file/line/kind/owner; corpus 2026-10-04.1 identical both sides): admission +2, both rust-hex, zero removals elsewhere (semver/bytesize/humantime/strsim rows byte-identical). Added: src/lib.rs:226 Err(OddLength) in Vec::from_hex and src/lib.rs:352 Err(OddLength) in decode_in_slice, both refuted owner picks joining via whole-body FnValue mutants. Only rust-hex displaced (230 rank1 to rank5); no independent reordering; answer-key joins unchanged for every matched pick. Pooled: distinct 27 to 28, picks 38 to 40, refuted 17 to 19, confirmed 7 to 7, scored_share 0.6316 to 0.65. Causation isolated by binary experiment (rust-hex at pinned e25a8701, main files vs PR test_grip_evidence files swapped in). Under main both seams discriminated solely on kind-matching ExactErrorVariant oracles from tests with no path to the owner, refused per spec d292299/RIPR-SPEC-0094 under this PR; for 352 no owner-pinning OddLength test exists (only an Ok doctest), so this is a true restoration. The 226 direct test stays credited strong through the untouched ExactValue taxonomy (separate #3731 lineage, not this PR). Resume condition: the ranking baseline owner validates this cause and refreshes the comparison baseline through the normal route (cf. #11054 precedent) with its own tolerance judgment. Do not relax tolerance in this PR. Missing evidence note: the 39-pick comparison-baseline rows are not in the retained inputs, so baseline-vs-PR matching below pooled counts is unproven; main-vs-PR matching is complete and sufficient for the causal verdict. |
|
|
9572a48 to
06f8a0c
Compare
|
Source review of integration head |
|
For the arity finding in my preceding comment, the affected path is the direct probe-line return-value fallback ( |
|
|
|
|
…kind (#12146) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri
…tures Rebase PR #12254 onto origin/main after #12496/#12359 landed on main. Keep main's app/test_stub.rs (no E0061 carry). Cache generations: 1.139 and compact/sharded 0.141 for the every-seam-kind proximity rule (#12146) after main's 1.138/0.140 (#12359). Recapture honesty reports at 1.139 (including adapter-fed-error collateral), refresh unchanged-after-attempt portable repo-exposure snapshots and agent verify/receipt bindings, and bless owner_return_pin_json goldens affected by the same proximity refusal. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
070408c to
b133f76
Compare
|
Affected-source disposition on The six refreshed JSON-owner goldens now report |
| /// function (`assert_eq!(reduce(..), Reduction::Over(..))`), while the same | ||
| /// assertion in a test that also calls the owner still counts. Pinned through | ||
| /// both the full and the compact entry points, which must agree. | ||
| #[test] | ||
| fn proximity_test_pinning_another_function_cannot_credit_a_predicate_seam() -> Result<(), String> { |
There was a problem hiding this comment.
The new test was inserted between the existing /// doc comment block (lines 13655-13657) and the test it documents, proximity_test_pinning_another_function_cannot_grade_a_match_arm_up.
The match-arm doc comment now attaches to proximity_test_pinning_another_function_cannot_credit_a_predicate_seam, which describes the wrong scenario. The match-arm test has no doc comment.
Move the new test above the doc comment block, or move the doc comment back to sit directly above the match-arm test, and give the new test its own doc comment.
Spotted by Graphite
Is this helpful? React 👍 or 👎 to let us know.
There was a problem hiding this comment.
Confirmed findings
- Current-head behavioral execution is not established: the new predicate regression test and regenerated fixtures lack a completed cargo-test receipt, while the rippr sensor failed.
Verification questions
- Confirm the new predicate test covers the intended negative case, an owner-reaching control, and the pinned function's own predicate control.
- Confirm collateral JSON-owner goldens now classify direct-owner assertions as uncredited because serde_json cannot be resolved from the fixture manifest.
Evidence gaps
- Current-head runtime behavior of the new every-seam-kind rule is not independently witnessed because the cargo-test receipt is absent.
- No completed current-head cargo-test receipt establishes that the new regression test and regenerated fixtures pass.
- Current-head execution is the principal security-review residual risk because assertions and generated fixture integrity were not witnessed by a completed cargo-test receipt.
- Current-head execution of the new regression test and regenerated fixtures is unverified by this packet.
- Model proof intent was rejected by deterministic validation.
- Current-head execution evidence for the new credit filter and regenerated goldens remains absent.
Parked follow-ups
- The uncalled-sibling fixture still publishes zero_size as a strong oracle although that assertion pins no indexed function; the seeded thread classifies this as pre-existing and tracked in #12256.
- The generated reports disclose local workspace paths and analyzer revisions, but these are fixture metadata rather than runtime data returned to untrusted users.
- Several owner-return JSON goldens change from exposure gaps to rust_assertion_context_unestablished; this follows a separate macro-resolution limitation rather than the proximity sibling rule.
|
|
|
|
|
Cache-order update for the existing writer: #12368 landed as |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Bounded source review — 2026-11-05 UTC
- reviewed_head_sha:
b133f760c81238122bb29e977e02fdb65d96a7b5. - integration_basis: current metadata base
9473e16adcce979727385e198f83791fc870c7a2; authored merge-base diff and immutable candidate source inspected. No fresh composed integration execution. - claim_boundary: fix(repair): a proximity test pinning another function cannot credit any seam kind (#12146)
- changed_surfaces_and_semantic_owners_inspected: Inspected credited_related_tests filtering and owner reverse reach once per seam. Related-test suggestions remain while assertions are cloned/filtered for stage classification and oracle ranking, with full/compact parity. Source controls independently assert lost propagation/observation/discrimination for unrelated owner predicates, preserving direct-call and actual-owner positives; reviewed six golden behavior changes. Existing immutable-local-initializer bypass12264 is an explicit PR-body exclusion, and misleading zero-size oracle12256 already known. Unresolved displaced doc-comment thread is style-only; no new material finding.
- blocking_findings: No additional inline finding from this pass. Existing predecessor, owner and deferred-work holds described above remain.
- non_blocking_suggestions: None added.
- refuted_or_stale_findings: Repairs/refutations described above retained; resolved historical findings were not automatically reopened.
- proof_and_ci_observed: Immutable production owners, consumers, authored diffs and source regression oracle controls; current metadata, Conversation and review thread records retrieved. Earlier execution claims are reported only.
- proof_or_review_missing: No execution, builds, new mutation experiment, rendered analyzer run, independent CI receipt or final qualification. Existing predecessor/counterpart holds and accepted residuals retained.
- affected_currentness_dimensions: Head/base/open state reread immediately before publication; prior evidence remains bound to its original subject. Source coverage is bounded to the inspected owners and controls.
- residual_assumptions_and_non_claims: This COMMENT review preserves existing Draft/owner holds and does not establish final qualification, merge readiness or rollout.
- disposition: REVIEW_INCOMPLETE.
|
Taking over this candidate under the stale-claim rule (no activity since 2026-11-05; head Plan: merge current Generated by Claude Code |
|
Takeover finding: when I tried to merge current main ( Evidence on main:
What remains of #12146: the kinds main does not cover yet ( I am not closing this PR, changing labels, or touching the open Graphite doc-comment thread. The lead should decide whether to close it as superseded and narrow #12146. Generated by Claude Code |
|
Handoff (campaign sweep, 2026-11-08): State: not merging. I re-verified the 12:40 takeover finding against current main. Main landed the predicate_boundary and return_value other-function refusals (#12464, #12717), the once-per-seam reach build (#12537) and the SPEC-0094 text (#12660), under a reach-gated Generated by Claude Code |
|
Closing as superseded. Main already landed most of this claim under a reach-gated Generated by Claude Code |
Governing issue or accepted claim: #12146
Acceptance delta (one sentence): On the repo-seam path, a test related to a seam only by file, module or assertion affinity no longer lends any seam kind (not only match arms) its stage credit or a published strong oracle through an assertion that pins a different function, when the assertion text itself calls that function.
Cause
#12132 applied
credited_related_teststoMatchArmseams only. A predicate seam in a function the test never reaches still took the test's stage credit and a strong published oracle. Probe on theproximity-other-functionsubject before the change:wait < 5(ownerconsume) read propagate/observe/discriminate = (Yes, Yes, Yes) withreduce_over(pinsreduce) published asstrong.Change
test_grip_evidence.rs,related_tests.rs: drop theMatchArmgate. The credited view is built once per seam and indexed by position (the CodeRabbit perf finding on fix(repair): a proximity test pinning another function cannot grade a match arm up (#12060) #12132);credited_related_testsno longer takes the seam.wait < 5reads (Unknown, No, No) with oraclenone;reduce's own predicatetokens > 9keeps (Yes, Yes, Yes) and its strong oracle (positive control in the test).unchanged-after-attempthash chain regenerated.proximity_test_pinning_another_function_cannot_credit_a_predicate_seam: exact stages through the full and compact paths, published oracle, owner-calling control, own-predicate control.proximity-other-functiongains await < 5assertion; theuncalled-siblingreport is recaptured from the head binary (same defect:conversionspinnedas_kiband was publishedstrongon the uncalledas_kb).Goldens flipped (intended, blessed with spec ids)
proximity_unrelated_oracle_not_credited,owner_parameter_token_coincidence:ripr repairpreviously refused on a conflicting "exposed" reading created by the unrelated assertion; it now agrees withripr checkthat a gap exists. The second now offers a repair start.rust_slice_table_try_exit,one_hop_field_projection_wrong_sink,owner_return_pin_pointer_glob_shadow,owner_self_body_same_name_with_caller_control: the repair "still missing" list no longer carries a phantom "a test input that reaches the changed code" while reach is yes; it was read from an unrelated test that pins another function.Proof observed (by the author)
cargo test -p ripr --lib: 17354 passed, 0 failed (pre-merge head d292299).cargo xtask goldens check,cargo xtask fixtures,cargo xtask check-evidence-promotion-honesty,cargo xtask verdict-corpus check-all(0 false verdicts on the rust, typescript and other corpora),cargo xtask precommit: exit 0 on the pre-merge head d292299. The merge with Do not confirm a match arm from a proximity assertion bound to another function #12211 (head 9572a48) is covered by a delta review; a local re-run on that head is separate.Not established / excluded
Ripr Rust Small Resulton the current head.let r = reduce(3); assert_eq!(r, ...)). The repo-seam gate testsoracle.textalone while the classifier now expands local initializers (Do not confirm a match arm from a proximity assertion bound to another function #12211); this PR does not close that, tracked in Repo-seam proximity gate misses a call bound to a local before the assertion #12264.called_namesdoes not tell receiver method calls from free-function calls).rankingcheck failure is not attributed to this PR or to main; see Pilot Ranking gate fails on main and on #12254 with different regressions #12263.🤖 Generated with Claude Code
https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri