Carry the engulf intent on v10 sessions and the batch trace
Foundation / checks (ecs) (push) Successful in 2m28s
Foundation / checks (deploy) (push) Successful in 4m6s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 6m47s
Foundation / checks (checks) (push) Canceled after 6m58s
Foundation / checks (client) (push) Canceled after 6m59s
Foundation / checks (tsan) (push) Canceled after 4m28s
Foundation / checks (network) (push) Canceled after 6m58s

ADR-0124: byte 12 of the canonical cellular input, the CellularAction
wire message and the batch trace record becomes a target kind (0 none,
1 patch, 2 engulf with zero coordinates). Kind 2 exists only on v10,
which no server admitted before; cellular servers now admit v10 with v9
behaviour plus engulf, and still refuse a v10 mutation choice until
11.4c. Admission, the session-batch adapter, trace codec, matcher and
action-block validator carry the kind.

The client session library accepts v10 and an engulf flag, and its send
no longer reports a message its version cannot encode as sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-13 19:04:46 -04:00
co-authored by Claude Opus 5.5
parent 02adc35fa2
commit e17ade8cb7
15 changed files with 175 additions and 39 deletions
+22
View File
@@ -80,6 +80,28 @@ void actions_bind_to_owned_life_and_preserve_other_inputs() {
CHECK(prepare_cellular_session_tick(**state, 2, baseline, guessed_actions).error() ==
CellularSessionBatchError::unperceived_target);
// ADR-0124: an engulf action becomes the life's engulf intent, and the trace keeps it.
const auto engulf_input = network::encode_cellular_action_input({2, 1, 0, false, 0, 0, true});
const network::CarriedAction engulf_action{network::AccountId{controlled.account}, 79, 2,
network::ActionKind::cellular, engulf_input};
const std::array engulf_actions{engulf_action};
const auto engulfing = prepare_cellular_session_tick(**state, 2, baseline, engulf_actions);
CHECK(engulfing && engulfing->intents.lives[0].intent.engulf &&
!engulfing->intents.lives[0].intent.intake_target);
CellularBatch engulf_batch;
engulf_batch.header = {(*state)->world(), (*state)->region(), (*state)->frame(), {}, {}, 1, 2};
engulf_batch.header.predecessor.fill(1);
engulf_batch.header.predecessor_digest.fill(2);
engulf_batch.ticks.push_back(engulfing->intents);
CHECK(match_cellular_actions_to_trace(**state, engulf_batch, engulfing->actions));
const auto engulf_bytes = encode_cellular_batch(engulf_batch);
CHECK(engulf_bytes);
const auto engulf_decoded = decode_cellular_batch(*engulf_bytes);
CHECK(engulf_decoded && *engulf_decoded == engulf_batch);
auto stripped = engulf_batch;
stripped.ticks[0].lives[0].intent.engulf = false;
CHECK(!match_cellular_actions_to_trace(**state, stripped, engulfing->actions));
CellularBatch batch;
batch.header = {(*state)->world(), (*state)->region(), (*state)->frame(), {}, {}, 1, 2};
batch.header.predecessor.fill(1);