End dead lives durably so a player can start again
M11.6a (ADR-0127, schema v37): a published life is marked ended once, by a commit of its region, through the lease-fenced end_cellular_lives. One active life per account replaces one life per account, so after a death the account reserves and publishes a new primitive founder while the corpse, archive and descendants stay. The host records endings after the death's publication and again for every founder corpse on recovery. The cellular server now refuses only an unusable carried action, not the whole tick. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1071,8 +1071,24 @@ int serve_cellular(Options& o) {
|
||||
if (!builder) {
|
||||
bridge->dropped(actions, true);
|
||||
} else {
|
||||
const auto appended = builder->append(tick, baseline, actions, held_births,
|
||||
host.queued_mutations());
|
||||
auto appended = builder->append(tick, baseline, actions, held_births,
|
||||
host.queued_mutations());
|
||||
if (!appended && !actions.empty()) {
|
||||
// ADR-0127: one account's unusable action (its life died, or it
|
||||
// names an unperceived patch) refuses only that action, never the
|
||||
// tick for every other player.
|
||||
std::vector<network::CarriedAction> usable, refused;
|
||||
for (const auto& action : actions)
|
||||
(server::prepare_cellular_session_tick(*state, tick, baseline,
|
||||
std::span{&action, 1})
|
||||
? usable
|
||||
: refused)
|
||||
.push_back(action);
|
||||
bridge->dropped(refused, true);
|
||||
actions = std::move(usable);
|
||||
appended = builder->append(tick, baseline, actions, held_births,
|
||||
host.queued_mutations());
|
||||
}
|
||||
if (!appended) {
|
||||
bridge->dropped(actions, true);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user