# NousResearch/hermes-agent · Credential pool rotation on long quota resets and balancing

## Open now

- 1 issue, 2 PRs open on GitHub.
- #117933: \[Bug\]: Credential pool sleeps through a long Retry-After on an exhausted account instead of rotating to an idle one (quota end signalled by reset horizon, not by message token)
- PR #117941: fix(agent): rotate pooled credentials on long quota resets
- PR #141387: feat(credentials): \`balanced\` pool strategy by quota headroom and cache group

The three members all concern how pooled credentials are chosen under quota limits: one issue reports sleeping through a long Retry-After rather than rotating to an idle account, one PR proposes rotating on long quota resets, and another proposes a \`balanced\` strategy based on quota headroom and cache group. The first two are closely related; the balancing strategy is an adjacent but distinct feature.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #117933: \[Bug\]: Credential pool sleeps through a long Retry-After on an exhausted account instead of rotating to an idle one (quota end signalled by reset horizon, not by message token)

## Prior & competing PRs

- **#117941: fix(agent): rotate pooled credentials on long quota resets**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `agent/agent_runtime_helpers.py`, `agent/credential_pool.py`, `tests/agent/test_credential_pool_routing.py`
- **#141387: feat(credentials): \`balanced\` pool strategy by quota headroom and cache group**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `agent/agent_runtime_helpers.py`, `agent/agent_runtime_helpers_reset_headers.py`, `agent/anthropic_credentials.py`, `agent/auxiliary_unavailable.py`, `agent/chat_completion_helpers.py`, `agent/chat_completion_helpers_relay.py`, `agent/client_lifecycle.py`, `agent/codex_runtime.py`, `agent/credential_pool.py`, `agent/credential_pool_balanced.py`, `agent/credential_pool_cooldown.py`, `agent/credential_pool_model_cooldowns.py`, `agent/credential_pool_quota_window.py`, `agent/credential_pool_timestamps.py`, `agent/rate_limit_credits.py`, `agent/turn_credential_placement.py`, `contributors/emails/[redacted:email]`, `gateway/run_agent_cache.py`, `hermes_cli/auth_commands.py`, `tests/agent/test_anthropic_pool_bound_refresh.py` (+11 more)

## Fix status

- No merged fix on record.
- Subsystem: `agent`
