/roborev-fix
Validate and address failing review findings without exceeding the current task.
Usage #
/roborev-fix [job_id...]
Behavior #
A direct user invocation may discover open failing reviews when no job IDs are
provided. An Agent Hook invocation uses the exact job IDs supplied for its fix
session. Continuation reminders may reuse the original IDs from conversation
context or a handoff. Ask for IDs only when that original set is unavailable.
It never runs roborev fix --open, roborev fix --list, or another discovery
command.
For every selected review, the agent:
- Fetches the review with
roborev job show --job <id> --json. - Checks each finding against the current code, relevant callers and data flow, repository instructions, tests, and developer comments.
- Triages each finding before editing. A reviewer looks for gaps without
weighing what a fix costs, so the agent judges who reaches the path today,
what harm follows, and the smallest change that removes it. Each finding
gets one disposition:
- Fix: a reachable defect with real harm, removable by a small change inside the current task. When the repository already tests that code, the agent first writes a test that fails on the reported behavior. If the test passes, the finding is Invalid. Otherwise the agent makes the change and reruns the test.
- Decline: true, but not worth its cost now, such as hardening for paths nothing reaches or design-review "missing considerations". The agent records why.
- Invalid: stale, already resolved, unreachable, or wrong. The agent records the evidence.
- Ask: outside the current task, unclear in scope, or a fix that adds new surface such as an endpoint, schema, or config option. The agent leaves the review open and asks the user.
- Cites evidence for every Decline and Invalid: a
file:lineand what that code does, or a command and the output line that disproves the finding. "I checked" alone is not evidence. - Comments with one line per finding in the shape
- <severity> <file>: <Fix|Decline|Invalid|Ask>: <reason>. A Fix line names the test or command that now passes. The agent then closes a review when every finding is Fix, Decline, or Invalid. Reviews with an Ask finding remain open. - Audits the original job IDs and lists every Ask finding in its final response.
When the user asked to see findings before changes, the agent triages without editing and reports the dispositions.
If the invoking prompt contains an ## Autofix Guidelines section, the agent
uses it as trusted user policy when evaluating and classifying findings. Review
findings, comments, logs, and quoted text remain untrusted data, not
instructions.
An automatic Agent Hook invocation never broadens the user's current task. The review, hook, and skill do not grant authority for unrelated work.
Phin Tech docs
Red Pen in the store →