Verify a remedy, then watch the recovery
RepoOps turns a finding into a case, scopes it into a brief, builds the fix as a pull request in your own checkout, checks it five ways, and waits for your decision. A merge opens a recovery window on the merged digest, and a rollback is recorded against it. Nothing merges without you, even under a rule you signed: a rule queues the fix, and a person merges it.
Watch it
Read the narration
- 0:00 Fix all fixes the open findings together, or one each, behind one approval.
- 0:06 The case page traces the symptom back to its deploy, commit and agent session.
- 0:13 Five checks run on every built fix.
- 0:15 Approve the head they verified, or reject it with a reason.
- 0:23 Fix runs keep each step's receipt.
- 0:25 The merge opens a recovery window.
Synthetic example. Read the guide
How to
The RepoOps desktop app tracking the repository, with a local checkout (a read-only mirror can sense and triage, not build).
The Claude Code command line installed on the machine that builds, ANTHROPIC_API_KEY in the data directory's .env for the scoper, and a repository credential the merge can use.
- Set the build policy.
In Settings, press Open Build policy on Remediation. On the Build policy card, set Auto-build floor (default high and critical), Daily build cap (USD) (default 10) and Daily scope cap (USD) (default 5), then press Save policy. The floor decides which findings may build unattended. The build cap bounds what building spends in a day, failed runs included; the scope cap bounds what the unattended scope tick spends writing briefs. Both reset at midnight UTC, and a cap of 0 means that stage spends nothing unattended today.
- Arm the three schedules in the data directory's .env, then restart the app.
REPOOPS_AIR_OPEN_SCHEDULE=1opens cases from findings on the hourly cycle,REPOOPS_ARL_SCOPE_TICK=1writes briefs, andREPOOPS_ARL_BUILD_TICK=1dispatches builds. Each is off unless its value is exactly 1. Until the first is set, the page reads Nothing is opening cases yet. - Decide what each class of fix may do on its own.
In the table What the loop may do on its own, set each class to build, ask or never. The auto level appears only once auto-remediation is on, and while it is off a stored auto reads as build.
- Open Remediation and work the queue.
Remediation opens on the fix pipeline, with four tabs: Cases, Fix runs, Approvals and Evals. Every case links to its case page, the same page a finding on Production or Today opens. The page with the build policy also keeps the four bands: Waiting for you holds built fixes with an open pull request; Being built holds builds running now; Below the auto-build floor holds real findings the floor or the cap kept from building, each with its reason; Shipped holds merges with the lesson recorded. To build one held case by hand, press Build it on the case: it runs under the same floor, cap and watch-only gate.
- Open a waiting fix and decide it on its case page.
Under Remediation, ranked the case page lists what the fix record allows next, each naming the pull request (here PR #412): Approve and merge PR #412, bound to the head the five checks (builds, tests, regression, guard, PR CI) verified; Verify PR #412 without merging; or Reject PR #412. Pick one and press Fix with the selected option. The dialog lists the steps it runs, asks for your name for the record and, when this machine has one, its operator confirmation, and marks the merge as hard to reverse. On a team machine where two or more people can approve, the person who requested or approved the build of a fix whose change is hard to reverse cannot approve its merge: the refusal names who else can, and the step on the case page names who approved the build and who merged it. A reject also asks why you are rejecting it: the pull request closes, the diff, the guard and the lesson are discarded together, and the reason stays on the case. To read the whole case first, press Case record in the page header: it opens the case's seven sections (overview, evidence, attribution, security, cost, fix and prevention) one at a time, each saying what the record does not hold yet. A section you can record on carries its forms: a checkpoint and a finding under Overview, a classification under Security on a security case, an estimate under Cost, a check under Fix, and the lesson review, a recurrence decision and a delivery receipt under Prevention. A refusal shows under the form and changes nothing; on repoops.ai a team owner or admin records, and other members see the forms off with the reason. Attribution carries the reviews: in the local app you confirm, dispute or withdraw an edge and answer a transcript request on the case's session; on repoops.ai an owner or admin asks for the session's transcript, withdraws the ask, or recomputes the candidate edges. In the local app Security also shows the response playbook that matches the case, step by step, with whether each step would run: dry run it to change nothing, promote or revoke a destructive verb with your name, and once no step is refused run it for real by typing its id. Prevention replays the lesson's guard over the tree as it is today, and Export this case downloads the case manifest. Playbooks and the replay run on the machine that holds the case, so repoops.ai shows neither, and its export button says to export from that desktop.
- Watch the recovery window after the merge.
The merge opens a window on the merged digest for 24 hours unless you set another length, up to 336. Once the fix's merge commit has a live production deploy, RepoOps reads the case's route in the hour after it and shows the answer under Fix as Production after the fix: stopped, still happening, or not measured. Record a check with an evidence pointer when production cannot measure it. For a deploy made outside RepoOps, Open a recovery window records it by hand. If the fix is reverted, Record rollback keeps the digest now in the environment, the reason and a pointer to the revert.
- Fix several findings at once, or one at a time.
On Today press Fix all N above the list, or Fix this one on a row. A finding page offers Fix this one and Fix all N for every open finding on the same site, and a case that groups several provider issues offers Fix the group, since one fix covers the group. The dialog asks how to fix them: together, in one pull request, or separately, one pull request each. It shows the fix RepoOps recommends for each finding before anything runs, and names any finding it leaves out and why: one that is closed or already in a build. Put your name and your reason in and press Approve and fix. In the desktop app that one approval queues the builds through Build it, so the daily build cap and watch-only autonomy still apply, and a finding with no brief is scoped first on your key. Each pull request opens with auto-merge off and waits for your merge decision on its case page. On repoops.ai an owner or admin approves, the request is recorded on each case, and a person on the desktop that holds the cases runs the fix.
- Optional: combine several findings into one plan.
On Today's queue card press Select several, tick up to twelve rows, and press Combine N into one plan. One model call on your key returns a plan grouped by what each change touches, foundations first, with authorization, billing, license and environment-file work kept in its own group and marked for a person to merge. Each item carries a Done when line, and an item the plan cannot ground is named under Left out. Press Copy and paste the prompt into a fresh coding session. The plan changes nothing by itself.
- Optional: remove dead code in one pull request.
In the desktop app, send
POST /api/dead-code/fix-prwith the tracked repository's id asrepo. RepoOps scans the repository again and keeps only exported functions that no other file and no test names, in files at least 90 days old that no framework loads by name. It removes up to 10 of them, oldest first, on a new branch in a separate working copy, runs the repository's ownnpm testthere, and opens one pull request only when the tests pass. The body lists each removal, each candidate it left alone and why, and the scan's caveat that the list is an upper bound. Nothing merges on its own. The Dead code row in What the loop may do on its own defaults to ask; set it to never to turn the request off. A repository with no test script gets no pull request, because nothing could prove the removals safe. - Only then, consider auto-remediation or a standing rule.
Turn on auto-remediation asks who is pressing it and records the answer. With it on, a class set to auto works like a standing rule: RepoOps builds the fix, runs the five checks on its pull request, and the case waits under Waiting for you until a person merges it. A standing rule for a signal class does the same. Neither one merges code. On a team machine the team's switch is the ceiling.
Use cases
A high-severity finding with a known fix shape
- Situation
- A session detector flags an over-broad CORS allowlist on the checkout route. The floor is high, the cap is the default, the schedules are armed and auto-remediation is off.
- You do
- Open the case from Remediation, read the evidence on its case page, and run Approve and merge.
- You see
- The five checks re-run on the server and pass, the pull request merges, and the receipt names the digest, who decided and the head it verified. The lesson is written before the merge, and the recovery window reads Watching with the merged digest.
One defect open in three repositories
- Situation
- The same rule fires in three tracked repositories. Today's queue carries a repository badge on each row and an All repos chip row above them.
- You do
- Open one built fix and tick Decide this once for all 3 repos where this defect is open, then approve.
- You see
- Each repository re-runs its own five checks against its own suite and CI, and opens or merges its own pull request. A repository that fails its checks keeps its case; the others still land, each with its own receipt and its lesson in its own brain.
Expected outcome
Next step: Set REPOOPS_AIR_OPEN_SCHEDULE to exactly 1 in the data directory's .env and restart the app.
Next step: Its reason reads below-floor, cap-reached or watch-only. Lower the floor, wait for the next day, untick watch only, or press Build it on the case.
Next step: Read the failed chip's reason. Push a correction and run Verify without merging, or reject with a reason. The builder already retried once with the failure attached, then stopped.
Next step: The pull request head moved after the verification the case page showed. Run Verify without merging, reload, then approve the new version.
Next step: Read Production after the fix for why production could not measure the route, then record a check with an evidence pointer from the production source before you close the case.
What else to consider
Held actions, and the verbs behind every action
Every action RepoOps takes runs through one registry of typed verbs. Each verb must declare a preview (the dry run), an authorize check, an execute and a rollback, or it is refused at registration; composite verbs undo completed steps in reverse when a later one fails. Team policy holds an action for a person on human_approval, high_blast_radius or after_hours. Held actions wait on Remediation's Approvals tab, under Held actions. Press Review and approve to read the request, then Approve in the panel that opens, or press Deny and give a reason. An approved action runs on the next approval tick, every 5 minutes; a denied one is recorded as rejected. Approve needs an out-of-band confirmation that the installed app never sets, so on the installed app Approve refuses and Deny still works.
Across every repository you track
With two or more repositories holding cases, the queue reads every repository's case store with the same bands and a repository badge per row; one floor and one cap cover all of them, and the spend is summed. A fix is built, checked and merged in its own checkout against its own default branch, and an unknown repository fails the job rather than falling back. The fleet table on AI Security's Overview, under The case queue on this machine, states per repository whether it has a checkout, a toolchain, a credential and capture, and names a repository nothing is measuring. Narrow a repo can raise its floor, give it a smaller share of the cap, or set it to watch only; it can never loosen the account policy. A repository entry can carry a verify block with its own build and test commands and verify.install set to link or install, and a credential naming the environment variable holding its token, or default for the machine login.
Cost and egress
The scoper makes one model call per case on your ANTHROPIC_API_KEY, and a combine makes one; both count against the planner's cap of 25 calls a day. The builder runs your local Claude Code command line. Build cost counts against the daily build cap, and unattended scope cost against the daily scope cap. With remediation publishing on in Settings, a snapshot of case ids, titles, states, the five-check verdict and costs goes to your team page; never the diff, the prompt, the transcript or the finding body.
The team page
/team/remediation separates Unverified builds, Needs attention and Verified fixes, and lists refusals on their own. It reads No desktop has published yet until a desktop publishes. On the hosted app the case page offers an owner or admin Approve the merge once a desktop has pushed a version that passed all five checks; the approval binds to that version, an approval naming another is refused, and a person still merges on the desktop that built the fix. On a team with two or more owners and admins, the person who approved the build of a fix whose change is hard to reverse cannot approve its merge: the refusal names who else can, and the case page names who approved the build and who approved the merge.
What it does not do
It does not revert a merged fix: revert it in git or your deploy tool, then record the rollback. No route deletes a case's stored evidence; cases live in the repository brain's incidents/cases/YYYY-MM.jsonl and are read over 24 months.