Skip to content

Codex Security scan exhausted a freshly reset weekly allowance in ~44 minutes through worker/subagent fan-out #46819

Closed

Description

@topzuk

Implementation update — October 14, 2026

PR #1638 merged as a8f142f5. A terminal quota failure now cancels active Deep Scan workers immediately, prevents retries/replacements, retains completed artifacts, and preserves the original error. All required platform CI checks passed.

Closed after the related fix merged. The merged patch stops work after exhaustion; it does not include the earlier candidate's pre-exhaustion cost-accounting/budget changes, fix stale allowance reporting, or prove resolution of the original allowance incident. Raw tokens, estimated USD, and subscription allowance remain distinct measures.


What version of the Codex App are you using (From “About Codex” dialog)?

26.911.61220

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Windows 11 x64 Build 26200

What issue are you seeing?

A single requested Codex Security assessment expanded into a large worker/subagent tree and consumed an entire freshly reset weekly Work/Codex allowance in approximately 44 minutes.

Local Codex rollout telemetry confirms:

  • the weekly reset succeeded and started at 0% usage;
  • the primary rate-limit window was 10,080 minutes (7 days);
  • usage then rose continuously to 100% in ~44 minutes;
  • security discovery workers continued being created as usage approached exhaustion;
  • another discovery worker was attempted after the weekly limit was already exhausted;
  • the user-facing task reported an old 6% usage reading even though its own final telemetry showed 69%.

This appears related to multi-agent/context amplification and lack of a task-wide usage guardrail.

Steps to reproduce:

  1. Start a comprehensive Codex Security assessment of a local Java web application.
  2. Allow the security workflow to use its normal Standard discovery-worker orchestration.
  3. Let the account reach its Work/Codex usage limit while the security scan is still incomplete.
  4. Perform a full weekly usage reset.
  5. Resume the interrupted security assessment.
  6. Observe worker/subagent creation and weekly usage.

I have not intentionally repeated this because reproducing it would risk consuming another weekly allowance.

Expected behaviour:
At least one of the following should prevent a single automatically orchestrated task from unexpectedly exhausting a complete weekly allowance:

  • limit worker/subagent fan-out;
  • impose a task-wide usage budget;
  • stop creating new workers when account usage becomes critically high;
  • require confirmation before restarting or expanding a previously interrupted high-cost task;
  • provide an accurate live usage warning;
  • apply an appropriate shorter-window safeguard before a complete weekly allowance is consumed.

Actual behaviour:
The local Codex rate-limit telemetry shows the fresh weekly reset beginning at:
used_percent = 0
primary.window_minutes = 10080
secondary = null

The counter then progressed rapidly through the weekly allowance and reached 100% approximately 44 minutes later.

An explicit usage_limit_exceeded error followed seconds afterwards.

The security workflow generated numbered Standard discovery workers through at least discovery-0013 before exhaustion.

Each Standard discovery-worker configuration included:
subagents = 3

discovery-0013 was launched when weekly usage was already approximately 97-98%, yet it was still instructed to run another Standard security scan with subagents.

After the weekly allowance reached 100%, the orchestration later attempted to create discovery-0014. That attempt was blocked by the usage limit.

Across the reset-to-exhaustion window, the recovered telemetry shows dozens of newly created Codex sessions, overwhelmingly security-scan workers and subagents.

Usage-reporting issue:
A diagnostic task eventually reported:

“Current Codex allowance is healthy: 6% used when checked.”

However, the 6% value was an earlier measurement.

By the time that task completed, its own rate-limit telemetry showed approximately:
used_percent = 69

So the final user-facing status materially understated current usage while concurrent agentic work was still running.

Local token telemetry:
The recovered local rollout telemetry records very large aggregate model activity during the reset-to-exhaustion period.

The overwhelming majority was associated with security-scan and subagent sessions.

I am deliberately not treating the raw token count as equivalent to billable credits or weekly allowance units, because the weighting rules are not exposed in these logs.

The important observation is the scale of repeated concurrent model/context processing generated by one security assessment.

Secondary limit:
During the successful security-scan activity, the local rate-limit telemetry repeatedly reported:

primary.window_minutes = 10080
secondary = null

If a shorter/5-hour Work/Codex safeguard is expected to apply to this workload, it does not appear in the captured telemetry.

Questions:

  1. Is this level of discovery-worker/subagent fan-out expected for one Codex Security assessment?
  2. Should new Standard discovery workers continue being created when weekly usage is already above ~95%?
  3. Should a high-cost interrupted scan automatically continue expanding immediately after a fresh usage reset?
  4. Are interrupted/retried/replacement workers independently counted toward usage?
  5. Is there a task-wide usage budget for multi-agent Codex Security scans?
  6. Is secondary = null expected for this workload?
  7. Can Codex expose or enforce configurable usage thresholds before spawning additional workers?
  8. Could the final task status use the latest rate-limit telemetry instead of repeating an earlier usage reading?

Related issues:

I have a sanitised evidence PDF containing quota progression timestamps, reset and limit telemetry, worker timeline, the 6%-reported vs 69%-actual discrepancy, and source-log SHA-256 hashes.

I am not posting raw rollout logs publicly because they contain private project data.

What steps can reproduce the bug?

A single requested Codex Security assessment expanded into a large worker/subagent tree and consumed an entire freshly reset weekly Work/Codex allowance in approximately 44 minutes.

Local Codex rollout telemetry confirms:

  • the weekly reset succeeded and started at 0% usage;
  • primary.window_minutes = 10080 (7 days);
  • secondary = null;
  • usage then rose continuously to 100% in ~44 minutes;
  • an explicit usage_limit_exceeded error followed seconds later.

The security workflow generated numbered Standard discovery workers through at least discovery-0013 before exhaustion.

Each Standard discovery-worker configuration included:

subagents = 3

discovery-0013 was launched when weekly usage was already approximately 97-98%, yet it was still instructed to run another Standard security scan with subagents.

After the weekly allowance reached 100%, the orchestration later attempted to create discovery-0014. That attempt was blocked by the usage limit.

Across the reset-to-exhaustion window, the recovered telemetry shows dozens of newly created Codex sessions, overwhelmingly security-scan workers and subagents.

There was also a usage-reporting problem. A diagnostic task eventually reported:

“Current Codex allowance is healthy: 6% used when checked.”

However, that 6% was an earlier reading. By the time that same task completed, its own rate-limit telemetry showed:

used_percent = 69

So the final user-facing status materially understated current usage while concurrent agentic work was still running.

I have not intentionally reproduced this incident because doing so risks consuming another complete weekly allowance.

Related issues:

I have a sanitised evidence PDF with the quota timeline, worker timeline, telemetry and source-log hashes. Raw rollout logs are not being posted publicly because they contain private project data.

What is the expected behavior?

A single requested Codex Security assessment should remain within a bounded and understandable resource envelope.

Expected behaviour:

  • Worker/subagent fan-out should be limited or budgeted at the parent-task level.
  • New Standard discovery workers should not continue being created when weekly usage is already critically high.
  • Resuming an interrupted high-cost scan after a reset should not automatically restart or expand large amounts of agentic work without clear user confirmation.
  • The task should report current usage accurately using the latest available telemetry.
  • If a shorter/secondary usage safeguard applies, it should prevent a single burst of automated multi-agent activity from consuming an entire weekly allowance in under an hour.
  • If no shorter safeguard applies, the user should receive a clear warning before additional workers are spawned at very high weekly usage.
  • Once the weekly limit is exhausted, the orchestration should stop attempting to create further workers.

Additional information

I have an open OpenAI Support case for the same incident.

I recovered the local Codex rollout telemetry covering the reset, the complete 0% → 100% usage progression, worker/subagent creation, the first usage_limit_exceeded event, and activity attempted after exhaustion.

I also created a sanitised evidence PDF containing:

  • the quota timeline;
  • worker/subagent timeline;
  • relevant telemetry values;
  • the stale 6%-reported vs 69%-actual discrepancy;
  • SHA-256 hashes identifying the original local rollout logs.

The raw logs are not being attached publicly because they contain private project information. I can provide additional sanitised records or specific telemetry fields if a maintainer requests them.

The GitHub form is also showing potential duplicate issues. I am happy for this report to be linked/merged with an existing issue if one covers the same Codex Security worker-fan-out behaviour.

CLI/SDK project triage, October 13, 2026

Scope: severe resource consumption during shared Codex Security orchestration. Preserve this existing report rather than create a duplicate. The report is from the desktop plugin, not a verified standalone CLI billing defect.

Original public report #46819, September 20, describes a fresh weekly allowance going from 0% to 100% used in about 44 minutes. The reporter observed another discovery worker at 97–98% usage and an attempted worker after exhaustion. Their later comment says analytics attributed 47.6% to subagents, 46.3% to security scans, and 6.1% to agent-created tasks. These are reporter-provided telemetry and analytics, not measurements independently reproduced in this triage.

Related independent evidence: #46681 reports unexpectedly high quota depletion with an incomplete explanation of worker usage. CLI report #849 reports interrupted audits and consumed allowance, but explicitly does not prove incorrect billing. The September 9 usage-display incident was reportedly fixed and resets restored. That does not establish resolution of the earlier incomplete-audit or retry-accounting questions.

Purported fixes: PR #465 remains open and proposes enforcement of requested estimated-cost budgets using attributable usage, including resumed and archived workers. PR #1103 also remains open and proposes per-child usage reconciliation during composed scans. Neither has been shown to fix this subscription-quota incident. Estimated USD cost, raw tokens, and subscription allowance are different measures. In-flight work can overshoot an estimate.

Completion: correlate parent and child work, retries, cached context, and saved usage for a representative affected scan. Verify that existing requested limits are enforced across the entire worker tree and that no further work is launched after a terminal usage-limit failure. Explain intended usage and restart costs, preserving accepted results where supported. Close only with evidence of the resolved behavior or a clear finding that the reported behavior was expected with corrected user guidance.

High priority due to substantial consumed allowance without a completed assessment. Current-version reproduction and root cause remain unverified.

Activity

  1. added
    app
    on Sep 20, 2026
  2. added
    bug
    subagent
    rate-limits
    model-behavior
    on Sep 20, 2026
  3. topzuk commented on Sep 20, 2026

    @topzuk
    Author

    OpenAI-Support-Codex-Usage-Evidence-2026-09-20.pdf

    Sanitised evidence PDF with the reset-to-exhaustion quota timeline, worker/subagent fan-out, usage telemetry, and source-log hashes:

  4. topzuk commented on Sep 20, 2026

    @topzuk
    Author

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action
    Thanks. I reviewed #46681, #46740 and #46023.

    #46681 appears the closest because it also concerns rapid weekly usage consumption during a Codex Security scan, but I believe this report adds distinct diagnostic evidence:

    • a confirmed fresh weekly reset beginning at 0%;
    • complete local telemetry showing 0% → 100% in approximately 44 minutes;
    • continued Standard discovery-worker creation when weekly usage was already around 97–98%;
    • an attempted additional discovery worker after the weekly allowance was exhausted;
    • a user-facing task reporting an earlier 6% usage reading even though its own final telemetry showed 69%;
    • a sanitised evidence PDF containing the quota and worker timelines.

    #46740 concerns prolonged discovery/resource use, while #46023 concerns broader subagent/context amplification.

    I’m therefore leaving #46819 open for now so maintainers can decide whether these incidents share the same root cause and should be merged.

  5. topzuk commented on Sep 20, 2026

    @topzuk
    Author

    The delayed Analytics data has now populated and independently corroborates the local rollout-log analysis.

    For the affected usage spike, OpenAI Analytics attributes the usage by feature as:

    • Subagents: 47.6%
    • Security scan: 46.3%
    • Agent-created tasks: 6.1%

    These total exactly 100%.

    This matches the local Codex telemetry already attached to this issue, which showed the security scan repeatedly creating discovery workers/subagents until the freshly reset weekly allowance reached 100% in approximately 44 minutes.

    Note: the reset occurred at approximately 00:17 BST on 20 September, which is 23:17 UTC on 19 September. The Analytics chart is displayed in UTC, explaining why the large spike appears under 19 September UTC.

    Image
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

    appbugmodel-behaviorrate-limitssubagent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions