What to do
- Implementing a stop control that halts work in progress and refuses new runs. For example, a flag in shared state that the agent checks before each model call and tool call, covering every running instance, worker and scheduled or event trigger, not only the current user session.
Evidence
Config: Agent kill switchCode or configuration showing a stop flag read from shared state (database, cache or feature-flag service) at the start of each run and before each tool call, and the path that sets it. May include the check in the agent loop, the admin endpoint or runbook command that engages it, or a test showing an engaged switch stops a run in progress. A flag held in process memory does not demonstrate this activity.
- Keeping the kill switch beyond the agent's reach. For example, the identity the agent runs as cannot change the stop flag or its store, no tool exposes the switch, and the switch still works when the agent process does not respond.
Evidence
Config: Kill switch isolationPermission policy or code showing the agent's identity has no write access to the stop flag or its store, and that no tool, skill or MCP server exposes it. May include an IAM policy or database grant, or a stop path that acts at the platform level, such as scaling the service to zero or disabling the trigger.
- Cutting off the agent's ability to act once stopped. For example, suspending the agent's credentials and pausing its scheduled and event triggers, so queued work and retries cannot restart it.
Evidence
Config: Stop cascadeCode, runbook automation or platform configuration showing that engaging the switch also revokes or suspends the agent's credentials and disables its schedules, queues or webhooks.
- Recording each stop and restart. For example, logging who engaged the switch, when, which runs it halted and the state kept for review before the agent resumes.
Evidence
Logs: Kill switch eventsLog entries or audit records for stop and restart events with the operator's identity, timestamps, the runs halted and a reference to the preserved run state.
