Repository navigation
fix(classify): name the unestablished link when the related assertion is already exact (#13037) - #16039
Conversation
… is already exact (#13037) A weak call_deletion, match_arm or field_construction finding fell to "Strengthen the related assertion so it discriminates the changed behavior" even when the strongest reach-establishing related test already asserts an exact value. Nobody can follow that step. The exact-oracle selection of RIPR-SPEC-0259 now covers those families: the step names the test and the link the static read could not establish. The default human "Missing check" line follows through the existing phrase match. Classes, stage states and evidence are unchanged; 44 fixture goldens re-bless with drift confined to the next-step text and its rendering. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmmxuDsVCBJtnqpTK3U
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Important Review skippedToo many files! This PR contains 158 files, which is 8 over the limit of 150. To get a review, reduce the PR to 150 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to Team to raise the limit. Enable 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.
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
Author inspection record for head 0882ecc (landing thread; an independent reviewer is being routed for the attestation).
- Production: three new arms in
exact_oracle_gap_next_step(CallDeletion,MatchArm,FieldConstruction). The selection predicate, eligibility (reach-establishing rows, admitted exact oracle, weak class) and the_ => Nonefallback are unchanged, sopredicateandside_effectkeep their templates. - Test:
exact_related_oracle_replaces_the_strengthen_templateasserts the named-test prefix, the family-specific link phrase and the absence of "Strengthen" for each family, with a weak-strength exact oracle control that returnsNone. The authoring session ran it green on 5c27aab; the lib test binary cannot link in this container, so hosted qualification runs it on this head. - Goldens: 44 fixtures. In
check.jsonthe only changed fields arerecommended_next_stepandsuggested_next_action(43 files each). Human drift is the next-step text and the "Missing check" line ("No strong assertion was detected" to "No assertion was tied to the changed value"), which the spec acceptance example names.cargo xtask goldens checkis clean on current main 7282e51 with no further re-bless. - Spec, traceability and changelog fragment are consistent with the code.
precommitandclippy -p ripr --all-targets -D warningsexit 0. - Size: 161 files, of which 157 are under
fixtures/**/expected/**(declared generated), so the ordinary limit is not reached. No path under the #16016 hold list is touched.
Generated by Claude Code
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent source review of head 0882ecc against #13037. Two wording findings; no ready marker from this pass.
Inspected: the four non-fixture files in full (classify/decision.rs including the whole of exact_oracle_gap_next_step and its one production caller in classifier/finding.rs, the spec amendment, the traceability row, the changelog fragment), and all 157 fixture files as a classified line diff against merge base 7282e51.
What holds:
- Selection is unchanged: weak class, a contributing reach-establishing row, strongest oracle admitted strong and exact. The three new arms only replace the
_ => return Nonefallthrough, so no class, stage state or evidence moves. - Golden drift is confined to the next-step text (
recommended_next_step,suggested_next_action, the humanNext steprows), the defaultMissing checkline thatplain_default_missing_foralready derives from that text, and one hidden-list regrouping inhuman_full_shared_parse_portthat follows from two rows now sharing a reason. No class or stage line changes in any of the 42check.jsonfiles. - Each bless entry cites RIPR-SPEC-0259.
Findings:
-
match_armstep names a link the same finding already reports as established, and has no branch for the common case. The step reads "Check whether a related test's input selects the changed arm. If none does, add one and assert the exact value that arm produces". All 10 re-blessed match-arm goldens print it besideinfection yes(inputs can activate the change), and their related-test row says the unconfirmed part is observation ("ripr could not confirm that this assertion observes the changed behavior"). Inhuman_full_shared_parse_portthe test isassert_eq!(parse_port("8080").unwrap(), 8080)on the changed armOk(p) if p > 0 => Ok(p): the input does select the arm, so the reader checks, finds yes, and the step says nothing more. That is the same dead end #13037 is about. Thecall_deletionarm handles this ("If it does, the assertion may already notice this change, which ripr could not confirm from the source"); thematch_armarm needs the same branch and should name observation as the open link, for example: "Check whether the value that test asserts comes from the changed arm. If it does, the assertion may already notice this change, which ripr could not confirm from the source. If no related input selects the arm, add one and assert the exact value the arm produces". -
field_constructionhas the same missing branch: "Check whether the value that test asserts includes the changed field. If it does not, assert that field's exact value" says nothing when the asserted value does include the field. Add the "if it does" sentence there too. The spec amendment's per-family text should follow both changes.
Smaller:
- The new unit test asserts the positive text and a weak-oracle control per family, which pins the helper. The production path (
finding.rscaller) is pinned only by goldens; that is adequate here since 44 fixtures exercise it. - The PR body says "44 fixture goldens"; the diff is 157 files across 44 fixtures. Worth saying both numbers.
Not run by me: no local build or test of this head. The unit test and policy gates are owed by hosted qualification, as the author notes.
Generated by Claude Code
…ps an if-it-does branch (#13037) Review on #16039: the match_arm step asked only whether a related input selects the changed arm, though those findings already report infection yes; and field_construction had no branch for an asserted value that includes the field. Both now say the assertion may already notice the change, which ripr could not confirm, as call_deletion does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmr2SuS1pkoheBrKNsE
…onstruction step repair (#13037) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmr2SuS1pkoheBrKNsE
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Independent source review of head 23c96a0 against #13037. I did not write this PR.
Inspected: the full non-fixture diff against merge base 7282e51 (classify/decision.rs with the whole of exact_oracle_gap_next_step and its production caller in classifier/finding.rs, the RIPR-SPEC-0259 amendment, the traceability row, the changelog fragment), the 157 fixture files of the earlier head as a classified line diff, and the delta from 0882ecc to this head (2 source files, 15 re-blessed fixtures) line by line.
Settled:
- Selection is unchanged: weak class, a contributing reach-establishing row, strongest oracle admitted strong and exact. The three new arms replace only the fallthrough, so no class, stage state or evidence moves. No class or stage line changes in any
check.json. - Both findings from my earlier review on 0882ecc are repaired. The
match_armstep now names observation as the open link and carries the "If it does" branch, which fits theinfection yesthose goldens print.field_constructiongains the same branch. The spec text states both branches per family. - Golden drift on this head is confined to the next-step text in
check.json,human.txtandhuman-full.txt, the defaultMissing checkline derived from it, and one hidden-list regrouping that follows from two rows sharing a reason. Each bless entry cites RIPR-SPEC-0259. - The unit test pins the helper per family with a weak-oracle control; the production path is pinned by the fixtures.
Evidence owed by hosted qualification: I did not build or run this head. The unit test, lint and policy gates run there.
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! |
…e masked arms (#13037) Devin review on #16039: assert_eq!(b.0, b.0.clone()) is admitted as a strong exact oracle, so the new step told the reader the assertion may already notice the change. A self-comparison now keeps the family template. The match_arm step also covers an arm whose result is replaced before the assertion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmr2SuS1pkoheBrKNsE
…comparison fixture (#13037) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmr2SuS1pkoheBrKNsE
…rary report (#13037) human_full_shared_parse_port's library-human-lines.json is hand-maintained (not covered by goldens bless); its two match_arm next-step lines follow N1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmr2SuS1pkoheBrKNsE
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY for head d9eb218
Source review of d9eb218292, five commits past 0882ecccd7 which I marked at 01:47:17Z. The production delta is crates/ripr/src/analysis/classify/decision.rs (+77), the RIPR-SPEC-0259 sentence, one traceability entry, and 15+ golden re-blesses.
The self-comparison guard is sound and reachable. compares_value_with_its_own_copy strips whitespace, then repeatedly strips a trailing .clone(), .to_owned(), .to_vec() and a leading & from each operand, and withholds the exact step when both sides match. It sits after the strength and kind guards, so it only fires on a row the classifier already admitted as a strong exact oracle. It is not dead code: fixtures/collection_argument_computed_expected has assert_eq!(b.0, b.0.clone()), the classifier keeps oracle_strength: strong for it because the expected side is not computed through the owner, and its golden now gets the family template instead of the exact step. That is the right advice: the assertion passes whatever the change does.
The wording matches the spec. MatchArm now states three branches (the asserted value comes from the arm; an input selects the arm but the result is replaced before the assertion; no related input selects it), and FieldConstruction states both branches. RIPR-SPEC-0259 carries the same three and two branches, so the doc and the code agree.
The goldens are the intended text only. I sampled match_arm_proximity_confirmation_not_credited, rust_statement_macro_spelling_owner_item and human_full_shared_parse_port: each diff is the recommended_next_step / suggested_next_action string and the matching human line, with no other field moved. human-full.txt and library-human-lines.json now agree on the parses_valid_port step.
One intermediate head was inconsistent, and this one fixes it. 23c96a0a46 re-blessed check.json, human-full.txt and human.txt but not library-human-lines.json; d9eb218292 re-blesses that file. So d9eb218292 is the first head in this series whose goldens are internally consistent.
Non-blocking, two observations.
- The row's
oracle_strengthstaysstrongfor a self-comparison; only the step text is corrected. The spec acknowledges this ("whatever strength the row carries"), but a consumer reading the strength field still gets an optimistic label for an assertion that cannot discriminate. The durable fix is a strength cap in the classifier, not the step text. - The guard also matches two identical call expressions (
assert_eq!(f(x), f(x))), which is broader than the spec's "compares a value with a copy of itself". The advice is still right, since neither side can discriminate the owner's change, but the spec sentence could say "the same expression" to match the code.
Integration basis. git merge-tree --write-tree of d9eb218292 against current main 2da1bf1d exits 0.
Not established here. I did not run the goldens or the lib tests on this head; this box is Windows and the hosted shards are the arbiter. Hosted qualification has not run on d9eb218292 yet (only the bot checks are present). This marker is source readiness on the exact head, not merge clearance.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Independent source review of head d9eb218, covering the three commits since 23c96a0 (efd48d4, 2c363fd, d9eb218). The earlier review of 23c96a0 stands for the unchanged parts.
Inspected:
exact_oracle_gap_next_stepincrates/ripr/src/analysis/classify/decision.rs: the new early return fires only when the strongest row's oracle text has two equality operands that are equal after removing whitespace, trailing.clone(),.to_owned(),.to_vec()and leading&. It returnsNone, so the family template stands. The direction is conservative: an unrecognized self-comparison (for example through&mutor.iter()) keeps the behavior of 23c96a0.compares_value_with_its_own_copyreads operands throughreveal::equality_operands, the reader the owner pin already uses, so a comparison spelled in a message or guard body does not switch it. An empty left operand is refused.self_comparison_keeps_the_strengthen_templateholds a positive pair (b.0againstb.0.clone(), borrowedto_vec), a discriminating control (vec[11]still gets the exact-oracle step and the control asserts its text) and a direct negative (xagainsty.clone()).- The
match_armsentence adds one branch between the two existing ones. It claims no observation and the class is unchanged. RIPR-SPEC-0259 carries the same wording and the self-comparison exclusion. - Fixture delta: 15 fixtures, each change is the
match_armnext-step sentence incheck.json,human.txtandhuman-full.txtplus a CHANGELOG entry citing RIPR-SPEC-0259. No class, count or probe field moved. The self-comparison fixture returned to its base text. - Exact-head results on d9eb218:
Ripr Rust Small Resultsuccess, both test shards and the Rust gates success,Admit PR Candidatesuccess.
Not covered by this review: CodeRabbit reported neutral on this head, so that provider's review is missing. No unresolved review threads were visible at read time.
Generated by Claude Code
Requested by Steven · project thread
Summary
assert_eq!on a value, weakcall_deletion,match_armandfield_constructionfindings still said "Strengthen the related assertion so it discriminates the changed behavior". Nobody can follow that step. RIPR-SPEC-0259's exact-oracle next step now covers those three families: it names the related test and the link the static read could not establish (does the asserted value depend on the changed call, does a related input select the changed arm, does the asserted value include the changed field).Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proposal: n/a
Spec: docs/specs/RIPR-SPEC-0259-next-step-oracle-shape.md (amended)
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #13037
Acceptance delta (one sentence): a weak call-deletion, match-arm or field-construction finding whose strongest related test already asserts an exact value no longer tells the agent to strengthen that assertion.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-lvwesi
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none. #15927 (also #13037) is a different claim: it credits a crate-qualified exact pin; this PR changes next-step text only.
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a
Scope
crates/ripr/src/analysis/classify/decision.rs: three new arms inexact_oracle_gap_next_step, plus unit testexact_related_oracle_replaces_the_strengthen_templatewith a weak-oracle control that keeps the family template.match_armandfield_constructionsteps gained an "if it does" branch naming the unconfirmed observation link, ascall_deletionhas; 15 fixtures re-blessed again.assert_eq!(b.0, b.0.clone())) keeps the family template, since it cannot discriminate (collection_argument_computed_expectedback to main's bytes; unit testself_comparison_keeps_the_strengthen_template). The match_arm step also names an arm whose result is replaced before the assertion.fixtures/human_full_shared_parse_port/expected/library-human-lines.json(hand-maintained, outside goldens bless) follows the new step.Scope Classification
Production delta:
Evidence/support delta:
Single acceptance criterion:
Non-goals:
Support-tier Impact
Claim/proof notes:
next_steptext in human and JSON output for the three families. Not a schema change.Policy Impact
Proof
Result, failures, or skipped proof:
riprlib test binary is OOM-killed at link in this 15 GB container, so the new unit test was not run on this head locally. The authoring session ran it green on the original base 5c27aab, with goldens, the honesty gate and doc checks. Hosted qualification runs it on this head.clippy -p xtasknot run: xtask does not includeanalysis/classify/decision.rs.Claim Boundary
Rollback
Spec-Test-Code Traceability
decision.rs::tests::exact_related_oracle_replaces_the_strengthen_template,decision.rs::tests::self_comparison_keeps_the_strengthen_template,cli_smoke::human_full_shared(library bytes)crates/ripr/src/analysis/classify/decision.rsfixtures/**/expected/Static Language Check
killed,survived,untested,proven, andadequate.CI Economics
n/a
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
cargo fmt --check(via precommit)cargo clippy -p ripr --all-targets -- -D warningscargo test --workspace(hosted; local link OOM)https://claude.ai/code/session_01SvmPmr2SuS1pkoheBrKNsE
Generated by Claude Code