I Design AI Automation Around Intentional Interrupts
I do not want an AI system that runs until a human becomes worried enough to stop it. I want the interruption designed before execution begins.
Automation is usually presented as a line: receive a goal, perform the work, return a result. Human intervention appears as an exception to that line—a red button, an approval dialog, a timeout. That model is too weak for long-running agents. If a person can enter the process only after the agent has lost the plot, intervention is incident response, not control.
I prefer a different artifact: an intentional interrupt. It is a named state transition where the system already knows why it may pause, what evidence must be shown, who may decide, and how execution can continue without reconstructing the past from chat.
A pause is not yet an interface
A generic WAITING_FOR_HUMAN state tells me almost nothing. What is the human deciding? Which side effects have already happened? How old is the evidence? What changes if the answer arrives tomorrow? Can the same approval be replayed twice?
The interrupt needs a record:
{
"interrupt": "approve_dependency_upgrade",
"run_id": "run-1842",
"reason": "lockfile changes a security-sensitive package",
"state_version": 17,
"completed_effects": ["tests:unit", "scan:license"],
"proposed_effect": "write:lockfile",
"evidence": ["diff.patch", "test-report.json", "advisory.json"],
"decision_scope": ["approve", "reject", "revise"],
"expires_at": "2026-07-24T14:30:00Z",
"resume_from": "dependency-review"
}
This is not a prettier approval prompt. It is a boundary between two execution epochs. Before the boundary, the runtime records what actually happened. At the boundary, the person receives a finite decision—not a transcript. After the boundary, the runtime verifies that the state is still compatible with the decision.
That last check matters. Approval is not timeless. A review based on state version 17 should not authorize an action against version 23 merely because both runs share a conversation ID. If the repository, policy, credentials, or proposed effect changed, the old decision has expired in substance even when its timestamp has not.
Interruption should reduce, not export, uncertainty
Many “human-in-the-loop” designs simply hand the operator the agent's uncertainty. The system produces a long explanation and asks, “Proceed?” The human then has to discover the real decision surface under time pressure.
I consider that failed automation. The machine has moved text, not responsibility.
An intentional interrupt should do three things before asking for attention:
- Compress the decision. Name the exact effect awaiting authority.
- Preserve the proof. Bind the relevant diff, tests, policy result, and state version to the interrupt.
- Define the next states. Approval, rejection, revision, and expiry must lead somewhere explicit.
The person may still need judgment. That is the point. But the system should have already removed clerical uncertainty and preserved the engineering context required for that judgment.
This connects directly to why I classify agent actions by reversibility. Reversible actions can cross fewer interrupts. Irreversible or externally visible actions deserve stronger evidence and narrower decision scope. The interrupt policy follows the consequence of the effect, not the confidence of the model.
Resume is a new execution, not a continuation of prose
Long pauses make chat history a dangerous source of truth. During the wait, files change, credentials rotate, services deploy, and assumptions expire. Resuming by appending “approved” to the transcript invites the model to treat old narrative as current state.
Durable agent systems increasingly use explicit persisted state and event-driven wake-up instead. Google's ADK example for long-running agents separates workflow state from raw conversation history and applies a state transition before the next inference. Temporal makes the broader durable-execution argument: workflows need recoverable state across failures and human waits.
I take one additional step: resumption must validate the interrupt's premise set.
resume(interrupt, decision, current_state):
verify decision.authority
verify decision.idempotency_key
compare interrupt.state_version with current_state
revalidate expiring evidence
invalidate changed premises
emit next executable state
This is where an intentional interrupt differs from an approval checkbox. The checkbox stores consent. The interrupt stores the transition contract.
If a premise changed, the correct result may be REVIEW_AGAIN, not APPROVED. That does not make the workflow less autonomous. It makes authority precise. My recent note on premise invalidation for parallel agents applies here too: work should be repaired according to the assumptions that changed, not restarted or trusted globally.
The manual seam is part of the architecture
I used to see a manual step as unfinished automation. I no longer think that is a useful default.
Some seams are temporary because tooling is incomplete. Others are permanent because the decision contains accountability, taste, business intent, or irreversible consequence that should not be inferred. Hiding those seams inside a free-form chat does not eliminate them. It only makes them unauditable.
A well-designed manual seam has a small vocabulary, durable state, bounded authority, and a tested resume path. It can be inspected like an API. It can fail closed. It can be removed later without redesigning the whole workflow.
This also changes testing. I do not only test whether the agent reaches COMPLETED. I test whether it stops at the right boundary, presents the right evidence, rejects stale decisions, survives duplicate callbacks, and resumes exactly once. The negative path is part of the product.
FACET and IOSM keep pulling me toward the same conclusion from different directions. FACET treats tests as executable contracts; IOSM asks us to declare stop conditions before iteration. An intentional interrupt sits between them: a runtime stop whose evidence and next move are specified before the model improvises.
Control should be calm
The best control surface is not dramatic. It does not require someone to watch a terminal scroll or understand the agent's entire internal narrative. It waits with a durable record, asks a finite question, and refuses to resume under stale authority.
That is the kind of automation I trust: not a system that never needs me, but one that knows exactly when it does—and preserves enough truth that my decision can be small, informed, and safe.