Orchestration
Managed agent API adoption
OpenAI's Agents API entered public beta on September 10, 2026 as a managed Codex harness for durable cloud agents. It manages agent sessions, orchestration, context compaction, and recovery while the application still chooses tools and an execution environment. Adopt that split deliberately: the API can run the agent, but your application still owns user authorization, business state, side-effect receipts, retention decisions, and release gates.
Principles
- Treat the managed harness as an execution dependency, not as the system of record for business workflow or authorization.
- Choose hosted, self-hosted, partner, or no environment from data boundaries, required capabilities, isolation, latency, and operational ownership.
- Record session, environment, artifact, and external side-effect identifiers in application state so retries and audits do not depend on a transcript.
- Confirm retention and residency requirements before adoption; a self-hosted sandbox does not make the current Agents API eligible for Zero Data Retention.
Steps
- Map the workload's files, tools, secrets, network paths, side effects, latency target, and retention obligations before choosing an environment.
- Define a versioned session contract with instructions, model, tool allowlist, environment, concurrency limit, budgets, and terminal outcomes.
- Keep end-user authorization, approvals, idempotency records, and business workflow transitions in the application control plane.
- Consume session events into durable application records, correlate artifacts and tool effects, and make resumed work conditional on the latest accepted state.
- Run outcome, recovery, isolation, retention, and cost evaluations before a canary; roll back to the prior execution path on a material regression.
Avoid
- Assuming API-managed recovery proves an external write did or did not happen.
- Selecting a self-hosted sandbox while ignoring that session state still passes through the managed API.
- Enabling subagents without a workload-specific concurrency budget or shared-filesystem conflict plan.
- Treating public beta behavior, limits, or data controls as a permanent production contract.
- Giving the agent broad tools or vault access because the runtime itself is managed.