Three serialization points made reconnecting to several environments feel
sequential even though the supervisor fan-out is parallel:
- The foreground liveness probe waited 15s on half-open sockets before
starting a reconnect. It now times out after 5s.
- Remote DPoP tokens lived inside the single connection-catalog SecureStore
document, so every environment's token read/write serialized on one
semaphore and rewrote the whole catalog to the Keychain. Tokens now live
under per-environment keys with an in-memory cache and lazy migration.
- The relay access-token cache held its lock across the network token
exchange, so cache hits queued behind a stale account's round trip. Cache
hits now take a lock-free fast path.
Also reset the retry backoff ladder on application-active, since network
conditions usually changed while backgrounded.
Co-Authored-By: Claude Fable 5 <[email protected]>