Skip to main content

> tpl_air_047

Human Intervention and Kill-Switch Runbook

Emergency incident response runbook establishing immediate kill-switch mechanisms, graceful agent shutdown protocols, state rollbacks, queue draining, human takeover procedures, and forensic flight-recorder memory dumping during runaway or rogue autonomous agent events.

TEMPLATE // INSPECT: TPL-AIR-047MODIFIED: 2026-09-19
CATEGORYGenerative AI, RAG & Agents
VERSIONv1.0.0
RISK LEVELMEDIUM
ARTIFACT CLASSDOC
FORMATSDOCX, PDF, MD, MERMAID, SVG
AI & EXECUTIVE SUMMARY

Emergency response runbook establishing kill-switches, graceful shutdowns, rollbacks, human takeover, and memory forensics.

Important Tech Document Template & Operational Notice

TinyCTO.tv Tech Document Template Notice: This template is a general educational and operational starting point. It is not legal, tax, accounting, investment, procurement, regulatory, security or certification advice. Requirements vary by jurisdiction, organization, contract and risk. Review and adapt it with qualified professionals before relying on it.

Problem Solved

Organizations deploy autonomous agents without an out-of-band kill mechanism, leaving operators powerless when a runaway agent loops recursively, spams thousands of customers, or burns through cloud budgets.

When to Use

  • Executing an emergency stop or safe disconnection of autonomous production agents during critical incidents
  • Establishing manual human takeover protocols for compromised or malfunctioning agent workflows
  • Meeting regulatory requirements under EU AI Act Article 14 for human oversight and override capabilities

When NOT to Use

  • For general infrastructure server failover and disaster recovery plans (use TPL-OPS-009)
  • For routine scheduled maintenance window management (use TPL-SVC-006)

5 Template Sections & Structural Outline

1. 1. Kill-Switch Architecture and Multi-Tier Shutdown Levelsstandard, enterprise

Defining 3 progressive shutdown tiers: Tier 1 (Soft Pause - stop polling new tasks, finish in-flight work), Tier 2 (Hard Kill - immediate process termination via Redis kill flags/SIGTERM), Tier 3 (Nuclear Air-Gap - revoke all agent IAM credentials and database access).

Guidance:Out-of-band kill switches must work even if the agent is stuck in an infinite processing loop.
2. 2. Activation Authority, Triggers and Escalation Protocolsstandard, enterprise

Establishing explicit operational triggers: runaway token spend exceeding $1,000/hr, error rate > 20%, customer complaints, or suspected prompt injection. Designating authorized Incident Commanders.

Guidance:Empower any on-call engineer to pull the Tier-1 soft pause without seeking executive permission.
3. 3. In-Flight State Rollback and Compensation Workflowsstandard, enterprise

Leveraging Temporal or Saga orchestrators to execute compensating transactions for partially completed steps (e.g. canceling unauthorized vendor purchase orders or reversing erroneous database entries).

Guidance:Every mutating tool must possess a registered automated compensating rollback function.
4. 4. Human Takeover and Manual Queue Re-routingstandard, enterprise

Rerouting in-flight user conversations and pending task queues to human support agents or fallback deterministic scripts without dropping user context.

Guidance:Display a transparent system banner informing users that a human specialist has stepped in.
5. 5. Post-Incident Flight-Recorder Dumps and Postmortem Governancestandard, enterprise

Dumping the agent's complete memory state, short-term context cache, and execution telemetry to a secure forensic bucket before resetting containers. Conducting blameless postmortems.

Guidance:Never redeploy a terminated agent without addressing the root cause in the evaluation test harness.

Completion Instructions

1. Review blank document. 2. Adapt worked scenario to company scale. 3. Validate against review checklist.

Independent Review Checklist

  • All mandatory sections completed
  • No secrets or passwords included
  • Executive sponsor sign-off obtained
WORKED SCENARIO SHOWCASE

Human Intervention and Kill-Switch Runbook - Worked Case Study

Fictional Entity: Enterprise Autonomous DevOps Incident Remediation Agent (Executing Cloud Infrastructure Commands)

Real-world production case study demonstrating complete operational adoption for Enterprise Autonomous DevOps Incident Remediation Agent (Executing Cloud Infrastructure Commands).

Key Highlights & Outputs:
  • Activated Tier-2 Hard Kill in 18 seconds during a rogue agent recursion event, preventing $85,000 in unconstrained compute provisioning
  • Executed automated compensating rollback workflows across 14 partially mutated AWS security groups
  • Satisfied EU AI Act Article 14 human oversight compliance audits through documented out-of-band kill switches

Frequently Asked Questions

Why must an agent kill-switch operate strictly out-of-band?

If a kill-switch relies on sending an instruction through the agent's standard LLM prompt or conversational interface, a hijacked or infinite-looping agent will fail to process or obey the shutdown prompt. Out-of-band mechanisms (such as Redis flags or container termination) physically pull the plug at the infrastructure layer.

What is the critical difference between a Tier-1 Soft Pause and a Tier-2 Hard Kill?

A Soft Pause stops the agent from consuming new tasks while allowing currently executing read or write operations to finish gracefully, preventing database corruption. A Hard Kill immediately terminates all running threads via SIGTERM/SIGKILL, used when the agent is actively executing destructive mutations.

How are partially completed multi-step actions compensated after a hard kill?

The system queries the durable execution history (e.g. Temporal workflow state) to identify every completed action. For every forward action executed (e.g. "CreateUser"), the compensation engine invokes its inverse partner (e.g. "DeleteUser") in reverse order.

Download Tech Document Pack

Auth Required
Free instant downloads require a quick sign in or registration.
Complete Tech Document Pack (.zip)
12 Files

Download all blank templates, worked scenarios, and verification manifests in a single verified archive.

Individual Artifacts (.zip)
TPL-AIR-047-Human-Intervention-and-Kill-Switch-Runbook-Blank-EN.docxDOCX
all11.6 KB
TPL-AIR-047-Human-Intervention-and-Kill-Switch-Runbook-Example-EN.docxDOCX
all11.6 KB
TPL-AIR-047-Insan-Mudahalesi-ve-Acil-Durdurma-Kill-Switch-Isletim-Rehberi-Bos-TR.docxDOCX
all11.7 KB
TPL-AIR-047-Insan-Mudahalesi-ve-Acil-Durdurma-Kill-Switch-Isletim-Rehberi-Ornek-TR.docxDOCX
all11.7 KB
TPL-AIR-047-Human-Intervention-and-Kill-Switch-Runbook-Blank-EN.mdMD
all2.5 KB
TPL-AIR-047-Human-Intervention-and-Kill-Switch-Runbook-Example-EN.mdMD
all2.7 KB
TPL-AIR-047-Insan-Mudahalesi-ve-Acil-Durdurma-Kill-Switch-Isletim-Rehberi-Bos-TR.mdMD
all2.6 KB
TPL-AIR-047-Insan-Mudahalesi-ve-Acil-Durdurma-Kill-Switch-Isletim-Rehberi-Ornek-TR.mdMD
all2.7 KB
TPL-AIR-047-Human-Intervention-and-Kill-Switch-Runbook-Blank-EN.pdfPDF
all100.2 KB
TPL-AIR-047-Human-Intervention-and-Kill-Switch-Runbook-Example-EN.pdfPDF
all100.2 KB
TPL-AIR-047-Insan-Mudahalesi-ve-Acil-Durdurma-Kill-Switch-Isletim-Rehberi-Bos-TR.pdfPDF
all100.4 KB
TPL-AIR-047-Insan-Mudahalesi-ve-Acil-Durdurma-Kill-Switch-Isletim-Rehberi-Ornek-TR.pdfPDF
all101.3 KB
Verified SHA-256 · Zero Macros Verified Archive
Every download includes an authoritative MANIFEST.json