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:
dingo
2026-10-13 23:07:50 -04:00
co-authored by Claude Opus 5.5
parent 187b1a7b98
commit f77956e579
16 changed files with 314 additions and 17 deletions
@@ -122,5 +122,12 @@ the later 11.4d client action and review UI are complete.
reservations under the current lease before the next publication".
- The wire `tick` of the choice is the client's latest simulated tick (after
the offer); the server, not the client, chooses the publishing tick.
- Not yet done: replicating the offer's unranked candidates to the owner
(11.4d server half) and the client choice and review UI (maintainer).
- 11.4d server half (2026-10-13): v10 adds message type 26, the owner's
outstanding offer with its unranked candidates in operator order and each
successor's capability value, maintenance and total mass, so the choice can
be shown with its actual tradeoffs. The server sends it to the owner's v10
session when the offer or the session changes and clears it when the offer is
consumed; the engineering client keeps the latest offer for its UI. Type 26
extends v10 before any v10 server reaches DEV; v1-v9 are unchanged.
- Remaining after this: the client choice and review UI (maintainer) and the
11.4d playtest notes.
+5 -1
View File
@@ -90,4 +90,8 @@ pending; no gameplay balance is treated as final by this plan.
session. SQL now refuses a checkpoint that skips a reserved choice, and the
host reloads pending reservations after uncertainty or restart. 11.4c is
complete once CI passes; 11.4d's server half (offer replication to the
owner) is next, and the choice UI stays with the maintainer.
owner) is next, and the choice UI stays with the maintainer.- 11.4d server half: v10 type 26 sends the owner its outstanding offer, with
unranked candidates in operator order and each successor's capability value,
maintenance and total mass, when the offer or the session changes; the
engineering client keeps the latest offer. The choice and review UI and the
11.4d playtest notes remain with the maintainer.
+22
View File
@@ -7318,3 +7318,25 @@ outcome; a v7 session cannot send one.
Executed locally: MSVC Debug `ctest` 68/68; client-network QUIC/session 8/8;
g++-14 `-Werror`, clang-tidy-19 and clang-format 19.1.5 on the host, session,
server main and test sources. The PostgreSQL tests run only in CI.
## 2026-10-13 — M11.4d server half: owner offer replication (CI pending)
Session protocol v10 adds type 26 `CellularMutationOffer` (schema in
`schemas/network/session-v10-cellular-mutation-action.md`): the owner's
outstanding offer with up to eight unranked candidates in operator order and
each successor's capability value, maintenance and total mass. `offer_view`
builds it from the life; the cellular bridge sends it through
`RegionSessions::send_mutation_offer` when the offer or the owner's session
changes, and an empty view clears a consumed offer. The client keeps the
latest offer (`mutation_offer()`); the choice UI stays with the maintainer.
Tests: `cellular-intent-protocol` round-trips an offer and a clear, and refuses
it under v9, out of operator order, with a future offer tick, a non-empty clear,
an unknown capability, non-zero reserved bytes and a short payload.
`quic-sessions` delivers an offer and its clear to a v10 owner only;
`cellular_host_admits_mutation_choices` checks `offer_view` against a real
offer.
Executed locally: MSVC Debug `ctest` 68/68, network 74/74, client-network
88/88; g++-14 `-Werror` and clang-tidy-19 on the protocol, session, host,
client, server main and test sources (no new findings); clang-format 19.1.5.