AI
OpenAI Deploys AI Guards to Enforce Code Security, Blocking Engineers' Pull Requests
OpenAI has automated code review and security gatekeeping with AI models that can veto engineer submissions, raising questions about blind spots when AI both writes and inspects code.
The New Stack
OpenAI has handed its AI models significant authority over its own development pipeline. Every code change submitted by an engineer now passes through an automated security checkpoint, where AI systems can refuse to merge code if they detect vulnerabilities—without needing human approval to enforce the block.
Thibault Sottiaux, who leads OpenAI's Codex team, outlined this system in a recent interview, revealing that security screening is mandatory and that the company has trained specialized models to spot logic errors, regressions, and dependency issues. OpenAI even benchmarks some of its code-review models as performing at a "superhuman" level.
From humans to intent discussions#
As AI takes over more routine code inspection work, Sottiaux argues the human role is shifting upstream. The company's deployment and regression-detection processes are already largely automated, allowing engineers to push pull requests to ChatGPT (which serves roughly a billion active users) the same day they're filed.
Rather than waiting for a reviewer to catch problems, conversations around pull requests are becoming discussions about intent—what an engineer is trying to accomplish and whether the goal itself makes sense. Sottiaux suggests this validation should happen during the planning phase, before anyone opens a PR, so humans focus on high-level decisions while machines handle mechanical verification.
Agents tackle deferred maintenance#
The practical payoff shows up in maintenance backlogs. Teams often postpone tedious work—updating dependencies with breaking changes or refactoring messy code—because feature development always takes priority. With agents handling routine tasks, a library upgrade that once got pushed between sprints can now be completed in an afternoon. Similarly, architectural cleanups estimated at two or three months of engineering effort become feasible projects when an agent can handle much of the work.
The model-scaffolding cycle#
Sottiaux described an interesting pattern in how agent capabilities evolve. Early versions of Codex included a /goal command to keep models focused on single objectives over days or weeks—essentially a workaround for the model's tendency to drift. Newer generations don't need it.
As models improve, the infrastructure built to compensate for earlier limitations becomes redundant. OpenAI now anticipates this cycle, sometimes choosing not to build workarounds if researchers expect the next model iteration to handle the same behavior natively. System prompts and surrounding code shrink as model capabilities grow.

