Cellular balance rules 6 (ADR-0132, schema v41)
Foundation / checks (checks) (push) Successful in 42m33s
Foundation / checks (deploy) (push) Successful in 4m11s
Foundation / checks (ecs) (push) Successful in 2m27s
Foundation / checks (network) (push) Successful in 19m23s
Foundation / checks (postgres) (push) Successful in 44m44s
Foundation / checks (tsan) (push) Successful in 9m53s
Foundation / checks (client) (push) Successful in 16m19s
Foundation / postgres-tools (push) Successful in 30s
Foundation / server-image (push) Successful in 3m14s
Foundation / image (push) Successful in 3m16s

The playtest found mutation offers the arena could never pay for. A mutation's
matter cost is the real body difference (ADR-0118), so it cannot be discounted.
Rules 6 cut it honestly:
- genome schema 3 steps a third as far (1/300 of the range);
- development version 3 charges a third of the construction energy (13 instead of
  40 pJ per 1000 fg).

Founder 2 uses both. The cellular-v5 opening creates rules-6 regions on bundle v7,
which schema v41 admits. Existing lineages, regions and committed history are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-15 20:53:31 -04:00
co-authored by Claude Opus 5.5
parent 1446d36d26
commit 4d17a0651c
31 changed files with 571 additions and 68 deletions
+26 -4
View File
@@ -116,6 +116,7 @@ SELECT EXISTS (SELECT 1 FROM pg_catalog.pg_namespace WHERE nspname='evolution')
SELECT :'history_v37' || ',38:' || :'migration_sha_38' AS history_v38 \gset
SELECT :'history_v38' || ',39:' || :'migration_sha_39' AS history_v39 \gset
SELECT :'history_v39' || ',40:' || :'migration_sha_40' AS history_v40 \gset
SELECT :'history_v40' || ',41:' || :'migration_sha_41' AS history_v41 \gset
SELECT :'history' = :'history_v22' AS at_v22,
:'history' = :'history_v23' AS at_v23,
:'history' = :'history_v24' AS at_v24,
@@ -134,8 +135,10 @@ SELECT EXISTS (SELECT 1 FROM pg_catalog.pg_namespace WHERE nspname='evolution')
:'history' = :'history_v37' AS at_v37,
:'history' = :'history_v38' AS at_v38,
:'history' = :'history_v39' AS at_v39,
:'history' = :'history_v40' AS at_v40 \gset
\if :at_v40
:'history' = :'history_v40' AS at_v40,
:'history' = :'history_v41' AS at_v41 \gset
\if :at_v41
\elif :at_v40
\elif :at_v39
\elif :at_v38
\elif :at_v37
@@ -509,7 +512,8 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
coalesce(max(version), 0) = 37 AS at_v37,
coalesce(max(version), 0) = 38 AS at_v38,
coalesce(max(version), 0) = 39 AS at_v39,
coalesce(max(version), 0) = 40 AS at_v40
coalesce(max(version), 0) = 40 AS at_v40,
coalesce(max(version), 0) = 41 AS at_v41
FROM evolution.schema_migrations \gset
\if :at_v24
\ir 0025_cellular_v2_bundle.sql
@@ -528,6 +532,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v25
\ir 0026_cellular_profile_migration.sql
\ir 0027_cellular_v3_migration.sql
@@ -544,6 +549,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v26
\ir 0027_cellular_v3_migration.sql
\ir 0028_cellular_v3_trace_bounds.sql
@@ -559,6 +565,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v27
\ir 0028_cellular_v3_trace_bounds.sql
\ir 0029_cellular_mutation_reservations.sql
@@ -573,6 +580,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v28
\ir 0029_cellular_mutation_reservations.sql
\ir 0030_cellular_birth_publication_binding.sql
@@ -586,6 +594,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v29
\ir 0030_cellular_birth_publication_binding.sql
\ir 0031_fix_cellular_birth_publication_record.sql
@@ -598,6 +607,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v30
\ir 0031_fix_cellular_birth_publication_record.sql
\ir 0032_fix_cellular_v3_manifest_normalization.sql
@@ -609,6 +619,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v31
\ir 0032_fix_cellular_v3_manifest_normalization.sql
\ir 0033_fix_cellular_action_tick_offset.sql
@@ -619,6 +630,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v32
\ir 0033_fix_cellular_action_tick_offset.sql
\ir 0034_cellular_v4_engulf_bundle.sql
@@ -628,6 +640,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v33
\ir 0034_cellular_v4_engulf_bundle.sql
\ir 0035_cellular_mutation_publication.sql
@@ -636,6 +649,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v34
\ir 0035_cellular_mutation_publication.sql
\ir 0036_cellular_v5_budding_bundle.sql
@@ -643,29 +657,37 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v35
\ir 0036_cellular_v5_budding_bundle.sql
\ir 0037_cellular_life_endings.sql
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v36
\ir 0037_cellular_life_endings.sql
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v37
\ir 0038_cellular_v6_presence_bundle.sql
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v38
\ir 0039_account_identities.sql
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v39
\ir 0040_cellular_mutation_decline.sql
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v40
\ir 0041_cellular_v7_balance_bundle.sql
\elif :at_v41
\else
\echo 'Unknown or changed migration history after v40'
\echo 'Unknown or changed migration history after v41'
DO $$ BEGIN RAISE EXCEPTION 'unknown or changed migration history'; END $$;
\endif
-- Effective-privilege audit on every run, including no-ops (ADR-0060). Attributes