From e51a77932c40c63f39251e7c4cabb13051d8e39a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 13 Jun 2026 10:36:41 +0100 Subject: [PATCH] Prove typed zone entity state --- .voidbot/state/aetheria.cc | Bin 23300 -> 23227 bytes Aetheria.State.Smoke/Program.cs | 71 ++++++++++++++++++++++++++- Aetheria.State/AetheriaStateNode.cs | 22 +++++++++ Aetheria.State/README.md | 8 +-- docs/aetheria-perfect-machine-map.md | 18 +++++-- 5 files changed, 112 insertions(+), 7 deletions(-) diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index bcfb8ad10a8a7dcc253faba0ebdc5cf7a94f7be4..8aee4cdfa479b0734db5be326ff58ce642d6fd85 100644 GIT binary patch delta 1168 zcmbVMT}xC!819&8o5qr*WP%RZrWbq8W_nipy4X-Kh;?lVLAsgFj=PiR%$#QCxGI4K z^$Vt(E`u`arsPlr-4p~7U3n2<^jo5tJs)X%*VUPM=lyt|_kGU$@SXADt?_2NqkGc6 zICb7C%Iw0h{MPX(6WyoJP08a61Ck!zj4d;<px*$H0~G>l0fV<)1T5_V81h}{AWwN(&m9+H@24@E z>6_Rwx6B|FX&$g+NkEt#d69RRVq9puz%j$37{0 zbK_f3162rC5JSYlq^<~PQ2F?K@QHw!4UaP^H&q3;*+CPF20(WM>}y(i&_vLuM0J4% zeiXzNFHov8Tm$-utQP_ijw#vua+BzeRpHt`Cizgd7NUr6>&lP^v7#8L7I+9alyJcUN2p4AW_M8Q$n$E5A{`72M1wMg!rFnY_iLW- zVh8G|z1=0u5cmh=twM@WP*uhAu%Z_WUEf2^ahcU4nWJ+Vay z0o^P80d9PND`n7)3m-dmqZ>gH|3L5)yw%e^5Tl!6ICcBpbIv_guU|TMUpdd8wCx@~ zJvB01C>AHy9ymS8&xOw9Q`@~99V@1&Y`@(?CR1cr$06rKqrbyFym56FO$`-iC7;Ep zme3e3sv3k`hftwLRYwg}0t%TAVOj+`FVi&^A~33mL-b$;l}6Bp87w?@ea3_D&T>AX zuw-$-TOku36+N2oDf12=+RV<$IEO_Eb}=0~Ut zPYnvqrTFf2To&BKK;$ExwrKX(u0kpy%G~!Mh*Bf%Ql#&}Rv&=;GCZK8@(pwi4W@2^ zR56s%Wf2Xvz9;j?yW3(+t{v~+SkC&SMyxBI8m+6} zY-KyA4=kc>kuPy$Ww2-G^2&LvaFN}LEot6HlU&R^NS8?;r6#3!r8UQfASvy?2ty?$ z>oz@^f4*d%wB92bM^`6-;;J*6?CtJ5P>Co9O_yy@>1yQd8qbP7dz^*j?YXnbm+9U{ z@9ZzfnMuU_(Z2tFlq}B8bZ1Y=$mH51!>annjw6kSb6=gt{R{iLx>|?H=k~t*H5nhv oUY$2NGBKRJIGxG+McG1|?@+0(key); } + public Task> PutZoneStateAsync(CultRecordKey key, AetheriaZoneState zone) + { + return Database.PutAsync(key, zone); + } + + public Task GetZoneStateAsync(CultRecordKey key) + { + return Database.GetAsync(key); + } + + public Task> PutEntitySnapshotAsync( + CultRecordKey key, + AetheriaEntitySnapshot entity) + { + return Database.PutAsync(key, entity); + } + + public Task GetEntitySnapshotAsync(CultRecordKey key) + { + return Database.GetAsync(key); + } + public Task FlushAsync(bool soft = false) { return _node.FlushAsync(soft); diff --git a/Aetheria.State/README.md b/Aetheria.State/README.md index 10c037acd..945394b0a 100644 --- a/Aetheria.State/README.md +++ b/Aetheria.State/README.md @@ -92,9 +92,11 @@ objects and does not write state. Unity can use this as the first package boundary once CultLib/Eve runtime packaging is available. `Aetheria.State.Smoke` writes and reopens full typed player settings plus a -typed loadout template in addition to world, catalog, and run state. That smoke -is the current proof that settings and loadouts have durable Verse state shapes -without reviving `PlayerSettings.msgpack` or `.loadout` serialization. +typed loadout template in addition to world, catalog, run state, zone state, and +an entity snapshot. The run smoke proves a typed run can reference a typed zone, +the zone can reference typed entity snapshots, and entity snapshots can preserve +equipment slots, weapon groups, and stat grids without reviving +`PlayerSettings.msgpack`, `.loadout`, or `.zone` serialization. `Aetheria.State.Verify` opens a materialized state file and checks that the typed migration ledger matches the actual item, corporation, and name-file diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index d9f966090..1e3cb516b 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -45,6 +45,13 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. preferences, input binding overrides, and action-bar inputs. Unity's menu and input screens still mutate the old `PlayerSettings` runtime object in memory until the runtime Verse package is wired. +- `Aetheria.State` now exposes typed node put/get ports for run state, zone + state, and entity snapshots. The state smoke writes a run referencing a zone, + a zone referencing an entity snapshot, and an entity snapshot carrying + position, direction, faction, hull, equipment slots, weapon groups, and a stat + grid. This proves the `.zone` replacement graph is durable typed state; Unity + `ZonePack` and `EntityPack` are still runtime construction projections until + the runtime package is wired. - `Aetheria.State` now defines `AetheriaLoadoutTemplate` as the typed Verse replacement for bespoke `.loadout` files. It stores structured hull, equipment, cargo bay, docking bay, child-entity, assignment, and weapon-group @@ -177,8 +184,10 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. methods, not importer-local string concatenation. Player settings and loadout templates have typed state documents and node put/get paths; Unity's menu, input screens, and save button still need to call them through the runtime - Verse package. The catalog operator UI is emitted as a typed Eve surface - document derived from the catalog snapshot. + Verse package. Run, zone, and entity snapshot state also have typed node + put/get paths; Unity `SaveState`/`SaveZone` still need to commit through those + ports. The catalog operator UI is emitted as a typed Eve surface document + derived from the catalog snapshot. - Derived state: UI panels, generated keyboard layouts, editor rows, and serialized legacy payloads are projections, migration inputs, or disabled session-local DTOs, not durable authority. @@ -294,6 +303,8 @@ First Aetheria surfaces to publish: values. - Done: add typed `AetheriaLoadoutTemplate` documents and smoke coverage so `.loadout` no longer lacks a durable Verse replacement. + - Done: add typed node ports and smoke coverage for run -> zone -> entity + snapshots so `.zone` no longer lacks a durable Verse replacement graph. - Remaining: add typed documents/mappers for runtime object graphs, typed behavior factory construction, simulation state, and any catalog fields not covered by the stable scalar/fingerprint/payload pass. @@ -352,7 +363,8 @@ First Aetheria surfaces to publish: maintained projects. - CultCache smoke proves write, flush, reopen, query, and typed reference resolution, including full player settings as the `PlayerSettings.msgpack` - replacement and loadout templates as the `.loadout` replacement. + replacement, loadout templates as the `.loadout` replacement, and a run -> + zone -> entity snapshot graph as the `.zone` replacement. - CultMesh smoke proves node start, typed put/get, subscription, flush, and reopen. - Eve surface smoke proves provider-owned surface documents are generated from