Pin the cellular v4 bundle and admit it in schema v34
Foundation / checks (checks) (push) Successful in 41m8s
Foundation / checks (deploy) (push) Successful in 4m26s
Foundation / checks (ecs) (push) Successful in 2m29s
Foundation / checks (network) (push) Successful in 19m43s
Foundation / checks (postgres) (push) Successful in 44m7s
Foundation / checks (tsan) (push) Successful in 10m5s
Foundation / checks (client) (push) Successful in 13m57s
Foundation / postgres-tools (push) Successful in 1m24s
Foundation / image (push) Successful in 3m20s
Foundation / server-image (push) Successful in 3m23s
Foundation / checks (checks) (push) Successful in 41m8s
Foundation / checks (deploy) (push) Successful in 4m26s
Foundation / checks (ecs) (push) Successful in 2m29s
Foundation / checks (network) (push) Successful in 19m43s
Foundation / checks (postgres) (push) Successful in 44m7s
Foundation / checks (tsan) (push) Successful in 10m5s
Foundation / checks (client) (push) Successful in 13m57s
Foundation / postgres-tools (push) Successful in 1m24s
Foundation / image (push) Successful in 3m20s
Foundation / server-image (push) Successful in 3m23s
ADR-0124: checkpoints pin cellular bundle v4 (rules 3, owner envelope 4, revision archive) with the revision history profile and format-3 traces. A format-4/rules-3 opening provisions on v4, and evo-world-clone accepts --opening cellular-v2 for it. Migration 34 widens canonical action input validation to target kind 2 (engulf, no coordinates), admits v4 manifests through the existing v3 parser chain, and lets birth binding read format-3 traces for v3 and v4. The migration runner and its checks extend to version 34, with SQL and provisioning tests for v4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -504,6 +504,35 @@ void cellular_profile() {
|
||||
after_revision_migration->cellular_versions == cellular_v3_versions &&
|
||||
after_revision_migration->history_profile == cellular_revision_history_profile);
|
||||
|
||||
// ADR-0124: a rules-3 owner restores only under the v4 bundle and revision history.
|
||||
auto engulf_primitive = PrimitiveLives::create({7, 3, 9, 17, funding, {{0, 0}}});
|
||||
auto engulf_habitat = CellularHabitat::create({7, 3, 9, 1'000, 1'000, {}});
|
||||
CHECK(engulf_primitive && engulf_habitat);
|
||||
auto engulf_owner =
|
||||
CellularLives::create(**engulf_primitive, std::move(*engulf_habitat),
|
||||
{{1'000, 1'000}, 0, 293'150}, CellularLivesProfile::engulf);
|
||||
CHECK(engulf_owner);
|
||||
const auto engulf_payload = (*engulf_owner)->snapshot();
|
||||
auto v4 = genesis_manifest(key, 9, filled<16>(0x30), 50000, build, engulf_payload.size(),
|
||||
filled<32>(0x31), CheckpointProfile::cellular_lives_v1);
|
||||
CHECK(v4);
|
||||
v4->cellular_versions = cellular_v4_versions;
|
||||
v4->history_profile = cellular_revision_history_profile;
|
||||
CHECK(supported(*v4) && cellular_revision_bundle(v4->cellular_versions));
|
||||
const auto v4_bytes = encode_manifest(*v4);
|
||||
CHECK(v4_bytes && decode_manifest(*v4_bytes) == *v4);
|
||||
CHECK(restore_cellular_payload(engulf_payload, *v4));
|
||||
auto v4_wrong_history = *v4;
|
||||
v4_wrong_history.history_profile = cellular_history_profile;
|
||||
CHECK(!supported(v4_wrong_history));
|
||||
auto as_v3 = *v4;
|
||||
as_v3.cellular_versions = cellular_v3_versions;
|
||||
CHECK(!restore_cellular_payload(engulf_payload, as_v3)); // Envelope and rules differ.
|
||||
const auto v4_next =
|
||||
successor_manifest(*v4, filled<32>(0x32), filled<16>(0x33), lease(), 1, build,
|
||||
engulf_payload.size(), filled<32>(0x34), batch_for(1, 1));
|
||||
CHECK(v4_next && supported(*v4_next) && v4_next->cellular_versions == cellular_v4_versions);
|
||||
|
||||
auto bad_identity = *manifest;
|
||||
bad_identity.key.region = 4;
|
||||
const auto wrong_identity = restore_cellular_payload(payload, bad_identity);
|
||||
|
||||
Reference in New Issue
Block a user