An expired or cancelled outward interrupt ends the run it was holding open
An outward interrupt is the only thing that can resume the run that raised it. Once it expires or someone cancels it, the resume key is gone, and without this rule the run would sit paused forever: never terminal, never announced, invisible to everything that reports on finished runs.
The rule
- An outward interrupt holds open the run that raised it until it is settled (INT-24).
- When it expires (INT-23), or a caller cancels it (INT-24), while that run is not in a terminal status, the run MUST be ended, claimed as every ending claims it (INT-11): its unfinished jobs MUST take their final status (PIPE-10), the run MUST be marked cancelled, and the outcome MUST be announced like any other terminal outcome (ORC-15).
- A run that is not paused at that moment MUST be ended at its next job boundary, never mid-job (INT-5).
- The run's other pending outward interrupts are then settled as every terminal outcome settles them (INT-24), and MUST NOT announce the run again.
- The run's
terminalReason(PIPE-1) MUST carry the codeINTERRUPT_EXPIREDorINTERRUPT_CANCELLED, with the identifier of the interrupt that ended the run as the detailinterrupt_id. - Only these two settlements end a run here.
- An interrupt its own node withdraws, because the outbound call failed before the pause (INT-20) or because its arguments drifted (RT-GATE-3), MUST NOT end the run; the node's own rule decides what follows.
- An answer never ends a run here, a declined confirmation gate (RT-GATE-4) and a refusal a remote posts to the callback route (INT-19) included.
- The expiry or cancelling of an inward signal MUST NOT end a run: it acts on a run it does not own, and a lapsed or withdrawn cancel or pause request is a request that went unanswered, not a run that ended.
- Where another path has claimed the run's ending first (INT-11), a run cancel among them, the expiry or cancel MUST leave the run, its outcome and its
terminalReasonuntouched and MUST NOT announce anything about the run; the interrupt itself is still settled (INT-24). - A failure while ending one run is recorded and never raised, so a sweep is not aborted mid-backlog.
- An interrupt with no expiry (INT-23) is never swept, so an open-ended question to a human waits until it is answered or cancelled.
- A confirmation gate interrupt always carries an expiry (RT-GATE-1), so an abandoned gated run ends here instead of holding an inbox entry forever.
What it means
A run waiting on an outward interrupt can only move again when that interrupt is answered. Take the interrupt away, by expiry or by someone cancelling it, and nothing can ever resume the run. Leaving it paused would hide it from everything that watches for finished runs, so the run ends, cancelled, and says so once.
The two endings are told apart by the run's terminalReason (PIPE-1),
INTERRUPT_EXPIRED or INTERRUPT_CANCELLED with the interrupt that ended the
run, so an operator looking at a
cancelled run can see whether a question went unanswered or somebody gave up on
it.
The run is never cut mid-job. Usually it is already paused, and it ends at once. If it is still busy, perhaps because the node is still sending the outbound call the interrupt was created for, or another branch is still working, the job in flight finishes and the run ends at the next boundary.
If something else ends the run first, a run cancel for instance, the expiry or cancel loses the claim on the run (INT-11): the interrupt is still settled, but the run keeps the outcome and the reason the winner gave it, and nothing is announced twice.
What does not end a run matters as much. An answer never does, even an answer that says "no": a declined confirmation gate goes out the node's error port, and a remote's refusal is handed to the workflow as the value it sent. A node withdrawing its own question is not a cancel either. If the outbound call fails before the pause, the node fails as INT-20 says, and the run's error handling decides the rest.
Example
A run paused on a form prompt, and an operator who dismisses the prompt.
{
"status": "cancelled",
"terminalReason": {
"code": "INTERRUPT_CANCELLED",
"details": { "interrupt_id": "…" }
}
}The same terminalReason is on both run reads and in the run's single
completion announcement.