Skip to content

fix(classify): name the unestablished link when the related assertion is already exact (#13037) - #16039

Merged
effortlessg41[bot] merged 6 commits into
mainfrom
claude/project-thread-lvwesi
Nov 22, 2026
Merged

effortlessg41[bot] merged 6 commits into
mainfrom
claude/project-thread-lvwesi

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

  • After an agent writes a correct exact assert_eq! on a value, weak call_deletion, match_arm and field_construction findings 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).
  • Wording only. Classes, stage states and evidence are unchanged.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-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 in exact_oracle_gap_next_step, plus unit test exact_related_oracle_replaces_the_strengthen_template with a weak-oracle control that keeps the family template.
  • Spec amendment, traceability row, changelog fragment.
  • 157 golden files across 44 fixtures re-blessed; drift is confined to the next-step text, its human rendering, and the default "Missing check" line derived from it.
  • Review repair (review 6009348961): the match_arm and field_construction steps gained an "if it does" branch naming the unconfirmed observation link, as call_deletion has; 15 fixtures re-blessed again.
  • Devin review repair: a related assertion that compares a value with a copy of itself (assert_eq!(b.0, b.0.clone())) keeps the family template, since it cannot discriminate (collection_argument_computed_expected back to main's bytes; unit test self_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

  • One production behavior

Production delta:

  • Next-step text selection for three probe families when the related oracle is an admitted exact one.

Evidence/support delta:

  • One unit test (positive for each family plus control), re-blessed goldens.

Single acceptance criterion:

  • With an admitted exact related oracle, these families emit the named-link step instead of "Strengthen the related assertion".

Non-goals:

Support-tier Impact

  • none
  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim

Claim/proof notes:

  • Changes the next_step text in human and JSON output for the three families. Not a schema change.

Policy Impact

  • none

Proof

git am -3 13037-exact-assertion-next-step.patch   # clean on main 7282e516
cargo xtask goldens prepare && cargo xtask goldens check   # exit 0, no further re-bless needed on current main
cargo xtask precommit                                      # exit 0
cargo clippy -p ripr --all-targets -- -D warnings          # exit 0

Result, failures, or skipped proof:

  • The ripr lib 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 xtask not run: xtask does not include analysis/classify/decision.rs.

Claim Boundary

  • May claim: the next step for these families no longer contradicts an exact related assertion.
  • Must not claim: that the exact assertion discriminates the change; the step still says ripr could not confirm the link.

Rollback

  • Revert the squash commit; goldens revert with it.

Spec-Test-Code Traceability

  • Spec: RIPR-SPEC-0259
  • Tests: 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)
  • Code: crates/ripr/src/analysis/classify/decision.rs
  • Golden outputs: 157 files across 44 fixtures under fixtures/**/expected/
  • Metrics: n/a
  • ADR/learning: n/a

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

n/a

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.

Gates

  • cargo fmt --check (via precommit)
  • cargo clippy -p ripr --all-targets -- -D warnings
  • cargo test --workspace (hosted; local link OOM)

https://claude.ai/code/session_01SvmPmr2SuS1pkoheBrKNsE


Generated by Claude Code

… 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
@EffortlessSteven EffortlessSteven self-assigned this Nov 22, 2026
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too 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.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Check out review usage here.

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 41ed441d-81e1-435d-9584-2420b25d071b
Commits

Reviewing files that changed from the base of the PR and between 941c482 and d9eb218.

Files selected for processing: 158

  • .ripr/traceability.toml
  • changelog.d/13037-exact-assertion-strengthen-next-step.md
  • crates/ripr/src/analysis/classify/decision.rs
  • docs/specs/RIPR-SPEC-0259-next-step-oracle-shape.md
  • fixtures/collection_argument_alias/expected/CHANGELOG.md
  • fixtures/collection_argument_alias/expected/check.json
  • fixtures/collection_argument_alias/expected/human-full.txt
  • fixtures/collection_argument_alias/expected/human.txt
  • fixtures/collection_argument_ambiguous/expected/CHANGELOG.md
  • fixtures/collection_argument_ambiguous/expected/check.json
  • fixtures/collection_argument_ambiguous/expected/human-full.txt
  • fixtures/collection_argument_ambiguous/expected/human.txt
  • fixtures/collection_argument_coerced_equality/expected/CHANGELOG.md
  • fixtures/collection_argument_coerced_equality/expected/check.json
  • fixtures/collection_argument_coerced_equality/expected/human-full.txt
  • fixtures/collection_argument_coerced_equality/expected/human.txt
  • fixtures/collection_argument_constructor_shadow/expected/CHANGELOG.md
  • fixtures/collection_argument_constructor_shadow/expected/check.json
  • fixtures/collection_argument_constructor_shadow/expected/human-full.txt
  • fixtures/collection_argument_constructor_shadow/expected/human.txt
  • fixtures/collection_argument_custom_equality/expected/CHANGELOG.md
  • fixtures/collection_argument_custom_equality/expected/check.json
  • fixtures/collection_argument_custom_equality/expected/human-full.txt
  • fixtures/collection_argument_custom_equality/expected/human.txt
  • fixtures/collection_argument_imported_constructor/expected/CHANGELOG.md
  • fixtures/collection_argument_imported_constructor/expected/check.json
  • fixtures/collection_argument_imported_constructor/expected/human-full.txt
  • fixtures/collection_argument_imported_constructor/expected/human.txt
  • fixtures/collection_argument_macro_constructor/expected/CHANGELOG.md
  • fixtures/collection_argument_macro_constructor/expected/check.json
  • fixtures/collection_argument_macro_constructor/expected/human-full.txt
  • fixtures/collection_argument_macro_constructor/expected/human.txt
  • fixtures/collection_argument_mutated/expected/CHANGELOG.md
  • fixtures/collection_argument_mutated/expected/check.json
  • fixtures/collection_argument_mutated/expected/human-full.txt
  • fixtures/collection_argument_mutated/expected/human.txt
  • fixtures/collection_argument_proc_constructor/expected/CHANGELOG.md
  • fixtures/collection_argument_proc_constructor/expected/check.json
  • fixtures/collection_argument_proc_constructor/expected/human-full.txt
  • fixtures/collection_argument_proc_constructor/expected/human.txt
  • fixtures/collection_argument_raw_imported_vec/expected/CHANGELOG.md
  • fixtures/collection_argument_raw_imported_vec/expected/check.json
  • fixtures/collection_argument_raw_imported_vec/expected/human-full.txt
  • fixtures/collection_argument_raw_imported_vec/expected/human.txt
  • fixtures/collection_argument_raw_mutated/expected/CHANGELOG.md
  • fixtures/collection_argument_raw_mutated/expected/check.json
  • fixtures/collection_argument_raw_mutated/expected/human-full.txt
  • fixtures/collection_argument_raw_mutated/expected/human.txt
  • fixtures/collection_argument_raw_rebound/expected/CHANGELOG.md
  • fixtures/collection_argument_raw_rebound/expected/check.json
  • fixtures/collection_argument_raw_rebound/expected/human-full.txt
  • fixtures/collection_argument_raw_rebound/expected/human.txt
  • fixtures/collection_argument_raw_type_alias/expected/CHANGELOG.md
  • fixtures/collection_argument_raw_type_alias/expected/check.json
  • fixtures/collection_argument_raw_type_alias/expected/human-full.txt
  • fixtures/collection_argument_raw_type_alias/expected/human.txt
  • fixtures/collection_argument_rebound/expected/CHANGELOG.md
  • fixtures/collection_argument_rebound/expected/check.json
  • fixtures/collection_argument_rebound/expected/human-full.txt
  • fixtures/collection_argument_rebound/expected/human.txt
  • fixtures/collection_argument_root_shadow/expected/CHANGELOG.md
  • fixtures/collection_argument_root_shadow/expected/check.json
  • fixtures/collection_argument_root_shadow/expected/human-full.txt
  • fixtures/collection_argument_root_shadow/expected/human.txt
  • fixtures/collection_argument_wrong_field/expected/CHANGELOG.md
  • fixtures/collection_argument_wrong_field/expected/check.json
  • fixtures/collection_argument_wrong_field/expected/human-full.txt
  • fixtures/collection_argument_wrong_field/expected/human.txt
  • fixtures/collection_argument_wrong_receiver/expected/CHANGELOG.md
  • fixtures/collection_argument_wrong_receiver/expected/check.json
  • fixtures/collection_argument_wrong_receiver/expected/human-full.txt
  • fixtures/collection_argument_wrong_receiver/expected/human.txt
  • fixtures/cross_crate_trait_impl_direct_owner_positive/expected/CHANGELOG.md
  • fixtures/cross_crate_trait_impl_direct_owner_positive/expected/check.json
  • fixtures/cross_crate_trait_impl_direct_owner_positive/expected/human-full.txt
  • fixtures/cross_crate_trait_impl_direct_owner_positive/expected/human.txt
  • fixtures/error_path_removed_variant_remapped_not_credited/expected/CHANGELOG.md
  • fixtures/error_path_removed_variant_remapped_not_credited/expected/check.json
  • fixtures/error_path_removed_variant_shadowed_not_credited/expected/CHANGELOG.md
  • fixtures/error_path_removed_variant_shadowed_not_credited/expected/check.json
  • fixtures/exact_any_membership_oracle/expected/CHANGELOG.md
  • fixtures/exact_any_membership_oracle/expected/check.json
  • fixtures/exact_any_membership_oracle/expected/human.txt
  • fixtures/field_match_macro_option_shadow/expected/CHANGELOG.md
  • fixtures/field_match_macro_option_shadow/expected/human.txt
  • fixtures/field_match_raw_option_shadow/expected/CHANGELOG.md
  • fixtures/field_match_raw_option_shadow/expected/human.txt
  • fixtures/human_full_shared_parse_port/expected/CHANGELOG.md
  • fixtures/human_full_shared_parse_port/expected/check.json
  • fixtures/human_full_shared_parse_port/expected/human-full.txt
  • fixtures/human_full_shared_parse_port/expected/human.txt
  • fixtures/human_full_shared_parse_port/expected/library-human-lines.json
  • fixtures/match_arm_proximity_bound_other_function_not_credited/expected/CHANGELOG.md
  • fixtures/match_arm_proximity_bound_other_function_not_credited/expected/check.json
  • fixtures/match_arm_proximity_confirmation_not_credited/expected/CHANGELOG.md
  • fixtures/match_arm_proximity_confirmation_not_credited/expected/check.json
  • fixtures/match_arm_proximity_confirmation_not_credited/expected/human-full.txt
  • fixtures/match_arm_proximity_confirmation_not_credited/expected/human.txt
  • fixtures/match_arm_proximity_other_function_not_credited/expected/CHANGELOG.md
  • fixtures/match_arm_proximity_other_function_not_credited/expected/check.json
  • fixtures/match_arm_result_method_tail_not_credited/expected/CHANGELOG.md
  • fixtures/match_arm_result_method_tail_not_credited/expected/check.json
  • fixtures/match_arm_tuple_derived_conditional_exit_before_assertion/expected/CHANGELOG.md
  • fixtures/match_arm_tuple_derived_conditional_exit_before_assertion/expected/check.json
  • fixtures/match_arm_tuple_derived_conditional_exit_before_assertion/expected/human-full.txt
  • fixtures/match_arm_tuple_derived_conditional_exit_before_assertion/expected/human.txt
  • fixtures/match_arm_tuple_derived_return_before_assertion/expected/CHANGELOG.md
  • fixtures/match_arm_tuple_derived_return_before_assertion/expected/check.json
  • fixtures/match_arm_tuple_derived_return_before_assertion/expected/human-full.txt
  • fixtures/match_arm_tuple_derived_return_before_assertion/expected/human.txt
  • fixtures/match_arm_tuple_terminal_generated_constructor/expected/CHANGELOG.md
  • fixtures/match_arm_tuple_terminal_generated_constructor/expected/check.json
  • fixtures/match_arm_tuple_terminal_generated_constructor/expected/human-full.txt
  • fixtures/match_arm_tuple_terminal_generated_constructor/expected/human.txt
  • fixtures/match_arm_tuple_terminal_imported_formatter/expected/CHANGELOG.md
  • fixtures/match_arm_tuple_terminal_imported_formatter/expected/check.json
  • fixtures/match_arm_tuple_terminal_imported_formatter/expected/human-full.txt
  • fixtures/match_arm_tuple_terminal_imported_formatter/expected/human.txt
  • fixtures/match_arm_tuple_terminal_inherited_constructor/expected/CHANGELOG.md
  • fixtures/match_arm_tuple_terminal_inherited_constructor/expected/check.json
  • fixtures/match_arm_tuple_terminal_inherited_constructor/expected/human-full.txt
  • fixtures/match_arm_tuple_terminal_inherited_constructor/expected/human.txt
  • fixtures/out_parameter_empty_expected_no_promote/expected/CHANGELOG.md
  • fixtures/out_parameter_empty_expected_no_promote/expected/check.json
  • fixtures/out_parameter_empty_expected_no_promote/expected/human.txt
  • fixtures/out_parameter_named_empty_no_promote/expected/CHANGELOG.md
  • fixtures/out_parameter_named_empty_no_promote/expected/check.json
  • fixtures/out_parameter_named_empty_no_promote/expected/human.txt
  • fixtures/out_parameter_unrelated_write_no_promote/expected/CHANGELOG.md
  • fixtures/out_parameter_unrelated_write_no_promote/expected/check.json
  • fixtures/out_parameter_unrelated_write_no_promote/expected/human.txt
  • fixtures/rust_competing_direct_effect_oracle/expected/CHANGELOG.md
  • fixtures/rust_competing_direct_effect_oracle/expected/check.json
  • fixtures/rust_competing_direct_effect_oracle/expected/human-full.txt
  • fixtures/rust_competing_direct_effect_oracle/expected/human.txt
  • fixtures/rust_map_overwrite_count/expected/CHANGELOG.md
  • fixtures/rust_map_overwrite_count/expected/check.json
  • fixtures/rust_map_overwrite_count/expected/human-full.txt
  • fixtures/rust_map_overwrite_count/expected/human.txt
  • fixtures/rust_preseeded_first_element/expected/CHANGELOG.md
  • fixtures/rust_preseeded_first_element/expected/check.json
  • fixtures/rust_preseeded_first_element/expected/human-full.txt
  • fixtures/rust_preseeded_first_element/expected/human.txt
  • fixtures/rust_statement_macro_spelling_owner_item/expected/CHANGELOG.md
  • fixtures/rust_statement_macro_spelling_owner_item/expected/check.json
  • fixtures/rust_statement_macro_spelling_owner_item/expected/human.txt
  • fixtures/rust_twin_collection_read_self_computed/expected/CHANGELOG.md
  • fixtures/rust_twin_collection_read_self_computed/expected/check.json
  • fixtures/rust_twin_collection_read_self_computed/expected/human-full.txt
  • fixtures/rust_twin_collection_read_self_computed/expected/human.txt
  • fixtures/same_name_sibling_file_test/expected/CHANGELOG.md
  • fixtures/same_name_sibling_file_test/expected/check.json
  • fixtures/same_name_sibling_file_test/expected/human-full.txt
  • fixtures/same_name_sibling_file_test/expected/human.txt
  • fixtures/struct_literal_untouched_field_builder/expected/CHANGELOG.md
  • fixtures/struct_literal_untouched_field_builder/expected/check.json
  • fixtures/struct_literal_untouched_field_builder/expected/human-full.txt
  • fixtures/struct_literal_untouched_field_builder/expected/human.txt

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Review on demand using usage pricing
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 _ => None fallback are unchanged, so predicate and side_effect keep their templates.
  • Test: exact_related_oracle_replaces_the_strengthen_template asserts 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 returns None. 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.json the only changed fields are recommended_next_step and suggested_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 check is clean on current main 7282e51 with no further re-bless.
  • Spec, traceability and changelog fragment are consistent with the code. precommit and clippy -p ripr --all-targets -D warnings exit 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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 None fallthrough, so no class, stage state or evidence moves.
  • Golden drift is confined to the next-step text (recommended_next_step, suggested_next_action, the human Next step rows), the default Missing check line that plain_default_missing_for already derives from that text, and one hidden-list regrouping in human_full_shared_parse_port that follows from two rows now sharing a reason. No class or stage line changes in any of the 42 check.json files.
  • Each bless entry cites RIPR-SPEC-0259.

Findings:

  1. match_arm step 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 beside infection 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"). In human_full_shared_parse_port the test is assert_eq!(parse_port("8080").unwrap(), 8080) on the changed arm Ok(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. The call_deletion arm handles this ("If it does, the assertion may already notice this change, which ripr could not confirm from the source"); the match_arm arm 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".

  2. field_construction has 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.rs caller) 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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_arm step now names observation as the open link and carries the "If it does" branch, which fits the infection yes those goldens print. field_construction gains 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.txt and human-full.txt, the default Missing check line 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

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 22, 2026 01:47
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Devin Review

…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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

  1. The row's oracle_strength stays strong for 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.
  2. 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
EffortlessSteven added this pull request to the merge queue Nov 22, 2026
@EffortlessSteven
EffortlessSteven marked this pull request as draft November 22, 2026 05:56
@effortlessg41
effortlessg41 Bot removed this pull request from the merge queue due to a manual request Nov 22, 2026

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_step in crates/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 returns None, so the family template stands. The direction is conservative: an unrecognized self-comparison (for example through &mut or .iter()) keeps the behavior of 23c96a0.
  • compares_value_with_its_own_copy reads operands through reveal::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_template holds a positive pair (b.0 against b.0.clone(), borrowed to_vec), a discriminating control (vec[11] still gets the exact-oracle step and the control asserts its text) and a direct negative (x against y.clone()).
  • The match_arm sentence 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_arm next-step sentence in check.json, human.txt and human-full.txt plus 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 Result success, both test shards and the Rust gates success, Admit PR Candidate success.

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

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 22, 2026 09:31
@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 22, 2026
@effortlessg41
effortlessg41 Bot removed this pull request from the merge queue due to a manual request Nov 22, 2026
@effortlessg41
effortlessg41 Bot added this pull request to the merge queue Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants