Files
hermes-agent/hermes_cli
Teknium fb5a7d37be fix(credential-pool): rotate Codex failures to a usable sibling
Three rotation paths gave up or handed back an unusable login while a
healthy sibling sat idle, sending the turn to fallback_providers:

- Unmatched-identity rotation declined whenever only one entry was
  available, even when the pool had a second login that was merely
  cooling (#127722). Decline only for a true single-entry pool; repeats
  stay bounded by the #70401 streak cap.
- A 429 on the priority-0 account let a cached "quota restored" probe
  verdict lift the bench it had just written; the #97315 guard then saw
  the failed entry come back and returned None instead of trying the
  next account (#134327). Rotation now excludes the just-marked entries,
  and a live quota 429 pins the cached probe verdict (including one still
  in flight) to "not restored", so the next turn does not bounce back.
- Rotation selected with token refresh deferred, so an expired Codex
  access token was handed out and the retry 401'd again (#142473). The
  rotation target is refreshed before it is returned.

_rotate_unmatched moves next to the selection code so credential_pool.py
shrinks.

Fixes #127722, fixes #134327, fixes #142473

Co-authored-by: Yagna Vudathu <yagnavudathu@gmail.com>
Co-authored-by: skyeyesec333 <36165556+skyeyesec333@users.noreply.github.com>
2026-12-01 18:50:25 -08:00
..
…
…
…
…
…
…
…
…
…
…
…