feat(ecology): make photosynthesis regions playable on DEV
Foundation / checks (ecs) (push) Successful in 2m19s
Foundation / checks (deploy) (push) Successful in 4m47s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 16m48s
Foundation / checks (network) (push) Canceled after 16m46s
Foundation / checks (postgres) (push) Canceled after 16m47s
Foundation / checks (client) (push) Canceled after 16m53s
Foundation / checks (tsan) (push) Canceled after 14m33s
Foundation / checks (ecs) (push) Successful in 2m19s
Foundation / checks (deploy) (push) Successful in 4m47s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 16m48s
Foundation / checks (network) (push) Canceled after 16m46s
Foundation / checks (postgres) (push) Canceled after 16m47s
Foundation / checks (client) (push) Canceled after 16m53s
Foundation / checks (tsan) (push) Canceled after 14m33s
ADR-0176 and schema 57 admit raw cellular bundle 13 (rules 11 on owner format 9) through parser-local normalization to bundle 12, and a fenced no-tick 12 -> 13 upgrade that declares the region's light; recovery reads the light from the target and re-derives the whole target from the source. The resumable cellular-v8 opening provisions a cellular-v7 genesis, one empty tick and the durable upgrades to bundle 13. Session v12 adds the owner's captured light and the producers it can see to its perception, and lets offers name photosynthesis; older sessions keep their layouts and never receive photosynthesis candidates. The client draws chloroplasts by efficiency, shows sunlight in the HUD and offers photosynthesis cards. DEV now provisions and serves region 9 with the trial light; region 8 stays stored but unserved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -160,6 +160,31 @@ int main() {
|
||||
require(restore_environment_payload(payload, unsupported).error() ==
|
||||
CheckpointError::unsupported,
|
||||
"rules mismatch accepted");
|
||||
// ADR-0176: bundle 13 follows bundle 12 only, on raw profile 4.
|
||||
auto plans = head;
|
||||
plans.profile = CheckpointProfile::cellular_lives_v1;
|
||||
plans.history_profile = cellular_revision_history_profile;
|
||||
plans.cellular_versions = cellular_v12_versions;
|
||||
require(supported(plans) && encode_manifest(plans), "bundle 12 fixture head");
|
||||
const auto lit = checked(cellular_photosynthesis_upgrade_manifest(
|
||||
plans, filled<32>(20), filled<16>(21), lease, filled<32>(12),
|
||||
payload.size(), filled<32>(22)),
|
||||
"bundle 13 manifest");
|
||||
require(lit.cellular_versions == cellular_v13_versions && supported(lit) &&
|
||||
lit.begin_tick == lit.end_tick &&
|
||||
cellular_checkpoint_trace_format(lit.cellular_versions) ==
|
||||
server::cellular_batch_inheritance_format,
|
||||
"bundle 13 manifest changed tick or trace format");
|
||||
auto skipped = plans;
|
||||
skipped.cellular_versions = cellular_v11_versions;
|
||||
require(!cellular_photosynthesis_upgrade_manifest(skipped, filled<32>(20), filled<16>(21),
|
||||
lease, filled<32>(12), payload.size(),
|
||||
filled<32>(22)),
|
||||
"bundle 11 skipped to bundle 13");
|
||||
require(!cellular_photosynthesis_upgrade_manifest(head, filled<32>(20), filled<16>(21),
|
||||
lease, filled<32>(12), payload.size(),
|
||||
filled<32>(22)),
|
||||
"population profile entered bundle 13");
|
||||
std::cout << "environment checkpoint contracts passed\n";
|
||||
return 0;
|
||||
} catch (const std::exception& error) {
|
||||
|
||||
Reference in New Issue
Block a user