Skip to content
Back to skills

Codexloop Quota And Capacity

ASecurity

QuotaExhausted has no reset field, body-first classification ladder, and waitability rules. Use when working with capacity.py or classify.py.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentspythonbackend

Works with

  • terminal

Security analysis

A100/100

Scanned September 19, 2026

npx -y skills add the-vibey-project/vibey --skill codexloop-quota-and-capacity --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codexloop Quota And Capacity?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codexloop Quota And Capacity
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/the-vibey-project-codexloop-quota-and-capacity/badge)](https://www.skillsdirectory.com/skills/the-vibey-project-codexloop-quota-and-capacity)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: codexloop-quota-and-capacity
description: QuotaExhausted has no reset field, body-first classification ladder, and waitability rules. Use when working with capacity.py or classify.py.
allowed-tools: Read Grep
---

# codexloop quota and capacity

`QuotaExhausted` is a billing wall with no `resets_at` — it is **never
waitable** and always needs a human to top up. Rate-limit windows *are*
waitable.

## CapacityState variants

```python
Available  # green light
ThrottleExhausted  # retry_after: timedelta | None
WindowExhausted  # resets_at: datetime | None, window: str
QuotaExhausted  # reason: str — TERMINAL, never waitable
AuthFailed  # reason: str — TERMINAL
TransientBackendError  # retry_after: timedelta | None
```

`is_waitable(state)` returns `False` only for `QuotaExhausted` and
`AuthFailed`.

## Body-first classification

`classify(signals)` in `domain/classify.py` maps `TurnSignals` to a
`CapacityState` using this ladder:

1. **Body wins.** `error.code` / `error.type` outrank HTTP status.
2. Auth: `error.code` / `error.type` in `ErrorClass.AUTH`, or status 401
   → `AuthFailed`.
3. Quota: `error.code` / `error.type` in `ErrorClass.QUOTA` →
   `QuotaExhausted` (terminal).
4. Window: `ErrorClass.WINDOW` → `WindowExhausted` with `resets_at` from
   plan windows.
5. Throttle: `ErrorClass.THROTTLE` → `ThrottleExhausted` with
   `retry_after`.
6. Transient: `ErrorClass.TRANSIENT` or status 5xx →
   `TransientBackendError`.
7. Status 429 with no body marker → `WindowExhausted(resets_at=None)`.
8. Fallback: `Available`.

High `used_percent` never outranks a billing marker. Completion claims
never outrank capacity rejection.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…