OpenAI Performance Factory, 19 November 2026: tasks close on measured recovery. Closing at merge hid 16 of 40 synthetic regressions that were still there.
What OpenAI described on 19 November 2026
On 19 November 2026 OpenAI published an engineering post by Okay Zed and Cyrus Forbes, "How OpenAI's Performance Factory keeps ChatGPT fast". It describes a Codex-powered system for finding and fixing performance regressions, and its first workflow, the Regression Workflow. In just over three months, the post says, that workflow tracked more than 1,700 investigations and root-caused over 600 cases, about 17 automated investigations a day.
Much of the post is about how agents investigate: a shared skill called perf-forensics that encodes the performance team's process, an adversarial review in which a separate Codex session tries to disprove each diagnosis, and backtests against past incidents. This guide focuses on one design decision that is easy to skip when building a similar system and costly to get wrong: when a regression task is allowed to close.
A task closes on measured recovery
In the post, a regression moves through four stages: needs investigation, root caused, fix proposed and resolved. When a configured performance alert fires, the workflow opens a task, and agents move it through the stages. The task records its status and findings outside any one agent session. Once a diagnosis passes adversarial review, Codex implements a fix and opens a pull request, and an engineer decides whether to merge it.
Merging does not resolve the task. After an engineer deploys the fix, the workflow wakes an agent to check whether performance has returned to its earlier baseline. Then:
- if it has, the agent marks the task resolved;
- if performance has only partially recovered, the agent resolves the original regression and opens a new task for the remaining slowdown, which may have a different cause;
- if there is no improvement, the agent records what happened and sends the regression back for investigation.
That rule turns the task tracker from a record of work done into a record of performance restored. The post also reports that in a manual review of 100 root-cause suggestions, 70 percent were graded accurate, with 30 percent needing further refinement or not fully establishing causality. When nearly a third of diagnoses need more work, a fix that merges is weak evidence that the regression is gone.
What closing on merge hides
The companion example and lab model the closure rule on 40 synthetic latency regressions for a search service at Belgavi's Book Store. Each fix recovers nearly all of its regression, part of it, or nothing. The default mix is 55 percent full, 25 percent partial and 20 percent no improvement.
| Policy | Resolved | Closed while still regressed | Slowdown hidden | Follow-ups opened | Back to investigation |
|---|---|---|---|---|---|
| Close when the fix merges | 40 | 16 | 147.3 percentage points | 0 | 0 |
| Close on measured recovery, 24-hour window | 19 | 0 | 0 | 17 | 4 |
Under the measured policy, Resolved counts only tasks whose fix measured as a full recovery. The 17 partial recoveries also close the original task, but each one opens a follow-up, so they are counted in that column instead.
Closing on merge looks better on a dashboard: every task resolved, and faster (54.6 hours from onset to close on average, against 91.0). It also leaves 16 tasks closed with the service still slower than before, adding up to 147.3 percentage points of slowdown nobody is looking at any more. With mostly partial fixes the gap widens to 32 tasks and 279.5 points.
The measured policy does not need perfect measurement to beat this. In the default scenario noise misjudges 5 tasks, all of them fixes that recovered 90 to 92 percent but measured slightly below the threshold; each opened an unnecessary follow-up, which is a cheap mistake.
The closure rule in code
def category(recovery, p):
return 'full' if recovery >= p['full_threshold'] else 'partial' if recovery >= p['partial_threshold'] else 'none'
def close(task, measured, p):
if task['measure_h'] - task['onset_h'] > p['retention_h']:
return 'cannot verify: baseline expired, kept open'
return {'full': 'resolved',
'partial': 'resolved, follow-up opened',
'none': 'back to needs investigation'}[category(measured, p)]The trigger matters as much as the rule. In the post, the deploy wakes the checking agent; nobody has to remember to come back. Wire the check to the deploy event for the fix, schedule it for the end of the observation window, and make the task's state change only through that check. If an engineer closes a task by hand, record that it was closed without measurement, so audits can tell the two apart. Tanishka, who reviews performance tasks at the shop, now filters the weekly report on exactly that flag.
Recovery is measured against the baseline from before the regression began, not against the moment the fix shipped, because a partial fix improves on the regressed state while still leaving the service slower than it was.
The measurement needs a window and a baseline
Two parameters decide whether "measured recovery" means anything.
The observation window must be long enough to see the effect through normal noise. In the lab, shrinking the window from 24 hours to 2 makes the measurement noisier: misjudged tasks rise from 5 to 11, and 2 tasks close while still regressed. A window should cover at least one full daily traffic cycle for user-facing latency.
The baseline must still exist when the check runs. The post notes, in its discussion of backtests, that metrics and traces expire. If metrics are kept for 96 hours, a regression that took three days to diagnose and a day to deploy cannot be compared with its pre-regression baseline: in the lab, 14 of 40 tasks become unverifiable. Slow deploys do the same (12 tasks at about 72 hours from merge to deploy). Two cheap fixes: snapshot the baseline series into the task when it opens, and keep the alert's metric at full resolution for longer than your slowest fix cycle.
Designing the task record
The post stresses that the task records status and findings outside any single agent session. For the closure rule that record needs a few specific fields:
- the alert, the metric and the regression's onset time;
- a snapshot of the baseline (distribution, not just a mean) taken at onset;
- the fix's pull request and its deploy time, not just its merge time;
- the recovery measurement, its window and the decision it produced;
- links to any follow-up task, so partial recoveries form a chain rather than disappearing.
A follow-up task for the remaining slowdown is a new investigation, because the post notes the remaining slowdown may have a different cause. It should start at needs investigation with its own baseline, not inherit the original diagnosis.
Failure modes
- Closing on merge. Counts work, not outcomes. Partial and ineffective fixes vanish from view.
- Measuring too early. A check minutes after deploy sees caches warming and traffic shifting, not the fix.
- Comparing against the regressed state. Any improvement looks like success; the original baseline is the target.
- Expired evidence. The baseline or traces needed to verify recovery are gone before the check runs.
- Overlapping changes. Two fixes and an unrelated deploy in the same window make attribution uncertain; the measurement says whether performance recovered, not which change did it.
- Monitoring the monitors. The post describes a daily agent that scans recent runs for tool failures and access errors, because a broken profiler or missing permission can keep an agent from verifying anything. A recovery check that silently fails to query metrics must not default to resolved.
Tradeoffs
Measured closure is slower and creates more tasks: in the lab, 17 follow-ups that closing on merge would never open. It needs longer metric retention and a reliable deploy record. In exchange, the open-task count reflects the service's actual state, partial fixes are chased, and an engineer reading the tracker can trust that resolved means recovered. For a team with an automated investigator producing 17 investigations a day, that trust is the point.
Verification
Audit your own tracker: take regression tasks closed in the last quarter and compare each one's metric today with its pre-regression baseline. Every task closed while still regressed is a case closing on merge would have hidden. Then run the lab with your own mix of fix outcomes, window and retention to see which parameter limits you.
Running the companion code
cd examples/python/regression_recovery_closure
python example.py
python -m unittest -v test_example.pymodel.py is the same model as the interactive lab; example.py runs its seven presets. All regressions, fixes and measurements are synthetic.
Interactive experiment
Regression task closure: merged fix versus measured recovery. Synthetic browser-local fixtures, adjustable inputs, decision traces and JSON export.