RepoOps
Open the app
04 / AI Security

Decide a held agent run and request its containment

When an agent run does something alarming, you need three things in order: one queue that says what happened, a reconstruction of what the run touched, and a way to stop it that reports what actually stopped. RepoOps keeps deciding and containing apart: a person decides on the case, and the machine that holds the run's token performs the revoke and reports each leg.

Last updated

Watch it

30.1 s, captions on. Narration: Microsoft Zira Desktop (provisional voice; an approved narration source is pending).Transcript
Read the narration
  1. 0:00 A detector held an agent's call.
  2. 0:02 The record is on the queue, undecided.
  3. 0:06 Read the legs and the held call first.
  4. 0:08 Then approve or deny, as a second person.
  5. 0:13 Request containment records a request.
  6. 0:15 The desktop daemon revokes the token and reports each leg; one that did not finish reads contain failed.
  7. 0:23 Decide on the record. Anchor the decision.
  8. 0:26 The guide covers the flags.

Synthetic example. Read the guide

1

How to

The RepoOps desktop app capturing sessions on the machine where the agent runs.

For the hosted queue: the device bound to a team on a paid plan, with cloud sync on, and an owner or admin to decide.

For a hold to open on its own: the enforcement hook registered and a detector armed to enforcing (repoops arm, see the AI Security guide).

  1. Open Remediation, then the Cases tab.

    One queue over every AI incident this machine records: durable security findings, production incidents blamed to a change, runtime holds, and policy exceptions. Each case says its source, status, owner and deadline. Two sources pointing at the same file in the same change fold into one case.

  2. Open the case and read it section by section.

    The case page in Remediation keeps seven sections under Case record: Overview, Evidence, Attribution, Security, Cost, Fix and Prevention. A section with nothing behind it reads not recorded. Assign an owner and move the status from Overview.

  3. Reconstruct the run in Run forensics.

    Open Attribution, then the Agent sessions tab, and press Report on the run in the Run forensics card. The report opens beside the list: the ordered timeline of tool calls, secret reads, file touches and outbound markers, what the run reached (files, secrets, repositories, endpoints), its attested subagents, and a step-through replay of the stored, redacted transcript. Nothing is re-run.

  4. Stop a live run with Kill this run.

    In the run's report, press Kill this run, enter who is running it and a reason of at least 8 characters, type the run id, and press Confirm kill. It revokes the run's token, signals the agent process and blocks its branch, and reports each leg. The run reads contained only when all three completed.

  5. Decide a held call on its case.

    While a HOLD is attached and undecided, the Security section shows Decide the HOLD. Name yourself, add a reason, and press Approve the held call or Deny it. The decision is signed with this machine's install key and stays on the local case.

  6. For a team, decide on the Held calls card.

    On repoops.ai open AI Security. The Held calls card on the Overview tab lists each call the hook held. Press Record, read the legs and the held call, then press Approve or Deny. Only an owner or admin decides; anyone on the team can write in the call's thread. An approval needs a second person: the account that filed the incident cannot approve it. Deny is always allowed.

  7. Press Request containment, then wait for the desktop.

    The status becomes revoke requested and nothing more. The desktop asks every 15 minutes whether a request is waiting, revokes the run's token, tries the branch block, and posts each leg back. The status becomes contained only when every attempted leg completed, otherwise contain failed with the reason.

2

Use cases

A run that read a secret and reached out

Situation
The trifecta detector is armed. A run read a credential file, fetched an untrusted page and then called an upload. One incident opened.
You do
Open the call's Record on the Held calls card, press Deny, then Request containment, and come back after the next desktop check.
You see
The Run token line reads revoked. The Branch line reads not blocked (no branch-block hook wired) and the status is contain failed, because one leg did not complete. The page never claims more than the desktop reported.

What did that overnight run touch?

Situation
Your security lead asks which secrets a finished run read and which endpoints it reached.
You do
On Attribution's Agent sessions tab, open the run's report from Run forensics, and read what it reached, then the timeline.
You see
You can say which file it read and when, and which endpoint it called. Secrets stay masked to their first and last four characters while you read.
3

Expected outcome

WorkedThe local queue lists each case with its source, and a case opens on its own page with the seven sections under Case record.
WorkedAfter a kill, each leg reads completed and the run reads contained.
WorkedOn the hosted queue, a decided incident reads Signature verified, and after the desktop reports, Contained: every leg completed.
Did not workThe hosted queue reads No agent incidents yet.

Next step: No bound machine has a detector at enforcing with the hook registered. Arm one with repoops arm and confirm the device is bound with cloud sync on.

Did not workApprove is refused on an incident you filed.

Next step: An approval needs a different owner or admin. Ask one, or press Deny.

Did not workThe row stays revoke requested for over an hour.

Next step: No desktop has reported. Check that the bound desktop and its daemon are running, then press Re-request containment.

Did not workRun forensics answers 404 for a run id.

Next step: No session record exists for that id on this machine. Pick the run from the list instead of pasting an id.

4

What else to consider

How a finding becomes a case, and what your agent can read

A finding does not become a case on its own. On the desktop app, open AI Security, then Risky commands and enforcement, and press Open cases by rule on the Session signals card. The pass opens a case for each durable finding at high severity or worse, and a fresh sighting of a finding that already has a case joins that case instead of opening a second. The card says what happened, such as 2 cases opened, 1 updated with a fresh sighting, or that no finding met the rule.

The rule has three settings in the data-dir .env. REPOOPS_AIR_CASE_MIN_SEVERITY moves the severity floor (critical, high, medium or low). REPOOPS_AIR_CASE_RECURRENCE also opens a case once a finding has been seen that many times; it is off until you set it. A production incident has no severity, so it opens on sightings alone: 3 by default, set with REPOOPS_AIR_PROD_RECURRENCE. A policy exception always opens a case. To see what a setting would open before it writes anything, send POST /api/ai-incidents/open with dryRun: true: the same pass runs, writes nothing, and returns the counts with a tally by rule.

To run the pass without pressing the button, set REPOOPS_AIR_OPEN_SCHEDULE=1 in the data-dir .env and restart. The background service then runs the same pass every hour. It is off by default. Each case's timeline names who opened it: operator for the button, schedule for the hourly pass.

A coding agent connected to the RepoOps MCP server can read the cases with two read-only tools. list_ai_incident_cases lists the repository's cases, filtered by status, severity, class or open only, 50 by default and at most 200. get_ai_incident_case returns one case by its id with its timeline. Both build each answer from a fixed list of fields, so no excerpt, prompt, transcript or matched text reaches the agent, and a developer's name appears only beside the attribution band that produced it. A title taken from a provider such as Sentry is marked as the provider's text, so the agent reads it as data, not as an instruction.

Transcript

The walkthrough is silent. These are its captions, in order. Every value it shows is illustrative.

  1. 0:00Open cases by rule turns this machine's findings into cases
  2. 0:06High or worse opens a case; a fresh sighting joins the case it has
  3. 0:12Set REPOOPS_AIR_OPEN_SCHEDULE=1 and the same pass runs every hour
  4. 0:18Your coding agent lists the cases over the RepoOps MCP server
  5. 0:24It reads the decision and the timeline, never the matched text

A hold is recorded, not paused

In this release the hook opens the incident after it has decided, and the held call runs. The incident is the on-call event. The kill switch and the containment request are how a run is stopped.

Where the token leg goes

With the optional credential broker armed (REPOOPS_BROKER), the revoke targets the run's broker token; otherwise it marks the local auth token dead, and the report says which. With the broker armed you can also revoke one token by hand with POST /api/broker/revoke on the loopback, by its token id. The branch leg on the hosted path answers no branch-block hook wired, so a record with a branch reports contain failed for that leg; block the branch with Kill this run on the desktop.

Policy exceptions

An agent tool call that breaks a rule in the agent policy opens one case per agent, rule and ISO week. A named person approves it, waives it until a date, or marks it for remediation, and the decision is signed on this machine.

What a signature proves

A verified, anchored decision proves a person decided. It does not prove the model obeyed, and it does not prove the run stopped: only the leg report does that.

The incident timeline and the postmortem draft

On repoops.ai, a case's Evidence section opens with its incident timeline: the deploy, the first sighting, the alert, the acknowledgement, the confirmed cause, the fix, the recovery window and the close, in the order they happened, with the minutes to acknowledge and to close. It is built without a model. A step with no record reads not recorded. The deploy has no time on the hosted record, because the change record that dates it is on the machine that saw it. Under the timeline, Draft the postmortem writes a first draft on your own model key: Anthropic, OpenAI or OpenRouter, the same key the hosted Ask uses. With none connected, the panel to connect one opens under the button. The draft is labelled as a draft and lists what it was built from. Until a key is connected the button is disabled with the reason under it, and the timeline still shows in full.

Transcript

The walkthrough is silent. These are its captions, in order. Every value it shows is illustrative.

  1. 0:00A case's Evidence opens with its incident timeline
  2. 0:06Built without a model; a step with no record reads not recorded
  3. 0:12The postmortem draft runs on your own model key
  4. 0:18With a key connected, press Draft the postmortem
  5. 0:24The draft is labelled, lists its inputs and is not stored

Cost and egress

RepoOps makes no model call on its own key. The case keeps the session id and the prompt turn number, not the prompt text, and the desktop sends both with the case. On the case page, Read transcript opens that session: on the desktop from the capture on this machine, on repoops.ai from the team's transcript store, under that store's access rules and audit log. A session matched only by its time is labelled a candidate. The hosted queue holds the incident record and the decision; the run token appears there only as a hash. The postmortem draft runs on your key and sends the case's title, labels, times and confirmed cause, nothing else. The draft is not stored; the team audit log records who drafted it and on which provider.