Claude quota identity: different organization contexts for one user resolve to the same usage record
Summary
Two Claude OAuth profiles for the same user, but with different organization contexts and different native subscription-tier descriptors, resolve to the same Happier quota record. Alongside this collision, the pool displayed usable meters while its materialized credentials failed provider requests. Binding the session directly to the usable profile recovered the same native conversation.
Related: #641. This also corrects the earlier suggestion there that matching user identity establishes shared quota. That inference was not justified.
Observed evidence
- CLI and daemon: stable 0.2.16; Windows; self-hosted deployment.
- The two native configurations had the same
accountUuid, differentorganizationUuidvalues, and differentrateLimitTierdescriptors. No identity values are included here. - Reading each profile's sealed quota snapshot and decrypting locally produced equal
recordId, equalrecordKey, and equalaccountSubject. The key usedsubjectKind: account,quotaScope: account, and noquotaScopeId. - Both profile reads returned the same meter values and snapshot timestamp, despite the differing effective organization and subscription contexts.
- A controlled test used the same machine, Claude Code 2.1.306, model, and tiny prompt. Tools, MCP servers, settings sources, and session persistence were disabled. The pool authentication home failed; the directly selected profile authentication home succeeded. This removes model, client version, machine, large conversation, and background concurrency as explanations for that pair of results.
- The failing requests were classified by the provider as HTTP 429
rate_limit_error; the native client presented monthly-spend wording. This report does not establish which provider budget caused that rejection. - Automatic pool activity subsequently selected another profile label belonging to the same user identity, returning to the failing subscription context rather than retaining the usable context.
Recovery and scope
The session was backed up and stopped at an idle boundary, bound directly to the usable profile, and resumed with the same native conversation. Its original model then produced substantive responses and resumed saved work. A later user-requested model change was separate from the successful same-model control.
Direct profile selection bypasses automatic pooling for that session; it is a workaround, not a pooling fix. Shared pool policies were not altered. No reset credits were consumed and no spending limits were changed.
An initial live binding request also returned restart_disallowed_by_execution_policy. A group-binding profile hint did not itself change the group's active member; the supported active-member operation was needed. These API semantics should not be mistaken for proof that every same-pool switch requires a restart.
Synthetic reproduction recipe
This is a proposed clean-environment recipe using invented labels and disposable work, not a claim that the recipe was independently reproduced from scratch.
- Connect test profiles A and B for one Claude user with distinct organization or subscription contexts and different effective request allowances.
- Put both in a pool. Arrange for A to reject a minimal request while B can answer the same request.
- Compare quota record identity and displayed meters for A and B. Check whether the account-only key merges these contexts.
- Run identical minimal requests through the materialized pool home and B's direct profile home, holding machine, executable, model, and prompt constant.
- Exercise automatic fallback and inspect the effective organization and tier, rather than verifying only the user identity or shared authentication-home provenance.
- Compare direct profile selection as a continuity-preserving workaround.
Expected behavior and uncertainty
Quota identity, eligibility, and switch verification must preserve distinctions that the provider uses for effective budgets. A matching user identity alone must not establish that two credential contexts are interchangeable.
The observed quota-record collision and differing request outcomes are confirmed. The precise implementation responsible, the provider's ultimate budget boundary, and whether quota identity alone explains the full switching failure remain unconfirmed. The protocol already supports scoped quota keys; this report does not claim that organization scoping is impossible in its schema.
No private logs, screenshots, conversation excerpts, project details, filesystem paths, hostnames, actual account or pool names, email addresses, identity values, or session identifiers are included. The reproduction labels and work are synthetic.
Thanks @RogueKostas. The same-model control and your distinction between the provider user UUID and organization UUID were particularly useful in identifying the correction.
The identity gap is confirmed in Happier: Claude's organization context was not carried consistently through credential metadata, materialized authentication homes, quota observations and recovery matching. The protocol already supports scoped quota identities; the affected paths could still fall back to a user-only identity. Matching user UUIDs therefore did not establish that those credentials had interchangeable allowances.
The correction is now on dev in cd80eb6671. The existing credential, quota and recovery owners now enforce the same context:
- Different organizations for the same Claude user retain separate quota identities, and materialized Claude homes include the selected organization.
- Changing credential context invalidates the old profile's quota binding and cached meter. Token rotation within the same user/organization retains valid usage.
- An observation without a verified organization cannot become shared quota evidence merely because the user matches. Verified current-credential observations can still be used locally while organization context is being resolved.
- Recovery and quota-reset checks verify the current credential context rather than accepting another organization's observation.
Regression and integration checks cover identity isolation, native-home materialization, credential/usage transport, cache invalidation, and recovery matching. Live source CLI/browser checks with synthetic identities also verified that same-organization rotation retains a meter and a different organization clears it. These checks did not reproduce a real vendor spending-cap rejection or replay external OAuth consent.
This fixes the confirmed identity and stale-context paths. It does not establish which provider budget caused your HTTP 429, or prove that every spending-cap failure has this cause. It does not increase spending limits, automatically consume reset credits, or change which quota meters a pool selects.
This is fixed in source, not yet a claim that your installed stable release contains it. Once a preview containing this commit is available, please repeat the same-model pool-versus-direct-profile control and check whether the organization contexts retain separate quota observations. If it still fails, the component versions and sanitized failure classification/limit identifier would help distinguish the remaining provider or recovery issue; please do not post tokens or private session content.
Posted on behalf of @leeroybrun.