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
+8
View File
@@ -720,6 +720,14 @@ void cellular_v5_spawn_and_v7_action_share_region_sessions(const Files& f) {
CHECK(h.until([&] { return !(outcomes = engulf_client->take_action_outcomes()).empty(); }));
CHECK(outcomes.front() == ActionOutcome{77, ActionResult::committed, 103, 9});
CHECK(!h.server->send_mutation_outcome(account(0xB7), {55, ActionResult::committed, 103, 9}));
// 11.4d: the owner's offer reaches its v10 session only; an empty view clears it.
const CellularMutationOffer offered{103, 901, 2, 95, {{3, 1, 0, 40, 150'000, 9'000}}};
CHECK(!h.server->send_mutation_offer(account(0xB7), offered));
CHECK(h.server->send_mutation_offer(account(0xBB), offered));
CHECK(h.until([&] { return engulf_client->mutation_offer().has_value(); }));
CHECK(engulf_client->mutation_offer() == std::optional{offered});
CHECK(h.server->send_mutation_offer(account(0xBB), {104, 901, 0, 0, {}}));
CHECK(h.until([&] { return !engulf_client->mutation_offer().has_value(); }));
h.server->set_default_interest({0, 0, 0, 7});
h.source = [](const SessionInterest&) {