Send the owner its outstanding mutation offer over v10
Session protocol v10 adds type 26: the life's earned offer with its unranked candidates in operator order and each successor's capability value, maintenance and total mass. The cellular bridge sends it when the offer or the owner's session changes and clears a consumed offer; the client keeps the latest one for the maintainer's choice UI (ADR-0121, 11.4d server half). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -29,6 +29,44 @@ admission is enabled, it must bind the action to the authenticated account,
|
||||
verify the exact current offer and operator, reserve the successor identity
|
||||
idempotently by `(world, account, action_id)`, then schedule the choice for that
|
||||
advancing tick. The reliable receipt means admission only; the final outcome is
|
||||
tied to the committed tick and its recovered cellular checkpoint. This document
|
||||
defines the wire codec only; runtime admission remains disabled until its
|
||||
durable reservation and publication path is complete.
|
||||
tied to the committed tick and its recovered cellular checkpoint.
|
||||
|
||||
Runtime admission (11.4c-2): the server ignores the client tick for scheduling
|
||||
(it is the client's latest simulated tick, after the offer) and publishes the
|
||||
choice with the tick after its committed head; the receipt's `tick` names it.
|
||||
Receipt statuses: `admitted`, `not_ready`, `too_many_unresolved` (another
|
||||
choice of the account is waiting), `invalid_action` (not the exact offer and
|
||||
candidate, or a changed reuse of the action id), and `duplicate` with the
|
||||
final outcome. The `ActionOutcome` is `committed` when applied and
|
||||
`committed_no_effect` for a durable refusal (life died, insufficient funding).
|
||||
|
||||
## Type 26 (server to owner)
|
||||
|
||||
11.4d adds the owner's outstanding offer as a reliable-stream message, type 26,
|
||||
sent only to the owning account's v10 session when the offer or the session
|
||||
changes. Payload, little-endian: a 40-byte prefix followed by `count` 24-byte
|
||||
candidates.
|
||||
|
||||
| Payload offset | Size | Field |
|
||||
|---:|---:|---|
|
||||
| 0 | 8 | tick of the view, nonzero |
|
||||
| 8 | 8 | life identity |
|
||||
| 16 | 8 | offer event index (zero when cleared) |
|
||||
| 24 | 8 | offer tick, at or before the view tick (zero when cleared) |
|
||||
| 32 | 2 | candidate count, 0 to 8 |
|
||||
| 34 | 6 | reserved, all zero |
|
||||
|
||||
Each candidate:
|
||||
|
||||
| Offset | Size | Field |
|
||||
|---:|---:|---|
|
||||
| 0 | 2 | operator id, nonzero, strictly increasing (stable order, never a rank) |
|
||||
| 2 | 1 | capability (0 to 6, the genome enum) |
|
||||
| 3 | 1 | effect (0 adjust up, 1 adjust down, 2 acquire, 3 shed) |
|
||||
| 4 | 4 | the successor's capability value; zero when shed |
|
||||
| 8 | 8 | the successor's maintenance |
|
||||
| 16 | 8 | the successor's total mass |
|
||||
|
||||
A message with no candidates clears the client's offer and must carry zero event
|
||||
and offer tick; one with candidates must name a nonzero life, event and offer
|
||||
tick. Types 25 and 26 are not decoded under versions 1–9.
|
||||
|
||||
Reference in New Issue
Block a user