Files
hermes-agent/agent
Teknium 7c7daa25c6 fix(auth): judge each Nous token by its own arrival time
Review follow-up. The agent key and the access token can come from different
moments: a connectors refresh rotates the access token and its obtained_at
but leaves the older agent key in place. Pairing the agent key with the
access token's arrival time could make a 16-minute-old key look fresh.

- _agent_key_is_usable and PooledCredential.runtime_api_key read
  agent_key_obtained_at for the agent key and obtained_at for the access token.
- A newly selected agent key records the access token's arrival time, not
  "now", so both fields describe the same token.
- The auxiliary pool snapshots (_read_nous_auth, _resolve_nous_pool_runtime_api,
  nous_auth_keepalive._entry_state) carry both arrival times, so side tasks
  judge the same token the same way the main loop does.
2026-11-19 11:00:21 -08:00
..
…