Skip to content

A Claude plan-limit warning below 85% pauses Experiments and Scoring; Codex waits for 85% #1618

Closed

Description

@JacobStephens2

This was generated by AI during triage.

What happened

On 2026-10-29, an A/A Experiment finished all 36 of its Trials, which ran on Codex. Its model Grader runs on Claude Code. The Grader's first stream event was a rate_limit_event with status: "allowed_warning", rateLimitType: "seven_day", utilization: 0.77 and surpassedThreshold: 0.75. The five-hour window stood at utilization: 0.05. The Experiment paused, and the seven-day window resets 36 hours later. Grading the whole Experiment is a single Grader session of a few seconds.

Claude and Codex warnings stop Eval work at different points:

  • Claude: any allowed_warning or rejected event, and Claude sends allowed_warning from 75% of a window.
  • Codex: only a quota window at 85% or more, or a reached limit.

The guide documents this as "A Claude plan-limit warning or rejection, or a Codex quota window at 85%". #1008, which built the stop, wanted Experiments and Scoring to stop at a warning so they don't use up quota Runs need. It didn't choose different thresholds per Harness.

Decision (maintainer, 2026-10-29): use the same 85% threshold for Claude as for Codex.

Agent Brief

Category: bug
Summary: A Claude plan-limit warning stops an Experiment or Scoring run only when the reported window is at 85% or more, or when it is a rejection, as Codex's already does.

Current behavior:
Claude's quota decoder treats every rate_limit_event whose rate_limit_info.status is allowed_warning or rejected as reaching the limit.

Desired behavior:

  • rejected stops, whatever the utilization.
  • allowed_warning stops only at 85%. It stops when rate_limit_info.utilization is 0.85 or more, or when any window under rate_limit_info.unifiedWindows that reports utilization is at 0.85 or more. Below that, the event is not a limit and the session carries on.
  • No utilization means stop. An allowed_warning with no readable utilization anywhere still stops, as today, so an unexpected format stays on the safe side.
  • Codex is unchanged. The 85% figure is shared, as one named constant or a doc comment, so the two Harnesses can't drift apart again.
  • Runs are unaffected. Only Experiments and Scoring runs use this stop.

Key interfaces:

  • Claude's quota decoder (interpretation::limits::claude today) decides from status together with utilization and unifiedWindows.*.utilization.
  • docs/guide.md's sentence on plan-limit stops for Scoring, and any matching wording for Experiments, should say "a Claude or Codex quota window at 85%, or a Claude rejection".

Acceptance criteria:

  • A stream test with allowed_warning, seven_day, utilization 0.77 and a five-hour window at 0.05 does not stop.
  • allowed_warning with utilization 0.85, or with any window at 0.85 or more under unifiedWindows, stops.
  • rejected stops at any utilization.
  • allowed_warning with no utilization field stops.
  • The existing Codex limit tests and Experiment pause/resume tests pass.

Out of scope:

  • A User config setting for the threshold.
  • How a paused Experiment's Command outcome is recorded (filed separately).
  • Warning detection for the other Harnesses.

Activity

  1. added
    bug
    ready-for-agent
    in-progress
    and removed
    ready-for-agent
    on Oct 29, 2026
  2. removed
    in-progress
    on Oct 29, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions