Skip to main content
string
required
Result: { "action_id": "…", "state": "<state>", "status_seq": n }, the action’s state immediately after the request was applied (AWP-LIF-005):
  • Pre-execution (pending_approval, queued, accepted) → cancelled directly, reason cancelled_by_agent; the action had no side effects.
  • executing → cancelling; the terminal cancelled status follows as a notification once the safe abort completes, carrying aborted_at_progress.
  • Already terminal → the existing terminal state (idempotent; no new transition).
awp:action-cancel-result
Errors: 3008 (AWP_ACTION_UNKNOWN). The type MAY bound the abort with max_abort_ms (AWP-LIF-010). If an e-stop or safe-state entry coincides with the cancel (AWP-LIF-008), that outcome wins: a pre-execution action ends cancelled with reason e_stop or safe_state; an executing or cancelling action ends failed with reason e_stop or connection_lost. A safe abort that cannot complete within max_abort_ms ends failed, reason abort_failed.