All field notes

Runtime governance

A Kill Switch Is a Protocol, Not a Button

For a governed autonomous organization, “stop” must mean a verifiable runtime state: no new work, bounded authority, known side effects and explicit unresolved exceptions.

MP
Max PerfiljevFounder & CEO, AES · Architect of Autonomous Organizations
Read in Russian

A stop button is necessary. It is not, by itself, a stopping mechanism. That distinction becomes operational once an organization lets agents do more than return text. An agent can start a workflow, delegate a subtask, place a message on a queue, call a vendor API, retain a credential lease, or cause a human-facing and financially meaningful action outside the runtime. By the time an operator presses “stop,” the original execution may have become a distributed tree of work with different owners, failure modes and termination semantics.

Governance frameworks establish the direction of travel. NIST’s AI Risk Management Framework calls for mechanisms and assigned responsibilities to supersede, disengage or deactivate AI systems when performance or outcomes conflict with intended use. Its post-deployment guidance also includes override, decommissioning, incident response and recovery. For AI systems within the applicable high-risk scope of the EU AI Act, Article 14 requires assigned humans to be able to intervene or interrupt the system through a stop button or similar procedure that brings it to a safe state.

Neither proposition supplies a universal technical definition of safe. It cannot. Safe for a document-classification workflow may mean no further files are routed. Safe for a payment workflow may mean every pending instruction has a known status, every active authority is bounded, and a human owns any uncertain external outcome. The engineering task is to make that definition explicit, executable and auditable for each class of work.

Stopping is a quiescence problem

The wrong mental model is a control that terminates a parent process. The right model is a runtime-wide quiescence protocol: a managed transition from active execution to a defined state in which the organization can account for work, authority and consequences. This is not a promise of instantaneous disappearance. Distributed systems do not offer that promise reliably. AWS documents that stopping a Step Functions execution does not guarantee that an integrated task is cancelled. Cancellation is best effort; it can fail when the execution role lacks permission or when a service is unavailable. A parent can therefore be stopped while work it initiated continues elsewhere.

Kubernetes makes the same boundary concrete. It distinguishes graceful termination from force deletion. Its warning on force-deleting a stateful workload is especially instructive: releasing an identity without confirming that the original instance has stopped can create two active instances with the same identity. In systems that rely on at-most-one semantics, the attempt to stop can itself create a new operational hazard.

An autonomous organization should consequently treat “stopped” as a claim that requires evidence, not as a status emitted by a user interface. The claim should be scoped: stopped for which organization, workflow, execution tree, authority domain and time interval? It should also be qualified: which work was prevented, which work finished safely, which effects were compensated, and which matters remain unresolved?

A seven-stage quiescence protocol

A practical governed runtime can organize stopping into seven stages. The exact implementation will vary, but the sequence establishes a useful contract between orchestration, identity, tools and human operations.

  1. Freeze admission of new work. Mark the relevant organization, workflow or incident scope as non-admitting. Schedulers, queues and delegation paths must reject new starts within that scope. This prevents a recovery process from competing with fresh autonomous work.
  2. Propagate a versioned cancellation epoch. Attach a monotonically advancing stop epoch to every descendant execution, message and callback that can carry it. Workers compare their known epoch before beginning the next meaningful unit of work. An older execution is no longer entitled to proceed merely because its original request was valid.
  3. Revoke or expire capability leases. Agents should act through bounded, renewable authority rather than durable ambient credentials. Revocation at an authorization server is important, but OAuth 2.0 token revocation acknowledges propagation delays at resource servers. Short-lived access tokens bound the remaining exposure window; they do not eliminate the need to observe it.
  4. Drain operations that can finish safely. Some in-flight actions should be allowed to reach a safe checkpoint rather than be torn down mid-write. The definition must be domain-specific and declared in advance. Graceful completion is a controlled choice, not a default excuse to keep executing.
  5. Compensate reversible side effects. A distributed business operation cannot generally be undone by restoring an earlier snapshot. Compensation is domain-specific, can fail and must account for concurrent changes. The runtime needs durable progress records so that recovery can resume and be audited.
  6. Quarantine irreversible or uncertain outcomes. A shipment handed to a carrier, an external legal notice, or an action whose final status cannot be confirmed should not be labelled rolled back. It belongs in an exception queue with a named human owner, supporting evidence and a defined remediation path.
  7. Issue a signed quiescence record. The runtime should attest to the scope and epoch of the stop, work prevented, work completed, authority revoked or expired, compensations attempted and completed, and unresolved exceptions. This is an architectural proposal, not a requirement imposed verbatim by the cited frameworks—but it is the evidence a governed operation needs.

Classify tools before they enter autonomous workflows

The protocol works only if tool calls have stop behavior designed before they are delegated to agents. Every operation should declare at least its admission conditions, cancellation boundary, safe drain point, compensation procedure, irreversible point of no return, and evidence required to establish its final state. Compensating-transaction guidance makes the ordering principle clear: identify irreversible steps explicitly and place them after critical validations have succeeded. For autonomous systems, this is not merely a workflow-design preference. It is an admission rule. A tool whose irreversible behavior, authority scope or outcome evidence is unknown should not be allowed into an unattended execution path.

This classification also prevents a damaging fiction: that cancellation equals rollback. A cancellation request may stop future work. It does not reverse an email already delivered, a contract already accepted, a physical process already initiated, or a decision already observed by a customer. Some effects can be compensated. Some can only be contained, disclosed or resolved by people. The runtime must preserve that difference rather than hiding it behind a green “cancelled” label.

Authorization and quiescence solve different moments

Commit-time authorization remains essential: it governs whether a proposed action may begin or commit at the point where authority matters. Quiescence solves a later and different problem. It governs containment after execution has already spread across agents, queues, tools and business systems. One cannot substitute for the other. Strong authorization does not recall work already launched under valid authority. A well-designed stop protocol does not make unsafe actions permissible. Together, they define two boundaries of a governed runtime: authority before consequential action, and accountable containment when the organization must stop.

The operating consequence

An autonomous organization should not measure its kill switch by whether it can change a dashboard state quickly. It should measure it by time to verified quiescence for defined scopes and risk classes. That metric includes the time to halt admissions, bound active authority, reach safe checkpoints, classify external effects, compensate what can be compensated, and assign every exception. This will produce uncomfortable but useful results. Some workflows will have a short, highly reliable stop path. Others will reveal long credential lifetimes, opaque vendor tasks, untracked delegation or irreversible actions placed too early in the sequence. Those are not reasons to weaken the definition of stop. They are design findings about where autonomy currently exceeds control.

A button can initiate an interruption. A protocol establishes what interruption means. For organizations that delegate real work to agents, only the second can support a credible statement that operations have reached a safe state.

BUILD WITH AES

Turn architecture into an operating company.

AES connects strategy, tasks, organizational memory, knowledge, agents, people and approvals in one execution environment.