Repository navigation
fix(agent): name the guided repair start in check --format agent and JSON (#13599) - #13671
Conversation
…JSON (#13599) The compact agent format never computed the gap-bound repair route, so it printed "offers no guided repair route" and gaps=0 for Python/TypeScript findings the human screen and finding_routes start with `ripr agent repair`. The agent format now computes the route like human and JSON, and all three read one decision (triage::gap_repair_start): the agent header adds repairable=1, the ending is open= with next= the repair command, and canonical_next_action.stop gains an additive repair_route. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLTBWXG3mQZ3zTPeoKz
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
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 9 minutes. View limit details
|
…rt (#13599) repairable=1 and next= now read one filtered value that is Some only on the preview-advisory limited-records path (complete analysis, no gap, no open row), so the header never claims a start the body does not name. Adds unit tests for the uncommitted-edits arm and the incomplete-analysis arm, strengthens the no-route control, and documents repair_route in RIPR-SPEC-0242. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLTBWXG3mQZ3zTPeoKz
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Reviewed the delta d443420..145d55d against the four findings from the earlier pass:
- Header gating:
repairable=1andnext=now read one filteredrepair_startvalue. That value exists only on the preview-advisory limited-records path that prints the start (complete analysis, no gaps, no open-limited row). The incomplete lines are built before the header, so the token cannot disagree with the body. - Blocked start:
check_agent_blocked_gap_start_says_commit_first_and_names_no_commandcovers the uncommitted arm. It checks that the output says to commit first, prints nostop=and nonext=ripr agent repair, and leavesrepair_routeout of the JSON canonical stop. This is the fail-closed direction. - Incomplete run:
check_agent_incomplete_run_does_not_claim_repairableasserts norepairable=. - The negative control in
check_agent_repair_route_agree.rsnow requiresfindings=1and|id=probe:, so it cannot pass vacuously. - RIPR-SPEC-0242 documents the additive
repair_routeon thecheck_triagestop.
Residual, not blocking: the JSON repair_route is not filtered by the renderer-only gate. On an incomplete run, JSON can still name the validated start while the agent text does not. This is not a wrong actionable signal, because ripr agent repair re-validates the start itself. A follow-up could move the gate into triage::gap_repair_start.
Targeted evidence, run by the worker: 343 tests passed in output::human plus output::next_action, and check_agent_repair_route_agree passed 3 tests. Full precommit is left to hosted CI on this head.
Generated by Claude Code
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
ripr static exposure checkCommit Took 63s. |
…e tests (#13599) A start blocked by uncommitted production edits keeps its commit-first terminal but no longer sets the header token. The verbose canonical action view names the same guided start as the plain view, and the new integration tests are mapped under RIPR-SPEC-0242. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLTBWXG3mQZ3zTPeoKz
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Scope: the complete diff against main at b5f89bc, including 145d55d and b5f89bc.
- Single owner:
triage::gap_repair_startdecides whether a gap-bound start exists. The humanNextblock, the agentopen=/next=lines and the JSONcanonical_next_action.stop.repair_routeall read it. - Fail-closed header:
repairable=1is emitted only on the preview-advisory limited-records path that prints a runnable start (command.is_some()). A start blocked by uncommitted edits prints the commit-first terminal without the token, and the unit test asserts this. - Incomplete runs, the no-route negative control (with a non-vacuous finding check) and the Python/TypeScript three-way agreement tests cover the remaining arms.
- The verbose and plain canonical-action views name the same guided start.
- Spec 0242 Test and Implementation Mapping and
.ripr/traceability.tomllist the new tests andagent.rs.
Evidence: 343 local tests in output::human plus output::next_action passed on this head's source, and rustfmt --check was clean. Hosted CI runs the full precommit.
Generated by Claude Code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLTBWXG3mQZ3zTPeoKz
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Scope: the complete diff against main at aa416b9. The only change since the b5f89bc review is a rename of the changelog fragment to the issue-first form changelog.d/13599-agent-format-repair-route.md, with contents unchanged. The source and oracle review from b5f89bc carries forward.
Generated by Claude Code
…t test (#13599) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLTBWXG3mQZ3zTPeoKz
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Scope: the complete diff against main at 974d350. The only change since aa416b9 is policy/process_allowlist.d/13599-agent-format-repair-route.txt. It allowlists the single Command::new(env!("CARGO_BIN_EXE_ripr")) spawn and its import in check_agent_repair_route_agree.rs, which is fixed argv against an isolated fixture repo with no shell or network. cargo xtask check-process-policy passes locally. The source and oracle review from b5f89bc carries forward.
Generated by Claude Code
Resolve the next_action.rs conflict with #13671: keep the walk_gates / render_decision structure and carry main's new CheckTriage repair_route (input.check_repair_route) in the CheckTriage render arm. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLUGWB1o9vpixujro7H
Requested by Steven Zimmerman, via Claude.
Governing issue or accepted claim: #13599
Acceptance delta (one sentence):
ripr check --format agentand JSONcanonical_next_actionnow name theripr agent repair --gap-id ...start for a Python/TypeScript gap whenever the human screen does, instead of saying "no guided repair route".Summary
Root cause: the agent format was missing from the CLI's
routed_format, so the validated gap-bound repair route was never computed for it, and the terminal line fell back to the "offers no guided repair route" denial.triage::gap_repair_start(the same validated route the humanNextblock and JSONfinding_routesuse), now feeds all three surfaces.repairable=1(gaps= still counts only confirmed gaps), ending isopen=instead ofstop=, andnext=is the repair command. If uncommitted edits block the start,open=says to commit first. With no route,stop=says there is no guided route for this finding.canonical_next_action.stop.repair_route(additive, omitted when empty); class staysunsupported_or_limitedsince naming a route does not run it.docs/OUTPUT_SCHEMA.md; changelog fragment added.NextActionInput/CheckTriageplumbing only; no change to repair attempt code (feat(repair): validate focused runs and gate proposal completion (#13203, #13205) #13438, feat(repair): custody for a caller-reported focused test result (#13203 slice B, receipt custody) #13574, fix(agent): report a publication-time build-ignore drift as an operational failure (#13452 slice 2) #13589 untouched).Verification
gaps=0+ "no guided repair route" in agent;unsupported_or_limitedin JSON besiderepair.status: ready. After the change all three agree.crates/ripr/tests/check_agent_repair_route_agree.rs: human/agent/JSON agree for a Python and a TypeScript fixture, plus a no-route negative control (3 passed).cargo test -p ripr --lib -- output::human next_action(388 passed);cargo xtask goldens checkpassed;cargo fmt --checkclean.cargo xtask precommit,cargo test -p xtask. Left to hosted CI.Generated by Claude Code