Add M10.4c evo-server QUIC listener and headless session client
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m46s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 3m44s
Foundation / checks (client) (push) Canceled after 3m49s
Foundation / checks (network) (push) Canceled after 1m59s

evo-server gains an opt-in M10 listener (--m10-*, QUIC builds only): RegionSessions
with the PostgreSQL control and action ledgers on their own connection under the
host's lease, carried actions submitted to the host and its acknowledgements and
drops turned into outcomes. evo-session-probe is a dev-only headless client. Real
process tests cover intentions, durable action outcomes, SIGKILL before and after
an action's commit, duplicate retries and the probe. The simulated watermark now
reaches every session every tick, so clients always know the server tick.
ADR-0092.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-04 09:20:55 -04:00
co-authored by Claude Opus 5.5
parent 69f3ad7cf8
commit 0bf9901c7f
27 changed files with 1053 additions and 42 deletions
+33
View File
@@ -4276,3 +4276,36 @@ session and network tests; Windows MSVC 19.44 preset `quic` build and CTest 4/4
rebuilt, timestamps checked).
Not done: evo-server wiring, headless client and process kill tests with real sessions
(10.4c); ASan of the PostgreSQL suite; a real two-region move with a pending action.
## 2026-10-04 — M10.4c evo-server QUIC listener and headless client (ADR-0092)
Implemented the opt-in `--m10-*` listener in evo-server (`apps/evo-server/m10_bridge.hpp`:
RegionSessions with PostgreSQL control and action ledgers on their own `PgSlot`, under
`RegionHost::authority()`), `evo-session-probe` (dev issuer keys, signed dev grants, login,
intentions, actions, queries) and `tests/region_m10_session_tests.cpp` (evo-postgres-tests
with EVO_BUILD_QUIC; region 7/151).
Process evidence (real evo-server, synthetic ticks, fast lease, in-process QUIC clients):
intention receipt and watermark; action receipt then a committed outcome matching its
durable record; SIGKILL after the record of a second action exists, restart, a newer grant:
the query answers the record, and a retry of the first action is a duplicate with the same
outcome; SIGKILL while a third action's tick had not run: no record, the next process
answers `unknown`, the retry is admitted and commits once; the probe logs in, gets
admitted intentions and two committed actions and exits 0; SIGTERM drains with exit 0.
Found and fixed with real processes: clients that sent only actions learned the server tick
too rarely (watermarks repeated every 20 ticks and only after intentions), so a later
action named a past tick (`outside_window`); the watermark now goes to every session every
simulated tick. The first intention after Welcome can be refused while the QUIC datagram
extension is not yet negotiated: tests retry (the probe retries each tick) and the client
API documents it. Also a shadowed variable in the probe (MSVC C4456, GCC -Wshadow) and
unchecked optional accesses (tidy).
Executed: Linux GCC 14 `tools/ci/postgres-check.sh` with EVO_BUILD_QUIC (20 integration and
rehearsal suites including the M10 process test, migration and audit probes); clang-tidy 19
on evo-server, the probe, the ledgers, the host and the M10/action/control tests (Clang
build with PostgreSQL, network and QUIC) and on the session sources and tests; format
check; GCC preset `quic` CTest 4/4, session tests 10/10 repeated; Clang 19 ASan/UBSan
session and network tests; Windows MSVC 19.44 preset `quic` build (including the probe) and
CTest 4/4 (binaries rebuilt, timestamps checked).
Not done: the engineering GUI client on M10 sessions; packaging (the server image does not
enable QUIC); a two-process cross-region move; ASan of the PostgreSQL suite.