Session lifecycle
A session binds an authenticated subject to a workspace for a bounded interval.
Opening and renewal
Issue a new session after checking membership. Renewal extends the lease only after resolving that membership again. Preserve the parent session ID for audit correlation.
State transitions
| From | Trigger | To |
|---|---|---|
active |
lease deadline reached |
expired |
active |
grant withdrawn |
revoked |
active |
client closes |
closed |