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
+29
View File
@@ -4121,3 +4121,32 @@ ASan/UBSan (Debug, leak detection) `evo-network-tests`; clang-tidy 19 on the new
and tests; format check; Windows MSVC 19.44 preset `network` build and CTest 1/1.
Not done: QUIC session handshake (10.3b), durable control lease and serial persistence
across restarts and regions (10.3c), revocation, private-key provisioning tooling.
## 2026-10-03 — M10.3b session login over QUIC (ADR-0091)
Implemented the session-v1 codec (evo_network_protocol), `RegionSessions`
(evo_session_server) and `RegionSessionClient` (evo_session_client); tests
`evo-quic-session-tests` (label `quic`) and codec tests in `evo-network-tests`.
Codec: round trips of every message; every truncation, an extra byte, bad magic, other
version, flags, unknown types and invalid reasons/statuses/zero ids refused.
End to end on loopback QUIC with an injected wall clock: Welcome fields and holder;
replay (`stale_grant`); newer grant superseding the old connection (Close `superseded`);
older unexpired grant refused; refresh accepted, stale and wrong-account refusals with the
session kept; wrong region and stage-signed grant (`wrong_scope`), unknown issuer and a
modified grant (`unauthenticated`); expired grant at login and session expiry closing
only the expired session; client close releasing control; silent peer (`timeout`),
garbage, wrong first message and unknown required feature (`protocol`), other version
(`unsupported_version`); epoch advance (`stale_epoch`) and Welcome with the new epoch;
shutdown; capacity refusal not consuming the grant; region attempt limit.
Found and fixed during development: a connection cap of twice the session limit refused
new logins while refused connections were still flushing their Close (now the transport
limit, which must be at least the session limit).
Executed: Linux GCC 14 preset `quic` build and CTest `-L "quic|network"` 4/4; session
tests 10 consecutive runs 10/10; Clang 19 ASan/UBSan (Debug, leak detection) session and
network tests (msquic itself uninstrumented); clang-tidy 19 on the new sources and tests;
format check; Windows MSVC 19.44 preset `quic` build and CTest 4/4 (binary rebuilt and
timestamp checked).
Not done: wiring into evo-server and the engineering client, the durable control lease
(10.3c), an impairment-relay run of the login path.