Kimi 403 usage-limit errors are classified as auth failures; shared quota needs a dispatch gate
Author: evan188199-techCreated Sep 30, 2026Updated Sep 30, 2026
Problem
Kimi Code can return HTTP 403 with a message such as You've reached your 5-hour usage limit. taskfailure.Classify currently checks bare 401/403 before quota-message witnesses, so this is recorded as agent_error.provider_auth_or_access and can be presented as an authentication problem. Multiple agents using the same subscription can then be manually or automatically dispatched independently, producing repeated failed runs while the account is exhausted.
Expected behavior
- A specific usage-limit witness takes precedence over the generic 403 auth code. Unrelated 403 access denials remain auth failures; concurrency-limit text remains capacity/rate-limit.
- Operators can assign agents to the same non-secret quota group. A confirmed account quota failure blocks new automatic dispatches for that group, with a visible reason. Recovery requires an explicit operator action after checking the provider reset; clearing the block does not replay completed or parked work.
- Existing agents without a configured quota group retain current behavior.
Reproduction / acceptance
- Classify
API Error: 403 ... You've reached your 5-hour usage limitand assertprovider_quota_limit. - Run two fake Kimi agents sharing one quota group. A confirmed quota failure from one prevents the other from starting a new paid run; an unrelated group remains claimable.
- Check manual unblock, concurrent claims, and restart persistence. No real provider credentials or account calls are required.
This report uses a synthetic error and does not disclose any self-hosted account data.
Source: multica-ai/multica