A performance alert fires on a service that millions of people use. Someone has to work out which metric moved, when, for which requests, and what changed. OpenAI says it now hands that work to Codex agents. On 19 November 2026 it published an engineering post describing the system, the Performance Factory, and the first workflow that runs on it.[1] This article reads that post as a design for an agent workflow rather than as a product announcement, and separates what OpenAI states from what it leaves out.
What OpenAI describes
According to the post, the Regression Workflow opens a task when one of its configured performance alerts fires. An agent investigates, records its findings in the task and proposes a fix for an engineer to review. After deployment, another agent picks up the same task and checks whether performance has returned to baseline.[1] OpenAI's headline numbers: in just over three months the workflow tracked more than 1,700 investigations and root-caused over 600 cases, which it describes as 17 automated investigations every day.[1]
Note what the two figures are. "Tracked" and "root caused" are the post's categories; it does not say how the remaining investigations ended, or how a root cause was judged to be correct across all 600. The only accuracy figure is a separate manual review, covered below.
The four parts
The post lists four components.[1]
- A task service with configurable workflows. Engineers define a workflow with a configuration file and Markdown prompts. The configuration lists the states a task can move through, the allowed transitions and which steps need an engineer. The post's example is a directory with a
config.tomland awork/folder holdingimplementing.mdandreviewing.md. All workflows are visible in a UI. - A dispatch loop. It periodically checks which tasks are ready for the next step and starts a Codex turn with the instructions for the task's current state. The agent records progress on the task and moves it on if the step is complete.
- Codex in the cloud. An internal API runs a Codex turn on an environment inside OpenAI's network, with access to code repositories and observability tools: metrics, logs, traces, CPU profiles and memory snapshots. The agent runs under a service identity, so permissions can be scoped and its actions attributed.
- Subscriptions. A waiting task can subscribe to events such as review comments or failed CI checks on a GitHub pull request. When a matching event arrives, the task becomes ready again and the dispatch loop can assign an agent.
The useful idea is that state lives in the task, not in an agent's context. The post says the task records its status and key findings outside of any one agent's context, so other agents or engineers can pick up the work and it can resume after a code review or a deployment.[1] That is the same problem our piece on agent memory describes from the single-agent side: durable notes beat a long transcript.
How the root-cause step works
The investigation uses a shared skill called perf-forensics. The post says it tells Codex which tools are available, when to use them and how to work through a slowdown from several angles: when it began, which requests were affected, and whether deployments or configuration changes could explain it.[1] A skill in this sense is a folder with instructions that an agent loads when relevant; the open Agent Skills specification describes the format as a SKILL.md file with a required name and description, with fuller instructions loaded only when the skill is activated.[4] OpenAI does not say whether perf-forensics uses that format, only that it is a shared skill.
The post gives some of the reasoning the agent is asked to do. An alert fires when a metric crosses a threshold, but the regression may have started hours earlier, so the agent looks back for the first change. It then compares groups of requests to separate "similar requests got slower" from "we served more requests that were already slow", which point to different causes. Only then does it examine deployments and feature-flag changes, read the relevant code and use logs or traces to test whether the code could explain the change.[1]
The tools it reads from
Among the evidence is a CPU flame graph, which OpenAI says is included in the task summaries.[1] If you have not read one: Brendan Gregg, who created the format, describes the x-axis as the stack profile population sorted alphabetically, "not the passage of time", the y-axis as stack depth, and width as how often a frame was present in sampled stacks.[3] Two practical consequences follow. A flame graph shows where a profiled resource was spent, not when. And a regression that is about timing, such as a change that began at 14:00, needs the time-series metrics the post lists alongside it.
The adversarial reviewer
OpenAI writes that early on, "agents sometimes stopped at the first plausible explanation", and some of those diagnoses were wrong.[1] Its fix is a separate Codex session that tries to disprove the diagnosis, rechecking assumptions and testing counterfactuals: if a rollout caused the slowdown, did similar requests that were not exposed stay healthy, and if the suspected change was rolled back, did the metric recover?[1]
The one worked example is specific. An agent traced failing ChatGPT conversations to errors in image downloads and marked the cause as found. The reviewer noticed that the internal service that locates files had already recovered while image requests were still failing, so the diagnosis did not explain the continuing failures, and it reopened the investigation.[1]
This is the evaluator-optimizer shape that Anthropic described in 2024: "one LLM call generates a response while another provides evaluation and feedback in a loop".[2] The Performance Factory adds two things around it: the loop is attached to durable task states, and the evaluator is told to attack the claim rather than to score it. Whether the same model family on both sides shares blind spots is a fair question the post does not address.
What the 70% means
The post says that in a manual review of 100 root-cause suggestions, 70% were graded accurate, and 30% needed further refinement or did not fully establish causality.[1] Three limits on how to read it, which are our interpretation rather than OpenAI's statements:
- It is a review of 100 suggestions, so the statistical uncertainty is wide. With 100 items, a 70% result is consistent with a true rate several points either side.
- The post places it in the context of "breaking larger jobs into focused Codex turns", but does not say whether the 100 suggestions came before or after the adversarial reviewer was added, or whether the figure has changed since.[1]
- "Graded accurate" is a human judgement about causality. It is not the same as a fix that worked.
Fixing is harder than finding
OpenAI is plain about this: "Getting fixes right has been harder than finding the cause."[1] It reports agent-proposed changes that were more complicated than necessary or introduced new issues, so each proposed fix also gets adversarial review. Some fixes need architectural judgement, and its example is that a cache might improve performance but introduce stale data. Engineers review the pull request and decide whether to merge, and comments on the PR wake an agent to address them.[1]
After a fix is deployed, the workflow wakes an agent to verify recovery. Full recovery resolves the task; partial recovery resolves the original regression and opens a new task for the remainder, which may have a different cause; no improvement sends it back to investigation.[1] That last loop is the most transferable piece for anyone building a similar system: the workflow does not trust its own fix, it measures.
How OpenAI tests the agents
The post describes two separate evaluations.[1]
Investigations are backtested on past production incidents. Each case starts with a fresh Codex investigator and the original signal, stripped of details that could give away the answer. The agent can inspect code and query production telemetry within set limits, cannot use saved memories, read the incident writeup or see earlier runs, and its transcript is inspected afterwards for information that might have spoiled the test. The score covers when the problem began, how large it was and which requests were affected, and separately how the agent ranks causes and states what remains uncertain. OpenAI also notes that historical tests need care because metrics and traces expire and post-recovery evidence can reveal the cause.
Handoff summaries are graded separately, using snapshots of saved tasks, by a grader that checks whether an engineer unfamiliar with the system can understand what happened, whether useful charts were kept and whether the next step is supported by the evidence.
If you are building evals for your own agents, this is a careful example of the leakage problem we cover in how to build evals that survive model changes, and the point about scoring a transcript for spoilers is easy to miss. The consistency question that pass^k versus pass@k raises is not addressed: the post does not say how many times each backtest case is run.
Pieces worth copying
From the post's own lessons, with our summary of each:[1]
| Practice | What OpenAI says | Why it transfers |
|---|---|---|
| State outside the agent | Tasks hold status and findings so agents or engineers can resume | Works for any long job that waits on people or deploys |
| Wake on events, do not poll | Tasks subscribe to PR comments, CI failures and deployments | Agents are not running while idle |
| Separate reviewer | A second session tries to disprove diagnoses and fixes | Catches first-plausible-explanation errors |
| Protect attention | Related incidents are linked, grouped and ranked by estimated impact | Output volume can exceed what a team can read |
| Backtest changes | Rerun past incidents when a skill or model changes | A skill or model update can improve some cases and worsen others |
| Monitor the agents | A daily agent scans run logs for tool failures and access errors and creates fix tasks | A broken profiler can silently degrade every diagnosis |
What the post does not tell you
The post is a first-party engineering description, and several things a reader would want are absent. Based on the published text, it does not say:
- which models or model versions run in the workflow;
- how many proposed fixes were merged or deployed, or how many resolved the original regression;
- any measured improvement in ChatGPT latency or availability attributable to the system;
- what the alert thresholds are, what it costs to run, or how large the team is;
- how the 600 root-caused cases were verified as correct;
- the details of the internal Codex API, which is not offered as a product.
It also contains forward-looking statements that are plans, not results: proactive detection of slowdowns without alerts, a service rightsizing skill, workflows that create tasks in other workflows, and exploring whether agents can ship low-risk fixes without human review.[1]
How to read it
Our reading: the interesting claim is not the 1,700 investigations but the architecture around them. Anthropic's guidance from 2024 was to start with the simplest viable solution and add complexity "only when it demonstrably improves outcomes", and to include checkpoints and stopping conditions.[2] The Performance Factory is a case where the complexity was added one measured stage at a time, from manual work to a shared skill to a cloud session to a task system, with a person kept at the merge decision. The multi-agent trade-offs we covered earlier apply: separate agents here are justified by separate jobs (investigate, challenge, fix, verify) and by the need to resume, not by a belief that more agents are better.
A caution for readers copying the pattern: giving agents shell and production-telemetry access raises the stakes of the controls around them. OpenAI mentions a service identity for scoping and attribution but does not describe sandboxing or network limits for these cloud runs. For how OpenAI describes confinement of Codex on a developer machine, see our reading of the Codex sandbox post; the two posts describe different environments, and we have not seen a statement that the same controls apply here.
Questions to ask of any agent workflow
- Where does state live, and can a person take over from any step?
- Who or what checks the agent's conclusion, and is that checker told to refute it?
- How is each skill or model change tested, and could the test leak the answer?
- After a fix, what measurement decides it worked?
- Who monitors the agents themselves?
- Where is the human decision, and what happens if you remove it?
Sources were opened on 29 November 2026. We did not run Codex or any of the described systems, and every figure above is OpenAI's, labelled as such.




