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
+13 -1
View File
@@ -637,7 +637,7 @@ void cellular_v5_spawn_and_v7_action_share_region_sessions(const Files& f) {
} actions;
FakeLedger control;
Harness h{
f, 5, 64, &control, [&](server::RegionSessionsConfig& c) {
f, 6, 64, &control, [&](server::RegionSessionsConfig& c) {
c.actions = &actions;
c.accept_cellular_actions = true;
// Like the cellular host, a refusal reports the reserved identity; only a
@@ -687,6 +687,18 @@ void cellular_v5_spawn_and_v7_action_share_region_sessions(const Files& f) {
CHECK(carried.size() == 1 && carried.front().account == account(0xB7) &&
carried.front().kind == ActionKind::cellular);
// ADR-0124: a v10 session carries an engulf action; a v7 session cannot encode one.
auto engulf_client = h.connect(h.issuer.grant(account(0xBB), 1), session_protocol_v10);
CHECK(h.settled(*engulf_client) && engulf_client->state() == RegionSessionState::established);
CHECK(!action_client->send_cellular_action(56, 102, 0, 0, std::nullopt, true));
CHECK(engulf_client->send_cellular_action(66, 102, 0, 0, std::nullopt, true));
CHECK(h.until([&] { return !(receipts = engulf_client->take_action_receipts()).empty(); }));
CHECK(receipts.front().status == AdmitStatus::admitted);
const auto engulfing = h.server->carry(102);
CHECK(engulfing.size() == 1 && engulfing.front().account == account(0xBB) &&
engulfing.front().cellular_input ==
std::optional{encode_cellular_action_input({102, 0, 0, false, 0, 0, true})});
h.server->set_default_interest({0, 0, 0, 7});
h.source = [](const SessionInterest&) {
ReplicationSource source;