Add M10.3a account-bound session grants and region session control
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m47s
Foundation / checks (client) (push) Failing after 9m42s
Foundation / checks (network) (push) Successful in 8m49s
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 8m13s
Foundation / checks (tsan) (push) Canceled after 7m13s
Foundation / checks (checks) (push) Canceled after 17m58s

Provider-independent 128-bit AccountIds; ECDSA P-256 session grants v1 signed by
issuer keys and verified by regions with public keys only, the environment byte
signed so dev grants never verify in stage or World0. Per-account serials make the
newest grant win: replay and older stolen grants are refused, a newer grant replaces
the account's session, and refresh renews in place. Attempt rates and capacities
are bounded. The evo_identity library provides the provider, account directory and
grant issuer interfaces with a dev-only test provider. ADR-0091.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-03 20:54:04 -04:00
co-authored by Claude Opus 5.5
parent 34e142f68d
commit 01b4b06a09
17 changed files with 1409 additions and 7 deletions
+30
View File
@@ -4087,7 +4087,37 @@ extension was negotiated (measurement now waits for it); clang-tidy widening fin
Executed: Linux format check, GCC 14 build, CTest `-L quic` 2/2, clang-tidy 19 on the tool
and relay; Windows MSVC preset `quic` build and CTest 3/3; both measurement runs.
Correction (later the same day): the Windows build preceded the final formatting pass,
which sorted `<timeapi.h>` before `<windows.h>`; the committed tool did not compile with
MSVC. Fixed in the next commit (separate include block); MSVC preset `quic` rebuilt, CTest
3/3 and a 2 s measurement run. The `-Action test` step of windows-check does not build:
always run `-Action build` first.
Limits: no kernel TCP/netem comparison (user-space relay by decision), single host and
loopback, development hardware, 15 samples of 16 KiB messages per configuration, run
length cuts off in-flight stream messages; msquic not under sanitizers; quic preset not
in CI.
## 2026-10-03 — M10.3a session grants, identity adapter and session control (ADR-0091)
Implemented `SessionControl` and `AccountId` (evo_network_protocol), ECDSA P-256 session
grants `GrantSigningKey`/`GrantVerifier` (evo_network_tls, Mbed TLS PSA) and the identity
adapter `evo_identity` (DevTestProvider, MemoryAccountDirectory, GrantIssuer); tests in
`tests/network_control.cpp` (part of `evo-network-tests`, label `network`).
Tests: sign/verify round trip; every one of the 160 grant bytes flipped is refused (key
id bytes as unknown key, others as bad signature); truncated and M9 dev grants refused;
dev-signed grants refused by stage and World0 verifiers with and without the dev public
key configured; key rotation, duplicate and excess keys, relabelled key id, invalid
point, key import and moved-from keys; DevTestProvider refused outside dev, credential
syntax; directory stability, capacity and serial/issue-time monotonicity; issuer end to
end into session control and environment mismatch; control scope (world, region,
environment), lifetime, skew and expiry; replay and older unexpired grants refused
(`stale_grant`), newest grant superseding the previous session, account and region
attempt limits with window reset, refused open not consuming the grant, account capacity
failing closed until older grants can no longer verify, refresh (extension, stale,
wrong account, unknown session), grant expiry and epoch change closing sessions; log label.
Executed: Linux GCC 14 preset `network` build and CTest `-L network` 1/1; Clang 19
ASan/UBSan (Debug, leak detection) `evo-network-tests`; clang-tidy 19 on the new sources
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.