Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/test-layout/layout-combos.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"server-combo-stream-hosted-tool-contract.test.ts": "server",
"server-combo-stream-send-contract.test.ts": "server",
"server-combo-quota-code-provenance.test.ts": "server",
"combo-codex-ws-overload-failover.test.ts": "responses"
"combo-codex-ws-overload-failover.test.ts": "responses",
"combo-cooldown-persistence.test.ts": "routing",
"server-combo-cooldown-recording.test.ts": "server"
}
2 changes: 0 additions & 2 deletions scripts/test-layout/layout.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"owner-registry-isolation.test.ts": "config", "server-combo-stream-required-tool.test.ts": "server", "combo-required-tool-stream-preflight.test.ts": "routing",
"responses-auto-pause-replay-owner.test.ts": "responses", "responses-account-auto-pause.test.ts": "responses", "oauth-account-auto-pause.test.ts": "oauth", "responses-account-auto-pause-wire-owner.test.ts": "responses", "oauth-upsert-paused-api-key.test.ts": "oauth", "management-account-auto-pause.test.ts": "server", "cli-account-key-pause.test.ts": "cli", "oauth-account-auto-pause-revision.test.ts": "oauth", "config-account-auto-pause-revisions.test.ts": "config", "codex-history-pending-wal.test.ts": "codex-integration", "responses-anthropic-billing-send-budget.test.ts": "responses", "anthropic-billing-ownership.test.ts": "adapters/anthropic", "server-anthropic-billing.test.ts": "server", "server-anthropic-billing-boundaries.test.ts": "server", "router-anthropic-billing-failover.test.ts": "routing", "anthropic-billing-refusal.test.ts": "adapters/anthropic", "messages-request-id-headers.test.ts": "claude-integration", "bounded-file-read.test.ts": "lib", "responses-undeclared-tool-guard-inbound.test.ts": "responses", "explicit-empty-tool-catalog.test.ts": "responses", "explicit-empty-tool-catalog-history.test.ts": "responses",
"messages-request-id-endpoint.test.ts": "claude-integration",
"combo-cooldown-persistence.test.ts": "routing",
"anthropic-revoked-token.test.ts": "adapters/anthropic",
"messages-revoked-token.test.ts": "claude-integration",
"anthropic-revoked-token-continuation.test.ts": "adapters/anthropic",
Expand Down Expand Up @@ -1992,7 +1991,6 @@
"web-search-run-turn-loop.test.ts": "web-search",
"responses-run-turn-web-search.test.ts": "responses",
"responses-claude-preflight-lease.test.ts": "responses",
"server-combo-cooldown-recording.test.ts": "server",
"injection-routing-drift.test.ts": "codex-integration", "injection-routing-healer.test.ts": "codex-integration",
"injection-routing-heal-apply.test.ts": "codex-integration", "cli-start-routing-heal-wiring.test.ts": "cli",
"cli-status-codex-routing-drift.test.ts": "cli", "advisor-settings.test.ts": "advisor", "advisor-context.test.ts": "advisor", "advisor-state.test.ts": "advisor", "advisor-guard.test.ts": "advisor", "advisor-consult.test.ts": "advisor", "advisor-plan.test.ts": "advisor", "advisor-responses-wiring.test.ts": "advisor", "advisor-routes.test.ts": "server", "advisor-internal-authority.test.ts": "advisor", "advisor-core-boundary.test.ts": "advisor", "advisor-continuation-limit.test.ts": "advisor", "advisor-authority-transport.test.ts": "advisor", "advisor-evidence.test.ts": "advisor", "advisor-budget.test.ts": "advisor", "advisor-adaptive.test.ts": "advisor", "advisor-scope-transport.test.ts": "advisor", "local-credentials.test.ts": "cli", "local-credential-generation.test.ts": "config"
Expand Down
5 changes: 1 addition & 4 deletions structure/providers/anthropic-account-pool.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,7 @@ flight on the credential actually dispatched, and publishes only while the insta
quota epoch, configured row, account incarnation and login identity are unchanged.
`captureProviderAccountQuotaEpoch(instance)` and the cache keys in
`src/providers/quota/account-cache.ts` are per instance, so clearing Pool 2 quota never
invalidates the primary pool.

With the pool on and two or more accounts, `fetchAnthropicQuota` (`src/providers/quota/vendor-probes-oauth.ts`) reports a display-only estimate via `aggregateCodexPoolCapacity`: seats weigh 1, inactive seats use their last-good row (no extra probes), paused, reauth or stale seats count as incomplete coverage.
Every Anthropic report is current only while the pool switch and each seat's id, paused and reauth state are unchanged; pool off or one account keeps the active report. Quota reset detection observes the active seat's own reading (`observedQuotaFor`), never the estimate, which has no reset times (`tests/providers/provider-anthropic-pool-capacity.test.ts`).
invalidates the primary pool. With the pool on and two or more accounts, `fetchAnthropicQuota` (`src/providers/quota/vendor-probes-oauth.ts`) reports a display-only estimate via `aggregateCodexPoolCapacity`: seats weigh 1, inactive seats use their last-good row (no extra probes), paused, reauth or stale seats count as incomplete coverage. Every Anthropic report is current only while the pool switch and each seat's id, paused and reauth state are unchanged; pool off or one account keeps the active report. Quota reset detection observes the active seat's own reading (`observedQuotaFor`), never the estimate, which has no reset times (`tests/providers/provider-anthropic-pool-capacity.test.ts`).

A probe that yields no quota names one closed `quotaFailure` code from
`src/providers/quota/failure-codes.ts`: `account_unavailable` when no usable credential could
Expand Down
Loading