diff --git a/apps/evo-server/cellular_bridge.hpp b/apps/evo-server/cellular_bridge.hpp index 890026e..1cd8566 100644 --- a/apps/evo-server/cellular_bridge.hpp +++ b/apps/evo-server/cellular_bridge.hpp @@ -81,6 +81,11 @@ class CellularBridge { config.ledger = bridge.control_.get(); config.actions = bridge.actions_.get(); config.accept_cellular_actions = true; + // A cellular action carries one tick's movement and intake; a tick without one is + // idle, so a steering or feeding player sends one every tick. The probe default + // (4 per 8-tick window) refused every other one; allow one per tick with headroom + // for arrival jitter across window edges. + config.intents.max_actions_per_window = 2 * config.intents.window_ticks; config.create_primitive_life = [&host](const network::AccountId& account, std::uint64_t generation, std::uint64_t request) { return host.create_primitive_life(account.bytes, generation, request); diff --git a/deploy/kubernetes/region/dev-session-route/listener.yaml b/deploy/kubernetes/region/dev-session-route/listener.yaml index d269e62..8840cc2 100644 --- a/deploy/kubernetes/region/dev-session-route/listener.yaml +++ b/deploy/kubernetes/region/dev-session-route/listener.yaml @@ -12,7 +12,7 @@ spec: env: - {name: REGION_SESSION, value: "dev"} - {name: REGION_SESSION_LISTEN, value: "0.0.0.0:7400"} - - {name: REGION_SESSION_WINDOW, value: "dev-20261013T190618-44628:1791929178"} + - {name: REGION_SESSION_WINDOW, value: "dev-20261013T191802-66969:1791929882"} - {name: REGION_M10_MAX_GRANT_LIFETIME, value: "14400"} ports: # QUIC (ADR-0090): UDP only; nothing listens on TCP 7400. diff --git a/deploy/kubernetes/region/dev/kustomization.yaml b/deploy/kubernetes/region/dev/kustomization.yaml index 468e773..3a0226c 100644 --- a/deploy/kubernetes/region/dev/kustomization.yaml +++ b/deploy/kubernetes/region/dev/kustomization.yaml @@ -1,4 +1,4 @@ -# Region host for evolution-dev: world 100, region 2, frame 9 (cellular-v1 opening, M11.3). +# Region host for evolution-dev: world 100, region 3, frame 9 (cellular-v1 opening, M11.3). # The server image digest appears twice on purpose: as the image and as the build # identity the region records in every commit. The policy check requires they match. apiVersion: kustomize.config.k8s.io/v1beta1 diff --git a/deploy/kubernetes/region/dev/region-values.yaml b/deploy/kubernetes/region/dev/region-values.yaml index f40e9bd..079b1e6 100644 --- a/deploy/kubernetes/region/dev/region-values.yaml +++ b/deploy/kubernetes/region/dev/region-values.yaml @@ -1,6 +1,7 @@ # Region identity and build (the server image digest without "sha256:"). -# M11.3 cellular probe: region 2 holds a cellular-v1 genesis. Region 1's lineage history -# stays in the stores untouched; it is simply not served while dev runs cellular. +# M11.3 cellular probe: region 3 holds a cellular-v1 genesis (region 2 had an energy-starved +# opening, ADR-0123). Regions 1 (lineage) and 2 stay in the stores untouched; they are +# simply not served while dev runs region 3. apiVersion: apps/v1 kind: Deployment metadata: @@ -12,11 +13,11 @@ spec: - name: evo-server env: - {name: REGION_WORLD, value: "100"} - - {name: REGION_ID, value: "2"} + - {name: REGION_ID, value: "3"} - {name: REGION_BUILD, value: faeb26fc5db5c4aae9ae9eb4388e807ab4d59499d7639fcab3d878843a740037} - {name: REGION_PROFILE, value: cellular} # The whole world's catalog: dev world 100 has only this region. - - {name: REGION_LIFE_ROUTES, value: "2=void.aeternalisgames.com:7400=void.aeternalisgames.com"} + - {name: REGION_LIFE_ROUTES, value: "3=void.aeternalisgames.com:7400=void.aeternalisgames.com"} # Keep the currently promoted build plus prior committed builds recoverable. - {name: REGION_RETAINED, value: "6c96629eb3c26513d55207b109fe2a9873a58f43510bd067b7d5422572e3fb42 7952185d5ef96504b5793b76fe72e42cbe9c9ac19149bf912adb2c3a735f8dbf f378a43d6146eeed864110b90848df0bec9672fa4c9941a2d04de249068a4a09 ecac8f9f2489c547ce58f12ed01baaa3939c8adbf8aed05c313abbf422cdc855 4af7209941643e0c6a100e2b4e2fef8a959b87fdbfac2173b7867cfc1808bd66 edb39f956df1f481d7ba724cac4ceb3a4fe494efc02f994d31d6c96dfae04a78 0ded41070dd3e0c0daa43e13dadc58c449865eec00530cfceff3c1579c66e916 754446fe4e5f33e9c0d5a1a74a02444a01de1700673442c90827c708aba62cee c597c0bac8b4a796e1e8b70344f9866cb047cc90cfb15af774d38860594ea27a e83c333a87056c678b5e835947647ef42370b43dbfc31997744f28d993f9c4aa db2b0e6a6071502381a768d70fd9bab8c08c64e4717fc23da45dbe8adc5fa3d6 cdc10712ff8bf956f8f5900709500046493523b51dc670d5b2d01eaf604bcd38 028571f257b485acafbe79b704a80f273d899485c4bb264d9c8137bf51e33217 566c29329433934f1436faf94652a7b925df8b4587ab04470322172f47c31c02 1dd640eba3e9dbdd10106698215a0a06df89c5cdf801c53c4c26fb923116552a"} --- @@ -31,17 +32,18 @@ spec: - name: provision env: - {name: REGION_WORLD, value: "100"} - - {name: REGION_ID, value: "2"} + - {name: REGION_ID, value: "3"} - {name: REGION_BUILD, value: faeb26fc5db5c4aae9ae9eb4388e807ab4d59499d7639fcab3d878843a740037} # M11.3 dev trial opening (tunable, not a world rule): 10 x 10 mm arena at 20 C; # nursery funds 8 primitive founders (8 x primitive_endowment()); 8 spawn sites; - # 4 rich (~2 founders), 3 lean and 1 empty 1,000 um patch (X,Y,SOURCE,ENERGY,C,N,P,O). + # 4 rich and 3 lean 1,000 um patches (about 3 min and 45 s of full-rate feeding: intake is + # 1,148,000 pJ/s, maintenance 152,000 pJ/s) and 1 empty one (X,Y,SOURCE,ENERGY,C,N,P,O). # Genesis is written once: keep --commit stable so every sync resolves it. The world 100 # life allocator starts far above the unserved lineage region 1 identities (ADR-0123). - {name: REGION_OPENING, value: cellular-v1} - name: REGION_OPENING_ARGS value: >- - --frame 9 --source-id 1 --commit 18ff2e1ab8cef4c9cd73d4cc6e322496 + --frame 9 --source-id 1 --commit 71e7a3f03c74613a6f55e72c77671f77 --life-allocator-start 1000000000000 --width-um 10000 --height-um 10000 --ambient-temperature-mk 293150 --funding-energy-pj 66073600 --funding-carbon-fg 48128000 @@ -49,11 +51,11 @@ spec: --funding-other-fg 22656000 --site 2500,2500 --site 2500,5000 --site 2500,7500 --site 5000,2500 --site 5000,7500 --site 7500,2500 --site 7500,5000 --site 7500,7500 - --patch 1000,4000,2,4000000,3000000,700000,350000,1400000 - --patch 3000,3000,2,16000000,12000000,2700000,1400000,5700000 - --patch 3000,7000,2,4000000,3000000,700000,350000,1400000 - --patch 5000,5000,2,16000000,12000000,2700000,1400000,5700000 + --patch 1000,4000,2,50000000,3000000,700000,350000,1400000 + --patch 3000,3000,2,200000000,12000000,2700000,1400000,5700000 + --patch 3000,7000,2,50000000,3000000,700000,350000,1400000 + --patch 5000,5000,2,200000000,12000000,2700000,1400000,5700000 --patch 6000,1000,2,0,0,0,0,0 - --patch 7000,3000,2,4000000,3000000,700000,350000,1400000 - --patch 7000,7000,2,16000000,12000000,2700000,1400000,5700000 - --patch 9000,9000,2,16000000,12000000,2700000,1400000,5700000 + --patch 7000,3000,2,50000000,3000000,700000,350000,1400000 + --patch 7000,7000,2,200000000,12000000,2700000,1400000,5700000 + --patch 9000,9000,2,200000000,12000000,2700000,1400000,5700000 diff --git a/docs/adr/0123-dev-cellular-region-and-life-allocator-provisioning.md b/docs/adr/0123-dev-cellular-region-and-life-allocator-provisioning.md index ec1728d..f3d9184 100644 --- a/docs/adr/0123-dev-cellular-region-and-life-allocator-provisioning.md +++ b/docs/adr/0123-dev-cellular-region-and-life-allocator-provisioning.md @@ -72,7 +72,21 @@ region in DEV. Bringing one up exposed four gaps: its own recorded build, so a different commit or opening is still refused. - Past genesis, as for the lineage and primitive openings, a matching profile and frame identify it. -- **Grants for region 2 must be minted with `--region 2 --lifetime 300` or +- **The first playable run moved DEV to region 100/3.** Two findings forced it: + - **Region 2's opening was energy-starved.** In this trial only a patch's + energy channel feeds the reserve; matter is never converted. Founder + intake is up to 1,148,000 pJ/s against 152,000 pJ/s maintenance, so the + 4M and 16M pJ patches emptied in 3.5 and 14 seconds and the cell starved + while feeding. + - **Region 3 keeps the layout** with 200M pJ rich and 50M pJ lean patches, + about 3 minutes and 45 seconds of full-rate feeding, under genesis commit + `71e7a3f03c74613a6f55e72c77671f77`. Region 2 stays unserved. +- **Cellular actions are admitted once per tick.** A cellular action carries + one tick's movement and intake, and a tick without one is idle, so the + client sends one every tick. The default probe admission (4 actions per + 8-tick window) refused every other one. The cellular bridge allows two per + tick of window, which leaves headroom for arrival jitter. +- **Grants for region 3 must be minted with `--region 3 --lifetime 300` or less.** Longer probe sessions require a separate, reviewed change to the cellular grant ceiling; this ADR does not make it. diff --git a/docs/engineering/VALIDATION.md b/docs/engineering/VALIDATION.md index 8016253..0b1c7af 100644 --- a/docs/engineering/VALIDATION.md +++ b/docs/engineering/VALIDATION.md @@ -7177,4 +7177,13 @@ recorded build, and accepts profile and frame once the head is past genesis. `region_store_tests` adds a cellular case: a rerun under a new build is already-provisioned, while another commit or opening is refused. Checked locally with g++-14 `-Werror`, clang-tidy-19 `--warnings-as-errors=*` and -clang-format 19.1.5; the PostgreSQL process tests run in CI. \ No newline at end of file +clang-format 19.1.5; the PostgreSQL process tests run in CI. +The first playable run (client camera fixed in 532f45b) showed two server-side +faults. First, the client sends one cellular action per tick, but the default +probe admission allowed 4 per 8-tick window, so every other action was refused; +the cellular bridge now admits two per tick of window. Second, region 2's +opening starved the cell. Only patch energy feeds the reserve, and founder +intake (1,148,000 pJ/s) emptied its 4M and 16M pJ patches in seconds. DEV moves +to region 100/3 with 200M and 50M pJ patches (ADR-0123). Checked locally: +g++-14 `-Werror` and clang-tidy-19 on `apps/evo-server/main.cpp` with +`EVO_SERVER_M10`, plus the deploy policy suite. \ No newline at end of file