Add M10.3b session login over QUIC
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 3m13s
Foundation / checks (client) (push) Successful in 12m12s
Foundation / checks (network) (push) Successful in 8m56s
Foundation / checks (tsan) (push) Successful in 7m42s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 19m14s
Foundation / checks (checks) (push) Canceled after 31m28s

Session protocol v1 session messages (Hello with grant, Welcome, Refresh,
RefreshResult, Close with reasons) on the QUIC reliable stream. RegionSessions
verifies grants with the issuer public keys and admits them through SessionControl:
a newer grant closes the account's old connection as superseded, expiry and epoch
advances close sessions, every close is announced and flushed. RegionSessionClient
logs in, refreshes in place and reports why a session ended. ADR-0091.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-03 21:12:00 -04:00
co-authored by Claude Opus 5.5
parent 01b4b06a09
commit 7956143cd8
17 changed files with 1262 additions and 7 deletions
@@ -84,3 +84,22 @@ are later work behind these interfaces.
never logged; revocation (bans) and channel binding are not designed yet.
- Private-key provisioning: `GrantSigningKey::import` takes a raw 32-byte P-256 scalar;
a provisioning tool and secret handling come with the issuer service.
## M10.3b implementation (2026-10-03)
Session protocol v1 session messages ([session-v1](../../schemas/network/session-v1.md)):
Hello (grant), Welcome, Refresh, RefreshResult and Close with a reason, each a fixed-size
message with an `EVSN` header on the QUIC reliable stream.
- **Region side** (`RegionSessions`, src/server/session): owns the QUIC endpoint, the
verifier and SessionControl on the region host's thread. Hello deadline 5 s; region
attempts counted before signature work; a takeover closes the previous connection with
`superseded` before Welcome; grant expiry and epoch advances close sessions; every
close sends Close and then closes the connection after a flush of at most 1 s. A peer
that closes its own connection is reported as `client_closed` (the client's Close can
be discarded by its own immediate close). Connections are bounded by the transport limit
(at least the session limit; the rest is headroom for logins and closes still flushing).
Events carry account log labels only.
- **Client side** (`RegionSessionClient`, src/client/session): sends Hello when the pinned
connection is up and then zeroes its copy of the grant; Welcome deadline 5 s; refresh in
place; any Close, malformed message, deadline or transport loss ends the session.
- Not yet wired into evo-server or the engineering client: they keep the M9 dev path
until the durable control lease (10.3c) exists, so nothing deploys M10 sessions.