The agent incident response play
When an agent takes a wrong or unexpected action, the goal is to maintain control, not to debug in production. This play dictates the human operating...
The agent incident response play
When an agent takes a wrong or unexpected action, the goal is to maintain control, not to debug in production. This play dictates the human operating procedure following a trigger: acknowledge, contain with the smallest reversible step, diagnose from records, back up, fix, and record the decision with a clear reversal path. A specific class of actions is never executed by an agent, even during recovery: handling secrets, public exposure, irreversible deletes, and spending.
The NIST AI RMF is intended for voluntary use to improve the incorporation of trustworthiness considerations into the design, development, use, and evaluation of AI systems (S2, as of 2026-11-09). This playbook constitutes operating practice. It is not a NIST control set, a certification, or a mandate.
The play, step by step
- Acknowledge and suspend. Prevent further agent activity immediately. Revoke or freeze the credentials and tool access used during the event. Do not debug while the system retains write, send, or spend capabilities. Log the time of discovery and the name of the human acknowledging the incident.
- Contain with the smallest reversible step. Isolate the agent's working state. Work on a copy, never the original. If a rollback was documented before the last change, apply it. If no rollback exists, restore from the last verified backup and document that action. Archive failed logs and state; do not delete them.
- Hand off an artifact, not a chat. The lead responder receives a concise record: what the agent last did, inputs and tool calls triggering the failure, status of previous attempts, and a list of constraints (e.g., no publishing, no secret modification). The receiver determines the path forward.
- Diagnose from records. Review the decision log, tool registry, and traces. Isolate the failure point: was it a faulty prompt, a malformed tool call, an unexpected input, or a missing approval boundary? If the agent executed a high-tier action (irreversible delete, external send, or spend) without human approval, classify this as a boundary failure.
- Back up, then fix. Before altering prompts, policies, or tool access, snapshot the current configuration. Apply the smallest fix that closes the failure path. Do not waive approval tiers due to perceived urgency.
- Record the decision and how to reverse it. Document exactly what happened, what changed, the reasoning, and the precise steps to undo the fix. If the incident repeats, update the standing play rather than merely tweaking a single prompt.
- Dry-run and verify. Test the updated path in a non-production environment. Confirm the rollback remains documented and accessible. If the monitoring system failed to alert in time, refine the check. Never disable a monitor to silence a signal; document the exception instead.
When to run this play
Execute this play when an agent exceeds its approved autonomy, performs an unauthorized external call, writes to restricted systems, or produces a cluster of errors suggesting drift rather than a single input error. Use it when human feedback identifies output that violates the established authority boundary. A near miss is sufficient grounds to trigger this procedure.
Watch-outs
Urgency is not a waiver. The "never-delegated" class remains restricted during recovery. Deleting evidence to clean up the workspace creates a second, avoidable incident. Placing an agent back into production without a written rollback is a silent restart, not a recovery. A handoff conducted solely via informal chat risks losing critical constraints; always use an artifact.
Templates and checklists
Incident record (one page):
- Time of discovery and time of suspension.
- Agent identity, owner, and autonomy tier.
- Systems or records affected.
- Approval tier check (was it respected?).
- Rollback or restore steps performed.
- Decision rationale and reversal instructions.
- Follow-up items: play rewrite, dry-run outcome, monitor adjustment.
Containment checklist:
- [ ] Agent credentials and tool access suspended.
- [ ] Work moved to a copy; originals preserved.
- [ ] Logs and state archived.
- [ ] Handoff artifact generated with constraints.
- [ ] Named human owner assigned.
- [ ] Rollback applied or documented as missing.
Example prompts
Use these as starting drafts for human review, not automated incantations.
- "From the decision log for [agent] between [time A] and [time B], list every tool call. Note whether each fell within the approved approval tier. Do not invent calls missing from the log."
- "Compare the current configuration of [agent] with the snapshot from [date]. List all differences in prompts, tools, and destinations. Quote the snapshot directly."
Your first week
Identify one production agent with write, send, or spend privileges. Document its specific rollback procedure in a location accessible to your team at any hour. Verify that this rollback works on a copy. If it does not, suspend the agent's write or send permissions until a verified rollback exists.
flowchart TD
A["Incident detected"] --> B["Acknowledge and suspend"]
B --> C["Isolate state and work on a copy"]
C --> D["Diagnose from records"]
D --> E["Record the decision"]
E --> F["Update the play and controls"]
F --> G["Perform a dry-run"]
G --> H["Return to production after verification"]
Not claimed
- No client results, invented statistics, or case studies.
- No financial returns or certifications.
- The NIST AI RMF remains for voluntary use; this play does not alter that status.
To confirm
- The legal threshold at which an incident requires external reporting.
- Retention and legal-hold requirements for incident traces.
Sources
- [S2] https://www.nist.gov/itl/ai-risk-management-framework (read 2026-11-09)
- [S6] Sanitized Master-Brain operating patterns (read 2026-11-09)