Files
hermes-agent/tests/agent
Teknium d0f69f7fcb fix(nous): order shared-store freshness by issue time, not expiry
Review finding (critical): a rotation always issues LATER but not always
later-EXPIRING (the Portal sets access TTLs per client and per issue). Ordering
by expiry first made the renewal guard refuse a fresh, shorter-lived pair and the
next merge adopt the redeemed one (reuse detection -> forced re-login), and made
the push write a redeemed pair over a sibling's live one.

The shared-store merge, the renewal write guard and the profile-fork heal
(auth_oauth_grants) now share ONE comparator, oauth_pair_order: JWT iat, then
last_refresh / obtained_at; expiry only when a side lacks an issue stamp. The
heal still always consolidates to one copy; only which copy wins changed.
2026-11-02 06:58:25 -08:00
..