code to recover automatically. next_action is the one-line summary you can present to the user; details carries machine-readable context.
Auth + scoping
Not found
Validation
Execution
Internal
Recovery loop (the canonical pattern)
The orisu-workflows skill ships an “Error recovery playbook” section that the assistant follows automatically. Roughly:- Read
error.code(anddetails.step_idfor run-step failures) - Branch on the code per the table above
- Try the suggested recovery once
- If recovery itself fails, surface the error to the user with the original
next_actionhint
See also
Authentication
Scopes that drive
SCOPE_MISSING.Tools
Which tools produce which errors.