Skip to content

fix(repair): name the stub route when only the owner call is missing - #11927

Merged
EffortlessSteven merged 5 commits into
mainfrom
claude/stub-route-owner-gap-only
Nov 1, 2026
Merged

EffortlessSteven merged 5 commits into
mainfrom
claude/stub-route-owner-gap-only

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #11895
Acceptance delta (one sentence): A repair refusal whose only missing fact is a test input that reaches the owner (no test calls it directly) now names the ripr agent stub route, as it already does when the module or boundary fact is the only gap.

What changed

route_not_ready_reason already drops the activation gap when no test calls the owner directly (the stub's own first line is that call), but then treated an empty remainder as routable only when the module blocker had been routed. It now treats an empty remainder from either source as routable, for the predicate stub and the return/error stubs. A direct caller or any second missing fact still keeps the route out. Refusal text only; class, eligibility and the fail-closed actionability flip are untouched.

Found by dogfooding humantime src/duration.rs:397 (3 of 25 sampled): ripr repair ended at "missing evidence: a test input that reaches the changed code" with no next step, while ripr agent repair already named the stub.

Proof

  • cargo test -p ripr --lib app::task_first (55 pass), including a new test with direct-caller and extra-missing-fact negatives.
  • Real run on src/duration.rs:397 now names ripr agent stub ... --kind predicate.
  • cargo clippy -p ripr --all-targets -- -D warnings and cargo xtask check-user-text pass.

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!

@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 10 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: 980302e5-ab0e-47d7-8166-c729727dbb0d
Commits

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

Files selected for processing: 2
  • changelog.d/repair-owner-call-gap-names-stub-route-11895.md
  • crates/ripr/src/app/task_first.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven self-assigned this Oct 31, 2026
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 31, 2026 22:22
@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!

@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 c032878): REVIEW_INCOMPLETE

Inspected:

  • PR #11927 (open, not draft, merge-ready applied 2026-10-31T22:22:48Z), head c03287896dfdd518cb1b281643119fd2343cb2f6, base fa621a32eaf4c3dc6c17119021ea943641696aef. 2 files, +44/-5.
  • Governing issue #11895 (open, "repair: dogfood round 2 dead ends"), which is a sampling round rather than a single acceptance; item 1 of it is the same class of dead end this PR addresses (a refusal that lists missing evidence and names no route while ripr agent repair names the stub). The premise still holds at this base: owner_call_gap_covered_by_stub already dropped the activation fact from the missing list, but the route was only taken when the module blocker had been routed, so an activation-only remainder produced a route-less refusal.
  • Semantic owner: route_not_ready_reason in crates/ripr/src/app/task_first.rs:389-520. The change is one new predicate, stub_supplies_rest (:417), consumed by two arms — the predicate boundary route [] => stub_supplies_rest (:438) and the return/error stub kind [] if stub_supplies_rest (:474). The underlying fact comes from owner_call_gap_covered_by_stub (:627-646), which returns the remaining missing list only when no related test carries RelationReason::DirectOwnerCall and the activation item was present. No analysis, classification, eligibility or actionability code is touched: the diff changes refusal reason text only, so the shared "repair route not ready" label and the readiness list (the fields RIPR-SPEC-0122:572-579 and RIPR-SPEC-0217:141-147 rely on) are unchanged, as the PR body states.
  • Correctness of the widening, read against the owner: stub_supplies_rest is consulted only where the remaining list is empty, and the remaining list is empty only when the activation fact was the sole missing fact. That keeps the route fail-closed in the way the product contract requires — the boundary discriminator fact is known (it would otherwise still be in the missing list), and the stub's own first line is the owner call that supplies the missing input, which is the premise the predecessor rule already rested on (:622-626). A second missing fact keeps the route out, and the new test pins that in two ways (a propagation gap and a safe-test-target gap).
  • Oracle strength of the new test owner_call_gap_alone_names_the_predicate_stub_route (task_first.rs:3967-3996): it drives the production route_not_ready_reason and asserts the predicate route text (--at src/pricing.rs:88 --kind predicate), then three negatives — a directly calling related test (the gap stands), a second missing fact, and the safe-test-target fact — each of which must not name ripr agent stub. Those negatives are discriminating: an implementation that dropped the "no direct owner call" condition, or that routed on any empty remainder, would fail them.
  • Repo conventions: changelog.d/repair-owner-call-gap-names-stub-route-11895.md adds a <!-- section: Fixed --> fragment. No spec update is owed and I checked that rather than assuming it: no file under docs/specs/ references #11466 or #11895 (code search over the default branch returns zero hits for both), so neither the predecessor rule nor this widening is pinned in a spec, and the refusal label the specs do reference is unchanged.
  • Hosted evidence for head c032878: the "Rust-only feature lane" (run 41247921739, 22:22:48Z) is green on this exact head, and "Ripr Rust Small on GitHub Hosted / Rust gates" (run 41247921746) completed success. The sharded test lane is not green: "Ripr Rust Small tests on GitHub Hosted / Rust tests shard 1 of 4" (job 124680905744) concluded failure, with shards 2-4 still running when this review was written, and the required context Ripr Rust Small Result had not reported.
  • The shard failure is inherited, not a candidate defect. From the shard log the single failure is analysis::language::python::guard_activation::tests::compare_literal_values_fails_open_on_undecoded_literals, panicking at crates/ripr/src/analysis/language/python/guard_activation.rs:1436 ("0 passed; 1 failed; 16836 filtered out"). I confirmed the same test red at the base independently from the base job's log (run 41243698892, job 124662661026, "rust-tests-junit", concluded failure at fa621a32, failing exactly that test at exactly that line). This PR touches only crates/ripr/src/app/task_first.rs and a changelog fragment — no Python module — so the red cannot originate here.

Blocking:

  1. Half of the changed behavior has no discriminator. The change has two arms, and the new test exercises only the predicate one: gate_entry builds a SeamKind::PredicateBoundary seam (task_first.rs:3419-3430), so the manual_stub_kind arm at :474 — the one that now names --kind return_value and --kind error_path when the owner-call gap was the only missing fact — is never reached by the new test, and the existing coverage of those kinds (task_first.rs:4080-4102) reaches them through the module-blocker path (new_test_target.blocker = NoTestModule, i.e. adds_module), not through the owner-call gap. The consequence is concrete: an implementation that changed :438 and left :474 at [] if adds_module would pass the whole suite, while the PR body explicitly claims the change covers "the predicate stub and the return/error stubs". A ReturnValue or ErrorVariant seam whose only missing fact is the activation stage is the case that needs its own assertion.
  2. Hosted proof is not established for this head. The sharded required test lane is red (shard 1 of 4 failed) and shards 2-4 were still running at review time. The failure itself is the inherited base red described above and is not attributable to this candidate, but a required lane that is red — inherited or not — leaves the head without a green required receipt.

Non-blocking:

  1. The new test is not registered in .ripr/traceability.toml nor in a .ripr/traceability.d/ slice. Other tests in the same module are registered (for example decide_zero_visible_seams_yields_setup_outcome), so the practice in this module is mixed rather than absent — the immediate sibling boundary_only_not_ready_names_the_stub_route is also unregistered. I could not establish what cargo xtask check-traceability requires (the xtask entry describes it only as "Checks traceability references"), so I am not calling this a violation; recording it so the decision is explicit rather than implied.
  2. stub_supplies_rest (:417) reads as though it described what the stub supplies, while it is really "the owner-call gap was the only missing fact" — the remainder it gates is empty by construction. A name closer to the gated condition would make the two call sites easier to read.
  3. The end-to-end receipt is good and worth keeping: the dogfooded humantime run (src/duration.rs:397) shows the refusal naming ripr agent stub --kind predicate on a real repository. There is no fixture or honesty-corpus case for this path, so the unit test is the only automated evidence — which is what makes item 1 above worth closing.

Not run:

  • The Rust toolchain on this host is not on PATH, so I could not run cargo test -p ripr --lib app::task_first, cargo clippy, cargo xtask check-user-text, cargo xtask check-traceability or any other repo-native gate. The PR body's "55 pass", clippy and check-user-text results are the author's; I did not reproduce them. My conclusions about the routing come from reading task_first.rs at head c032878, including the fixture's seam kind (:3422) and the existing return/error coverage (:4080-4102).
  • The hosted shard lane had not finished when this review was written, so shards 2-4 and the required Ripr Rust Small Result context are unobserved rather than green.

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

@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 88ccdae): REVIEW_INCOMPLETE

This is a re-bind to a moved head. The head move was a merge of the base branch into this branch and the candidate's proposed content did not change, so this review states what moved, carries the earlier findings forward, and records the hosted state at the new head rather than re-deriving a review of unchanged code.

Inspected:

  • What moved, and what did not. The candidate's proposed content is byte-identical to the earlier reviewed head, measured as the blob SHA of every path in compare/<base>...<prev> against compare/<base>...<head> with the current base a5c3ba469928c276a115c54c6f03c44cfd82e304. Every path in the contribution classifies as UNCHANGED: none was added, removed or edited by the delta. The one new commit is 88ccdaeb7 Merge remote-tracking branch 'origin/main' into claude/stub-route-owner-gap-only, a merge of the base branch into this branch. The production surface under review is therefore exactly the surface the earlier independent review read, and the earlier findings are carried forward rather than re-derived.
  • The hosted state at this head. The routed Ripr Rust Small on GitHub Hosted / Rust gates job is still in_progress in the Merge-ready request run, the Rust tests shard N of 4 jobs have not yet been created, and the required Ripr Rust Small Result context (the only required status check on main) has therefore not been decided at this head. Route Ripr Rust Small, Admit PR Candidate and Detect Docs-Only Surface are success; the CI workflow run, the Windows Advisory run and the Qualify ripr-rs Python Wheel (read-only) run are all still in_progress at this head, and Merge-ready Conflict Notice is success.
  • The earlier independent review bound to c032878 (REPAIR_REQUIRED) remains the substantive review of this change. This review re-binds to the moved head, states which of its findings still hold, and records what the new head adds.
  • The contribution itself is changelog.d/repair-owner-call-gap-names-stub-route-11895.md and crates/ripr/src/app/task_first.rs, and the merge state at this head is MERGEABLE / BLOCKED.

Blocking:

  • Half of the changed behavior still has no discriminator, and the delta did not touch it. The change has two arms, and the new test exercises only the predicate one: gate_entry builds a SeamKind::PredicateBoundary seam (task_first.rs:3419-3430), so the manual_stub_kind arm at :474 - the one that now names --kind return_value and --kind error_path when the owner-call gap was the only missing fact - is never reached by the new test. The existing coverage of those kinds (task_first.rs:4080-4102) reaches them through the module-blocker path (new_test_target.blocker = NoTestModule, that is adds_module), not through the owner-call gap. The consequence is concrete: an implementation that changed :438 and left :474 at [] if adds_module would pass the whole suite, while the pull request body explicitly claims the change covers "the predicate stub and the return/error stubs". A ReturnValue or ErrorVariant seam whose only missing fact is the activation stage is the case that needs its own assertion.
  • One landing-readiness item, not a candidate defect: the branch is MERGEABLE but BLOCKED, with the required Ripr Rust Small Result context undecided at this head.

Non-blocking:

  • The other earlier non-blocking findings still hold, because neither changed file moved. (1) The new test is not registered in .ripr/traceability.toml nor in a .ripr/traceability.d/ slice, while other tests in the same module are registered and the immediate sibling boundary_only_not_ready_names_the_stub_route is also unregistered - the practice in this module is mixed rather than absent, and I could not establish what cargo xtask check-traceability requires, so I am not calling it a violation; recording it so the decision is explicit rather than implied. (2) stub_supplies_rest (:417) reads as though it described what the stub supplies, while it is really "the owner-call gap was the only missing fact" - the remainder it gates is empty by construction - so a name closer to the gated condition would make the two call sites easier to read. (3) The end-to-end receipt is good and worth keeping: the dogfooded humantime run (src/duration.rs:397) shows the refusal naming ripr agent stub --kind predicate on a real repository, but there is no fixture or honesty-corpus case for this path, so the unit test is the only automated evidence - which is what makes the missing discriminator above worth closing.
  • On efficiency: the change alters which stub kinds a refusal message names; it does not add work to any path. The manual_stub_kind arm at :474 is a match over a small closed set of seam kinds evaluated once per refusal, and the refusal path runs once per decision rather than per file, so there is no per-item multiplication and no newly-reachable waste. The stub_supplies_rest naming point is the one that could mislead a future reader into thinking the stub does work proportional to the remainder, which it does not - the remainder is empty by construction - so the naming fix also removes a misleading efficiency implication.

Not run:

  • The Rust toolchain on this host is not on PATH: I ran no test, clippy, fmt, or cargo xtask gate. Every gate result above is a hosted job log read at this exact head, with the newest-run-wins rule applied.
  • The required hosted Rust qualification has not concluded at this head, so the exact-head workspace test result is unobserved rather than green.
  • I did not run a combined-tree compile of the merged base and head, and I did not reproduce any local gate result the pull request body claims.

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

@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 88ccdae): REPAIR_REQUIRED

This is a re-bind to a moved head. The head move was a merge of the base branch into this branch and the candidate's proposed content did not change, so this review states what moved, carries the earlier findings forward, and records the hosted state at the new head rather than re-deriving a review of unchanged code.

Inspected:

  • What moved, and what did not. The candidate's proposed content is byte-identical to the earlier reviewed head, measured as the blob SHA of every path in compare/<base>...<prev> against compare/<base>...<head> with the current base a5c3ba469928c276a115c54c6f03c44cfd82e304. Every path in the contribution classifies as UNCHANGED: none was added, removed or edited by the delta. The one new commit is 88ccdaeb7 Merge remote-tracking branch 'origin/main' into claude/stub-route-owner-gap-only, a merge of the base branch into this branch. The production surface under review is therefore exactly the surface the earlier independent review read, and the earlier findings are carried forward rather than re-derived.
  • The hosted state at this head. The routed Ripr Rust Small on GitHub Hosted / Rust gates job is still in_progress in the Merge-ready request run, the Rust tests shard N of 4 jobs have not yet been created, and the required Ripr Rust Small Result context (the only required status check on main) has therefore not been decided at this head. Route Ripr Rust Small, Admit PR Candidate and Detect Docs-Only Surface are success; the CI workflow run, the Windows Advisory run and the Qualify ripr-rs Python Wheel (read-only) run are all still in_progress at this head, and Merge-ready Conflict Notice is success.
  • The earlier independent review bound to c032878 was labelled REVIEW_INCOMPLETE, while its own Blocking: section named two blocking items: the manual_stub_kind arm having no discriminator, and unestablished hosted proof. The first of those still stands in the same form - the delta did not touch the file - so this review re-binds with it still blocking and corrects the label to REPAIR_REQUIRED. The second is partly settled by the evidence at this head and remains partly open.
  • The contribution itself is changelog.d/repair-owner-call-gap-names-stub-route-11895.md and crates/ripr/src/app/task_first.rs, and the merge state at this head is MERGEABLE / BLOCKED.

Blocking:

  • Half of the changed behavior still has no discriminator, and the delta did not touch it. The change has two arms, and the new test exercises only the predicate one: gate_entry builds a SeamKind::PredicateBoundary seam (task_first.rs:3419-3430), so the manual_stub_kind arm at :474 - the one that now names --kind return_value and --kind error_path when the owner-call gap was the only missing fact - is never reached by the new test. The existing coverage of those kinds (task_first.rs:4080-4102) reaches them through the module-blocker path (new_test_target.blocker = NoTestModule, that is adds_module), not through the owner-call gap. The consequence is concrete: an implementation that changed :438 and left :474 at [] if adds_module would pass the whole suite, while the pull request body explicitly claims the change covers "the predicate stub and the return/error stubs". A ReturnValue or ErrorVariant seam whose only missing fact is the activation stage is the case that needs its own assertion.
  • One landing-readiness item, not a candidate defect: the branch is MERGEABLE but BLOCKED, with the required Ripr Rust Small Result context undecided at this head.

Non-blocking:

  • The other earlier non-blocking findings still hold, because neither changed file moved. (1) The new test is not registered in .ripr/traceability.toml nor in a .ripr/traceability.d/ slice, while other tests in the same module are registered and the immediate sibling boundary_only_not_ready_names_the_stub_route is also unregistered - the practice in this module is mixed rather than absent, and I could not establish what cargo xtask check-traceability requires, so I am not calling it a violation; recording it so the decision is explicit rather than implied. (2) stub_supplies_rest (:417) reads as though it described what the stub supplies, while it is really "the owner-call gap was the only missing fact" - the remainder it gates is empty by construction - so a name closer to the gated condition would make the two call sites easier to read. (3) The end-to-end receipt is good and worth keeping: the dogfooded humantime run (src/duration.rs:397) shows the refusal naming ripr agent stub --kind predicate on a real repository, but there is no fixture or honesty-corpus case for this path, so the unit test is the only automated evidence - which is what makes the missing discriminator above worth closing.
  • On efficiency: the change alters which stub kinds a refusal message names; it does not add work to any path. The manual_stub_kind arm at :474 is a match over a small closed set of seam kinds evaluated once per refusal, and the refusal path runs once per decision rather than per file, so there is no per-item multiplication and no newly-reachable waste. The stub_supplies_rest naming point is the one that could mislead a future reader into thinking the stub does work proportional to the remainder, which it does not - the remainder is empty by construction - so the naming fix also removes a misleading efficiency implication.

Not run:

  • The Rust toolchain on this host is not on PATH: I ran no test, clippy, fmt, or cargo xtask gate. Every gate result above is a hosted job log read at this exact head, with the newest-run-wins rule applied.
  • The required hosted Rust qualification has not concluded at this head, so the exact-head workspace test result is unobserved rather than green.
  • I did not run a combined-tree compile of the merged base and head, and I did not reproduce any local gate result the pull request body claims.

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

@github-actions github-actions 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.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the PR's behavioral claim is broader than the added focused test.
  • Confirm the change depends on the exact semantics of owner_call_gap_covered_by_stub to distinguish owner-call absence from direct callers and unrelated missing facts.

Parked follow-ups

  • The implementation intentionally shares the empty-remainder condition with the manual return/error stub arm, so the change is broader than the newly tested predicate seam but remains within the stated stub-route behavior.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Execution of the claimed focused test is not established by an available receipt.
  • Execution proof is incomplete at review time.

…gap route

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

@github-actions github-actions 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.

Reporter summary

No concrete changed-behavior defect was established: the empty-remainder match remains fail-closed, while direct callers and additional missing facts are covered by negative tests; broadening the same condition to return-value and error-path stubs matches the stated scope. All lanes found the main residual risk to be missing execution evidence: the late cargo-test receipt timed out after 900 seconds, ripr failed with exit code 2, and the claimed focused tests and clippy run remain independently unverified. The return/error test also comments on an unsupported-seam-kind negative that it does not explicitly assert, so the verdict is uncertain rather than clear.

@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 7958ffb): REVIEW_INCOMPLETE

Inspected:

  • Subject: PR #11927, head 7958ffb94edfefffdf44924d9f5747ab7d5be966, earlier reviewed head 88ccdaeb7f5a6744d2c6a457c6b0447633fc1a3d, recorded base a5c3ba469928c276a115c54c6f03c44cfd82e304. Governed by issue #11895. 2 files.
  • What moved: one commit, 7958ffb9 test(repair): cover the return and error stub arms of the owner-call gap route, touching exactly one path - crates/ripr/src/app/task_first.rs (+60/-0, entirely inside the tests module). The changelog fragment changelog.d/repair-owner-call-gap-names-stub-route-11895.md is UNCHANGED. This is a real content change to the candidate's proposal, not a base move: the delta is test-only, and the production surface (route_not_ready_reason and its helpers) is byte-identical to the earlier reviewed head.
  • Semantic owner: route_not_ready_reason in crates/ripr/src/app/task_first.rs - stub_supplies_rest (:417), the boundary_route match (:434-440), manual_stub_kind (:472-480), the matches! guard (:481-488), the route text (:512-514), owner_call_gap_covered_by_stub (:627-646), plus stub_kind_for_missing_evidence (crates/ripr/src/analysis/repair_route.rs:299-309), the fixture builders gate_entry (:3412-3449) and weak_related_test (:3451-3463).

Earlier findings re-bound:

  • Earlier Blocking #1 ("Half of the changed behavior still has no discriminator... the manual_stub_kind arm at :474 is never reached by the new test") is REPAIRED. I traced the new test through the production path at THIS head rather than taking the commit message at its word:
    • The ret fixture is gate_entry(SeamGripClass::ActivationUnknown, Vec::new()) with entry.seam replaced by a RepoSeam::new("src/pricing.rs", "pricing::discounted_total", SeamKind::ReturnValue, 42, 88, "changed value", RequiredDiscriminator::ReturnValue{..}, ExpectedSink::ReturnValue). gate_entry leaves new_test_target: None (:3444), so the module-blocker path is unavailable and adds_module is false.
    • owner_call_gap_covered_by_stub (:627-646): no related test carries relation_reason == DirectOwnerCall, and the activation item is present, so it returns Some([]).
    • stub_supplies_rest (:417) is therefore true, and missing_evidence becomes [] (:418).
    • boundary_route is true for [], but the predicate arm at :441 is gated on entry.seam.kind() == PredicateBoundary, so it does not fire for a ReturnValue seam.
    • manual_stub_kind (:472-480) takes the [] if stub_supplies_rest arm and maps ReturnValue => Some("return_value") (:475) and ErrorVariant => Some("error_path") (:476); the matches! at :481-488 accepts exactly those two pairs, and the route text at :512-514 is ripr agent stub{root_flag} --at {file}:{display_line} --kind {kind} with file "src/pricing.rs" and display_line 88 - the same seam the sibling assertions pin as "src/pricing.rs:88" (:3759, :3848, :3944, :3975).
      So the new test reaches exactly the arm the earlier review said had no discriminator, and it catches the mutation the earlier review named: with :474 reverted to [] if adds_module, adds_module is false for this fixture, manual_stub_kind would be None, and the positive assertion would fail. The err fixture does the same for the ErrorVariant / error_path pair.
  • Earlier Blocking #2 (unestablished hosted proof) is partly settled: the new test has a hosted receipt at this head (below). It is not fully settled - the required lane is red - so the disposition stays short of REVIEW_READY.
  • Earlier non-blocking #1 (the new test is not registered in .ripr/traceability.toml) STILL HOLDS, and I can now state it more sharply: .ripr/traceability.toml at this head has 108 task_first registrations but zero for any *_stub_route test, so the whole family - the new test, its predicate sibling owner_call_gap_alone_names_the_predicate_stub_route and boundary_only_not_ready_names_the_stub_route - is unregistered. cargo xtask check-traceability did not run at this head, so I still cannot establish what it requires and I am not calling this a violation; recording it so the decision is explicit.
  • Earlier non-blocking #2 (stub_supplies_rest at :417 reads as though it described what the stub supplies) STILL HOLDS; the delta did not touch that line.
  • Earlier non-blocking #3 (no fixture or honesty-corpus case for this path, so the unit test is the only automated evidence) STILL HOLDS; the delta adds more unit coverage, not a corpus case.

Blocking:
None proven in the source - the one blocking source defect is repaired. What stands between this candidate and REVIEW_READY is hosted proof: the required check Ripr Rust Small Result is red at this head, on a failure inherited from the base (attribution below), and the merge state is blocked as a consequence.

Non-blocking:

  1. The "extra missing fact" negative rests on a different mechanism than its comment says. The test comment reads "a second missing fact keeps the stub out", but in that fixture stub_supplies_rest is in fact TRUE (:417 - without_owner_gap is Some(["incomplete evidence stage: propagation"])) and missing_evidence is non-empty (:418). The stub stays out because the remaining item is not a producer discriminator, so stub_kind_for_missing_evidence (repair_route.rs:299-309) returns None - not because the route was closed. The asserted behaviour is right, and a future change that taught stub_kind_for_missing_evidence the propagation string would be caught by this test, which is good. The comment should describe the mechanism the test actually relies on.
  2. The direct negative does go through the intended mechanism: weak_related_test() (:3451-3463) carries relation_reason: DirectOwnerCall, so owner_call_gap_covered_by_stub returns None at its first check (:632-639), stub_supplies_rest stays false, and the activation item survives into missing_evidence, where stub_kind_for_missing_evidence finds no producer prefix. Worth stating explicitly because it is the difference between a discriminator and a tautology: the assertion would fail if the DirectOwnerCall short-circuit at :632-639 were removed.
  3. The PR body's proof section is stale with respect to this delta. It lists "cargo test -p ripr --lib app::task_first (55 pass), including a new test with direct-caller and extra-missing-fact negatives", which describes the predicate test from the earlier head, and it does not mention the return/error coverage the head adds. The body also claims "cargo clippy -p ripr --all-targets -- -D warnings and cargo xtask check-user-text pass"; at this head clippy never ran (CLIPPY_RESULT: skipped), so that claim has no hosted receipt here.
  4. Hosted state at this head, newest run wins. Run 41254202822 ("CI") is failure: "Rust-only feature lane" (job 124693793699) failed at step 9 "Test --no-default-features --features lang-rust" - the ripr lib target reports 12887 passed; 1 failed; 1 ignored with the single failure lsp::backend::list_actionable_items_tests::list_actionable_items_names_gaps_the_actionable_profile_hides at crates/ripr/src/lsp/backend.rs:12892, and the cli_smoke target reports 619 passed; 2 failed; vscode, source-identity, msrv, Perl and release proof and ci-result are skipped. The new test itself passed in that lane: test app::task_first::tests::owner_call_gap_alone_names_the_return_and_error_stub_routes ... ok (log line 8547), alongside owner_call_gap_alone_names_the_predicate_stub_route ... ok (8546). Run 41254202792 ("Merge-ready request 7958ffb...") is failure: "Route Ripr Rust Small", "Detect Docs-Only Surface" and "Admit PR Candidate" are success; "Ripr Rust Small on GitHub Hosted / Rust gates" (job 124694073104) failed at step 16 "Repository policy preflight" with check-process-policy reporting that the crates/ripr/src/output/first_pr/run_chain.rs allowlist entry for use std::process::Command is orphaned (max_count=1, pattern not found in any tracked file), with PROCESS_POLICY_RESULT: skipped and CLIPPY_RESULT: skipped; the required Ripr Rust Small Result (124695286059) is failure, which is why the merge state is blocked; the sharded test lane and the CX lanes are skipped. "Security" (41254202907), "Printed Command Paste" (41254202735), "Merge-ready Conflict Notice" (41254203008), "Windows Advisory" (41254203164), "ub-review" (41254194306) and "Qualify ripr-rs Python Wheel (read-only)" (41254194322) are success; Coverage, Test Analytics, Future Clippy (advisory) and macOS Advisory are skipped.
  5. Attribution for both red lanes: main-red, not this candidate, established by direct source comparison plus a base comparison. (a) The process-policy orphan: at the recorded base a5c3ba46 AND at this head, crates/ripr/src/output/first_pr/run_chain.rs is the same blob 11076801f4 (which imports use std::process::Stdio; and never the literal use std::process::Command the allowlist entry requires) and the allowlist fragment policy/process_allowlist.d/11720-first-pr-run-chain.txt is the same blob 63db01ce12; neither is in this two-file proposal, so the orphan pre-exists in the candidate's tree exactly as in the base tree. Main tip c5fa19fd9051f00a9195b37af9c78e5028b6982f fails the same gate with the identical message (job 124702518162). (b) The LSP ordering assertion and the two cli_smoke failures are outside this PR - it touches neither crates/ripr/src/lsp/ nor crates/ripr/tests/cli_smoke.rs. The base tree at a5c3ba46 carries crates/ripr/src/lsp/diagnostics.rs blob b29c3d37, but the tree CI tested is the head merged with main as of 2026-10-31T23:49, whose diagnostics.rs is blob eedf4d52 (the #11796 union-find canonical_group_members, which changed group ordering from string-key order to union-find root-index order); I confirmed the merge ref for this PR (9003128a2f069dcc3d5ac103ed2bb9927566abf8) carries eedf4d52 while backend.rs stays at 5a98e4c3, whose test at :12892 still asserts the old order [:98, :94]. Main push a7431a52d fails the same test at the same place with the identical left/right flip and the same two cli_smoke failures at the same 619/2 counts (job 124698136286). This PR changes neither file.
  6. Efficiency: the delta is test-only and adds no production work. The production path it covers - manual_stub_kind (:472-480) - is a match over a small closed set of seam kinds evaluated once per refusal, and the refusal path runs once per repair decision rather than per file, so there is no per-item multiplication and no newly-reachable waste. owner_call_gap_covered_by_stub (:627-646) allocates one Vec<String> per call via kept; that allocation is pre-existing and unchanged. The new test itself builds a few small Vecs and Strings inside a test body that runs once. No new I/O, no subprocess, no cache, no unbounded growth. I did not profile, so this is a source-level statement, not a measurement.

Not run:

  • The Rust toolchain on this host is not on PATH: no cargo test, clippy, fmt or cargo xtask gate was executed, and no local Rust receipt is claimed. Every Rust-level statement above comes from reading source at this head or at the base, or from hosted job logs at this head.
  • The required hosted Rust qualification is red rather than green at this head, so the exact-head workspace test result is a red lane inherited from the base, not a green receipt for the whole workspace. The changed test does have its own green line in the Rust-only feature lane, quoted above.
  • The PR body's cargo test -p ripr --lib app::task_first count, its clippy and check-user-text claims, and the dogfooding receipt (humantime src/duration.rs:397) are the author's; I did not reproduce them, and no fixture or honesty-corpus case for this path exists to check against.
  • No combined-tree compile of the merged base and head.

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

Copy link
Copy Markdown
Member Author

Review of record, head 3c8af69. Disposition: REVIEW_READY (COMMENT on author PR).

Inspected: full diff of app/task_first.rs plus tests and fragment. Semantic owner is route_not_ready_reason; the change only widens the existing "nothing else missing" condition (adds_module or the owner-call gap covered by the stub) into stub_supplies_rest, reused for both the predicate boundary route and the return_value/error_path stub kinds. It stays fail-closed: [] after removing the owner-call gap is the only new admission.
Oracle: tests assert the stub command text for predicate, return_value and error_path, and discriminating negatives (a direct caller keeps the gap, a second missing fact, and the safe-test-target evidence each keep ripr agent stub out). Fragment repair-owner-call-gap-names-stub-route-11895.md has (#11895).
Findings: none. Exact-head Ripr Rust Small Result success; mergeable_state clean; zero unresolved threads.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit 0180688 into main Nov 1, 2026
61 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/stub-route-owner-gap-only branch November 1, 2026 09:30
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