Kill Switch

Emergency agent shutdown at priority 999. Kill one agent or your entire fleet in a single call.

Emergency agent shutdown at priority 999 — the highest priority in the policy engine. When activated, it overrides every other policy rule. Kill one agent or your entire fleet in a single call.

How It Works

The kill switch injects a blocking policy rule at priority 999 into the governance instance. Since the policy engine evaluates rules in priority order (highest wins), this rule overrides everything else — including allow rules, approval rules, and custom policies.

When an agent is killed, its storage status is also updated to quarantined and a critical severity audit event is logged.

Setup

ts

Kill a Single Agent

ts

Kill All Agents

The fleet-wide kill switch blocks every enforce() call for every agent, regardless of agent ID.

ts

Warning: Fleet kill is the nuclear option. Every agent in the process is immediately halted. Use it only for genuine emergencies.

Revive Agents

After investigation, revive agents to restore normal operation. Reviving removes the kill switch rule and restores the agent status.

ts

Inspect Kill State

ts

Use Cases

Runaway Agent

An agent enters a loop making hundreds of API calls per minute. Kill it instantly while you investigate the root cause.

ts

Security Incident

You detect a prompt injection attack or data exfiltration attempt. Kill the compromised agent and optionally the entire fleet.

ts

Compliance Emergency

An auditor discovers a policy violation. Halt all agents while you remediate and re-certify.

ts

Deployment Rollback

A new agent version is behaving unexpectedly in production. Kill it while you roll back.

ts

Cost Control

An agent is burning through your LLM token budget. Kill it before costs escalate further.

ts

Limitations

Warning: Process-local: The kill switch operates within a single process. If you run agents across multiple servers or containers, a kill in one process does not propagate to others. Use the Governance Cloud API for distributed kill switch across a fleet.

Warning: Storage sync is best-effort: If the agent doesn't exist in storage (e.g., never registered), the policy rule is still injected and blocks enforcement. The storageSynced field in the kill record indicates whether storage was updated.

Note: For production deployments spanning multiple processes, connect to Governance Cloud for a distributed kill switch backed by Redis pub/sub.