Add M10.8c-2 client handoff switch and evo-server handoff configuration
Foundation / checks (deploy) (push) Successful in 3m20s
Foundation / checks (ecs) (push) Successful in 2m0s
Foundation / checks (client) (push) Failing after 12m9s
Foundation / checks (network) (push) Successful in 13m2s
Foundation / checks (tsan) (push) Successful in 8m7s
Foundation / checks (checks) (push) Successful in 32m1s
Foundation / checks (postgres) (push) Successful in 42m43s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped

ADR-0096. The engineering client follows a HandoffOffer into the next region
with its ticket (no grant, no pause, the view kept) and a Redirect to the
probe's owner, picking grants by region claim in rising serial order.
evo-server gains --m10-area, --m10-handoff-key and --m10-neighbour (dev
only), wiring the PostgreSQL probe and handoff ledgers; the probe tool writes
multi-region bundles and reports handoffs and redirects.

Refreshes the dev session window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-06 21:56:42 -04:00
co-authored by Claude Opus 5.5
parent a7a3d12283
commit dabeee8e8b
14 changed files with 635 additions and 129 deletions
+33
View File
@@ -187,3 +187,36 @@ controllable before M11.
It passed 3 times in a row on Linux and also passes on Windows.
- Not yet: the engineering client's switch (offer, redirect, multi-region grants),
evo-server and probe configuration (10.8c-2), and real processes on PostgreSQL (10.8d).
## M10.8c-2 client switch and configuration (2026-10-06)
- **Engineering client** (`apps/evo-client/remote_session.hpp`):
- On `Close(handed_off)` after a HandoffOffer it learns the destination's address (one
lookup), keeps the frozen view, uses no grant and connects at once with the ticket. The
panel shows "handing off", then the region and the count of crossings.
- On `Close(moved)` after a Redirect it connects to the owner with a grant for that
region.
- Grants are picked by their region claim. They are used in rising serial order
world-wide (durable control refuses a serial not above the newest), and a grant
outdated by one already used is discarded.
- A new region or epoch resets the views.
- **evo-server** (dev only, with the M10 listener):
- `--m10-area X0,Y0,X1,Y1`: the region's cells.
- `--m10-handoff-key FILE`: this region's P-256 scalar; the key id is the region id.
- `--m10-neighbour REGION=X0,Y0,X1,Y1=HOST:PORT=SERVER_NAME=PUBLIC_KEY_FILE`: up to 8;
the neighbour's key id is its region id.
A handoff key needs neighbours and an area, and runs with the PostgreSQL probe and
handoff ledgers on the host's connection slot. Without these flags behaviour is as
before (in-memory markers).
- **Probe tool:**
- `grants` accepts `--region` several times (COUNT per region, serials interleaved in
order);
- `keys` makes handoff key pairs too;
- `run` prints `handoff` and `redirect` lines.
- **Evidence:**
- `client-remote-session`: the GUI session crosses into region 2 with the ticket (no
grant used, connected, marker past the border, probe owned there); a second client
with a newer bundle logging in at region 1 is redirected and takes over at region 2.
It passed 3 times in a row on Linux and also passes on Windows.
- The test fixture `tests/fixtures/fake_handoff_world.hpp` (the v12 state machine) is
shared by both handoff tests.