Add M10.8b signed handoff tickets and ticket admission
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m55s
Foundation / checks (client) (push) Successful in 12m40s
Foundation / checks (postgres) (push) Canceled after 4s
Foundation / checks (network) (push) Successful in 12m53s
Foundation / checks (tsan) (push) Successful in 7m55s
Foundation / checks (checks) (push) Successful in 31m47s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m55s
Foundation / checks (client) (push) Successful in 12m40s
Foundation / checks (postgres) (push) Canceled after 4s
Foundation / checks (network) (push) Successful in 12m53s
Foundation / checks (tsan) (push) Successful in 7m55s
Foundation / checks (checks) (push) Successful in 31m47s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
ADR-0096. A source region's handoff key signs a 160-byte ticket for one probe transfer, account and destination; it rides the Hello grant slot and is verified against neighbour keys bound to their regions. SessionControl admits a ticket once per region, superseding like a grant, with the session ending at the client's original grant expiry. RegionSessions makes the destination's durable step first: PostgresHandoffLedger stages and commits the transfer and moves the account's control, idempotently. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -114,3 +114,32 @@ controllable before M11.
|
||||
The dev migrations image must be rebuilt (the v10 lesson).
|
||||
- A probe's durable position can lag its in-memory position by up to a session:
|
||||
presentation-only state, never biological.
|
||||
|
||||
## M10.8b tickets and ticket admission (2026-10-06)
|
||||
- **Ticket** ([handoff-ticket-v1](../../schemas/network/handoff-ticket-v1.md)): 160 bytes,
|
||||
the same as a grant, so it rides the `Hello` grant slot with no protocol change. Fields:
|
||||
- an "EVO-HANDOFF" marker, version, environment and key id;
|
||||
- the transfer id, account, world, frame, source and destination;
|
||||
- the ticket expiry (at most 120 s ahead) and the session expiry, copied from the
|
||||
client's grant at the source so a crossing never extends a session;
|
||||
- an ECDSA P-256 signature.
|
||||
|
||||
Each region has its own handoff key (`HandoffSigningKey`). A destination registers its
|
||||
neighbours' public keys, each bound to its source region (`HandoffVerifier`, at most
|
||||
32), and accepts a ticket only if the signing key belongs to the claimed source, the world
|
||||
and destination are its own, and the times hold. Grants and tickets never verify as each
|
||||
other.
|
||||
- **Admission.** `RegionSessions` routes a Hello by the ticket marker. A ticket is verified,
|
||||
then `SessionControl::check_handoff` runs: single use per region, the attempt counted,
|
||||
supersedes like a grant, serials untouched. Then the host's `HandoffLedger` makes it
|
||||
durable, and only then does the local `open_handoff` run. The session expiry is the
|
||||
ticket's, capped at the maximum grant lifetime from now. Renewal and release use the
|
||||
ControlLedger under the generation the handoff returned. A handoff ledger without a
|
||||
control ledger is a configuration error.
|
||||
- **PostgreSQL** (`PostgresHandoffLedger`): stage (under the current lease, again after a
|
||||
restart), commit, then `handoff_account_control`, all idempotent, so a retried login
|
||||
converges. Unknown, aborted, foreign-account, foreign-source or foreign-region transfers
|
||||
are refused (`unauthenticated`); a fenced lease gives `shutdown`; undecided gives
|
||||
`capacity`.
|
||||
- Not yet: the source side (freeze at the edge, prepare, release control, offer the ticket),
|
||||
the client switch, keys in evo-server and the dev tool (10.8c).
|
||||
|
||||
Reference in New Issue
Block a user