← Back to Patterns

agent-binding-failure

Parent handles agent failure gracefully

composition error-handling

Source


# Agent Binding - Failure Handling

## 1. Delegate to Agent
- PASS: COMPLETE
- FAIL: GOTO Cleanup

Please delegate this task to an agent. We expect it to fail to test recovery.

- child-task.runbook.md

## Cleanup
- PASS: COMPLETE
- FAIL: STOP

Handle failure gracefully.

Try It

Agent fails, parent handles via GOTO

Initializing...

Initializing...

Step/
ExpectedCOMPLETE
Env idle