AI NewsProductivityReported
OpenAI uses Codex agents to upgrade Spark jobs across millions of cores
OpenAI runs Codex agents against its Spark fleet of millions of cores. They upgrade jobs, tune efficiency and auto-roll back failures.

Image: InfoQ
Why it mattersAn agent only earns trust when it writes to deterministic systems it cannot override. OpenAI built a shadow-run service and a validation skill before letting it touch production.
An agent cheap enough to read a logfile is still too expensive to trust with a fleet of production jobs. Most data platforms are stuck on that gap. OpenAI built the gap into the floor of its platform instead. Mouli Mukherjee spoke at QCon San Francisco 2026. She is Engineering Manager for Data Infrastructure at OpenAI. She said Codex-driven agents now run routine upgrades and tuning across the Spark fleet. That fleet holds millions of cores and runs at exabyte scale. InfoQ reported the talk on 25 November.
Mukherjee drew a line between the two parts. Anything that needs consistent output for the same input stays in deterministic systems. That covers access control, configuration resolution and data correctness guarantees. Agents use those systems as tools. They do not try to rebuild them. "We should definitely build the systems where we want guarantees and guardrails," Mukherjee said, as InfoQ quoted her. Agents earn their place where the failure modes cannot be listed in advance.
What the team built before the agent
The Spark upgrade needed three new services first. A shadow-run service replayed production inputs on a low-priority queue, so a test run could not slow live jobs. A configuration override service kept experiments out of global settings. A validation skill compared the production run with the shadow run and reported the difference. These parts hold the guarantees. The agent is allowed to work only inside them.
With the services in place, the agent loop is simple. An agent claims a job. It launches a shadow run. It reads the validation report. It classifies any error. It moves the job to the new Spark version once the run is clean. A job that passes shadow but later fails in production rolls back to the previous version on its own. Pipelines keep running without a person touching them.
Where else the same loop goes
Mukherjee said the same parts now cover more operations. Agents tune job efficiency by inspecting the query plan, trying a configuration change, comparing the two runs and iterating. For a lower-risk library release the team sometimes skips the shadow step and promotes directly. That trades capacity for a higher chance of a rollback. The choice is made case by case.
On the support side agents search past incident reports and suggest runbook updates. They trace why a table is stale by reading orchestrator and scheduler logs. They help users understand why an access-control check denied a request. Permissions still enforce the user's own credentials. An agent cannot read a dataset the user could not read alone.
The order the team worked in
Mukherjee's advice is to start with the repetitive, open-ended work. That is the work where judgment matters and the failure list is too long to write down. Build the safety mechanisms first. Let the agent operate only inside those bounds. Each run then stays repeatable, observable and reversible.
A team that writes evals before release already knows the rule. The Spark fleet is a long worked example of it. The services that gate the agent get built first, and the agent only follows them. If the validation skill has nothing to compare against, the agent has nothing to do. On a data platform, the cheapest moment to catch a bad change is the shadow run. A bad change caught later arrives as an on-call page a week down the line.
Source
- InfoQ, QCon San Francisco 2026: Automating Spark Upgrades with Codex Agents at OpenAI
- QCon San Francisco 2026, Building a Data Platform with AI, Mouli Mukherjee
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.


