← All articles

Your Agent Needs to Know the Difference Between a Broken Test and Broken Production

When the same agent loop that observes a failure can also act on production, a blocked test probe can turn into key rotations and redeploys. Classify, reproduce, and gate the fix.

OpenAI's Codex ran an end-to-end test on a live web app. Its own browser got blocked by reCAPTCHA, and it decided production was broken.

What was reported

This comes from an open issue a user filed on Nov 25 in the openai/codex GitHub repo (#63932). It's the reporter's account, not a confirmed root cause, and there's no maintainer response on it yet.

According to the report, the browser probes hit HTTP 403 on reCAPTCHA v3. The agents treated that as a real production failure and went on to rotate keys and redeploy. The reporter says it cost about a day of their time plus the full five-hour usage window.

The real problem

I don't think the misread 403 is the real problem. Models will misread signals sometimes.

The setup let the same loop that saw a failure also act on production, and nothing in between asked the obvious question: is the system failing, or is my probe?

A bot check blocking an automated browser is the bot check working. An agent that can't tell those two apart will keep "fixing" things that were never broken.

What I'd change

  • Classify every failure first: probe/environment or product. Bot checks, auth walls and rate limits default to "probe".
  • Reproduce through a second path (plain curl, a health endpoint, real user metrics) before calling it an incident.
  • Split permissions. The testing agent can diagnose and open a ticket. Key rotation and redeploys go through a separate, gated step.
  • Budget remediation actions, not just tokens.

The takeaway

An agent that tests and fixes in the same loop needs a step that doubts its own test.

Gate the fix, not just the model.


Source: openai/codex issue #63932, opened Nov 25, 2026. Incident details are as reported by the issue author.