The post introduces a new threat report on how malicious actors abuse AI models, drawing on two years of publishing these reports. Threat actors rarely rely on AI alone. They combine it with conventional tools such as websites and social media accounts, and they often switch between different AI models at different stages of an operation. The authors publish these findings so the industry and the public can better recognize and avoid such threats.
## Threat Actors Combine AI With Conventional Tools
- AI is typically one component of a larger workflow rather than a standalone attack.
- Operations commonly rely on websites and social media accounts alongside AI models.
- Threat activity is seldom confined to a single platform.
## Multi-Model Operational Workflows
- Actors may use different AI models at various points in the same operation.
- A report on a Chinese influence operator illustrates that such activity is not always limited to one model.
- Defenders therefore need to look across models and platforms, not just a single provider's systems.
## Purpose of Sharing These Insights
- The reports are meant to help the wider industry identify and avoid these threats.
- Sharing case studies gives other organizations and society at large concrete patterns to watch for.
For the case studies themselves, the full report is linked from the post.
# SWE-bench Verified Is Contaminated and No Longer Measures Frontier Coding Ability
OpenAI argues that SWE-bench Verified, once a standard metric in frontier model releases, no longer reliably measures real progress in autonomous software engineering. Its audit found that many unsolved tasks have flawed tests and that frontier models have seen the benchmark's problems and solutions during training. OpenAI has stopped reporting Verified scores and recommends SWE-bench Pro until uncontaminated evaluations are available.
## Background of the Benchmark
- The original SWE-bench (2023) draws each task from a resolved GitHub issue in one of 12 open-source Python repositories, paired with its pull request.
- Each task has fail-to-pass tests, which must pass after a correct fix, and pass-to-pass regression tests, which must keep passing. The model sees only the issue text and the pre-fix repository, not the tests.
- SWE-bench Verified, released in 2024, is a curated set of 500 problems. Three expert reviewers independently screened each of 1,699 original problems.
## Flawed Tests Reject Correct Solutions
- OpenAI audited 138 Verified problems that o3 failed to consistently solve across 64 runs. Each was reviewed by at least six experienced engineers.
- 59.4% of the audited problems had material test or description problems that made them extremely hard or impossible to solve.
- 35.5% had narrow tests that enforce specific implementation details, rejecting functionally correct solutions.
- 18.8% had wide tests that check behavior the problem description never specified.
- 5.1% had miscellaneous issues.
- Example of a narrow test: in pylint-dev__pylint-4551, the tests import a function `get_annotation` that the issue never mentions, so many valid fixes fail with import errors.
- Example of a wide test: in sympy__sympy-18199, the PR fixed three issues, but the task description covers only one. Models often implement the described fix and still fail tests for the other two.
## Training Exposure and Contamination
- Because SWE-bench draws from popular open-source repositories, frontier models have likely trained on these problems and solutions.
- All frontier models tested could reproduce the original human-written gold patch or verbatim problem details for some tasks.
- Models that had seen a problem were more likely to pass its underspecified tests, since they carried the extra information needed.
- GPT-5.2 showed contamination in django__django-14725. Its reasoning referenced Django release notes and correctly identified that the `edit_only` parameter arrived in Django 4.1.
- OpenAI built an automated red-teaming setup in which GPT-5 probed GPT-5.2-Chat, Claude Opus 4.5, and Gemini 3 Flash Preview over 15 turns. The strongest cases were manually reviewed.
- Examples of strong contamination:
- GPT-5.2 reproduced the exact gold patch for django__django-11451, including the early-return guard `if username is None or password is None`.
- Claude Opus 4.5 recalled the file path, the removed conditional, and an inline comment verbatim for astropy__astropy-13236.
- Gemini 3 Flash reproduced the task text and the regex change `\Z` in the gold patch for django__django-11099, given only the task ID.
## Recommendations
- Benchmarks built from public material carry contamination risk. Developers should run additional contamination checks, and dataset maintainers should guard releases with password protection and canary strings.
- Automated tests must verify correct behavior without depending on incidental implementation details and without allowing shortcut solutions. Getting this right took extensive human labeling.
- OpenAI now reports SWE-bench Pro's public split, which showed far less contamination and no verbatim gold-patch reproduction.
- OpenAI plans to keep building privately authored benchmarks. Its GDPVal benchmark uses tasks written by domain experts and grades solutions holistically with trained reviewers.
OpenAI tested an internal model on all ten First Proof problems, a research-level math challenge that requires complete, checkable proofs in specialized fields. They believe at least five of the model's attempts (problems 4, 5, 6, 9, and 10) have a high chance of being correct, with several others still under expert review. They also reversed an earlier judgment: problem 2, which they had considered likely correct, now appears to be wrong. The post presents frontier challenges like this as a strong way to test capabilities that benchmarks often miss.
## The First Proof Challenge
- The problems were written by leading experts, and at least a couple had been open for years before their authors found solutions.
- Correctness is hard to establish without expert review, unlike short-answer or competition math.
- OpenAI shared its attempts on February 14, 2026, and has published all ten in a preprint with an appendix of prompt patterns and examples.
## Results and Revisions
- The model solved problems 9 and 10 early in the testing period, and by OpenAI's estimate solved at least three more as training progressed.
- Problems 6 and 4 were highlighted because they fell within fields familiar to many of the researchers.
- Problem 2 was initially judged likely correct but was later deemed incorrect after official First Proof commentary and community analysis.
## Model Development Context
- A researcher on the team (James R. Lee) explained that the model being trained focuses on rigor, with the goal of sustained reasoning over many hours and high confidence in its conclusions.
- He described the model improving noticeably from day to day during the weekend of testing.
## Methodology Caveats
- The model ran with limited human supervision. Researchers sometimes suggested retrying strategies that had worked before and asked for clarifications after expert feedback.
- A back-and-forth with ChatGPT was used for verification, formatting, and style.
- For some problems, the team chose the best of several attempts using human judgment.
- OpenAI acknowledges the process was a fast sprint and not a properly controlled evaluation, and it hopes to design a more rigorous framework with the First Proof organizers.
## Prior Work
- In July 2025, a general-purpose reasoning model reached gold medal-level performance on the International Mathematical Olympiad (35/42 points).
- A November 2025 report documented case studies of GPT-5 helping researchers across several scientific fields, including its limitations.
- More recently, GPT-5.2 proposed a candidate gluon-amplitude formula that an internal model formally proved and the authors verified.
OpenAI says it wants continued community engagement, including expert feedback on these attempts, on how to evaluate research-grade reasoning. It plans to bring these capabilities to future public models.
# EVMbench: Measuring AI Agents on Smart Contract Security
OpenAI, together with Paradigm, has introduced EVMbench, a benchmark that tests whether AI agents can detect, patch, and exploit high-severity smart contract vulnerabilities. The authors argue that measuring AI capability in economically meaningful settings is important, since smart contracts secure over $100B in open-source crypto assets. They also present the benchmark as a call for developers and researchers to use AI defensively to audit deployed contracts. Frontier agents perform strongly at exploiting vulnerabilities (GPT-5.3-Codex scores 71.0%), but detection and patching remain far from complete.
## Benchmark Design
- EVMbench includes 117 curated vulnerabilities drawn from 40 audits, mostly from open code audit competitions.
- It adds scenarios from the security audit of Tempo, a purpose-built L1 for high-throughput, low-cost stablecoin payments.
- Task environments were built by adapting existing proof-of-concept exploits and deployment scripts, or by writing them manually.
- Exploit tasks were red-teamed for ways an agent could cheat the grader, and automated task-auditing agents were used alongside Paradigm's domain expertise.
## Three Evaluation Modes
- **Detect:** Agents audit a repository and are scored on recall of ground-truth vulnerabilities and associated audit rewards.
- **Patch:** Agents modify vulnerable contracts, keeping intended functionality while removing the exploit. Automated tests and exploit checks verify the result.
- **Exploit:** Agents carry out end-to-end fund-draining attacks on deployed contracts in a sandboxed chain. Grading uses programmatic transaction replay and on-chain verification.
## Evaluation Infrastructure
- A Rust-based harness deploys contracts, replays agent transactions deterministically, and blocks unsafe RPC methods.
- Exploit tasks run on an isolated local Anvil instance rather than live networks, and the vulnerabilities are historical and publicly documented.
## Results and Model Behavior
- GPT-5.3-Codex, run through Codex CLI, scores 71.0% in exploit mode, up from 33.3% for GPT-5, released about six months earlier.
- Detect recall and patch success remain well below full coverage, since many vulnerabilities are hard to find and fix.
- Agents do best when the goal is explicit. In exploit mode they keep iterating until funds are drained.
- In detect mode, agents sometimes stop after one issue instead of auditing the whole codebase.
- In patch mode, removing subtle vulnerabilities while preserving full functionality is difficult.
## Limitations
- The vulnerabilities come from Code4rena competitions. Heavily scrutinized, widely used contracts may be harder to exploit than these.
- In detect mode, additional findings beyond the human-identified set cannot yet be reliably classified as real vulnerabilities or false positives.
- Exploit grading replays transactions sequentially, so timing-dependent behaviors are out of scope.
- The chain state is a clean local Anvil instance rather than a mainnet fork, only single-chain environments are supported, and some cases use mock contracts in place of mainnet deployments.
## Safeguards and Ecosystem Commitments
- The authors describe cybersecurity as dual-use and take an iterative approach that aims to help defenders while slowing misuse. Mitigations include safety training, automated monitoring, trusted access for advanced capabilities, and enforcement pipelines backed by threat intelligence.
- The company is expanding the private beta of Aardvark, its security research agent, and offering free codebase scanning for widely used open-source projects through maintainer partnerships.
- A commitment of $10M in API credits supports defensive work, especially for open-source software and critical infrastructure, through the Cybersecurity Grant Program.
- EVMbench's tasks, tooling, and evaluation framework are being released to support further research.
# GPT-5.2 Derives a Previously Unknown Gluon Amplitude
OpenAI reports that GPT-5.2 helped produce a new result in theoretical physics: a class of gluon interactions long assumed to vanish is nonzero under specific kinematic conditions. The formula for these amplitudes was first conjectured by GPT-5.2 Pro, then proved by an internal OpenAI model and verified by the human physicists on the paper. The work, titled "Single-minus gluon tree amplitudes are nonzero," is available as an arXiv preprint.
## Why the Amplitude Was Assumed to Be Zero
- A scattering amplitude is the quantity physicists use to calculate how likely particles are to interact in a given way.
- At tree level (calculations keeping only the simplest diagrams, with no quantum loops), many gluon amplitudes take unexpectedly simple forms, which has repeatedly revealed deeper structure in quantum field theory.
- When one gluon has negative helicity and the other n−1 have positive helicity, standard textbook arguments say the tree-level amplitude must vanish. This configuration was largely ignored as a result.
## The Half-Collinear Loophole
- The standard argument assumes generic momenta. The authors identify a special, mathematically consistent slice of momentum space, called the half-collinear regime, where the gluon momenta satisfy an alignment condition and the reasoning no longer applies.
- On this slice the amplitude is nonzero, and the authors compute it in that special kinematic regime.
- The authors name extensions to gravitons, which mediate gravity, as an important next step. With GPT-5.2's help, the amplitudes have already been extended to gravitons.
## How the Formula Was Found
- The human authors computed the amplitudes by hand for n up to 6. The Feynman diagram expansions were very complicated, growing superexponentially in n.
- GPT-5.2 Pro greatly simplified these expressions and then spotted a pattern in the small cases, conjecturing a formula valid for all n.
- An internal scaffolded OpenAI model spent about 12 hours on the problem, arriving at the same formula and producing a formal proof.
- The formula was checked analytically against the Berends-Giele recursion, a standard method for building multi-particle tree amplitudes, and against the soft theorem, which constrains amplitude behavior when a particle becomes soft.
## Physicists' Reactions
- Nima Arkani-Hamed (Institute for Advanced Study) noted that simple formulas often lead to deep structural insights in this area, and expressed hope that finding such formulas, which he sees as potentially automatable, will become a general-purpose AI tool.
- Nathaniel Craig (UC Santa Barbara) called the work journal-level research and said the paper provides a template for validating LLM-driven insights through coupling AI with domain experts.
## Takeaway
The paper is a concrete example of an AI model contributing to a publishable physics result: the model proposed the pattern and generalization, while human experts computed base cases and the result was checked through independent analytic verification. The authors have not yet published in a peer-reviewed journal, and they invite community feedback on the preprint.
# Scaling Codex and Sora Beyond Rate Limits with a Hybrid Credits System
OpenAI found that rate limits alone frustrate engaged users, while pure usage-based billing charges people from the first token. To bridge the gap, they built an in-house access engine that treats rate limits and prepaid credits as layers in a single decision flow. Each request is evaluated in real time, so users keep working past their limits without interruption, and every charge is traceable and auditable.
## Why Existing Access Models Fell Short
- Rate limits protect capacity and fairness, but users who hit them get a "come back later" dead end.
- Usage-based billing is flexible, but it charges from the first token, which discourages early exploration.
- Raising rate limits would erode demand smoothing and capacity, while purely asynchronous billing introduces lag, overages, and reconciliation problems.
- The required system had to enforce rate limits first, switch to credits within the same request, make that decision in real time, and track credit consumption with rigorous accuracy.
## Access as a Waterfall
- Instead of asking "is this allowed?", the system asks "how much is allowed, and from where?"
- Rate limits, free tiers, credits, promotions, and enterprise entitlements are all layers in one decision stack.
- Users never "switch systems," which is why credits feel invisible in daily use.
## Why They Built It In-House
Third-party metering and billing platforms suit invoicing and reporting, but they fell short on two requirements:
- **Real-time correctness:** Delayed or best-effort counting causes surprise blocks, inconsistent balances, and incorrect charges.
- **Reconcilability and trust:** Every outcome needed to be explainable, including why a request was allowed or blocked, how much usage it consumed, and which limits or balances applied. That level of visibility required tight integration with the decision waterfall.
## A High-Scale Usage and Balance System
- Tracks usage per user and per feature
- Maintains rate-limit windows and real-time credit balances
- Debits balances idempotently through a streaming async processor
- Routes every request through one evaluation path that synchronously consumes rate limits and verifies credit sufficiency, then returns a single outcome while settling credit debits asynchronously. This keeps behavior consistent across products and avoids duplicated logic across teams.
## A Provably Correct Billing System
The system maintains three linked datasets, each triggering the next:
- **Product usage events:** What the user actually did, published for all activity whether or not it consumed credits, providing an audit trail that explains every charge or non-charge.
- **Monetization events:** What the user is charged for their usage.
- **Balance updates:** How much the credit balance changed and why.
Key mechanisms:
- **Stable idempotency keys** on every event ensure retries, replays, or worker restarts can never double-debit a balance. They also enable offline batch reconciliation.
- **Near-real-time asynchronous balance updates** trade a small delay for auditability. If that delay causes a balance overshoot, the user is automatically refunded, so the team prioritizes provable correctness and trust over strict enforcement.
- **Atomic transactions** decrease the credit balance and insert a Balance Update record together. Updates are serialized per account, so concurrent requests cannot race to spend the same credits, and every adjustment links back to the monetization event that triggered it.
## Architecture in Service of Momentum
The design goal is to keep users working. Real-time balances prevent unnecessary interruptions, atomic consumption prevents double-charging, and unified access logic makes behavior predictable. The team treats the underlying access, usage, and billing as one system, and expects the same foundation to extend beyond Codex and Sora to other products.
# Harness Engineering: Building a Product with Zero Hand-Written Code
OpenAI's team spent five months building an internal beta product in which every line, including application logic, tests, CI configuration, documentation, and observability, was written by Codex agents. The result is roughly a million lines of code and about 1,500 merged pull requests, produced by a team of three growing to seven engineers, at an estimated tenth of the hand-coded time. The authors conclude that the scarce resource is human time and attention, so engineering effort shifts from writing code to designing environments, specifying intent, and building feedback loops that let agents work reliably.
## Starting from an Empty Repository
- The repository was scaffolded by Codex CLI using GPT-5, guided by a few existing templates, and even the initial AGENTS.md was agent-written.
- Early progress was slow because the environment was underspecified, not because the model was incapable. Missing tools, abstractions, and structure were the real blockers.
- The team worked depth-first: they broke large goals into building blocks (design, code, review, test), had the agent construct each one, and then used them for more complex tasks.
## Redefining the Engineer's Role
- Humans interact mainly through prompts. Codex reviews its own changes, requests agent reviews locally and in the cloud, responds to feedback, and loops until all reviewers are satisfied, a pattern the authors compare to a "Ralph Wiggum Loop."
- Codex uses standard tools (`gh`, local scripts, repository-embedded skills) to gather context directly, without humans pasting output into the CLI.
- Human review is optional, and most review effort has moved to agent-to-agent.
## Making the Application Legible to Agents
- As code throughput grew, human QA became the bottleneck, so the team made the app itself observable to the agent.
- The app boots per git worktree, so Codex can run one isolated instance per change. The Chrome DevTools Protocol is wired into the runtime, with skills for DOM snapshots, screenshots, and navigation, letting the agent reproduce bugs and validate fixes.
- Each worktree gets an ephemeral observability stack (logs, metrics, traces) queryable with LogQL and PromQL, torn down when the task ends.
- With this in place, performance-style prompts such as "service startup under 800ms" become tractable. Single Codex runs often work for six hours or more while humans sleep.
## Repository Knowledge as the System of Record
- A single large AGENTS.md failed predictably: it crowded out task context, made everything seem important (so nothing was), rotted quickly, and was hard to verify mechanically.
- Instead, AGENTS.md (about 100 lines) acts as a table of contents pointing into a structured `docs/` directory. It contains design docs with verification status and core beliefs, an architecture map of domains and layering, product specs, generated schemas, reference material in LLM-friendly formats, quality grades per domain, and versioned execution plans with progress and decision logs.
- Progressive disclosure lets agents start from a small, stable entry point and navigate onward.
- Linters and CI jobs check that the knowledge base is current, cross-linked, and well-formed. A recurring "doc-gardening" agent finds stale documentation and opens fix-up PRs.
## Agent Legibility Drives Design Choices
- Anything the agent cannot access in context effectively does not exist. Decisions made in Slack, Google Docs, or people's heads must be pushed into the repository.
- The team favored dependencies that can be fully internalized and reasoned about in-repo, and "boring" technology with stable APIs and strong training-set representation.
- In some cases it was cheaper to have the agent reimplement functionality. Instead of a generic `p-limit`-style package, they wrote a map-with-concurrency helper tightly integrated with their OpenTelemetry setup and covered by 100% tests.
## Enforcing Architecture and Taste Mechanically
- The team enforces invariants rather than implementations. For example, data shapes must be parsed at the boundary, but the choice of library is left open (the model tends to pick Zod).
- Each business domain has a fixed layer sequence (Types → Config → Repo → Service → Runtime → UI), with dependencies allowed only in the forward direction. Cross-cutting concerns such as auth, connectors, telemetry, and feature flags enter through a single Providers interface.
- Custom linters and structural tests enforce these rules, along with structured logging, naming conventions, and file size limits. Lint error messages include remediation instructions, so the agent can fix violations itself.
- Human taste is captured continuously: review comments and user-facing bugs become documentation updates or tooling rules, and when docs fall short, the rule is promoted into code.
## Changing Merge Norms
- Gates are minimal, PRs are short-lived, and flaky tests are usually rerun rather than blocking progress indefinitely.
- The authors argue this is only appropriate because agent throughput far exceeds human attention, which makes corrections cheap and waiting expensive.
## Autonomy and Entropy
- Agents now generate everything in the codebase: product code, CI, internal tools, docs, evaluation harnesses, review comments, repo maintenance scripts, and dashboard definitions.
- Given one prompt, Codex can reproduce a bug, record a video, implement a fix, validate it by driving the app, record a second video, open a PR, handle feedback and build failures, escalate only when judgment is needed, and merge.
- Full autonomy brings drift, since agents replicate existing patterns, including suboptimal ones. The team initially spent every Friday cleaning up "AI slop," which did not scale.
- The replacement is a set of "golden principles" encoded in the repo, such as preferring shared utilities over hand-rolled helpers and validating data at boundaries rather than probing it "YOLO-style." Background Codex tasks scan for deviations and open small refactoring PRs, most reviewable in under a minute and auto-mergeable. The authors describe this as garbage collection, paying down technical debt in small continuous increments.
## Open Questions
- The strategy has worked through internal launch and adoption, but how architectural coherence holds up over years in a fully agent-generated system is unknown.
- The authors are still working out where human judgment adds the most leverage and how to encode it so it compounds.
## Practical Takeaway
The post's central lesson is that discipline moves from the code into the scaffolding: tooling, abstractions, mechanical constraints, and feedback loops. Teams adopting agent-driven development should invest in making their repository legible and enforceable for agents before expecting autonomous output, and should treat every agent failure as a prompt to add a missing capability to the repo.
OpenAI's post introduces Trusted Access for Cyber, a pilot that gives verified defenders access to its most cyber-capable model, GPT-5.3-Codex, while keeping safeguards against misuse. The company argues that defenders should adopt these capabilities early, before similar models arrive from other providers, including open-weight ones. Alongside the pilot, OpenAI is committing $10 million in API credits to accelerate defensive security work.
## Why Cyber Capabilities Need a Different Approach
- GPT-5.3-Codex can work autonomously for hours or days, which can speed up vulnerability discovery and remediation.
- The same capability is dual-use. A request like "find vulnerabilities in my code" could serve responsible patching or an exploit.
- Traditional restrictions blocked intent-ambiguous requests and created friction for good-faith security work. The pilot aims to reduce that friction while still stopping malicious activity.
## Trust-Based Access Framework
- **Individual users** can verify their identity at chatgpt.com/cyber to use the model for higher-risk cybersecurity work.
- **Enterprises** can request trusted access for their entire team through their OpenAI representative.
- **Security researchers and teams** needing even more capable or permissive models can apply to an invite-only program.
- All trusted users must still follow OpenAI's Usage Policies and Terms of Use.
## Safeguards Against Misuse
- Safety training teaches the model to refuse clearly malicious requests, such as credential theft.
- Automated classifier-based monitors look for signals of suspicious cyber activity.
- The policy explicitly prohibits data exfiltration, malware creation or deployment, and destructive or unauthorized testing.
- Legitimate defenders may still be affected by these mitigations while OpenAI calibrates its policies and classifiers. OpenAI plans to evolve the strategy based on feedback from early participants.
## Cybersecurity Grant Program
- OpenAI is committing $10 million in API credits through its Cybersecurity Grant Program.
- The program targets teams with a proven record of finding and fixing vulnerabilities in open-source software and critical infrastructure.
# GPT‑5 Cuts Cell-Free Protein Production Costs by 40% Through Autonomous Lab Iteration
OpenAI worked with Ginkgo Bioworks to connect GPT‑5 to a cloud laboratory, where robots run experiments and return data. Over six closed-loop rounds, the system tested more than 36,000 reaction compositions and reached a new state of the art in low-cost cell-free protein synthesis (CFPS), with a 40% reduction in protein production cost and a 57% improvement in reagent cost. The authors argue that autonomous labs remove the iteration bottleneck that slows biology, and that models paired with physical testing can turn promising ideas into working results.
## Why Cell-Free Protein Synthesis Is Hard to Optimize
CFPS produces proteins by running the protein-making machinery in a controlled mixture rather than inside living cells, which makes it well suited to fast prototyping.
- The system combines a DNA template, cell lysate, and many biochemical components, including energy sources and salts, which makes it hard to reason about as a whole.
- Standard formulations and commercial kits are priced for human-paced work, and reagent cost becomes the limiting factor at the scale autonomous labs can reach.
- Prior machine learning efforts have reduced costs, but progress has been incremental because thorough exploration is labor-intensive.
## Closing the Loop Between GPT‑5 and the Lab
- GPT‑5 designed experiments in a standard 384-well plate format, the cloud lab executed them, and the data was returned to the model to propose the next round.
- Programmatic validation checked every design before execution, ensuring experiments were physically executable and ruling out plausible-looking "paper experiments."
- The run executed more than 36,000 reactions across 580 plates. Once GPT‑5 had access to a computer, a web browser, and relevant papers, it needed three rounds and about two months to reach the new benchmark, 40% lower cost than the best prior baseline.
## What the Experiments Revealed
- GPT‑5 found low-cost reaction compositions that humans had not previously tested in this configuration, many robust to the low-oxygen and mixing conditions common in high-throughput plates.
- Plate-based reactions differ from bench-top ones. Oxygenation and mixing are lower in microtiter plates, which typically yields less protein than test tubes.
- Small changes in buffering, energy regeneration components, and polyamines had an outsized impact relative to their cost.
- Because lysate and DNA now dominate cost, increasing protein yield per unit of expensive input is the highest-leverage strategy.
## Limitations
- Results come from one protein (sfGFP) and one CFPS system, so generalization remains untested.
- Oxygenation and reaction geometry strongly affect yield and vary across scales, so some gains may be sensitive to these conditions.
- Human oversight was still required for protocol changes and reagent handling, since practical lab work needs experienced operators.
## Next Steps and Safety Considerations
The authors plan to apply lab-in-the-loop optimization to other biological workflows. They also note that the results show models can reason through wet-lab protocols, which has biosecurity implications that they say they are assessing under their Preparedness Framework, alongside safeguards and evaluations at the model and system level.
# Codex App Server: One Harness Behind Every Surface
OpenAI's Codex runs across the web app, CLI, IDE extensions, and macOS app, all powered by the same agent harness. The Codex App Server, a bidirectional JSON-RPC API, is the layer that exposes that harness to clients. The post explains why the App Server was created, how its architecture and conversation primitives work, how different surfaces integrate with it, and how it compares to other ways of embedding Codex.
## Origin of the App Server
- The App Server began as a practical way to reuse the harness in the VS Code extension without re-implementing the agent loop in the IDE.
- An early experiment exposed Codex as an MCP server, but mapping VS Code's rich interactions (workspace exploration, streaming reasoning, diffs) onto MCP semantics proved difficult.
- The team instead introduced a JSON-RPC protocol that mirrored the TUI loop. This became the unofficial first version of the App Server, which was not originally designed as a stable API.
- Growing demand from internal teams and partners (JetBrains, Xcode, and the Codex desktop app orchestrating parallel agents) pushed the team to design a stable, backward-compatible surface.
## Inside the Codex Harness
- **Thread lifecycle and persistence:** creating, resuming, forking, and archiving threads, and persisting event history so clients can reconnect.
- **Config and auth:** loading configuration and handling flows such as "Sign in with ChatGPT."
- **Tool execution and extensions:** running shell and file tools in a sandbox and wiring in MCP servers and skills under a consistent policy model.
- All of this lives in "Codex core," which is both a library containing the agent code and a runtime that runs the loop for one thread.
## Architecture of the App Server
- The App Server is a long-lived process that hosts Codex core threads and also defines the JSON-RPC protocol between client and server.
- It has four main components: the stdio reader, the Codex message processor, the thread manager, and core threads.
- The thread manager starts one core session per thread. The message processor submits client requests to those sessions and receives their updates.
- The stdio reader and message processor translate JSON-RPC requests into core operations and convert low-level internal events into a small set of stable, UI-ready notifications.
- The protocol is fully bidirectional. The server can issue its own requests, such as approval prompts, and pause the turn until the client responds.
## Conversation Primitives
- **Item:** the atomic unit of input or output, typed as a user message, agent message, tool execution, approval request, or diff. Each item follows `item/started`, optional `item/*/delta` events, then `item/completed`.
- **Turn:** one unit of agent work started by a user input and ending when the agent finishes responding to it. A turn contains a sequence of items.
- **Thread:** a durable container for an ongoing session, containing multiple turns, with persisted history.
- **Handshake:** the client must send `initialize` first, with `clientInfo`, and the server responds with its `userAgent` string. This lets both sides agree on protocol version, feature flags, and defaults.
- **Typical flow:** the client creates a thread and a turn. The server sends `thread/started` and `turn/started`, then streams items for user input, tool calls, and agent output. Approvals pause the turn until the client replies "allow" or "deny." The turn ends with `turn/completed`.
- A test client is available via `codex debug app-server send-message-v2 "<prompt>"` to inspect full JSON for a turn.
## Integrating with Clients
All three patterns use JSON-RPC over stdio (JSONL). Bindings exist in Go, Python, TypeScript, Swift, and Kotlin. TypeScript definitions can be generated with `codex app-server generate-ts`, and JSON Schema with `codex app-server generate-json-schema`.
- **Local apps and IDEs:** the client bundles or fetches a platform-specific binary, runs it as a long-lived child process, and pins it to a tested version. Partners like Xcode keep the client stable and point it at newer server binaries, so they get core improvements without waiting for client releases. The protocol is backward compatible, so older clients work with newer servers.
- **Codex Web:** a worker provisions a container with the checked-out workspace and runs the App Server inside it. The browser talks to the backend over HTTP and SSE. State lives on the server, so work continues if the tab closes, and a new session can reconnect and catch up.
- **TUI/CLI:** the TUI was historically a special-case client that talked directly to Rust core types. The team plans to refactor it to use the App Server like any other client. This would enable connecting to a remote Codex server while keeping the UI local.
## Choosing the Right Protocol
- **Codex as an MCP server (`codex mcp-server`):** good for existing MCP workflows that invoke Codex as a tool, but Codex-specific features like diff updates may not map cleanly.
- **Cross-provider agent harness protocols:** portable across model providers and useful for coordinating multiple agents, but they tend to converge on a common subset of capabilities.
- **Codex App Server:** the recommended choice for full functionality, including sign-in, model discovery, and configuration. The cost is building a JSON-RPC client, though Codex can help generate it from the schema and docs.
- **Codex Exec:** a scriptable CLI mode for one-off tasks and CI pipelines with structured output and clear exit codes.
- **Codex SDK:** a TypeScript library for controlling local agents from your own application. It supports fewer languages than the App Server and may gain SDKs that wrap the App Server protocol.
## Taking This Forward
The App Server is the first-class integration method going forward. Its source is in the open-source Codex CLI repository, and the team is actively seeking feedback and feature requests. Teams wanting to embed Codex in their own tools should start with the App Server, using the generated schema bindings to build a client.
# Inside OpenAI's In-House Data Agent
OpenAI built a bespoke, internal-only AI data agent to help employees go from a data question to an insight in minutes rather than days. Built on GPT-5.2 and the same developer tools OpenAI offers externally (Codex, the Evals API, and the Embeddings API), the agent reasons over OpenAI's data platform, which spans more than 600 petabytes across roughly 70k datasets. The post argues that a capable model alone is not enough: reliable answers depend on layered context, persistent memory, and systematic evaluation.
## Why a Custom Tool Was Needed
- At this scale, finding the right table is often the most time-consuming step, since many tables look similar but differ in critical ways, such as whether they include logged-out users.
- Even with the right tables, common SQL failures such as many-to-many joins, filter pushdown errors, and unhandled nulls can silently produce wrong results.
- The goal is to let analysts focus on defining metrics and making decisions rather than debugging SQL semantics.
## How the Agent Works
- It is available wherever employees work: as a Slack agent, through a web interface, inside IDEs, in the Codex CLI via MCP, and through an MCP connector in OpenAI's internal ChatGPT app.
- It handles the full analytics workflow: discovering data, writing and running SQL, and publishing notebooks and reports.
- It evaluates its own intermediate results. If a query returns zero rows, for example, it investigates, adjusts, and retries while carrying learnings forward.
- When a request is ambiguous, it asks clarifying questions, but if no answer comes, it applies sensible defaults such as a 7- or 30-day window.
- Recurring analyses, such as weekly business reports and table validations, are packaged as reusable workflows.
## Layered Context
The post describes six layers of context that ground the agent's reasoning:
- **Table usage:** Schema metadata and lineage show how tables relate, and ingesting historical queries reveals which tables are usually joined.
- **Human annotations:** Domain experts curate descriptions that capture business meaning and known caveats.
- **Codex enrichment:** Code-level analysis of how each table is produced reveals uniqueness, update frequency, scope, and whether a table includes only first-party ChatGPT traffic. This context refreshes automatically.
- **Institutional knowledge:** Slack, Google Docs, and Notion content on launches, incidents, codenames, and metric definitions is embedded with permissions metadata and retrieved at runtime.
- **Memory:** Corrections and non-obvious filters are saved globally or per user. In one case, the agent learned how to filter a specific experiment by matching a string defined in an experiment gate, rather than guessing with fuzzy string matching.
- **Runtime context:** When information is missing or stale, the agent queries the warehouse live and consults metadata, Airflow, and Spark.
A daily offline pipeline aggregates the first three layers into normalized embeddings. At query time, retrieval-augmented generation pulls only the most relevant context, keeping latency low across tens of thousands of tables.
## Evaluation and Trust
- Evals are built from curated question-answer pairs, each with a manually written "golden" SQL query.
- Grading does not rely on string matching. The system compares both the generated SQL and its result data, and an Evals grader produces a score with an explanation.
- The evals run continuously as unit tests during development and as canaries in production to catch regressions.
## Security and Transparency
- The agent acts purely as an interface layer and enforces existing permissions, so users can query only the tables they are already authorized to access.
- It summarizes its assumptions and execution steps with each answer and links to underlying results so users can verify the analysis.
## Lessons Learned
- **Less is more:** Overlapping tools confused the agent, so the team consolidated tool calls.
- **Guide the goal, not the path:** Highly prescriptive prompts degraded results. High-level guidance let GPT-5's reasoning choose better execution paths.
- **Meaning lives in code:** Schemas and query history miss assumptions and freshness guarantees that are visible in pipeline code, so crawling the codebase with Codex improved the agent's understanding of what each table contains.
The team plans to make the agent handle ambiguous questions better, add stronger validation, and integrate it more deeply into existing workflows so it feels like part of how people already work, rather than a separate tool.
# How Codex's Agent Loop Works
OpenAI's Codex CLI runs on a core agent loop that coordinates the user, the model, and the tools the model invokes to make software changes. The loop repeats model inference and tool execution until the model emits a final assistant message, and the harness manages the prompt structure, prompt caching, and context window to keep this process efficient and reliable. The post is the first in a series that will also cover the CLI architecture, tool implementation, and sandboxing.
## The Basic Loop
- The agent turns user input into a prompt and sends it to the model for inference.
- If the model requests a tool call, the agent executes it, appends the output to the prompt, and queries the model again.
- The loop ends when the model produces an assistant message with no tool calls, which returns control to the user.
- Each conversation turn can contain many inference and tool-call iterations, and the full history is resent with each new user message.
## Model Inference via the Responses API
- Codex sends HTTP requests to the Responses API. The endpoint is configurable: ChatGPT login uses `chatgpt.com/backend-api/codex/responses`, API-key auth uses `api.openai.com/v1/responses`, and `--oss` mode defaults to a local `localhost:11434` endpoint for gpt-oss models run through Ollama or LM Studio.
- The server responds with a Server-Sent Events stream. Codex republishes these events internally, using text deltas to drive UI streaming and completed output items to extend the input for later calls.
## Building the Prompt
- The request includes three main parameters: `instructions` (system or developer message), `tools` (available tool definitions), and `input` (the message items).
- Instructions come from a `model_instructions_file` in `~/.codex/config.toml` if set, otherwise from the model's bundled base instructions.
- Tools include Codex's built-in `shell` and `update_plan` tools, Responses API tools such as web search, and user-configured MCP server tools.
- Before the user's message, Codex inserts several items into `input`:
- A developer message describing the sandbox and approval rules. This applies only to Codex's shell tool, since MCP tools enforce their own guardrails.
- An optional developer message from `developer_instructions` in `config.toml`.
- An optional user message aggregating instructions from `AGENTS.override.md` and `AGENTS.md` files, capped at 32 KiB, plus skill metadata when skills are configured.
- A user message with the environment context, including the current working directory and shell.
## Multi-Turn Conversations and Performance
- Because the full history is resent, the total work across a conversation grows quadratically unless prompt caching is effective.
- Codex does not use `previous_response_id`. This keeps requests stateless and supports Zero Data Retention customers. Reasoning from prior turns is still usable through `encrypted_content`, which the server can decrypt.
- Caching only works for exact prefix matches, so Codex avoids changes that break the prefix:
- Changing tools mid-conversation, switching models, or changing the sandbox, approval mode, or working directory can all cause cache misses.
- An early bug in MCP support enumerated tools in an inconsistent order, which caused misses. MCP `tools/list_changed` notifications can also invalidate the cache mid-conversation.
- Instead of editing earlier messages, Codex appends new developer or user messages that describe configuration changes.
## Context Window Management
- Codex compacts the conversation once it passes a token threshold, replacing the history with a smaller set of items that preserve the agent's understanding.
- Compaction started as a manual `/compact` command that asked the model to summarize the conversation.
- It now uses the Responses API's `/responses/compact` endpoint, which returns an opaque compaction item. Codex calls it automatically when the `auto_compact_limit` is exceeded.
## Practical Takeaways
- For anyone building an agent loop on the Responses API, keep static content such as instructions and tool definitions at the start of the prompt and append dynamic changes at the end.
- Keep tool ordering deterministic and avoid changing tools mid-conversation to preserve prompt caching.
- Plan for context growth with a compaction strategy rather than letting the window fill up.
# Scaling PostgreSQL to 800 Million ChatGPT Users
OpenAI has scaled PostgreSQL to support ChatGPT and its API for roughly 800 million users, with load growing more than 10x over the past year. The core finding is that a single-primary PostgreSQL deployment, backed by nearly 50 read replicas across regions, can handle millions of queries per second for read-heavy workloads when paired with careful engineering. Write-heavy workloads are moved to sharded systems such as Azure Cosmos DB, and the team applies a set of protective measures to keep the system stable under traffic spikes. The result is low double-digit millisecond p99 latency and five-nines availability.
## Cracks in the Initial Design
- Early growth was handled by scaling up instance sizes, adding read replicas, and applying application and database optimizations.
- Recurring SEVs followed a pattern: an upstream failure, such as a cache outage, an expensive join surge, or a write storm from a feature launch, spikes database load. Latency rises, requests time out, and retries amplify the load into a cascading failure.
- PostgreSQL's MVCC design struggles with write-heavy workloads. Updating a row copies the entire tuple, which causes write amplification, read amplification from dead tuples, table and index bloat, and complex autovacuum tuning.
## Keeping a Single Primary Viable
- Write-heavy, shardable workloads are migrated to Azure Cosmos DB, and application logic is optimized to reduce unnecessary writes.
- New tables are no longer added to the PostgreSQL deployment; new workloads default to sharded systems.
- Full sharding of PostgreSQL was judged too costly, since it would require changing hundreds of endpoints over months or years. It remains a future option rather than a near-term priority.
## Protective Measures
- **Reducing primary load:** Reads are offloaded to replicas wherever possible. Application bugs causing redundant writes are fixed, lazy writes smooth spikes, and backfills are rate-limited.
- **Query optimization:** A 12-table join was identified as a cause of past SEVs. Complex joins are moved to the application layer where feasible. ORM-generated SQL is reviewed, and timeouts such as `idle_in_transaction_session_timeout` prevent idle transactions from blocking autovacuum.
- **Single point of failure:** Critical reads are served from replicas so they survive a primary outage. The primary runs in high-availability mode with a hot standby, and each region has multiple replicas with spare capacity.
- **Workload isolation:** Requests are split into low- and high-priority tiers on separate instances, and the same approach is applied across products to contain noisy neighbors.
- **Connection pooling:** PgBouncer runs in statement or transaction mode, cutting average connection time from 50 ms to 5 ms. Proxies, clients, and replicas are co-located in the same region, and each replica runs its own PgBouncer deployment behind a Kubernetes Service.
- **Caching:** A cache locking and leasing mechanism ensures that only one request per missed key queries PostgreSQL, while others wait for the cache to refill, which prevents cache-miss storms.
- **Replica scaling:** The primary must stream WAL to every replica, which strains it as the count grows. Cascading replication, where intermediate replicas relay WAL, is being tested with the Azure team to scale past a hundred replicas.
- **Rate limiting:** Limits are applied at the application, connection pooler, proxy, and query layers. Retry intervals are kept from being too short, and the ORM can block specific query digests to shed load during surges.
- **Schema management:** Only lightweight schema changes are allowed, with a strict 5-second timeout. Indexes are created or dropped concurrently, and new tables go to sharded systems. Backfills are rate-limited and can take over a week, which preserves stability.
## Results and Outlook
- The deployment handles millions of QPS for read-heavy workloads, with nearly 50 replicas and near-zero replication lag.
- Over the past 12 months, there has been only one SEV-0, during the ChatGPT ImageGen launch, when write traffic surged more than 10x as over 100 million users signed up in a week.
- Remaining write-heavy workloads are being migrated, cascading replication is in progress, and sharded PostgreSQL or alternative distributed systems are under consideration for the longer term.
# Hardening ChatGPT Atlas Against Prompt Injection Through Automated Red Teaming
OpenAI describes how it defends the browser agent in ChatGPT Atlas against prompt injection, a threat that grows as agents gain broad access to a user's browser, accounts, and data. Its main tool is an RL-trained automated attacker that finds novel attacks before they appear in the wild. Each discovery feeds a rapid response loop that produced a newly adversarially trained agent checkpoint, now rolled out to all Atlas users. OpenAI treats prompt injection as a long-term challenge without a complete solution, so the goal is to keep raising the cost of attacks.
## The Threat Model for Browser Agents
- Agent mode lets Atlas view pages and act inside the browser with the user's context, sessions, and data.
- Prompt injection embeds malicious instructions in content the agent reads, such as emails, calendar invites, documents, forums, or webpages, and redirects the agent away from the user's intent.
- The attack surface is effectively unbounded, and the impact can match what the user could do: forwarding sensitive emails, sending money, or editing cloud files.
- A hypothetical example shows the risk: while summarizing unread emails, the agent ingests a malicious message and forwards tax documents to an attacker's address.
## RL-Trained Automated Attacker
- An LLM-based attacker is trained end-to-end with reinforcement learning to find injections that succeed against the browser agent.
- The attacker "tries before it ships": it sends candidate injections to an external simulator that runs a counterfactual rollout of the victim agent and returns its full reasoning and action trace.
- The attacker iterates on this feedback several times before committing to a final attack, which gives richer signal than a single pass/fail result and scales test-time compute.
- Internal access to the defender's reasoning traces, which are not disclosed externally, gives the attacker an asymmetric advantage.
- OpenAI chose RL for three reasons:
- Attacks are long-horizon with sparse, delayed rewards, which suits RL.
- Frontier LLMs trained as red teamers improve as base models improve.
- RL scales search over many samples and mirrors how adaptive human attackers learn from outcomes.
- Unlike earlier automated red teaming, which mostly elicited output strings or single tool calls, this attacker steers agents through workflows lasting tens or hundreds of steps and found strategies absent from human campaigns and external reports.
## Demonstrated Exploit
- The attacker plants a malicious email in the user's inbox.
- When the user later asks for help drafting an out-of-office reply, the agent reads the email, treats the embedded instruction as authoritative, and sends a resignation letter to the user's CEO instead.
- After the security update, agent mode detects and rejects the injection attempt.
## Rapid Response Loop
- **Adversarial training:** Updated agent models are trained against the best automated attacker, prioritizing attacks the agent currently fails. This builds robustness into the model checkpoint itself.
- **Defense-stack improvements:** Attack traces also reveal weaknesses in monitoring, safety instructions in the model context, and system-level safeguards, so fixes extend beyond the model.
- **Response to live attacks:** Techniques observed in the wild can be fed into the loop, emulated internally, and used to drive platform-wide defensive changes.
## Outlook
OpenAI does not expect prompt injection to be fully solved, since it resembles ongoing online scams and social engineering. The company plans to keep investing in automated red teaming, layered mitigations, and monitoring for abuse in the wild, and it expects the rapid response loop to steadily reduce real-world risk.
## Recommendations for Users
- **Limit logged-in access:** Use logged-out mode when signed-in sessions aren't needed, or restrict access to specific sites.
- **Review confirmations:** Check agent requests to confirm consequential actions such as purchases or sent emails, and verify that any shared information is appropriate.
- **Give narrow instructions:** Avoid broad prompts like "review my emails and take whatever action is needed," since wide latitude makes manipulation easier. Specific, scoped tasks reduce risk, though they do not eliminate it.
OpenAI introduces a framework and a suite of 13 evaluations (24 environments) for measuring how well a monitor can predict misbehavior from a model's chain-of-thought (CoT). They find that most frontier reasoning models are fairly monitorable, though not perfectly, and that monitoring the CoT is substantially more effective than monitoring actions and outputs alone. Monitorability generally improves with longer reasoning, and reinforcement learning at current frontier scales does not appear to degrade it. The authors argue that CoT monitoring could become a key control layer for future AI systems, so it should be preserved and measured.
### Monitorability as a Two-Sided Property
- Monitorability is the ability of a monitor to predict properties of an agent's behavior, such as deception, reward hacking, or biased reasoning, as well as benign properties like whether the agent relied on a given hint.
- It depends on both sides: smarter monitors can extract more information, and some agents' thoughts are inherently harder to interpret than others.
- Possible observations include actions, outputs, neural activations, and the CoT.
### Why Chains-of-Thought Should Be Monitorable
- Reasoning models are explicitly trained to produce a CoT before answering. Reinforcement learning teaches them that the CoT is a private space where they can think freely without punishment.
- Training also selects for CoTs that are instrumentally useful for reaching high-reward answers, so the CoT contains the reasoning that actually drives the final answer.
### Three Evaluation Archetypes
- **Intervention evaluations** change something in the agent's environment and test whether a monitor can identify evidence of that change in the CoT. Unlike standard control evaluations such as Shade-Arena, which only detect whether a behavior occurred, these reveal whether a monitor can explain why behavior changed.
- **Process evaluations** use tasks with a limited number of valid solution paths, such as math problems solvable only with certain theorems. Human experts enumerate the paths, and the test checks whether a monitor can detect which steps the model took.
- **Outcome-property evaluations** apply when an output property can be measured reliably, such as reward hacking in coding tasks. The test checks whether the monitor finds evidence of that intent in the model's reasoning or actions.
The evaluations are grouped into four categories:
- **Neutral:** normal tasks without misbehavior
- **Sycophancy:** cases where models overly please or agree with users
- **Bias:** whether gender, racial, or other biases are monitorable
- **Misalignment:** a catchall for cheating, lying, and similar behavior
Most groups are highly monitorable. The exception is Scruples, which tests reasoning about sycophancy, where monitorability is very low.
### Effects of Reinforcement Learning Compute
- Treating the CoT as a private workspace should, in principle, make it monitorable. However, several factors could reduce monitorability: length constraints that encourage shorter reasoning, indirect pressure to avoid reasoning paths that lead to low-reward outcomes, and spurious drift from gradient noise.
- Across two OpenAI frontier RL training runs, monitorability did not meaningfully change at current compute scales and increased in early training steps.
- The authors caution that these are only two data points and that much larger RL scales could eventually degrade monitorability.
### Effects of Pretraining Scale
- Larger models can carry out more cognition within their activations rather than in the CoT, which could reduce monitorability at a fixed capability level.
- The authors trained models across two orders of magnitude of pretraining compute, applied RL to each, and compared monitorability at matched capability levels.
- A smaller model run at higher reasoning effort can reach comparable capability to a larger model at lower effort while being easier to monitor. The cost of this is a small capability reduction, which they call the **monitorability tax**, plus extra inference compute.
- Limitations: each model was trained only once, so training variance is not accounted for, and the capability evaluations were largely in-distribution (math, science, coding).
### Scalable Control and Monitor Compute
- Stronger and more reasoning-intensive monitors perform better. When the monitor is given the CoT rather than only actions and answers, its performance improves faster as its own test-time compute increases.
- The authors suggest CoT monitoring may offer a more scalable path to control than naive output monitoring.
### Asking Follow-Up Questions to Surface More Information
- After a model responds, the researchers ask follow-up questions tied to the monitored property, such as "Did you use the hint in a meaningful way?" while keeping the original prompt, CoT, and answer in context.
- Follow-ups improve monitorability, especially at lower reasoning efforts. Repeated follow-ups, with all follow-up CoTs provided to the monitor, improve it further.
- Giving the monitor only the follow-up answer, without the follow-up CoT, yields much less improvement. This suggests models are less forthcoming in their final answers than in their reasoning.
- The authors describe these results as preliminary and note the approach is similar in spirit to model confessions.
### Limitations
- Each evaluation measures a single aspect of reasoning, and many properties, including some forms of sandbagging, scheming, and reward hacking, remain untested.
- Evaluations may lack realism, and models may increasingly recognize when they are being evaluated.
- As alignment improves, models may misbehave less often in controlled settings, which reduces the signal these evaluations depend on.
### Conclusion
The authors argue that if alignment cannot be fully solved, scalable control methods become essential, and CoT monitoring may be one of the few available mechanisms. CoT monitoring is complementary to mechanistic interpretability, and a defense-in-depth approach combining multiple methods is likely the most robust. The authors plan to expand these evaluations and use them to guide future modeling and data decisions.