Skip to content

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

Normative: this is the rule
  1. 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.
  2. The human route requires a session-bound request token that a machine cannot obtain.
  3. The callback route MUST NOT require that token.
  4. 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.
  5. Authorisation of the callback route MUST be a dedicated authority to resolve interrupts by callback.
  6. That authority MUST NOT be satisfied by the authority to resolve interrupts as a human.
  7. It MUST NOT grant the authority to resolve interrupts as a human.
  8. 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.
  9. It MUST refuse any other interrupt with 409 and the code INTERRUPT_TYPE_NOT_CALLBACK.
  10. 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.
  11. The caller MUST be authorised before the interrupt is looked up.
  12. An identified caller without the authority to resolve interrupts by callback MUST be refused with 403 and the code ACCESS_DENIED.
  13. An unknown identifier MUST be answered 404 with the code NOT_FOUND.
  14. An interrupt that is not pending, or has expired, MUST be answered 409 with the code INTERRUPT_NOT_PENDING (INT-24), so a replayed callback never resolves twice.
  15. A request omitting value MUST be refused 422 with the code INVALID_REQUEST_BODY before 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

A machine caller answering the call it was invited to answer200 — resolved
POST /api/flowdrop/interrupts/{interrupt_id}/callback

{"value": {"ok": true}}
A malformed request against an identifier that does not exist422 — INVALID_REQUEST_BODY
POST /api/flowdrop/interrupts/{interrupt_id}/callback

{}
The same body, against a human-facing prompt409 — INTERRUPT_TYPE_NOT_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.

Why

Recorded under OPEN-25, OPEN-46, OPEN-49, OPEN-65.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · INT-19 · changed in spec 1.1