Carry bud actions and the v5 bundle through protocol and persistence
Foundation / checks (ecs) (push) Successful in 2m30s
Foundation / checks (deploy) (push) Successful in 4m0s
Foundation / checks (tsan) (push) Successful in 10m37s
Foundation / checks (client) (push) Failing after 13m56s
Foundation / checks (network) (push) Successful in 19m9s
Foundation / checks (checks) (push) Successful in 42m54s
Foundation / checks (postgres) (push) Successful in 44m9s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (ecs) (push) Successful in 2m30s
Foundation / checks (deploy) (push) Successful in 4m0s
Foundation / checks (tsan) (push) Successful in 10m37s
Foundation / checks (client) (push) Failing after 13m56s
Foundation / checks (network) (push) Successful in 19m9s
Foundation / checks (checks) (push) Successful in 42m54s
Foundation / checks (postgres) (push) Successful in 44m9s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
M11.5c (ADR-0125): v10 cellular actions, the canonical input and the trace carry target kind 3 (bud), matched to durable actions; below rules 4 the owner ignores it. The v5 version bundle is admitted in C++ and by schema v36, which also admits kind 3 in SQL action inputs; the provisioner offers cellular-v3. A PostgreSQL test publishes a bud from a fed founder and recovers it after a host restart. The publication tests now use commit ids no other suite produces. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -116,6 +116,38 @@ void v7_reliable_action_is_stable_and_strict() {
|
||||
CHECK(!decode_cellular_action_input(malformed_input));
|
||||
}
|
||||
|
||||
// ADR-0125: target kind 3 (bud) exists only on v10, without coordinates, exclusive with
|
||||
// a patch target and with engulfment.
|
||||
void v10_bud_action_is_versioned_and_exclusive() {
|
||||
CellularAction bud{17, 23, 29, 31, 0, 0, false, 0, 0};
|
||||
bud.bud = true;
|
||||
const auto bytes = encode_session(SessionMessage{bud}, session_protocol_v10);
|
||||
CHECK(bytes.size() == session_header_bytes + 48 && bytes[session_header_bytes + 36] == 3);
|
||||
const auto decoded = decode_session(bytes);
|
||||
CHECK(decoded && std::get<CellularAction>(*decoded) == bud);
|
||||
CHECK(encode_session(SessionMessage{bud}, session_protocol_v9).empty());
|
||||
CHECK(encode_session(SessionMessage{bud}).empty());
|
||||
auto feeding = bud;
|
||||
feeding.has_intake_target = true;
|
||||
CHECK(encode_session(SessionMessage{feeding}, session_protocol_v10).empty());
|
||||
auto engulfing = bud;
|
||||
engulfing.engulf = true;
|
||||
CHECK(encode_session(SessionMessage{engulfing}, session_protocol_v10).empty());
|
||||
auto as_v9 = bytes;
|
||||
as_v9[4] = static_cast<std::uint8_t>(session_protocol_v9);
|
||||
CHECK(!decode_session(as_v9));
|
||||
auto kind_four = bytes;
|
||||
kind_four[session_header_bytes + 36] = 4;
|
||||
CHECK(!decode_session(kind_four));
|
||||
|
||||
CellularActionInput input{31, 0, 0, false, 0, 0, false, true};
|
||||
const auto canonical = encode_cellular_action_input(input);
|
||||
CHECK(canonical[12] == 3 && decode_cellular_action_input(canonical) == input);
|
||||
auto placed = canonical;
|
||||
placed[16] = 1;
|
||||
CHECK(!decode_cellular_action_input(placed));
|
||||
}
|
||||
|
||||
// ADR-0124: target kind 2 (engulf) exists only on v10, without coordinates or a patch.
|
||||
void v10_engulf_action_is_versioned_and_exclusive() {
|
||||
CellularAction engulf{17, 23, 29, 31, 5, -5, false, 0, 0};
|
||||
@@ -151,7 +183,7 @@ void v10_engulf_action_is_versioned_and_exclusive() {
|
||||
coordinated[16] = 1;
|
||||
CHECK(!decode_cellular_action_input(coordinated));
|
||||
auto unknown_kind = canonical;
|
||||
unknown_kind[12] = 3;
|
||||
unknown_kind[12] = 4; // Kind 3 is a bud since ADR-0125.
|
||||
CHECK(!decode_cellular_action_input(unknown_kind));
|
||||
}
|
||||
|
||||
@@ -300,6 +332,7 @@ int main() {
|
||||
malformed_frames_are_refused();
|
||||
v7_reliable_action_is_stable_and_strict();
|
||||
v10_engulf_action_is_versioned_and_exclusive();
|
||||
v10_bud_action_is_versioned_and_exclusive();
|
||||
v8_perception_is_bounded_and_canonical();
|
||||
v9_perception_carries_only_valid_owner_diagnostics();
|
||||
v10_mutation_choice_is_a_strict_reliable_action();
|
||||
|
||||
Reference in New Issue
Block a user