feat(cellular): session v14, bundle 15 and rules-13 wildlife
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m29s
Foundation / postgres-tools (push) Successful in 24s
Foundation / server-image (push) Successful in 4m33s
Foundation / image (push) Successful in 4m59s

Session v14 carries the rules-13 revamp: a body block in the owner's view
(members, emergence threshold, exclusions, Emerge open, payable energy,
mass and the 20 traits), become, emerge and channel exclusions on actions,
become on mutation choices, catalog offers (id, chance, cost) and the
emerged ending. Older sessions never see a v14 field. The client shows
Stay / Become offspring offers named from the shared catalog, continuing
as a bud, the organism and its Emerge button, kept channels, the body and
the emerged end screen.

Bundle 15 (rules 13 on owner format 11) is durable: schema 60 admits it
raw-only, stores become as bit 15 of the choice's operator, widens the
action input and mutation results, and publishes the 14 -> 15 revamp
profile migration. evo-world-clone opens cellular-v10 (cellular-v9 plus the
revamp upgrade from --revamp-tuning), resumable and recoverable.

Wildlife counts reserve matter as energy, waits for the bud fee, grows
organisms one short of emerging, and hunts by the region step's rules-13
engulf test. The play summary adds organisms, offers and the spent pool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-26 07:31:32 -04:00
co-authored by Claude Opus 5.5
parent f454e038a1
commit 4bc5d5eee7
48 changed files with 1602 additions and 174 deletions
+39
View File
@@ -810,6 +810,45 @@ void cellular_v9_provisioning_declares_liquid() {
const auto manifest = decode_manifest(head->manifest);
CHECK(manifest && manifest->cellular_versions == cellular_v14_versions &&
manifest->history_profile == cellular_revision_history_profile);
// Rules 13 (ADR-0179): cellular-v10 is cellular-v9 plus the durable bundle 14 -> 15 revamp
// upgrade declaring the Git revamp tuning file's rules; a rerun reports the region.
{
const ServerRegion v10{{9779, 1}, fresh("cellular-v10-provision-9779")};
const std::string revamp =
env("EVO_SOURCE_ROOT") + "/deploy/kubernetes/region/dev/tuning/cellular-revamp.tuning";
const std::string v10_commit = "c0c81e5c0f7e1d2ba1a0ce5c0f7e1d2f";
provision_cellular(v10, "9779", "cellular-v10", build, v10_commit, motes, code, "--motes",
{"--light-pj", "40", "--tuning", tuning});
CHECK(code != 0); // cellular-v10 requires --revamp-tuning.
const auto made = provision_cellular(
v10, "9779", "cellular-v10", build, v10_commit, motes, code, "--motes",
{"--light-pj", "40", "--tuning", tuning, "--revamp-tuning", revamp});
CHECK(code == 0 && has(made, "provisioned world=9779 region=1 sequence=7 tick=1"));
const auto rerun = provision_cellular(
v10, "9779", "cellular-v10", build, v10_commit, motes, code, "--motes",
{"--light-pj", "40", "--tuning", tuning, "--revamp-tuning", revamp});
CHECK(code == 0 && has(rerun, "already-provisioned world=9779 region=1 sequence=7 tick=1"));
const auto revamp_head = load_region_checkpoint(*db, v10.key, 5s);
CHECK(revamp_head);
const auto revamp_manifest = decode_manifest(revamp_head->manifest);
CHECK(revamp_manifest && revamp_manifest->cellular_versions == cellular_v15_versions &&
revamp_manifest->history_profile == cellular_revision_history_profile);
// The upgrade's evidence recovers: the target re-derives from the source and its rules.
Sha256Digest retained{};
retained.fill(0xEE);
auto store =
FilesystemObjectStore::open(v10.root, v10.key, evo::server::max_cellular_lives_bytes);
CHECK(store);
const auto lease =
acquire_region_lease(*db, v10.key, retained, std::chrono::seconds{30}, 5s);
CHECK(lease);
const std::array<Sha256Digest, 1> builds{retained};
const auto recovered =
recover_cellular_checkpoint(*db, **store, v10.key, *lease, builds, 5s);
CHECK(recovered &&
recovered->state->rules_version() == evo::server::cellular_lives_revamp_rules);
CHECK(release_region_lease(*db, v10.key, *lease, 5s));
}
#ifdef EVO_POSTGRES_M10
// A player is born on the liquid head and swims and brakes through the live server path:
// host reservation, session batch builder, host publication with a braking trace.