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:
dingo
2026-10-13 19:45:23 -04:00
co-authored by Claude Opus 5.5
parent 1bbac48543
commit f59c8498b1
14 changed files with 583 additions and 12 deletions
+13 -2
View File
@@ -952,6 +952,15 @@ int serve_cellular(Options& o) {
bridge->committed(committed, finalized.commit_sequence);
awaiting_outcomes.erase(pending);
}
for (const auto& mutation : host.take_finalized_mutations()) {
network::AccountId account;
account.bytes = mutation.account;
std::printf("mutation committed tick=%llu result=%u\n",
static_cast<unsigned long long>(mutation.tick),
static_cast<unsigned>(mutation.result));
static_cast<void>(bridge->sessions().send_mutation_outcome(
account, server::action_outcome(mutation)));
}
};
const auto finish = [&](int code) {
set_ready(false);
@@ -1051,13 +1060,15 @@ int serve_cellular(Options& o) {
if (!builder) {
bridge->dropped(actions, true);
} else {
const auto appended = builder->append(tick, baseline, actions, held_births);
const auto appended = builder->append(tick, baseline, actions, held_births,
host.queued_mutations());
if (!appended) {
bridge->dropped(actions, true);
} else {
awaiting_outcomes.insert(awaiting_outcomes.end(), actions.begin(),
actions.end());
auto published = host.publish(builder->batch(), builder->actions());
auto published = host.publish(builder->batch(), builder->actions(),
builder->mutation_actions());
if (!published && host.status().phase != server::HostPhase::resolving) {
bridge->dropped(actions, true);
std::erase_if(awaiting_outcomes, [&](const auto& action) {