Cellular rules 8: pools and bubbles fed by contact (ADR-0136 step A)
Foundation / checks (checks) (push) Successful in 47m40s
Foundation / checks (client) (push) Successful in 17m27s
Foundation / checks (deploy) (push) Successful in 4m17s
Foundation / checks (ecs) (push) Successful in 4m31s
Foundation / checks (network) (push) Successful in 22m1s
Foundation / checks (tsan) (push) Successful in 13m10s
Foundation / checks (postgres) (push) Successful in 20m54s
Foundation / image (push) Successful in 4m15s
Foundation / postgres-tools (push) Successful in 5m32s
Foundation / server-image (push) Successful in 7m15s
Foundation / checks (checks) (push) Successful in 47m40s
Foundation / checks (client) (push) Successful in 17m27s
Foundation / checks (deploy) (push) Successful in 4m17s
Foundation / checks (ecs) (push) Successful in 4m31s
Foundation / checks (network) (push) Successful in 22m1s
Foundation / checks (tsan) (push) Successful in 13m10s
Foundation / checks (postgres) (push) Successful in 20m54s
Foundation / image (push) Successful in 4m15s
Foundation / postgres-tools (push) Successful in 5m32s
Foundation / server-image (push) Successful in 7m15s
Square patches invited camping and left the space between them empty. Rules 8 run on a format-2 habitat of deposits: - pools and single-nutrient bubbles at free micrometre centres, each with a stable id and a contact radius; the cellular-v7 opening scatters bubbles reproducibly from the genesis commit (three in ten in loose clumps) and lists pools with --pool; - every cell drains what it touches, up to its intake rate per tick, with no target; a pool gives at most a quarter of that rate; an emptied deposit disappears; - a dead cell's detritus breaks into one bubble per non-empty channel; - wildlife swims to the nearest non-empty deposit and feeds by touch. Bundle v9 (habitat 2) and schema v43 admit it. Session v11 carries the owner's 512 nearest deposits (id, centre, radius, shape, a drained flag and 16-bit amount codes) instead of patches; every other cellular message is v10's. The client asks for v11, draws bubbles (nutrient-coloured, pulsing while drained, popping when gone) and pools as puddles, slows near food and sends no feed target; the HUD summarises food in range. Earlier rules, regions and v10 clients are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+28
-4
@@ -118,6 +118,7 @@ SELECT EXISTS (SELECT 1 FROM pg_catalog.pg_namespace WHERE nspname='evolution')
|
||||
SELECT :'history_v39' || ',40:' || :'migration_sha_40' AS history_v40 \gset
|
||||
SELECT :'history_v40' || ',41:' || :'migration_sha_41' AS history_v41 \gset
|
||||
SELECT :'history_v41' || ',42:' || :'migration_sha_42' AS history_v42 \gset
|
||||
SELECT :'history_v42' || ',43:' || :'migration_sha_43' AS history_v43 \gset
|
||||
SELECT :'history' = :'history_v22' AS at_v22,
|
||||
:'history' = :'history_v23' AS at_v23,
|
||||
:'history' = :'history_v24' AS at_v24,
|
||||
@@ -138,8 +139,10 @@ SELECT EXISTS (SELECT 1 FROM pg_catalog.pg_namespace WHERE nspname='evolution')
|
||||
:'history' = :'history_v39' AS at_v39,
|
||||
:'history' = :'history_v40' AS at_v40,
|
||||
:'history' = :'history_v41' AS at_v41,
|
||||
:'history' = :'history_v42' AS at_v42 \gset
|
||||
\if :at_v42
|
||||
:'history' = :'history_v42' AS at_v42,
|
||||
:'history' = :'history_v43' AS at_v43 \gset
|
||||
\if :at_v43
|
||||
\elif :at_v42
|
||||
\elif :at_v41
|
||||
\elif :at_v40
|
||||
\elif :at_v39
|
||||
@@ -517,7 +520,8 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
coalesce(max(version), 0) = 39 AS at_v39,
|
||||
coalesce(max(version), 0) = 40 AS at_v40,
|
||||
coalesce(max(version), 0) = 41 AS at_v41,
|
||||
coalesce(max(version), 0) = 42 AS at_v42
|
||||
coalesce(max(version), 0) = 42 AS at_v42,
|
||||
coalesce(max(version), 0) = 43 AS at_v43
|
||||
FROM evolution.schema_migrations \gset
|
||||
\if :at_v24
|
||||
\ir 0025_cellular_v2_bundle.sql
|
||||
@@ -538,6 +542,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v25
|
||||
\ir 0026_cellular_profile_migration.sql
|
||||
\ir 0027_cellular_v3_migration.sql
|
||||
@@ -556,6 +561,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v26
|
||||
\ir 0027_cellular_v3_migration.sql
|
||||
\ir 0028_cellular_v3_trace_bounds.sql
|
||||
@@ -573,6 +579,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v27
|
||||
\ir 0028_cellular_v3_trace_bounds.sql
|
||||
\ir 0029_cellular_mutation_reservations.sql
|
||||
@@ -589,6 +596,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v28
|
||||
\ir 0029_cellular_mutation_reservations.sql
|
||||
\ir 0030_cellular_birth_publication_binding.sql
|
||||
@@ -604,6 +612,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v29
|
||||
\ir 0030_cellular_birth_publication_binding.sql
|
||||
\ir 0031_fix_cellular_birth_publication_record.sql
|
||||
@@ -618,6 +627,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v30
|
||||
\ir 0031_fix_cellular_birth_publication_record.sql
|
||||
\ir 0032_fix_cellular_v3_manifest_normalization.sql
|
||||
@@ -631,6 +641,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v31
|
||||
\ir 0032_fix_cellular_v3_manifest_normalization.sql
|
||||
\ir 0033_fix_cellular_action_tick_offset.sql
|
||||
@@ -643,6 +654,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v32
|
||||
\ir 0033_fix_cellular_action_tick_offset.sql
|
||||
\ir 0034_cellular_v4_engulf_bundle.sql
|
||||
@@ -654,6 +666,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v33
|
||||
\ir 0034_cellular_v4_engulf_bundle.sql
|
||||
\ir 0035_cellular_mutation_publication.sql
|
||||
@@ -664,6 +677,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v34
|
||||
\ir 0035_cellular_mutation_publication.sql
|
||||
\ir 0036_cellular_v5_budding_bundle.sql
|
||||
@@ -673,6 +687,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v35
|
||||
\ir 0036_cellular_v5_budding_bundle.sql
|
||||
\ir 0037_cellular_life_endings.sql
|
||||
@@ -681,6 +696,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v36
|
||||
\ir 0037_cellular_life_endings.sql
|
||||
\ir 0038_cellular_v6_presence_bundle.sql
|
||||
@@ -688,29 +704,37 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_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
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v38
|
||||
\ir 0039_account_identities.sql
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v39
|
||||
\ir 0040_cellular_mutation_decline.sql
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v40
|
||||
\ir 0041_cellular_v7_balance_bundle.sql
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v41
|
||||
\ir 0042_cellular_v8_reproduction_bundle.sql
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v42
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v43
|
||||
\else
|
||||
\echo 'Unknown or changed migration history after v42'
|
||||
\echo 'Unknown or changed migration history after v43'
|
||||
DO $$ BEGIN RAISE EXCEPTION 'unknown or changed migration history'; END $$;
|
||||
\endif
|
||||
-- Effective-privilege audit on every run, including no-ops (ADR-0060). Attributes
|
||||
|
||||
Reference in New Issue
Block a user