Persist primitive life outcomes across control moves
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m57s
Foundation / checks (client) (push) Successful in 12m36s
Foundation / checks (network) (push) Successful in 13m43s
Foundation / checks (tsan) (push) Successful in 8m14s
Foundation / checks (postgres) (push) Failing after 17m26s
Foundation / checks (checks) (push) Successful in 33m23s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped

This commit is contained in:
dingo
2026-10-10 13:52:43 -04:00
parent f92198fd50
commit ea07d7c1f5
17 changed files with 303 additions and 83 deletions
+13 -5
View File
@@ -24,10 +24,13 @@ resolve a life request by assumption.
| 1 | Insufficient funding |
| 2 | No placement/capacity |
| 3 | Cancelled |
| 4 | Existing life already reserved or published |
One unrejected reservation per world/account is enforced by a partial unique
index. Rejected rows remain permanently queryable by retry. A different request
may follow rejection and gets a new identity. There is no deletion API.
index. Rejected rows remain permanently queryable by retry. A conflicting new
request now gets its own durable `existing_life` refusal row and consumes an
identity (gaps are permitted). A different request may follow a final rejection
and gets a new identity. There is no deletion API.
`reserve_primitive_life` requires the exact region lease and current durable
account-control generation. Exact retry returns the original identity, owner and
@@ -47,9 +50,14 @@ tables or internal control helper. Migration's effective privilege audit covers
these additions, including no-op migration runs.
A takeover may inspect its old reservation before its session wait expires, but
gets no biological control from it. The owner region stays unchanged. Session
admission must still honor ADR-0091's takeover wait before originating gameplay.
Final spawn success, checkpoint publication and reconciliation are 11.2c-2/d.
gets no biological control from it. When durable account control changes region
or region epoch, the control transaction atomically marks any unpublished old
reservation cancelled. A published life binding is never changed. Retrying the
cancelled request returns that immutable result; starting again requires a new
request. Session admission must still honor ADR-0091's takeover wait before
originating gameplay. `query_primitive_life` resolves the world/account/request
record for the authenticated current controller, independent of reservation
region, including final refusals and published commit identity/sequence.
Validation: `tools/ci/postgres-check.sh --life-reservations-only` starts a fresh
local socket-only PostgreSQL test cluster. The full postgres-check also executes
+5 -2
View File
@@ -16,6 +16,9 @@ are separate implementation gates.
| 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
funding, 3 no placement, 4 existing life, 5 cancelled, 6 pending (query only), 7 unknown
(query only). Non-born results carry zero identity and commit sequence. A region-control
move durably cancels an unpublished reservation; retrying that request returns cancelled
and a new request is required. `existing life` is recorded for the conflicting request,
so its exact retry/query remains stable. Request IDs are a separate namespace from M10
action IDs. Receipt reports admission only; it does not claim that a life was durably born.