Agent orchestration walkthrough
One bug. Two execution models.
A coordinator delegates two investigations of a retry bug. The walkthrough compares process-owned orchestration with Temporal Event History.
Design choice
Make the agent protocol explicit
Codex supplies planning and investigation. Application code owns dispatch, joins, and recovery. This boundary works for local or remote agents and makes the failure mode visible.
The job
Fix one retry bug
The agentic loop
Each result becomes the next input
- 01Observe
Read the goal and current state.
- 02Decide
Choose the next action.
- 03Act
Use a tool or delegate work.
- 04Evaluate
Read the result and repeat.
The coordinator returns a plan. The application starts two Codex threads, waits for their reports, then resumes the coordinator.
The walkthrough