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
+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.