A machine answers an outbound wait through its own route
A remote system cannot use the route a human uses; it has no session and so cannot present the token that route requires. It gets a route built for its threat model, and an authority that buys it nothing else.
The rule
- An implementation MUST accept a machine caller's resolution of an outbound wait, posted as
{"value": …}(the same key the human resolution route takes) to a dedicated callback route addressed by the interrupt's unguessable identifier. - The human route requires a session-bound request token that a machine cannot obtain.
- The callback route MUST NOT require that token.
- It MUST admit only authentication schemes a cookie-authenticated browser cannot present, so there is no session to ride and nothing for such a token to protect.
- Authorisation of the callback route MUST be a dedicated authority to resolve interrupts by callback.
- That authority MUST NOT be satisfied by the authority to resolve interrupts as a human.
- It MUST NOT grant the authority to resolve interrupts as a human.
- The callback route MUST NOT resolve any interrupt other than an external-call interrupt (the one shape a remote system was invited to answer), because the route is scoped by interrupt type, not by direction.
- It MUST refuse any other interrupt with
409and the codeINTERRUPT_TYPE_NOT_CALLBACK. - Every human prompt shape is stamped outward exactly as an external call is, so a direction-only guard would hand the callback credential a person's approval prompt and resume the run as though someone had answered; a direction check is kept behind the type check as defence in depth.
- The caller MUST be authorised before the interrupt is looked up.
- An identified caller without the authority to resolve interrupts by callback MUST be refused with
403and the codeACCESS_DENIED. - An unknown identifier MUST be answered
404with the codeNOT_FOUND. - An interrupt that is not pending, or has expired, MUST be answered
409with the codeINTERRUPT_NOT_PENDING(INT-24), so a replayed callback never resolves twice. - A request omitting
valueMUST be refused422with the codeINVALID_REQUEST_BODYbefore the interrupt is looked up, so a malformed request reveals nothing about which identifiers exist.
What it means
A remote system has no session to ride, so the human route's request token is not something it can ever present; it gets a callback route built for what it actually is, addressed by the interrupt's own unguessable identifier instead of a session. Reaching that route does not make a caller a human: resolving by callback is a distinct authority that grants nothing else, in particular not the authority to answer as a person would.
The bite is in the guard order, not just its existence. The route is scoped
by interrupt type first — only the one shape a remote system was invited
to answer is resolvable here — and the direction check sits behind it. Every
human prompt is stamped outward exactly as an external call is, so checking
direction alone would let the callback credential answer a person's approval
prompt. And the missing-value check runs before the interrupt is even
looked up: a malformed request gets refused without learning whether the
identifier it named exists at all.
Example
POST /api/flowdrop/interrupts/{interrupt_id}/callback
{"value": {"ok": true}}POST /api/flowdrop/interrupts/{interrupt_id}/callback
{}POST /api/flowdrop/interrupts/{interrupt_id}/callback
{"value": true}The second request is refused for what it is missing, before anything is
looked up; only a well-formed request against an unknown identifier reaches
404.
The path is an example of the route API-9 names interrupt_callback.