Admit v10 mutation choices through the cellular host and sessions
The region host checks a choice against the committed offer, reserves the successor for the next tick, and publishes it with that tick's batch; the owner's v10 session gets the receipt and final outcome. Schema v35 now refuses a checkpoint that skips a reserved choice, and the host reloads pending reservations after uncertainty, refusal or recovery (ADR-0121). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7293,4 +7293,28 @@ offer, reserves and publishes a choice, recovers it, and restarts a host.
|
||||
|
||||
Executed locally: MSVC Debug `ctest` 68/68; g++-14 `-Werror`, clang-tidy-19
|
||||
and clang-format 19.1.5 on the persistence, batch, host and test sources. The
|
||||
migration and PostgreSQL tests run only in CI.
|
||||
migration and PostgreSQL tests run only in CI.
|
||||
## 2026-10-13 — M11.4c-2 mutation choice admission (CI pending)
|
||||
|
||||
`CellularRegionHost::select_mutation` checks a v10 choice against the
|
||||
committed offer, reserves it for head + 1 through `reserve_cellular_mutation`,
|
||||
and queues it; `serve_cellular` passes the queue to the session batch builder
|
||||
and publishes `mutation_actions()` with the batch; finalized choices go to the
|
||||
owner's v10 session as `ActionOutcome`. Uncertain reservations, refused
|
||||
publications and recovery reload pending reservations before the next publish.
|
||||
`RegionSessions` dispatches `CellularMutationAction` to the new
|
||||
`select_cellular_mutation` handler and adds `send_mutation_outcome`; the client
|
||||
adds `send_cellular_mutation` (protocol only, no UI). Migration 35 gains
|
||||
`cellular_mutations_due` and a `(world, region, target_tick)` index: both
|
||||
publishers refuse a checkpoint that omits a reserved choice in its range.
|
||||
|
||||
Tests: `cellular_host_admits_mutation_choices` (PostgreSQL, world 9765) covers
|
||||
invalid and stale choices, admission, an idempotent repeat, `busy`, reload
|
||||
after a host restart, refusal of a checkpoint that skips the choice,
|
||||
publication with its tick, the finalized outcome and its wire form, and the
|
||||
final repeat. `quic-sessions` sends a v10 choice and receives the receipt and
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user