Resume a failed task
Rebuild a crashed or failed turn from its chunk log and continue it on the same stream, rather than starting the task over.
Refuses rather than guesses. A turn the user cancelled deliberately, a
BYOK run whose credentials only ever arrived on the original request, and a
turn whose chunk log has expired are all declined with a reason. A turn that
was cancelled on purpose requires confirm: true, so resuming one is never
the result of a mistaken click.
Ownership is checked against the caller, not inferred from the task id.
Authorizations
JWT authentication token
Path Parameters
Task ID
Body
Required to resume a turn that was cancelled deliberately. Without it a user_abort is refused, so a resume can never silently undo a cancellation.
Response
Resume accepted; the turn continues on the same stream
Present on every refusal, and always says which gate declined.
Why the turn originally ended, when the row recorded one.
Chunks replayed out of the trusted prefix.
Integrity verdict for the rebuilt history.
The stream the turn continues on — the same one it crashed on.

