Session management
Runtime connection sessions resolve verified actor/scope through client.session(). Host authentication refresh and Cortex resource grants are independent lifecycles; a current host token can coexist with a revoked Cortex grant.
Own a client/transport per protected view. Refresh through refreshAuth, clear all private state at authority loss, and close owned resources on sign-out/unmount. A scope/identity change invalidates old handles; ignore late callbacks from superseded connections.
Explicit cortex.sessions records retain application lifecycle metadata, touch/end and idle expiry. They do not authenticate the runtime or replace current principal/membership/grants. See session domain API, auth integration and streaming.