AI Engineering

OpenAI's Codex agents diagnose faster than they ship fixes

OpenAI says Codex agents investigated over 1,700 ChatGPT performance alerts and found 600 root causes. Only about 15 shipped fixes were Codex-authored pull requests.

Glowing ring of nodes over a line chart pulls a performance spike back to baseline, with a gate that document sheets pass through.
Glowing ring of nodes over a line chart pulls a performance spike back to baseline, with a gate that document sheets pass through.

What OpenAI reported

On 19 November OpenAI published a description of its internal Regression Workflow, the system it uses to keep ChatGPT fast. A configured alert fires, a Codex agent investigates the regression, and the work moves through a chain of agent and human steps until a fix is deployed and checked. In OpenAI's own words, the workflow tracked more than 1,700 investigations and root caused over 600 cases in "just over three months". That is about 17 investigations a day.

VentureBeat ran the story as an exclusive the same morning, and AI Weekly and several smaller outlets followed on 19 and 20 November. The coverage is press-driven. I did not find a community thread that picked it up, so treat the numbers as OpenAI's claims rather than independent measurements.

The number people keep quoting is the gap between investigations and shipped work. Per the reporting, around 400 of the root-caused investigations progressed to a proposed fix, about 50 shipped fixes were influenced by or matched agent suggestions, and around 15 shipped fixes were the exact pull requests Codex authored. Those 400, 50 and 15 figures come from OpenAI as reported by VentureBeat and AI Weekly. They are not separately verified.

The step worth copying is the one that tries to disprove the agent

The pipeline is the useful part. According to VentureBeat's account of the workflow, the order is: an alert fires, an agent investigates using a performance-forensics skill, a separate Codex session challenges the diagnosis, Codex proposes a fix and opens a pull request, an engineer reviews and decides on the merge, and another agent checks performance after deployment.

The adversarial step is the one to take seriously. OpenAI describes it as a separate Codex session that tries to disprove the proposed diagnosis. It was added because early agents "sometimes stopped at the first plausible explanation." That is a failure mode any team running agents on debugging work will recognise. The first explanation that fits the graph is often right enough to close the ticket and wrong about causality.

OpenAI's own manual review shows why the check is needed. Of 100 root-cause suggestions it reviewed by hand, it graded 70% as accurate, with 30% needing further refinement or not fully establishing causality. A 70% hit rate is useful for triage and dangerous as an autopilot. VentureBeat reports that the adversarial review currently sends back around 25% of diagnoses. The disprove pass is therefore doing real work, and it is the reason to trust the loop at all.

Diagnosis is the easy half

The second lesson is in the funnel. OpenAI says fixes have been harder than diagnoses. Some proposed changes were more complicated than necessary or introduced new problems. Others involve tradeoffs, such as caching that can serve stale data, and those need an engineer's judgment rather than a faster agent. The same post says OpenAI is looking at whether some low-risk fixes could eventually deploy without human approval, but today every merge is an engineer's decision.

Do the arithmetic on the public figures and the picture is clear. 600 root causes became roughly 400 proposed fixes, and roughly 15 shipped Codex-authored pull requests. That is about 2.5% of root-caused investigations ending in an exact agent-written fix. The rate of agent-written fixes per proposed fix is about 4%. Those ratios are my arithmetic on OpenAI's published counts, not figures OpenAI reported. Even so, they show where the work is.

Teams that measure their agents by investigations closed will read this as success. The more honest metric is how many investigations end in a merged change that held up after deployment.

A smaller version of the loop you can build

You do not need OpenAI's scale to use this shape. Build it in six steps, and keep a human at the merge.

  1. Alert. Start from a signal you already trust, such as a latency or error-rate alert with a clear owner. Do not feed the agent every noisy graph.
  2. Investigate. Give the agent a bounded task: the alert, the relevant traces or logs, the recent deploys, and a required output format. Ask for a diagnosis, the evidence for it, and a confidence statement. Make it name what would prove the diagnosis wrong.
  3. Disprove. Run a second agent session whose only job is to attack the first diagnosis. Give it the same evidence and the first session's conclusion. Its output should be a list of alternative explanations and the checks that would separate them. If it cannot find one, the diagnosis moves on. If it can, the first agent gets another pass.
  4. Propose a fix and open a pull request. Keep the change small. Require the agent to state the tradeoffs, especially anything involving caching, retries, timeouts, or data freshness.
  5. Human merge. An engineer decides. The reviewer should check causality as well as the diff, because OpenAI's 30% refinement rate shows that a plausible diagnosis is not the same as a proven one.
  6. Post-deploy check. Run a second agent or a scripted comparison against the same metric after the change lands, and record whether the regression actually went away.

Log every stage. The useful dataset is the funnel itself: alerts, diagnoses, send-backs from the disprove pass, proposed fixes, merged fixes, and post-deploy outcomes. Without the counts at each stage, you cannot tell whether the agent is slow, wrong, or simply producing fixes that engineers reject.

What to budget for

Budget for the fix-conversion gap before you start. Expect most diagnoses not to become merged changes. Expect a meaningful share of diagnoses to be sent back by the disprove step, and expect reviewers to spend time on causality, not just on code. If your plan assumes each investigation yields a fix, the plan is wrong by a wide margin on OpenAI's own numbers.

Judge the system by two numbers. The first is the share of diagnoses that survive the disprove pass and then hold up after deployment. The second is the time an engineer spends per merged fix, including the reviews that ended in "not this cause." Investigation volume is the metric that looks best on a dashboard and tells you least about whether production got faster.

The lesson from OpenAI's post is not that agents can own production debugging. It is that an agent's diagnosis is cheap to produce and expensive to trust, and the second session that tries to break it is where the trust comes from.

Related reading

Comments (0)

No comments yet. Start the conversation.

Never shown, never emailed — stored only as a hash.