Skip to content

fix(rust): a self-closed if statement lends no branch value to its predicate - #11939

Merged
EffortlessSteven merged 9 commits into
mainfrom
claude/project-thread-58r3x9
Nov 1, 2026
Merged

EffortlessSteven merged 9 commits into
mainfrom
claude/project-thread-58r3x9

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #10880

Acceptance delta (one sentence): A one-line if whose arms hold the same statement no longer lends the next line as a branch value, so a pin on the boundary input is no longer credited when the condition decides nothing observable.

Change

  • classify/flow.rs: next_branch_value returns no branch value when every inline { .. } arm on the predicate line is identical (inline_arms_all_agree). Differing arms, closures, absorbing tails and open-brace headers keep the adjacency rule.
  • Unit tests in flow.rs cover three tails (r + 0, r * 2, r.max(0)), a three-arm form with a differing last arm, and the controls that must keep the adjacent value.
  • Cache generation bumped to 1.126 (sharded/compact 0.133) with the version-pinned snapshots regenerated.
  • Regression row: verdict corpus case trap-closed-if-identical-arms (previously read credited at labeling; now limited, propagation_unknown).

Not in this PR

No human-output goldens or wording changes (reverted after review). Hosted reds inherited from main (check-process-policy, LSP action order, two cli_smoke tests, Rust corpus drift on eq-divert/shop-tier rows) have fixes of record from the coordinator; this branch will merge main once they land.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri

…edicate (#10880)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri
…ess affected goldens (#10880)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri
@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 Oct 31, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

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).

  • 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.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 149 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

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: d7140c2d-a1f4-4b5e-82f5-8602e435fc31
Commits

Reviewing files that changed from the base of the PR and between 99b2e4d and cafddb7.

Files selected for processing: 17
  • .ripr/traceability.d/10880-closed-if-statement-tail.toml
  • changelog.d/10880-closed-if-statement-tail.md
  • crates/ripr/src/analysis/classify/flow.rs
  • crates/ripr/src/analysis/seam_cache.rs
  • crates/ripr/tests/lsp_lifecycle/gap_corpus_currentness.rs
  • docs/OUTPUT_SCHEMA.md
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/after.repo-exposure.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-receipt.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-verify.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/before.repo-exposure.json
  • fixtures/rust-verdict-corpus/cases/trap-closed-if-identical-arms.diff
  • fixtures/rust-verdict-corpus/cases/trap-closed-if-identical-arms.json
  • fixtures/rust-verdict-corpus/expected/rows/trap-closed-if-identical-arms.json
  • fixtures/rust-verdict-corpus/subjects/authored-closed-if-identical-arms.json
  • fixtures/rust-verdict-corpus/subjects/authored-closed-if-identical-arms/Cargo.toml
  • fixtures/rust-verdict-corpus/subjects/authored-closed-if-identical-arms/src/lib.rs.txt
  • xtask/src/tests/rust_corpus_projection.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Copy link
Copy Markdown
Member Author

Review of record, head db6103a

Angles and what I checked:

  • Correctness. The sink came from next_branch_value trusting the line after the predicate with no correlation. The guard returns no sink when the predicate line ends in } or ; after comment masking. } else if c { and if c { end in {, so the open-block rule is unchanged (control test an_open_block_header_still_lends_its_first_line_as_the_branch_value). Repro if x >= 5 { r = 1; } else { r = 1; } with tail r + 0 read exposed before and propagation_unknown now.
  • Tests and oracle. Unit test covers three tails (r + 0, r * 2, r.max(0)). Honesty case rust_closed_if_statement_tail_predicate grips through goldens check, which re-runs the analyzer.
  • Spec and corpus. RIPR-SPEC-0108 traceability fragment added. verdict-corpus check-all passes on this head (Rust 816 cases, TS 361, traps credited 0/45 and 0/13). It reports 3 Rust false verdicts; I did not compare that count against main, so I am not claiming it is unchanged.
  • Blast radius. One golden changes for the fix itself: assertion_shaped_oracle_test_file confidence 0.66 to 0.61, class stays unknown, because its next-line sink was the same wrong adjacency. 50 other goldens change only for the "seam" to "spot" wording in the check/repair disagreement note, which the user-text ratchet requires for any new golden carrying it.
  • Cache. 1.125 / 0.132 past main's 1.124 / 0.131.
  • Perf and security. One masked-line check per call; no new IO or parsing.

Findings: none blocking. Open and out of scope: ripr repair reads this fixture's seam as exposed while check reads a limit (the disagreement note). I will probe that separately.


Generated by Claude Code

@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!

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready was requested, but this PR conflicts with main (head db6103af), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri

Copy link
Copy Markdown
Member Author

Head moved to 5a49a80: merged main (it took cache 1.125 / 0.132), so this PR now takes 1.126 / 0.133. goldens check passes on the merged tree; the review of record above still covers the source, test and golden changes, which the merge did not touch. merge-ready re-applied.


Generated by Claude Code

…; refresh version-pinned snapshots (#10880)

The first guard also dropped the returned-value sink for differing arms
(let r = if c { 1 } else { 0 }; r.min(cap)) and closure predicates, which
runtime controls pin. Narrowed to arms that repeat the first arm's statement.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri

Copy link
Copy Markdown
Member Author

Review of record update, head 74b87a9

The hosted Rust-only lane and the 4-shard run failed on 5a49a80, and the failures were real: my first guard (withhold the sink when the predicate line closes its own block) also dropped the sink for let r = if n == 6 { 1 } else { 0 }; r.min(cap) (absorbing_tail_pipeline, a deliberate flow) and for a closure predicate (pinned_shape_limit::a_closure_the_tail_never_calls_keeps_the_gap, a runtime-pinned gap). That would have turned true gaps into propagation_unknown.

Changed on this head (production implementation and its unit tests; superseding the earlier review's correctness dimension):

  • The guard now fires only when a later inline { .. } arm repeats the first arm's statement. Differing arms, closures and open headers keep the adjacency rule. New control tests cover both sides.
  • Cache bumped to 1.126 / 0.133 after main took 1.125.
  • Version-pinned snapshots refreshed: xtask rust_corpus_projection, lsp_lifecycle/gap_corpus_currentness, and the boundary_gap first-useful-action before/after/receipt/verify hashes (recomputed with the test's own commit and sha256 rules; first_useful_action_corpus_pins_routing_cases passes).
  • assertion_shaped_oracle_test_file no longer drifts, so that golden is back to main's.

Evidence on this head: lane suite (--no-default-features --features lang-rust, lib plus all integration tests) passes locally except registered_proptest_profile (12 tests; needs proptest registry resolution this sandbox lacks; not in the hosted failure list), and cargo test -p xtask passes except 7 python_judged_panel_* tests, which this change does not touch and which were not run on main here, so I am not claiming they are pre-existing. Full precommit is not yet re-run on this head; hosted CI will run it.

No blocking findings known on this head.


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 review (fresh-context reviewer, head 74b87a9): REVIEW_INCOMPLETE

Two distinct things are wrong at this head, and they need different owners. The required hosted lane is red, but every red I can see is inherited from main rather than produced by this candidate. Separately, the candidate itself carries a rule that is broader than the rule it documents, and a vocabulary change that collides with two other open PRs.

Inspected:

  • Head 74b87a90d70212f4bbe8aed8f1040023f31b177c ("fix(rust): a self-closed if statement lends no branch value to its predicate"), merge base 912d98a5c1ef4ab7e44982712ed4235c3a5dd209, PR base tip a7431a52d9 (the base the hosted user-text step checked out). Contribution is 123 files, +1,240/-N by the admission gate's count; the merge-base diff is crates/ripr/src/analysis/classify/flow.rs +81/-0, crates/ripr/src/analysis/seam_cache.rs +12/-6, one new fixture fixtures/rust_closed_if_statement_tail/, crates/ripr/src/app/navigation.rs +2/-2, docs/OUTPUT_SCHEMA.md +2/-2, three version-pinned snapshots, 51 re-blessed expected/human.txt goldens, 52 fixture expected/CHANGELOG.md ledgers, and one changelog fragment.
  • The rule itself: crates/ripr/src/analysis/classify/flow.rs:1020-1045 (inline_arms_repeat_the_first) and its single call site at flow.rs:1063-1070, which returns None from next_branch_value when the helper fires. Read the surrounding contract at flow.rs:1058-1062 and the pre-existing neighbour chain_repeats_adjacent_value at flow.rs:994-1018.
  • The wording change at crates/ripr/src/app/navigation.rs (the "judges the whole seam" / "the whole spot" check-vs-repair disagreement note) and the re-blessed goldens that carry it, read at this head against main a69bf0214f7bd7e0537a1cdd07e95608e5a366e8.
  • Hosted state at this head, read through GraphQL statusCheckRollup and the job logs: Admit PR Candidate SUCCESS (run 41258265303); Ripr Rust Small on GitHub Hosted / Rust gates FAILURE (run 41258265281, job 124706144336, first failing step 16 "Repository policy preflight", xtask: check-policy-all: 1 gate(s) failed: check-process-policy); Rust-only feature lane FAILURE (run 41258265303, job 124705957310, first failing step 9 "Test --no-default-features --features lang-rust"); Ripr Rust Small Result FAILURE.
  • The user-text merge-base matcher at xtask/src/policy/user_text.rs (banned_terms_in_line, strip_stage_vocabulary, evaluate_delta) and the corpus SPEC refresh rule, read at the merge base the hosted gate used.

Blocking:

  1. Candidate-attributable. The implemented predicate is broader than the rule it documents. The doc comment at flow.rs:1058-1062 states the case as "a one-line if whose arms hold the same statement". The implementation at flow.rs:1043-1044 is arms.split_first().is_some_and(|(first, rest)| !first.is_empty() && rest.contains(first)), which asks only whether the first arm's text appears again among the later arms. A one-line three-arm form such as if c { r = 1; } else if d { r = 1; } else { r = 2; } yields arms ["r = 1", "r = 1", "r = 2"], so the helper fires and next_branch_value returns None even though the predicate genuinely decides the value the next line reads (r is 2 when neither c nor d holds). The effect is that a real observed effect is not traced, so the change looks unnoticed and the tool can report a gap and propose a repair for behaviour a test already covers. That is the actionable-repair direction, not the conservative one. The added unit test (differing_inline_arms_and_closures_keep_the_adjacent_value) only pins the two-arm differing case; no three-arm case is exercised, and the fixture rust_closed_if_statement_tail is a two-arm case.
  2. Candidate-attributable, but not a code defect: the change set is two claims in one. Besides the analyzer rule, this PR rewords the check/repair disagreement note from "seam" to "spot" in navigation.rs and re-blesses the 50 goldens that carry it. That vocabulary is now claimed three different ways in open PRs for the same refusal family: this PR uses "the whole spot"; #11357 (a163c5c29) uses "nothing to start a repair from", "several gaps bind this finding" and "the limit on how many gaps ripr analyzes"; #11856 (3191d94c1) uses "no spot to start a repair from", "several spots bind this finding" and "the spot budget left". main today uses "no gap to start a repair from" and "the whole seam". One vocabulary has to be chosen before any of these land, otherwise the re-blessed goldens will fight each other and every one of them will need re-blessing again. The deciding criterion should be the glossary the user-text matcher enforces (docs/USER_TEXT_GLOSSARY.md).
  3. Required hosted lane is red, and the reds are inherited, not produced here. (a) check-process-policy fails because the allowlist row for crates/ripr/src/output/first_pr/run_chain.rs no longer matches: main widened the import at line 21 to a grouped use std::process::{Child, Command, ExitStatus, Stdio};, so the literal use std::process::Command the row pinned is gone; the sibling Command::new row still matches line 368. #11995 (f51951cba) drops that orphaned row. This PR touches neither that file nor the policy ledger. (b) The feature lane fails lsp::backend::list_actionable_items_tests::list_actionable_items_names_gaps_the_actionable_profile_hides (crates/ripr/src/lsp/backend.rs:12892, an order-sensitive assertion over the withheld static_unknown group order) plus the two cli_smoke tests check_worktree_drill_in_commands_reach_the_uncommitted_finding and selector_location_misses_explain_syntax_and_preserve_retry_scope. Those three are the main reds that #12014 repairs with test-only changes; this PR touches neither the LSP nor the selector hints. Because the required lane is not green at this head, this review cannot be REVIEW_READY.

Non-blocking:

  • Efficiency: acceptable, and slightly better than the code it sits next to. inline_arms_repeat_the_first scans exactly one line per probe, masking comments and strings into a single String and pushing &str slices for the arms, so there is no per-arm allocation and no extra I/O, process spawning or cache effect. The added function.body.lines().nth(start_index) at flow.rs:1063-1067 is one more prefix walk over the function body per probe, on a path that already walks that body twice (chain_repeats_adjacent_value collects the whole body into a Vec of &str at flow.rs:995). The increase is a constant factor on an existing O(probes x body-lines) path, not a new complexity class, and nothing grows without bound. No memory-growth or newly-reachable-waste concern.
  • The admission gate passed, but note what it counts: the cap is 160 files and 3,000 changed lines measured after subtracting paths the base commit declares generated in .gitattributes, and that file declares fixtures/**/expected/** linguist-generated. The 51 re-blessed goldens therefore do not count against the cap, which is why a 50-golden re-bless can be admitted as a 1,240-line candidate. That is the repository's own rule, not a defect, but it means the gate number materially understates the review surface here.
  • The fixture expected/CHANGELOG.md ledgers record the reason as "RIPR-SPEC-0108: plain wording 'spot' for 'seam' in the check/repair disagreement note (#10880)", and the same issue number #10880 is cited in the analyzer rule's own comment at flow.rs:1060. One issue number covering two unrelated claims makes the ledger hard to audit against the code; worth separating before landing.
  • seam_cache.rs reads as a ~125-line deletion when you diff this head against main, but that is branch-behind drift; the merge-base contribution is +12/-6 and is a schema-version bump only.
  • Comparing this head against main for the wording change is misleading: main already reworded one arm of the same refusal family ("no gap ID ... no gap to start a repair from"), so a merge will need a re-bless on top of whatever vocabulary is chosen.

Not run:

  • No Rust toolchain is installed on this host (rustc, cargo and rustup are all absent), so there was no local build, no cargo xtask precommit, no local test run, and no local golden re-bless. Every Rust-level statement above comes from the hosted job logs at this exact head or from reading source at this exact SHA.
  • I did not execute the user-text merge-base matcher locally. I reproduced its rules (strip_identifiers, strip_stage_vocabulary, per-file delta against the merge base) and computed the delta for all 51 changed goldens: no violations, which is consistent with that hosted step passing at this head. The 1,626-file re-bless in #11357 is where that matcher does fire; it does not fire here.
  • I did not run a mutation, runtime or property experiment against the three-arm shape in finding 1; that case is argued from the source, and confirming it needs a build this host cannot do.

…wording and its fixture out of this change (#10880)

The independent review found the first-arm-repeats test also fired for
if c { r = 1 } else if d { r = 1 } else { r = 2 }, where the condition does
decide r. All inline arms must now agree. The wording change collided with
two other open PRs, so it and the goldens it re-blessed are dropped here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri

@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 review (fresh-context reviewer, head cafddb7): REPAIR_REQUIRED

Inspected:

  • Head cafddb7e125b431868893a3eb16fcc19eb94373b ("Merge main into claude/project-thread-58r3x9"), a merge of the current main tip 99b2e4d08e5dbed103d661e89cf1c6fabb6a7b62. That tip is also the merge base, so the contribution is exactly 17 paths: crates/ripr/src/analysis/classify/flow.rs (M), crates/ripr/src/analysis/seam_cache.rs (M), crates/ripr/tests/lsp_lifecycle/gap_corpus_currentness.rs (M), xtask/src/tests/rust_corpus_projection.rs (M), docs/OUTPUT_SCHEMA.md (M), four fixtures/boundary_gap/.../unchanged-after-attempt/*.json (M), .ripr/traceability.d/10880-closed-if-statement-tail.toml (A), changelog.d/10880-closed-if-statement-tail.md (A), and the corpus case trap-closed-if-identical-arms (A x 5).
  • The rule at this head: crates/ripr/src/analysis/classify/flow.rs:1022-1047 (inline_arms_all_agree) and its single call site at flow.rs:1066-1070, against the neighbour chain_repeats_adjacent_value at flow.rs:994-1017. The flow.rs blob is 40fd6f7489, byte-identical to the blob at d185c79d2, so the rule has not moved since the previous review.
  • The new corpus case in full: cases/trap-closed-if-identical-arms.json, subjects/authored-closed-if-identical-arms/src/lib.rs.txt, expected/rows/trap-closed-if-identical-arms.json; and the cache side, crates/ripr/src/analysis/seam_cache.rs:602-608 with the sharded and compact constants, the corpus-projection pin and the currentness pin.
  • Hosted state at this head via GraphQL statusCheckRollup, and branchProtectionRules on main.

Blocking:

  • Candidate-attributable, and not raised in the earlier review: this PR and #12002 both claim cache generation 1.126 for two different semantic transitions, from the same base 1.125. The cache schema version is the mechanism that stops a persisted verdict earned under the old rule from being served under the new one; the earlier review for #12002 called the bump "the repository's established cache-version discipline". At this head crates/ripr/src/analysis/seam_cache.rs:602-608 reads CACHE_SCHEMA_VERSION = "1.126", noted as "a predicate on a self-closed if statement takes no branch-value sink from the next line (#10880)"; #12002's head 5ab40c5fc carries the same constant at the same line, noted as "those prelude globs keep assertion credit only when Cargo.lock pins an audited version of the crate (RIPR-SPEC-0369)". The two seam_cache.rs blobs differ (903c6c2d1 here, 31aca082f there) against a common base blob 4bd263ce4, so the two candidates conflict textually at that hunk. The consequence is concrete, not cosmetic: if both land under 1.126, a cache directory written by a build of one rule set is read by a build of the other, because the generation number is what is supposed to separate them. The fix is cheap and the deciding criterion is order: whichever PR lands second re-bumps to 1.127, updates its transition note and re-proves the bump. This PR also bumps the sharded and compact families (0.132 -> 0.133) that #12002 leaves alone, so the candidates disagree about the cache surface as well as the number.
  • The required hosted check is absent at this head, so the candidate cannot be REVIEW_READY. Ripr Rust Small Result -- the only required status check on main -- is not present in this head's contexts, and every Rust lane (rust-coverage, rust-tests-junit, future-clippy, msrv, cargo-deny, ci-result, Rust-only feature lane, source-identity) reports SKIPPED. This is absence, not red: .github/workflows/routed-rust.yml triggers on pull_request: types: [labeled] and its route fires only on a merge-ready label-addition event, and this head was pushed after the label was applied (it is a merge of main, not a push of the labelled commit). The remedy is mechanical -- remove and re-apply the merge-ready label so the labelled event re-fires at cafddb7e1. I record this as a proof gap, not a candidate defect; the candidate cannot be promoted until a hosted Rust lane has actually run at this head.

Non-blocking:

  • Earlier finding 1 (the predicate was broader than the rule it documented) -- REPAIRED. The earlier review observed arms.split_first().is_some_and(|(first, rest)| !first.is_empty() && rest.contains(first)) and showed that if c { r = 1; } else if d { r = 1; } else { r = 2; } wrongly fired the rule. At this head flow.rs:1044-1046 requires rest.iter().all(|arm| arm == first) with !rest.is_empty(), so a differing last arm no longer fires, and the new test three_identical_inline_arms_lose_the_sink_and_a_differing_last_arm_keeps_it (flow.rs:2189-2200) pins exactly the earlier counterexample in both directions: the three-identical form yields no sink, the differing-last-arm form yields one. The earlier complaint that no three-arm case was exercised is now answered by a discriminating test rather than by prose.
  • Earlier finding 2 (the change set was two claims in one; the "seam" to "spot" reword in navigation.rs plus 50 re-blessed goldens collided with #11357 and #11856) -- REPAIRED. crates/ripr/src/app/navigation.rs is byte-identical to the current main tip at this head (git diff 99b2e4d0 cafddb7e1 -- crates/ripr/src/app/navigation.rs is empty), and no expected/human.txt golden appears in the 17-path contribution. The vocabulary conflict is gone from this candidate, and the body's "No human-output goldens or wording changes (reverted after review)" agrees with the diff.
  • Earlier finding 3 (the required lane was red, from inherited base reds) -- STALE in its concrete form. The two inherited reds the earlier review attributed to main are now carried fixed in this branch: policy/process_allowlist.d/11720-first-pr-run-chain.txt is blob 2402ccd29d here, identical to the current main tip, and the eq-divert-* / shop-tier-gold-arm-unreached corpus rows are likewise main-identical. Both repairs are inherited main content (carriers #11975 and #11995), not this candidate's work; what is left is the absent-lane problem under Blocking.
  • Earlier finding 4 (efficiency) -- STILL HOLDS, and the answer is unchanged: no material cost. inline_arms_all_agree (flow.rs:1022-1047) masks one line into a single String and pushes &str slices for the arms, so the new all() predicate is O(arms) over an already-allocated vector with no per-arm allocation, no extra I/O, no process spawning and no cache effect. The function.body.lines().nth(start_index) walk at flow.rs:1066-1069 is a third prefix walk over a body that chain_repeats_adjacent_value already collects wholesale at flow.rs:995; a constant factor on an existing O(probes x body-lines) path, not a new complexity class. Changing rest.contains(first) to rest.iter().all(...) does not change growth rate. No memory-growth or newly-reachable-waste concern.
  • Earlier findings 5-7 -- STALE or REPAIRED. The admission-gate understatement (5) no longer bites, because the 51 re-blessed goldens that made it material are gone and the surface is 17 paths; one issue number covering two claims (6) is repaired, since only the analyzer rule and its corpus row remain under #10880; the seam_cache.rs branch-behind reading (7) is repaired, since the branch is now based on the current main tip.
  • The corpus row follows the repository's own convention. expected/rows/trap-closed-if-identical-arms.json carries truth: "not_discriminated", ideal_verdict: "gap", observed_verdict: "limited", outcome: "abstained", findings_scored: 1 -- the same shape as the merged sibling row eq-divert-match-later-arm-old-constant in the current main tip. The subject is a realistic two-arm self-closed if whose only test calls pick(5), so the case's runtime_mutant_kill method is consistent with the pin rather than asserted over it, and the documented contract moved in the same change (docs/OUTPUT_SCHEMA.md, 1.125 -> 1.126).
  • The new traceability row registers three of the five inline-arm controls. .ripr/traceability.d/10880-closed-if-statement-tail.toml is headed "Registers the identical inline-arm controls (#10880)" and names three of them; it omits later_arms_that_only_agree_with_each_other_keep_the_first_sink (flow.rs:2224) and the multi-line chain controls (flow.rs:2237 onward). check_traceability does not require a test to be registered -- the earlier #12005 review established that the gate accepts a partial registration -- so this is drift, not a failure, and partial registration is the repository's convention.

Not run:

  • Not run: cargo xtask precommit, the Rust lane, verdict-corpus check-all, cargo xtask fixtures and cargo xtask goldens check -- the full workspace build exceeds this single-PR review's budget, and the required hosted lane has not run at this head, so no hosted exact-head proof exists for the analyzer change or for the new corpus row. The Rust toolchain is present at C:\Users\steven\.cargo\bin (cargo 1.95.0, rustc 1.95.0, matching the repo's rust-toolchain.toml pin); I did not use it to run the analyzer against the corpus subject, so the new row's observed_verdict: "limited" is read from the committed fixture, not reproduced.
  • Not run: a mutation, runtime or property experiment against the three-arm shape; the repair is argued from the source (flow.rs:1044-1046) and the new test's assertions (flow.rs:2189-2200), not from executing that test here.
  • Not established: whether the corpus case's committed expected row is what the analyzer now produces. Nothing at this head demonstrates the row was regenerated at cafddb7e1; the delta from d185c79d2 changed no corpus artefact.

Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head cafddb7e125b431868893a3eb16fcc19eb94373b. Not an approval.

Copy link
Copy Markdown
Member Author

Response to the cafddb7 review (REPAIR_REQUIRED):

  1. Required check absent. merge-ready was re-applied after the merge push; Admit PR Candidate succeeded at 03:27:43Z and Ripr Rust Small on GitHub Hosted / Rust gates is in progress on run 41269233669 at cafddb7. Ripr Rust Small Result will post when it finishes (~45 min); I will not merge before reading it green on this exact head.
  2. Cache generation 1.126 collision with fix(analysis): credit verification prelude globs only for audited locked versions (RIPR-SPEC-0369) #12002. Accepted as a landing-order rule. Neither PR is on main, so the number is free today. Whichever lands second re-bumps to 1.127 (and its sharded/compact family if it differs), updates the transition note and the version-pinned snapshots, and re-proves. If fix(analysis): credit verification prelude globs only for audited locked versions (RIPR-SPEC-0369) #12002 lands first, I re-bump here and re-run once.

Generated by Claude Code

EffortlessSteven pushed a commit that referenced this pull request Nov 1, 2026
…er-attempt fixtures and receipt together (RIPR-SPEC-0369)

1.126 belongs to #11939. content_sha256 in the exposure fixtures and
agent-verify.json, and the file digests the agent receipt attests to, move in
one step.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmorcFfvgqr1j4EemBn

Copy link
Copy Markdown
Member Author

Review of record, head cafddb7 (REVIEW_READY)

Angles: production rule (inline_arms_all_agree + single call site in next_branch_value, against chain_repeats_adjacent_value), test stimulus/oracle (three tails, three-arm differing form, closure/absorbing-tail/open-brace controls), cache and version-pinned snapshots, public claim (no golden/wording changes), verdict-corpus regression (trap-closed-if-identical-arms reads limited / propagation_unknown; it read credited at labeling), hosted proof.

Findings and resolutions:

Hosted: Ripr Rust Small Result success on this exact head (run 41269233669, all 4 test shards green).

Merging with the expected head SHA.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit 0d0e0bc into main Nov 1, 2026
63 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-58r3x9 branch November 1, 2026 04:41
EffortlessSteven pushed a commit that referenced this pull request Nov 1, 2026
Main took cache schema 1.126 (#11939); this branch stays at 1.127.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmorcFfvgqr1j4EemBn
EffortlessSteven added a commit that referenced this pull request Nov 1, 2026
…ked versions (RIPR-SPEC-0369) (#12002)

* fix(analysis): credit verification prelude globs only for audited locked versions (RIPR-SPEC-0369)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmorcFfvgqr1j4EemBn

* fix(analysis): pin test for cache 1.126 and spec wording for the unaudited-version refusal

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmorcFfvgqr1j4EemBn

* test(analysis): check the spec's audited-version table against the code authority (RIPR-SPEC-0369)

The const is the single authority; the spec table is verified against it so a
one-sided edit fails instead of drifting.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmorcFfvgqr1j4EemBn

* test(fixtures): refresh content_sha256 for the 1.126 cache schema in unchanged-after-attempt (RIPR-SPEC-0369)

The cache_schema_version field is inside the hashed artifact, so bumping it
changes content_sha256; the hosted cli_smoke run reported the produced value.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmorcFfvgqr1j4EemBn

* fix(cache): bump the schema to 1.127 and regenerate the unchanged-after-attempt fixtures and receipt together (RIPR-SPEC-0369)

1.126 belongs to #11939. content_sha256 in the exposure fixtures and
agent-verify.json, and the file digests the agent receipt attests to, move in
one step.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmorcFfvgqr1j4EemBn

* Judge a dropped-in prelude crate by the importing package's nearest lockfile

A nested workspace with its own Cargo.lock passed the manifest check but the
audited-version check read the outer lock. Look the lock up from the importing
directory instead, with a test where inner and outer locks disagree both ways.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmorcFfvgqr1j4EemBn

* Fix comment indentation left by the main merge

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmorcFfvgqr1j4EemBn

---------

Co-authored-by: Claude <noreply@anthropic.com>
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