Repository navigation
Pilot: select repair-start line family from canonical next-action (#6986) - #8403
Conversation
…n decision (#6986) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Em12HpuY7UcKeXeTmsjfBS
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Local proof on head: Generated by Claude Code |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 38 minutes. View limit details
Comment |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- Negative-control test uses
route_ready_entrywith two files to push past the flip; coupling to that helper's current behavior is undocumented in the diff. If helper semantics shift, test could silently green-light a regression. A short comment citing the flip invariant would harden the oracle.
Verification questions
- Confirm route_ready_entry is used but its definition/semantics aren't visible in diff; assumption is it produces a seam eligible/past the flip respectively.
- Confirm test asserts terminal contains exact formatted strings 'repair this seam: {route}\n' and ' 1. {route}\n' - coupled to existing render_pilot_terminal indentation.
- Confirm pre-PR behavior oracle absent; test does not exercise old bare-route-eligibility renderer.
- Confirm new test pilot_repair_line_follows_the_canonical_pilot_decision asserts both positive (eligible seam -> PilotDelegated stop, route rendered) and negative (past-the-flip -> Unsupported stop, no repair line) paths in one test body. Coverage is narrow but correctly bracketed.
- Confirm sensor
riprreported failed (exit 2) but the package-local libtest run cited in the seeded comment is green. Trust-affecting ambiguity: review cannot independently re-runcargo test --locked --package ripr --lib pilot. Recommend re-runningcargo test --locked --package ripr --libon head before merge so the gate has an in-witness receipt. - Confirm
NextActionInputis built withroute_admitted: true,route_refusal: None,missing_input: None,limitation: None,limitation_route: None, andalternatives/limitationsempty. For the negative-control seam that yieldsNextActionStop::Unsupported, the canonical classification came from the bound delegation-by-omission. Confirmselect_canonical_next_actionresolves producer=PilotDelegation + delegation=None intoUnsupportedOrLimiteddeterministically before shipping; the new test covers the observable shape but not the schema path that drives it. (crates/ripr/src/output/pilot/commands.rs:95).
Pull request was converted to draft
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- PR claim 'Rendered text is unchanged' is asserted only by the new test on one eligible seam bracket; no old-behavior oracle captures the prior terminal for byte/line comparison across multiple seam shapes (multifile, claim-only, etc.).
- offered_repair_start_route + Err-fallback keep the renderer total but couple pilot to repair_packet_eligibility flipping semantics; architecturally small but worth a doc-comment naming the fail-closed invariant.
Verification questions
- Confirm route_ready_entry semantics drive the negative-control oracle; a helper change could silently flip test verdicts without diff-visible cause.
- Confirm new test asserts 'repair this seam:' / 'Next, in order:' strings and uses route_ready_entry as a black-box helper without documenting the flip invariant.
- Confirm ripr sensor reported failed (exit 2) but local proof on head (cargo test -p ripr --lib pilot) shows 118 passed including the new test; the exit-2 likely reflects the unrelated environmental cli::commands::pilot::tests::unwritable_out_dir_names_out_not_out_dir failure when running as root. Treat as pre-existing noise, not a blocker for this PR.
Refuted
Box::from(slice)allocation failure does not returnNone; recoverable fallback claims are dropped.- Two divergent decision sites: canonical selector vs. legacy bare route check could disagree after the change.; refuted because: Both arms of repair_start_command consult offered_repair_start_route, which is the same mapping the projection consumes; canonical selector is built on top of it, so the only disagreement possible is selector-typed-limitation vs. projection-built-PilotDelegated, which is the intended boundary.
- route_ready_entry arity is undocumented and could shift silently; refuted because: route_ready_entry is a pre-existing test fixture in the same file used by pilot_offers_agent_repair_only_past_the_repair_packet_flip; the new test's negative control is bracketed by a direct repair_packet_eligibility assertion available via the same import scope. Coupling risk is real but already mitigated by sibling test convention.
Parked follow-ups
- route_ready_entry helper semantics are an undocumented oracle contract.
- route_ready_entry helper semantics shift risk flagged in the prior summary remains live; coupling is undocumented in diff and one shared helper is reused for positive and negative paths.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Substantive Exact-Head Review (PR #8403)
|
Requested by Steven · project thread
Before:
ripr pilotdecided whether to print the repair-start line family (repair this seam:, theNext, in order:block, the Markdown/JSON repair command) with a bare route-eligibility check in the renderer, separate from the canonical next-action decision.After: the canonical selector (
PilotDelegationproducer) decides. A pilot-delegated stop renders its route; any other outcome (typed limitation) renders no repair line. Rendered bytes are unchanged where the two agreed. If the projection cannot be built, the render falls back to the same shared offered-route mapping the projection consumes, so the two cannot disagree. Part of #6986 (pilot slice); precedent: #8319 (doctor).How:
canonical_next_action_for_pilotbuilds the input inoutput/pilot/commands.rs, binding a delegation only when the fail-closed repair flip offers a route;repair_start_commandreads the decision's stop. New testpilot_repair_line_follows_the_canonical_pilot_decisioncovers an eligible seam and a negative control past the flip. Changelog fragment added.Generated by Claude Code