Skip to content

fix(agent): name the guided repair start in check --format agent and JSON (#13599) - #13671

Merged
EffortlessSteven merged 5 commits into
mainfrom
claude/13599-agent-format-repair-route
Nov 8, 2026
Merged

EffortlessSteven merged 5 commits into
mainfrom
claude/13599-agent-format-repair-route

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven Zimmerman, via Claude.

Governing issue or accepted claim: #13599
Acceptance delta (one sentence): ripr check --format agent and JSON canonical_next_action now name the ripr 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.

Verification

  • Reproduced with the prebuilt binary (Python repo): gaps=0 + "no guided repair route" in agent; unsupported_or_limited in JSON beside repair.status: ready. After the change all three agree.
  • New 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 check passed; cargo fmt --check clean.
  • Not run locally (shared cargo lock contention): full cargo xtask precommit, cargo test -p xtask. Left to hosted CI.

Generated by Claude Code

…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
@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 8, 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 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 152 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: 2f24795d-21c9-448f-a28c-3fb596dac454
Commits

Reviewing files that changed from the base of the PR and between af8ddd5 and 974d350.

Files selected for processing: 18

  • .ripr/traceability.toml
  • changelog.d/13599-agent-format-repair-route.md
  • crates/ripr/src/app/agent_status.rs
  • crates/ripr/src/app/repair_card.rs
  • crates/ripr/src/app/task_first.rs
  • crates/ripr/src/cli/commands/check.rs
  • crates/ripr/src/domain/next_action.rs
  • crates/ripr/src/domain/next_action/kani_proofs.rs
  • crates/ripr/src/output/doctor.rs
  • crates/ripr/src/output/human/agent.rs
  • crates/ripr/src/output/human/agent_tests.rs
  • crates/ripr/src/output/human/triage.rs
  • crates/ripr/src/output/next_action.rs
  • crates/ripr/src/output/pilot/commands.rs
  • crates/ripr/tests/check_agent_repair_route_agree.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0242-canonical-next-action.md
  • policy/process_allowlist.d/13599-agent-format-repair-route.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven self-assigned this Nov 8, 2026
…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 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.

REVIEW_READY

Reviewed the delta d443420..145d55d against the four findings from the earlier pass:

  • Header gating: repairable=1 and next= now read one filtered repair_start value. 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_command covers the uncommitted arm. It checks that the output says to commit first, prints no stop= and no next=ripr agent repair, and leaves repair_route out of the JSON canonical stop. This is the fail-closed direction.
  • Incomplete run: check_agent_incomplete_run_does_not_claim_repairable asserts no repairable=.
  • The negative control in check_agent_repair_route_agree.rs now requires findings=1 and |id=probe:, so it cannot pass vacuously.
  • RIPR-SPEC-0242 documents the additive repair_route on the check_triage stop.

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

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 8, 2026 12:29
@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

Comment thread crates/ripr/src/output/human/agent.rs Resolved
Comment thread crates/ripr/src/output/next_action.rs Resolved
@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit 974d350f2536 · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=af8ddd5e1bf178c8352907a9a19b1e130853afbf findings=80 gaps=7 infection_unknown=5 propagation_unknown=1 static_unknown=26 weakly_exposed=48
weakly_exposed|crates/ripr/src/domain/next_action/kani_proofs.rs:150|check_repair_route: None|missing=check_repair_route: None|test=t1|id=probe:crates_ripr_src_domain_next_action_kani_proofs.rs:field_construction:10d9284f
weakly_exposed|crates/ripr/src/output/human/agent.rs:122|repair_start|missing=No strong discriminator was detected|test=t2|id=probe:crates_ripr_src_output_human_agent.rs:return_value:d61dd2ac
weakly_exposed|crates/ripr/src/output/human/agent.rs:123|.as_ref()|missing=No strong discriminator was detected|test=t2|id=probe:crates_ripr_src_output_human_agent.rs:return_value:c7051138
weakly_exposed|crates/ripr/src/output/human/agent.rs:124|.and_then(\|start\| start.command.as_deref()),|missing=No strong discriminator was detected|test=t2|id=probe:crates_ripr_src_output_human_agent.rs:return_value:181413c3
weakly_exposed|crates/ripr/src/output/next_action.rs:448|format!("check case {}", case.as_str())|missing=No strong discriminator was detected|test=t3|id=probe:crates_ripr_src_output_next_action.rs:call_deletion:42293eef
t1=crates/ripr/src/domain/next_action.rs:2175 check_cases_map_to_their_closed_classes relational_check `assert!(!action.is_executable(), "case {}", case.as_str());` miss=weak_assertion
t2=crates/ripr/src/output/human/agent_tests.rs:1228 check_agent_blocked_gap_start_says_commit_first_and_names_no_command unknown miss=assertion_admission_unproven
t3=crates/ripr/src/output/next_action.rs:990 append_canonical_next_action_member_keeps_one_json_document relational_check `if parsed["canonical_next_action"]["action_class"] != "inspect_details" { return…` miss=weak_assertion
+2 more gaps not shown; `--format json` lists all
limits=infection_unknown:5,propagation_unknown:1,static_unknown:26,weakly_exposed:41
next=ripr explain --root /home/runner/work/ripr-swarm/ripr-swarm/head --base af8ddd5e1bf178c8352907a9a19b1e130853afbf --committed --mode draft --format agent probe:crates_ripr_src_domain_next_action_kani_proofs.rs:field_construction:10d9284f

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

REVIEW_READY

Scope: the complete diff against main at b5f89bc, including 145d55d and b5f89bc.

  • Single owner: triage::gap_repair_start decides whether a gap-bound start exists. The human Next block, the agent open=/next= lines and the JSON canonical_next_action.stop.repair_route all read it.
  • Fail-closed header: repairable=1 is 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.toml list the new tests and agent.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 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.

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

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

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

@EffortlessSteven
EffortlessSteven merged commit 8e22ac6 into main Nov 8, 2026
76 of 77 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/13599-agent-format-repair-route branch November 8, 2026 14:10
EffortlessSteven pushed a commit that referenced this pull request Nov 8, 2026
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
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