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.

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.

Fix one retry bug

CoordinatorPlan and implement
Investigator 1Inspect source
Investigator 2Inspect tests
Test runnerReproduce the bug

Each result becomes the next input

  1. 01Observe

    Read the goal and current state.

  2. 02Decide

    Choose the next action.

  3. 03Act

    Use a tool or delegate work.

  4. 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.

Follow the same work twice