Remove client document forwarding shortcuts

This commit is contained in:
Meta Vens 2026-06-28 05:43:12 +01:00
commit 9b46a745e1
5 changed files with 52 additions and 90 deletions

View file

@ -351,7 +351,7 @@ Work:
Gates:
- `InventoryMenu`, `InventoryPanel`, `TradeMenu`, `LocalMenu`, `SchematicDisplay`, `SectorRenderer`, `MapRenderer`, and `ZoneRenderer` do not manually join state projections to obtain domain values.
- Shared projected documents are reachable through `client.Aetheria().Document<TDocument>()`, including same-schema CLR aliases, `client.Aetheria().DocumentBySchema(schemaVersion)`, `client.Aetheria().LatestAsync<TDocument>()`, and `client.Watch<TDocument>()`; the underlying type/schema lookup is delegated to CultMesh rather than an Aetheria-owned schema registry.
- Shared projected documents are reachable through `client.Aetheria().Document<TDocument>()`, including same-schema CLR aliases, `client.Aetheria().DocumentBySchema(schemaVersion)`, `client.Aetheria().LatestAsync<TDocument>()`, and `client.Aetheria().Watch<TDocument>()`; the underlying type/schema lookup is delegated to CultMesh rather than an Aetheria-owned schema registry.
- Client-facing code contains no `_observedFacadeIndex.TryResolve*` outside Unity render adapter internals.
- Client-facing code contains no `ResolveClient().Current*Async().GetAwaiter().GetResult()` or equivalent blocking state reads.
- `TryGetTypedCurrentDockingBayFacade` and similar transitional helpers are deleted rather than renamed.

View file

@ -578,20 +578,13 @@ Assert-Contains $tickRunner "ProjectTradeValuePolicySurfaceDocument(stateFilePat
$client = Read-Text "Packages\org.gamecult.aetheria.state\Runtime\AetheriaClient.cs"
Assert-Contains $client "AetheriaClientState State" "AetheriaClient must expose the semantic typed state facade."
Assert-Contains $client "Aetheria()" "AetheriaClient must expose the canonical domain facade entrypoint."
Assert-Contains $client "Document<TDocument>()" "AetheriaClient must allow callers to retrieve a projected state document by shared document type."
Assert-Contains $client "DocumentBySchema(string schemaVersion)" "AetheriaClient must allow projected state lookup by shared schema identity."
Assert-Contains $client "LatestAsync<TDocument>()" "AetheriaClient must allow one-call typed state reads by shared document type."
Assert-Contains $client "Watch<TDocument>()" "AetheriaClient must allow reactive typed state reads by shared document type."
Assert-Contains $client "ObjectsViewportAsync" "AetheriaClient must expose objects viewport facade."
Assert-Contains $client "GravityViewportAsync" "AetheriaClient must expose gravity viewport facade."
Assert-Contains $client "CurrentZoneAsync" "AetheriaClient must expose current-zone facade."
Assert-Contains $client "CurrentEntityAsync" "AetheriaClient must expose current-entity facade."
Assert-Contains $client "CurrentDockingAsync" "AetheriaClient must expose current-docking facade."
Assert-Contains $client "ZoneContactsAsync" "AetheriaClient must expose zone-contacts facade."
Assert-Contains $client "StationRefitAsync" "AetheriaClient must expose station-refit facade."
Assert-Contains $client "SectorMapAsync" "AetheriaClient must expose sector-map facade."
Assert-Contains $client "ZoneDetailsAsync" "AetheriaClient must expose zone-details facade."
Assert-Contains $client "ZoneRenderAsync" "AetheriaClient must expose zone-render facade."
Assert-Contains $client "AetheriaControl Control" "AetheriaClient must expose command controls separately from managed state documents."
Assert-Contains $client "AetheriaUi Ui" "AetheriaClient must expose UI command submission separately from managed state documents."
Assert-NotContains $client "Document<TDocument>()" "AetheriaClient must not forward typed document lookup; use AetheriaClientState."
Assert-NotContains $client "DocumentBySchema(string schemaVersion)" "AetheriaClient must not forward schema document lookup; use AetheriaClientState."
Assert-NotContains $client "LatestAsync<TDocument>()" "AetheriaClient must not forward one-call typed reads; use AetheriaClientState."
Assert-NotContains $client "Watch<TDocument>()" "AetheriaClient must not forward reactive reads; use AetheriaClientState."
Assert-NotContains $client "ReactiveAsync<TDocument>" "AetheriaClient must not forward reactive document creation; use AetheriaClientState."
$verseClient = Read-Text "Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeVerseClient.cs"
Assert-Contains $verseClient "AetheriaClientState Aetheria()" "AetheriaRuntimeVerseClient must expose the shared domain state facade."