QCon San Francisco 2026: Automating Spark Upgrades with Codex Agents at OpenAI
At QCon San Francisco 2026, Mouli Mukherjee, Engineering Manager for Data Infrastructure at OpenAI, argued that AI agents are most useful not for rebuilding a data platform, but for the open-ended operational work that is hard to turn into fixed playbooks. By Robert Krzaczyński
QCon San Francisco 2026 introduced the concept of using AI agents, specifically Codex agents from OpenAI, to automate Spark upgrades. Engineering Manager Mouli Mukherjee explained that AI agents are particularly useful for operational tasks that are difficult to automate with fixed playbooks. These systems run at exabyte scale and manage millions of cores, making them an ideal fit for the type of work agents excel at.
Mukherjee emphasized the distinction between deterministic systems, which provide consistent outputs for the same inputs, and agents, which should not attempt to reimplement these systems. Deterministic systems include tasks like access control, configuration resolution, and data correctness guarantees. Agents, on the other hand, utilize these systems as tools and focus on tasks where failure modes and remediations cannot be fully predefined.
To ensure safety during the Spark upgrade, the team at OpenAI developed a shadow-run service that tested changes on a low-priority queue, a configuration override service to prevent experiments from altering global settings, and a validation skill to compare production and shadow runs. Once these safeguards were in place, agents took over the Spark upgrade process. They launched shadow runs, reviewed validation reports, classified errors, and smoothly transitioned jobs to the new Spark version.
The same safety mechanisms proved useful for other routine platform operations. Agents continuously tune job efficiency by inspecting query plans, experimenting with configuration changes, comparing runs, and iterating. For lower-risk incremental library releases, the team sometimes skips the shadow step and promotes changes directly, accepting a higher rollback risk in return for faster deployment.
Importantly, if a job passes shadow validation but later fails in production, agents can automatically roll back to the previous Spark version, keeping pipelines running uninterrupted without manual intervention.
On the support side, agents can assist in various ways. They can search past incident reports, suggest updates to runbooks, trace issues like stale tables through orchestrator and scheduler logs, and help users understand access-control denials. Despite these capabilities, Mukherjee stressed the importance of maintaining strong permissions that enforce users' own credentials to ensure security.
Mukherjee advised starting with repetitive, open-ended tasks where judgment matters and failure modes are too numerous to hard-code. By building safety mechanisms first, agents can then operate within these bounds, allowing for repeatable, observable, and reversible experimentation.
Rewritten by urgent.news; may contain errors — check the original.
Source: infoq.com