4 min read
OpenAI uses Codex agents to automate Spark upgrade across fleet of millions of cores

- Reading
- 4 min
At QCon San Francisco 2026, an OpenAI engineer detailed how Codex-based agents take over the operational work of upgrading Spark on an exabyte-scale platform, leaving safety guarantees to deterministic systems.
At QCon San Francisco 2026, Mouli Mukherjee, engineering manager for data infrastructure at OpenAI, presented how the company uses Codex-based agents to automate one of the most thankless jobs in data engineering: upgrading the Apache Spark version across a fleet running on millions of cores, over hundreds of thousands of datasets, at exabyte scale.
The central argument of the talk, reported by InfoQ, is not that AI agents should rebuild the data platform from scratch. It's the opposite: they step in precisely where it's not possible to write a fixed playbook, because failure modes are too numerous to enumerate in advance.
Where the agent steps in, and where it doesn't
Mukherjee drew a sharp line between two types of work. Everything that requires consistent output for the same input, such as access control, configuration resolution, and data correctness guarantees, needs to remain inside deterministic systems, with real guardrails.
We should definitely build the systems where we want guarantees and guardrails.
Mouli Mukherjee, engineering manager for data infrastructure, OpenAI
Agents use these systems as tools; they don't try to reimplement access control or configuration validation on their own. Their space is different: debugging that follows evidence, decides the next step, and stays within the guarantees the tools already provide.
For developers, this distinction matters more than it seems: it's a direct response to the temptation of throwing a generic agent at any operational task. OpenAI is saying this only works when the agent has rails built underneath it, not when it replaces the rail.
How the Spark upgrade works in practice
Before letting any agent touch production, Mukherjee's team built a safety layer in stages:
- A shadow-run service, which reuses production inputs and operates on a low-priority queue, to test without impacting live operations.
- A configuration override service, which prevents experiments from unintentionally changing global configurations.
- A validation skill, which compares shadow-run results with production results.
Only after these pieces were in place did agents start claiming jobs, triggering shadow runs, reviewing validation reports, classifying the errors found, and only then migrating the job to the new Spark version. It's the sequence that turns a risky task (swapping the version of an engine that runs the entire fleet) into an observable, reversible routine.
The same primitives covering more operations
According to Mukherjee, the same shadow-run, override, and validation infrastructure now supports more of the platform's day-to-day tasks, beyond the original Spark upgrade:
- Continuous efficiency tuning: the agent inspects a query's execution plan, tries a configuration change, compares the runs, and iterates until it improves.
- Incremental low-risk library releases: the team sometimes skips the shadow step and promotes directly, trading testing capacity for a higher rollback risk.
- Automatic rollback: jobs that pass shadow validation but later fail in production revert on their own to the previous Spark version, without manual intervention, keeping the pipeline running.
- Operational support: agents search past incident reports, suggest runbook updates, track down why a table is stale (combing through orchestrator and scheduler logs), and help users understand access control denials, always respecting the user's own credentials.
This last point matters for anyone thinking of replicating the idea: the support agent inherits no permission beyond that of the user who asked the question. The authorization layer remains a deterministic system, not a model decision.
What changes for those building data infrastructure
OpenAI's case is a useful counterpoint to the "agent that does everything" hype. Mukherjee's recommendation for anyone wanting to apply this pattern in another context follows a specific order:
- Start with repetitive, open-ended tasks, where judgment matters and failure modes are too numerous to hand-code.
- Build the safety mechanisms first (shadow environment, validation, configuration control).
- Only then release the agent to operate within those limits.
For teams that maintain Spark, Flink, or any processing engine at scale, the practical lesson isn't "adopt Codex." It's that the hard part of the problem was never the language model: it was building the shadow-run, the configuration override service, and the validation skill that make the agent's decision auditable and reversible. Without that layer, automating critical infrastructure upgrades with an agent is gambling, not engineering.
It remains unclear, from the available account, how these primitives behave in organizations much smaller than OpenAI, which has the scale and dedicated team to build this entire safety layer before releasing the first agent into production.
Translated from the Brazilian Portuguese original · Read the original
New VPS: the security checklist that locks down the server before the bots find it
A Russian developer documented on Habr the 15-to-20-minute routine he applies to every new VPS before putting any site online. The account shows where most people get it wrong: thinking that hiding a port is the same as closing it.






