Shutdown and approval protocols
How do you gracefully stop a teammate that is in the middle of work? You cannot just kill the thread because it might leave files in a broken state. The next phase adds two FSM protocols: shutdown (lead requests, teammate responds) and plan approval (teammate proposes, lead approves/rejects). Both use the same request_id correlation pattern.
Matching exercise: Protocol Components
Loading practice…
Terminal
bash
# Run the team protocols agent
make 10-team-protocols
# Try: "Spawn a teammate, give it a task, then request shutdown"
# Watch the request_id correlation and FSM state transitions.See shutdown and approval protocols in action. Watch how request_id correlation ensures reliable multi-agent communication.