Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 5s
Foundation / server-image (push) Successful in 5s
Foundation / postgres-tools (push) Successful in 5s
Foundation / image (push) Successful in 4s
91 lines
4.8 KiB
Markdown
91 lines
4.8 KiB
Markdown
# ADR-0116: Cellular life-owner routing
|
|
|
|
## Status
|
|
|
|
Accepted M11.2 engineering contract under the maintainer's standing
|
|
authorization to proceed with recommendations and revisit decisions after
|
|
implementation. It does not add organism migration or a gameplay rule.
|
|
|
|
## Context
|
|
|
|
ADR-0100 requires reconnect to preserve the account's one nonterminal life and
|
|
route control to the region that owns it. The durable reservation identifies
|
|
that region, but the login path currently claims account control locally before
|
|
resolving biological ownership. The session protocol already has a
|
|
server-to-client `SessionRedirect`, and the engineering client already follows
|
|
it using a region-scoped grant from its grant bundle. Existing M10 neighbor
|
|
addresses describe spatial probe handoff and are not a complete cellular route
|
|
catalog.
|
|
|
|
## Decision
|
|
|
|
- Resolve the account's active life reservation from durable world/account
|
|
state after verifying the signed grant and validating its world, region,
|
|
lifetime and serial, but before claiming durable account control. A query
|
|
failure fails closed. If no nonterminal reservation exists or its owner is
|
|
this region, login proceeds normally. If another region owns it, the session
|
|
sends the existing `SessionRedirect` followed by `Close(moved)` without
|
|
changing account control at the contacted region.
|
|
- Reuse the `SessionRedirect` message inherited by v5-v8. No life identity,
|
|
owner region or endpoint is added to the primitive-life outcome, and frozen
|
|
v5-v8 layouts remain unchanged. The client matches the redirected region to a
|
|
grant in its existing bundle and dials the supplied endpoint with that
|
|
region-scoped grant. If the bundle has no usable grant, it reports that the
|
|
bundle must be refreshed rather than falling back to the original region.
|
|
- Each cellular region process receives a complete operator-provisioned route
|
|
catalog for its world, mapping region identity to the client endpoint and TLS
|
|
server name. This catalog is separate from physical neighbors. The server
|
|
rejects duplicate, invalid, wrong-world or self-conflicting entries at
|
|
startup. It emits a redirect only when the durable owner is in this catalog;
|
|
a missing destination fails closed. A client-supplied endpoint is never
|
|
accepted as routing authority.
|
|
- The route address is authenticated by the existing QUIC TLS certificate-name
|
|
and CA checks. The source server's verified response is the only input to the
|
|
in-memory client route update. A destination grant is still independently
|
|
verified by that destination region.
|
|
- A provisioned but not yet published reservation is routed to its reservation
|
|
region as well. It is never treated as a live life. The owning region's
|
|
existing exact-request query/retry resolves its pending birth. Terminal-life
|
|
eligibility remains governed by the later death contract; 11.2 has no
|
|
terminal primitive-life transition.
|
|
|
|
## Alternatives considered
|
|
|
|
- **Add the owner region to a new protocol version:** unnecessary because
|
|
`SessionRedirect` already carries an owner address and is handled by the
|
|
current client. It would duplicate routing metadata and force new protocol
|
|
negotiation for a server-only lookup.
|
|
- **Use the neighbor list:** rejected because life ownership is not spatial
|
|
adjacency and arbitrary region owners need not be neighbors.
|
|
- **Trust a client endpoint or account-provided URL:** rejected because it
|
|
permits endpoint substitution and cannot establish region ownership.
|
|
- **Add an inter-region proxy:** deferred. It would move routing and session
|
|
lifetime into a new server service, while the existing client redirect path
|
|
already performs the required switch.
|
|
- **Move the organism when control changes:** rejected by ADR-0100; account
|
|
control changes do not transfer biological state.
|
|
|
|
## Benefits
|
|
|
|
The contacted region resolves owner state from the durable world/account
|
|
reservation, routes before taking control, and uses an already implemented
|
|
client switch. Existing session wire layouts and one-owner biological state
|
|
remain intact.
|
|
|
|
## Costs and risks
|
|
|
|
The operator must keep each cellular server's world route catalog synchronized
|
|
with deployment endpoints. A missing/stale entry causes a closed login or a
|
|
failed TLS connection, never an untrusted redirect. A runtime owner-lookup
|
|
outage makes login unavailable. Process-kill, lost-response and restart tests
|
|
must still prove the existing owner and request outcome survive failures.
|
|
|
|
## Consequences
|
|
|
|
Implementation requires a read-only durable world/account owner lookup, a
|
|
validated per-world route catalog in cellular session configuration, and a
|
|
QUIC/client regression covering redirect-before-control-claim plus destination
|
|
grant selection. M11.2 remains open until that implementation, process-kill
|
|
qualification and restart retry pass. M11.3's exploratory single-region probe
|
|
does not depend on multi-region routing.
|