Codex Pipeline — Session, Task, Turn, Step

Explicit ownership keeps repeated model and tool observations inside one active task

01 / Session Ownership 02 / Task Ownership 03 / Turn Ownership 04 / Step Ownership 05 / Shared Protected Host 06 / Durable Result Own objective Run turn steps Observe + settle Accepted Input member objective Session state + cancellation Task accepted objective Turn repeat until settled Immutable Step model sample or tool batch Protected Effect route + authorize + budget Turn Observation result joins owner turn Settle Task one terminal result durable start step sample or tools Legend User UI Agent logic Policy Tool action Context / trace

Codex Control

  • • Session owns task-wide cancellation
  • • Task owns one objective
  • • Turn repeats model and tool steps until settled

Best-Fit Tasks

  • • Code and artifact work
  • • Repeated inspect, edit, tool, and synthesis steps
  • • Corrections that should join the active turn

Shared Protection

  • • Each step uses one immutable host snapshot
  • • Python owns tools, journal, and terminal settlement