Auditing OpenAI Agents SDK: What We Discovered When the Framework 'Does Too Much Without Warning'
How the technological sophistication of the Agents SDK creates false senses of control and dangerous race conditions.

Following the minimalism of Swarm, OpenAI released the Agents SDK (Python) as its answer for production systems. With native support for sessions, traceability, and "guardrails," it seemed governance was finally built directly into the engine.
However, upon subjecting it to our compliance audit (Applied Audit 02), we discovered that this technological sophistication has created new blind spots—perhaps more dangerous than those in Swarm because they provide a false sense of control.
The Real Problem: The Parallel Execution Trap
The Agents SDK introduces a concept called Input Guardrails. These are functions that review user requests before the agent acts. It sounds perfect, but there is fine print in the architecture: by default, these guardrails execute in parallel with the agent (run_in_parallel=True).
In our audit, we demonstrated experimentally that this parallel mode allows an agent to execute a tool (a "side-effect") before the guardrail finishes evaluating whether the request was safe. If you rely on that barrier to prevent a prohibited action, you might discover that the AI has already pressed the button while the guard was still looking at the paperwork.
Three Critical Audit Findings
1. The Authorization Boundary (L3)
Unlike Swarm, the SDK features a dedicated pipeline for agent-to-agent handoffs. However, this pipeline bypasses standard tool protections. The framework does not enforce verifying whether a user has permission to escalate their authority during a handoff. Responsibility is left to a developer "black box" called on_handoff.
2. The Myth of the Immutable Ledger (L5)
The SDK boasts deep integration with OpenTelemetry for traceability. It is powerful, but it is . It can be disabled globally or per execution with a simple configuration switch. Furthermore, the logs (spans) are not cryptographically sealed. For high-security governance, a record that the system itself can delete or modify is not evidence; it is a debug log.
¿Buscas transformar tu arquitectura o posicionamiento?
Hablemos de cómo nuestros sistemas y socios pueden articular tu proyecto.
Related articles
View all articles →The $Q^*$ Crossover Algorithm: Modeling the Cost Function Between Print-on-Demand (POD) and Industrial Print Runs
Introduction: the post-manuscript dilemma An author finishes her novel and needs to decide how to manufacture it. She can print each copy on demand, avoiding stacked boxes, or c...
Compliance by Design: Moving Ethics from PDFs to Source Code
This article is part of the AI, Citizenship, and Future series. In recent years, we have seen an explosion of AI 'Ethical Manifestos'...
AI Governance: Why the Best Brakes Let You Go Faster
This article is part of the Architecture for Executives series. Governance is often thought of as a drag on innovation—a set of ethical PDFs that the legal department tacks onto the end...