Add v5 primitive-life session wire protocol
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m56s
Foundation / checks (client) (push) Successful in 12m41s
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 (postgres) (push) Canceled after 2m43s
Foundation / checks (network) (push) Canceled after 13m22s
Foundation / checks (checks) (push) Canceled after 15m28s

This commit is contained in:
dingo
2026-10-10 13:15:20 -04:00
parent 066b85333b
commit 8c6e244dad
8 changed files with 248 additions and 32 deletions
+21
View File
@@ -0,0 +1,21 @@
# M11 primitive-life session protocol, version 5
Version 5 adds the reliable new-life request family to the v4 session protocol. All
messages 1–17 retain their v4 layout. Version 4 remains the default for existing clients;
per-connection server negotiation is not part of this codec-only gate. A v4 peer rejects
types 18–21. Integers are
little-endian, the 8-byte `EVSN` header has zero flags, and each message has the exact size
below. This schema describes the wire codec only; server admission and durable execution
are separate implementation gates.
| Type | Direction | Payload | Bytes |
|---|---|---|---:|
| 18 PrimitiveLifeRequest | client → server, reliable stream | session u64, epoch u64, request_id u64 | 24 |
| 19 PrimitiveLifeReceipt | server → client, reliable stream | request_id u64, admission status u8 (0–10), server_tick u64 | 17 |
| 20 PrimitiveLifeOutcome | server → client, reliable stream | request_id u64, result u8, life_identity u64, commit_sequence u64 | 25 |
| 21 PrimitiveLifeQuery | client → server, reliable stream | request_id u64 | 8 |
Result values: 1 born (identity and commit sequence must both be nonzero), 2 insufficient
funding, 3 no placement, 4 pending (query only), 5 unknown (query only). Non-born results
carry zero identity and commit sequence. Request IDs are a separate namespace from M10
action IDs. Receipt reports admission only; it does not claim that a life was durably born.