Neutralize daemon Starbridge role fixtures
This commit is contained in:
parent
f05c0f939c
commit
17af6f728d
3 changed files with 63 additions and 61 deletions
|
|
@ -1898,7 +1898,7 @@ static async Task EnsureStarbridgeSessionDocumentsAsync(
|
|||
},
|
||||
new AetheriaRuntimeStarbridgeRuntimeRole
|
||||
{
|
||||
RuntimeId = "raven-unity",
|
||||
RuntimeId = "pilot-client",
|
||||
Role = "pilot",
|
||||
EntityKey = pilotOneKey
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16243,6 +16243,7 @@ static void RequireUnityDoesNotCallSharedSimulationTicks(string root)
|
|||
daemonProgram.Contains("RTS CultMesh endpoint", StringComparison.Ordinal) ||
|
||||
daemonProgram.Contains("aetheria-rts-rudp", StringComparison.Ordinal) ||
|
||||
daemonProgram.Contains("daemon:aetheria.rts.viewport", StringComparison.Ordinal) ||
|
||||
daemonProgram.Contains("raven-unity", StringComparison.Ordinal) ||
|
||||
daemonProgram.Contains("local-rts", StringComparison.Ordinal) ||
|
||||
daemonProgram.Contains("starfire-rts", StringComparison.Ordinal))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -32,8 +32,7 @@ Assert-Contains $mainMenu "_openRuntimeInputScreen?.Invoke();" "MainMenu must op
|
|||
Assert-Contains $mainMenu "AetheriaUnityRuntimeClientProvider" "MainMenu observed-game boot must enter state through the Unity runtime client provider."
|
||||
Assert-Contains $mainMenu ".RuntimeState(stateBoot, ""unity-main-menu"")" "MainMenu observed-game boot must grab typed runtime state."
|
||||
Assert-Contains $mainMenu ".SectorMap" "MainMenu observed-game boot must read the typed sector-map document handle."
|
||||
Assert-Contains $mainMenu ".PlayerSettings" "MainMenu must read player settings through the typed document handle."
|
||||
Assert-Contains $mainMenu ".VerseHostSettings" "MainMenu must read Verse host settings through the typed document handle."
|
||||
Assert-Contains $mainMenu ".MainMenuSurface(surfaceId, CanOpenRuntimeInputScreen(), InGame)" "MainMenu must render the managed main-menu surface instead of reading settings documents locally."
|
||||
Assert-NotContains $mainMenu ".SectorMapAsync()" "MainMenu observed-game boot must not use the transitional sector-map helper."
|
||||
Assert-NotContains $mainMenu "LatestDaemonFrame" "MainMenu must not read whole daemon frames for observed-game boot."
|
||||
Assert-NotContains $mainMenu "LatestAuthoritativeRunFrameAsync" "MainMenu must not read whole daemon frames for observed-game boot."
|
||||
|
|
@ -698,6 +697,8 @@ Assert-Contains $clientState "CultMeshDocumentHandle<" "Aetheria state documents
|
|||
Assert-Contains $clientState "public CultMeshDocumentHandle<AetheriaRuntimeDaemonFrameDocument> DaemonFrame" "Aetheria state must expose named managed typed document handles."
|
||||
Assert-Contains $clientState "public CultMeshDocumentHandle<AetheriaRuntimeCatalogSnapshot> Catalog" "Aetheria state must expose named managed typed document handles."
|
||||
Assert-Contains $clientState "public CultMeshDocumentHandle<AetheriaRuntimeCurrentEntityDocument> CurrentEntity" "Aetheria state must expose named managed typed document handles."
|
||||
Assert-Contains $clientState "public CultMeshDocumentHandle<AetheriaRuntimePlayerSettingsDocument> PlayerSettings" "Aetheria state must expose player settings as a named typed document handle."
|
||||
Assert-Contains $clientState "public CultMeshDocumentHandle<AetheriaRuntimeVerseHostSettingsDocument> VerseHostSettings" "Aetheria state must expose Verse host settings as a named typed document handle."
|
||||
Assert-Contains $clientState "public CultMeshDocumentHandle<AetheriaRuntimeInventoryDocument> Inventory(" "Aetheria state must expose parameterized typed document handles."
|
||||
Assert-NotContains $clientState "AetheriaRuntimeProjectedDocument" "Aetheria state must not wrap CultMesh document handles in a private projected-document abstraction."
|
||||
Assert-NotContains $clientState "_documentsByType" "Aetheria state must not maintain a private type index beside named handles."
|
||||
|
|
@ -709,55 +710,55 @@ Assert-NotContains $clientState "CultMeshDocumentCatalog" "Aetheria state must n
|
|||
Assert-NotContains $clientState "LatestAsync<TDocument>()" "Aetheria state must not expose generic one-call reads beside named handles."
|
||||
Assert-NotContains $clientState "Watch<TDocument>()" "Aetheria state must not expose generic watch shortcuts beside named handles."
|
||||
|
||||
$rtsDocuments = Read-Text "Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeRtsDocuments.cs"
|
||||
Assert-Contains $rtsDocuments "ZoneDetails(" "Shared document code must own the zone-details feed."
|
||||
Assert-Contains $rtsDocuments "ZoneContacts(" "Shared document code must own the zone-contacts feed."
|
||||
Assert-Contains $rtsDocuments "ToZoneTargetRow" "Zone-contacts document must carry target geometry rows."
|
||||
Assert-Contains $rtsDocuments "Distance = Math.Sqrt(deltaX * deltaX + deltaZ * deltaZ)" "Zone-contacts document must carry target/contact distances."
|
||||
Assert-Contains $rtsDocuments "ZoneRender(" "Shared document code must own the zone-render feed."
|
||||
Assert-Contains $rtsDocuments "CurrentEntity(" "Shared document code must own the current-entity feed."
|
||||
Assert-Contains $rtsDocuments "CurrentDocking(" "Shared document code must own the current-docking feed."
|
||||
Assert-Contains $rtsDocuments "StationRefit(" "Shared document code must own the station-refit feed."
|
||||
Assert-Contains $rtsDocuments "Credits = context.Run.Credits" "Station-refit document must carry typed run credits."
|
||||
Assert-Contains $rtsDocuments "StationStock(" "Station-refit document must carry typed station stock."
|
||||
Assert-Contains $rtsDocuments "CargoItems = StationStock(entity)" "Station-refit entity options must carry typed cargo rows for target counts."
|
||||
Assert-Contains $rtsDocuments "StationStockTradeFacts(" "Station-refit document must enrich station stock with trade facts."
|
||||
Assert-Contains $rtsDocuments "OwnedQuantity = CountStationOwnedQuantity" "Station-refit document must publish owned counts for trade rows."
|
||||
Assert-Contains $rtsDocuments "CanAfford = price >= 0 && credits >= price" "Station-refit document must publish affordability for trade rows."
|
||||
Assert-Contains $rtsDocuments "SourceIndex = sourceIndex" "Inventory documents must carry source slot identity for cargo/equipment operations."
|
||||
Assert-Contains $rtsDocuments "X = slot.X" "Inventory documents must carry item grid X for cargo/equipment operations."
|
||||
Assert-Contains $rtsDocuments "Y = slot.Y" "Inventory documents must carry item grid Y for cargo/equipment operations."
|
||||
$gameDocuments = Read-Text "Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeGameDocuments.cs"
|
||||
Assert-Contains $gameDocuments "ZoneDetails(" "Shared document code must own the zone-details feed."
|
||||
Assert-Contains $gameDocuments "ZoneContacts(" "Shared document code must own the zone-contacts feed."
|
||||
Assert-Contains $gameDocuments "ToZoneTargetRow" "Zone-contacts document must carry target geometry rows."
|
||||
Assert-Contains $gameDocuments "Distance = Math.Sqrt(deltaX * deltaX + deltaZ * deltaZ)" "Zone-contacts document must carry target/contact distances."
|
||||
Assert-Contains $gameDocuments "ZoneRender(" "Shared document code must own the zone-render feed."
|
||||
Assert-Contains $gameDocuments "CurrentEntity(" "Shared document code must own the current-entity feed."
|
||||
Assert-Contains $gameDocuments "CurrentDocking(" "Shared document code must own the current-docking feed."
|
||||
Assert-Contains $gameDocuments "StationRefit(" "Shared document code must own the station-refit feed."
|
||||
Assert-Contains $gameDocuments "Credits = context.Run.Credits" "Station-refit document must carry typed run credits."
|
||||
Assert-Contains $gameDocuments "StationStock(" "Station-refit document must carry typed station stock."
|
||||
Assert-Contains $gameDocuments "CargoItems = StationStock(entity)" "Station-refit entity options must carry typed cargo rows for target counts."
|
||||
Assert-Contains $gameDocuments "StationStockTradeFacts(" "Station-refit document must enrich station stock with trade facts."
|
||||
Assert-Contains $gameDocuments "OwnedQuantity = CountStationOwnedQuantity" "Station-refit document must publish owned counts for trade rows."
|
||||
Assert-Contains $gameDocuments "CanAfford = price >= 0 && credits >= price" "Station-refit document must publish affordability for trade rows."
|
||||
Assert-Contains $gameDocuments "SourceIndex = sourceIndex" "Inventory documents must carry source slot identity for cargo/equipment operations."
|
||||
Assert-Contains $gameDocuments "X = slot.X" "Inventory documents must carry item grid X for cargo/equipment operations."
|
||||
Assert-Contains $gameDocuments "Y = slot.Y" "Inventory documents must carry item grid Y for cargo/equipment operations."
|
||||
|
||||
$zoneRenderDocs = Read-Text "Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeRtsViewportDocuments.cs"
|
||||
Assert-Contains $zoneRenderDocs "public int SourceIndex" "Inventory item projection documents must carry source index."
|
||||
Assert-Contains $zoneRenderDocs "public int X" "Inventory item projection documents must carry grid X."
|
||||
Assert-Contains $zoneRenderDocs "public int Y" "Inventory item projection documents must carry grid Y."
|
||||
Assert-Contains $zoneRenderDocs "AetheriaRuntimeZoneRenderDocument" "Runtime documents must define the zone-render feed."
|
||||
Assert-Contains $zoneRenderDocs "AetheriaRuntimeZoneDetailsDocument" "Runtime documents must define the zone-details feed."
|
||||
Assert-Contains $zoneRenderDocs "public bool IsTutorial" "Sector-map feed must carry tutorial mode for observed Unity boot without whole-frame reads."
|
||||
Assert-Contains $zoneRenderDocs "public uint GenerationSeed" "Sector-map feed must carry generation seed for observed Unity boot without whole-frame reads."
|
||||
Assert-Contains $zoneRenderDocs "FactionRelationships" "Sector-map feed must carry faction relationship facts for observed Unity boot without whole-frame reads."
|
||||
Assert-Contains $zoneRenderDocs "EntityHullItemKeys" "Zone-details feed must carry entity hull identity without exposing whole zone snapshots."
|
||||
Assert-Contains $zoneRenderDocs "AetheriaRuntimeZoneContactsDocument" "Runtime documents must define the zone-contacts feed."
|
||||
Assert-Contains $zoneRenderDocs "AetheriaRuntimeZoneContactRow" "Zone-contacts feed must carry typed contact rows."
|
||||
Assert-Contains $zoneRenderDocs "AetheriaRuntimeZoneTargetRow" "Zone-contacts feed must carry typed target rows."
|
||||
Assert-Contains $zoneRenderDocs "public double Distance" "Zone-contacts rows must carry target/contact distance."
|
||||
Assert-Contains $zoneRenderDocs "public double TargetPositionX" "Zone-contacts rows must carry target position."
|
||||
Assert-Contains $zoneRenderDocs "ZoneRenderRadius" "Zone-render feed must carry render radius as an explicit fact."
|
||||
Assert-Contains $zoneRenderDocs "AdjacentZones" "Zone-render feed must carry adjacent-zone summaries for renderer wormholes."
|
||||
Assert-Contains $zoneRenderDocs "WormholeExits" "Zone-render feed must carry resolved wormhole exits as explicit render facts."
|
||||
Assert-Contains $zoneRenderDocs "BodyPoses" "Zone-render feed must carry body poses as explicit render facts."
|
||||
Assert-Contains $zoneRenderDocs "AsteroidBeltPoses" "Zone-render feed must carry asteroid belt poses as explicit render facts."
|
||||
Assert-Contains $zoneRenderDocs "AetheriaRuntimeZoneRenderAsteroidInstancePose" "Zone-render feed must carry typed asteroid instance poses."
|
||||
Assert-Contains $zoneRenderDocs "DroppedPickups" "Zone-render feed must carry dropped pickups as explicit render facts."
|
||||
Assert-Contains $zoneRenderDocs "EntitySnapshots" "Zone-render feed must carry typed entity snapshots for Unity shell restoration."
|
||||
Assert-Contains $zoneRenderDocs "public IReadOnlyList<AetheriaRuntimeOrbitSnapshotCommit> Orbits" "Zone-render feed must carry typed orbit rows for Unity zone context lowering."
|
||||
Assert-Contains $zoneRenderDocs "public IReadOnlyList<AetheriaRuntimeBodySnapshotCommit> Bodies" "Zone-render feed must carry typed body rows for Unity zone context lowering."
|
||||
Assert-NotContains $zoneRenderDocs "public AetheriaRuntimeRunCheckpointCommit Run" "Zone-render feed must not expose the whole daemon run snapshot."
|
||||
Assert-NotContains $zoneRenderDocs "public AetheriaRuntimeZoneSnapshotCommit Zone" "Zone-render feed must not expose the whole daemon zone snapshot."
|
||||
$gameViewportDocs = Read-Text "Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeGameViewportDocuments.cs"
|
||||
Assert-Contains $gameViewportDocs "public int SourceIndex" "Inventory item projection documents must carry source index."
|
||||
Assert-Contains $gameViewportDocs "public int X" "Inventory item projection documents must carry grid X."
|
||||
Assert-Contains $gameViewportDocs "public int Y" "Inventory item projection documents must carry grid Y."
|
||||
Assert-Contains $gameViewportDocs "AetheriaRuntimeZoneRenderDocument" "Runtime documents must define the zone-render feed."
|
||||
Assert-Contains $gameViewportDocs "AetheriaRuntimeZoneDetailsDocument" "Runtime documents must define the zone-details feed."
|
||||
Assert-Contains $gameViewportDocs "public bool IsTutorial" "Sector-map feed must carry tutorial mode for observed Unity boot without whole-frame reads."
|
||||
Assert-Contains $gameViewportDocs "public uint GenerationSeed" "Sector-map feed must carry generation seed for observed Unity boot without whole-frame reads."
|
||||
Assert-Contains $gameViewportDocs "FactionRelationships" "Sector-map feed must carry faction relationship facts for observed Unity boot without whole-frame reads."
|
||||
Assert-Contains $gameViewportDocs "EntityHullItemKeys" "Zone-details feed must carry entity hull identity without exposing whole zone snapshots."
|
||||
Assert-Contains $gameViewportDocs "AetheriaRuntimeZoneContactsDocument" "Runtime documents must define the zone-contacts feed."
|
||||
Assert-Contains $gameViewportDocs "AetheriaRuntimeZoneContactRow" "Zone-contacts feed must carry typed contact rows."
|
||||
Assert-Contains $gameViewportDocs "AetheriaRuntimeZoneTargetRow" "Zone-contacts feed must carry typed target rows."
|
||||
Assert-Contains $gameViewportDocs "public double Distance" "Zone-contacts rows must carry target/contact distance."
|
||||
Assert-Contains $gameViewportDocs "public double TargetPositionX" "Zone-contacts rows must carry target position."
|
||||
Assert-Contains $gameViewportDocs "ZoneRenderRadius" "Zone-render feed must carry render radius as an explicit fact."
|
||||
Assert-Contains $gameViewportDocs "AdjacentZones" "Zone-render feed must carry adjacent-zone summaries for renderer wormholes."
|
||||
Assert-Contains $gameViewportDocs "WormholeExits" "Zone-render feed must carry resolved wormhole exits as explicit render facts."
|
||||
Assert-Contains $gameViewportDocs "BodyPoses" "Zone-render feed must carry body poses as explicit render facts."
|
||||
Assert-Contains $gameViewportDocs "AsteroidBeltPoses" "Zone-render feed must carry asteroid belt poses as explicit render facts."
|
||||
Assert-Contains $gameViewportDocs "AetheriaRuntimeZoneRenderAsteroidInstancePose" "Zone-render feed must carry typed asteroid instance poses."
|
||||
Assert-Contains $gameViewportDocs "DroppedPickups" "Zone-render feed must carry dropped pickups as explicit render facts."
|
||||
Assert-Contains $gameViewportDocs "EntitySnapshots" "Zone-render feed must carry typed entity snapshots for Unity shell restoration."
|
||||
Assert-Contains $gameViewportDocs "public IReadOnlyList<AetheriaRuntimeOrbitSnapshotCommit> Orbits" "Zone-render feed must carry typed orbit rows for Unity zone context lowering."
|
||||
Assert-Contains $gameViewportDocs "public IReadOnlyList<AetheriaRuntimeBodySnapshotCommit> Bodies" "Zone-render feed must carry typed body rows for Unity zone context lowering."
|
||||
Assert-NotContains $gameViewportDocs "public AetheriaRuntimeRunCheckpointCommit Run" "Zone-render feed must not expose the whole daemon run snapshot."
|
||||
Assert-NotContains $gameViewportDocs "public AetheriaRuntimeZoneSnapshotCommit Zone" "Zone-render feed must not expose the whole daemon zone snapshot."
|
||||
|
||||
$zoneRenderer = Read-Text "Assets\Scripts\Zone Display\ZoneRenderer.cs"
|
||||
$rtsViewportDocuments = Read-Text "Assets\Scripts\Gameplay\AetheriaUnityRtsViewportDocuments.cs"
|
||||
$unityGameViewportDocuments = Read-Text "Assets\Scripts\Gameplay\AetheriaUnityGameViewportDocuments.cs"
|
||||
Assert-Contains $zoneRenderer "ApplyZoneRender" "ZoneRenderer must consume the typed zone-render feed."
|
||||
Assert-Contains $zoneRenderer "_daemonCurrentEntityKey" "ZoneRenderer must track current entity as a render-feed fact, not through a run snapshot."
|
||||
Assert-Contains $zoneRenderer "_daemonSimulationTimeSeconds" "ZoneRenderer must track simulation time as a render-feed fact."
|
||||
|
|
@ -768,23 +769,23 @@ Assert-Contains $zoneRenderer "RestoreDroppedPickupsFromZoneRender" "ZoneRendere
|
|||
Assert-Contains $zoneRenderer "AetheriaUnityRuntimeClientProvider" "ZoneRenderer target distance cache must enter state through managed typed documents."
|
||||
Assert-Contains $zoneRenderer ".ZonePresentationDocuments(" "ZoneRenderer target distance cache must bind managed presentation documents."
|
||||
Assert-Contains $zoneRenderer "CurrentContacts" "ZoneRenderer target distance cache must read the typed zone-contacts document from the presentation bundle."
|
||||
Assert-Contains $rtsViewportDocuments "state.ZoneContacts.Reactive()" "Zone presentation documents must bind zone contacts by grabbing the managed typed document handle directly."
|
||||
Assert-NotContains $rtsViewportDocuments "state.ReactiveZoneContacts()" "Zone presentation documents must not use per-document reactive wrapper methods."
|
||||
Assert-Contains $unityGameViewportDocuments "state.ZoneContacts.Reactive()" "Zone presentation documents must bind zone contacts by grabbing the managed typed document handle directly."
|
||||
Assert-NotContains $unityGameViewportDocuments "state.ReactiveZoneContacts()" "Zone presentation documents must not use per-document reactive wrapper methods."
|
||||
Assert-NotContains $zoneRenderer ".ZoneContactsAsync()" "ZoneRenderer target distance cache must not use the transitional zone-contacts helper."
|
||||
Assert-Contains $zoneRenderer "_daemonTargetRowsByEntityIndex" "ZoneRenderer target distance cache must store typed target rows."
|
||||
Assert-Contains $zoneRenderer "_daemonContactRows" "ZoneRenderer compass and visibility state must cache typed contact rows."
|
||||
Assert-Contains $zoneRenderer ".ZonePresentationDocuments(viewportBounds, ""unity-zone-renderer"")" "ZoneRenderer presentation loading must use managed viewport document handles."
|
||||
Assert-Contains $rtsViewportDocuments "state.ObjectsViewport(viewport).Reactive()" "Zone presentation documents must use the typed objects viewport document handle directly."
|
||||
Assert-Contains $rtsViewportDocuments "state.RenderSplatsViewport(viewport).Reactive()" "Zone presentation documents must use the typed render-splats viewport document handle directly."
|
||||
Assert-NotContains $rtsViewportDocuments "state.ReactiveObjectsViewport(viewport)" "Zone presentation documents must not use per-document reactive wrapper methods."
|
||||
Assert-NotContains $rtsViewportDocuments "state.ReactiveRenderSplatsViewport(viewport)" "Zone presentation documents must not use per-document reactive wrapper methods."
|
||||
Assert-Contains $unityGameViewportDocuments "state.ObjectsViewport(viewport).Reactive()" "Zone presentation documents must use the typed objects viewport document handle directly."
|
||||
Assert-Contains $unityGameViewportDocuments "state.RenderSplatsViewport(viewport).Reactive()" "Zone presentation documents must use the typed render-splats viewport document handle directly."
|
||||
Assert-NotContains $unityGameViewportDocuments "state.ReactiveObjectsViewport(viewport)" "Zone presentation documents must not use per-document reactive wrapper methods."
|
||||
Assert-NotContains $unityGameViewportDocuments "state.ReactiveRenderSplatsViewport(viewport)" "Zone presentation documents must not use per-document reactive wrapper methods."
|
||||
Assert-NotContains $zoneRenderer "ObjectsViewportAsync(ToViewportBounds(viewport))" "ZoneRenderer presentation loading must not use the transitional objects viewport helper."
|
||||
Assert-NotContains $zoneRenderer "GravityViewportAsync(viewport)" "ZoneRenderer body view loading must not use the transitional gravity viewport helper."
|
||||
Assert-Contains $zoneRenderDocs "public AetheriaRuntimeBodySnapshotCommit Body" "Gravity/body viewport rows must carry the typed body payload needed for Unity presentation lowering."
|
||||
Assert-Contains $zoneRenderDocs "public double TerrainRadius" "Gravity viewport rows must carry terrain radius for local renderer height sampling."
|
||||
Assert-Contains $zoneRenderDocs "public double TerrainDepth" "Gravity viewport rows must carry terrain depth for local renderer height sampling."
|
||||
Assert-Contains $zoneRenderDocs "public double TerrainDepthExponent" "Gravity viewport rows must carry terrain exponent for local renderer height sampling."
|
||||
Assert-Contains $zoneRenderDocs "public double TerrainWaveFrequency" "Gravity viewport rows must carry wave frequency for local renderer height sampling."
|
||||
Assert-Contains $gameViewportDocs "public AetheriaRuntimeBodySnapshotCommit Body" "Gravity/body viewport rows must carry the typed body payload needed for Unity presentation lowering."
|
||||
Assert-Contains $gameViewportDocs "public double TerrainRadius" "Gravity viewport rows must carry terrain radius for local renderer height sampling."
|
||||
Assert-Contains $gameViewportDocs "public double TerrainDepth" "Gravity viewport rows must carry terrain depth for local renderer height sampling."
|
||||
Assert-Contains $gameViewportDocs "public double TerrainDepthExponent" "Gravity viewport rows must carry terrain exponent for local renderer height sampling."
|
||||
Assert-Contains $gameViewportDocs "public double TerrainWaveFrequency" "Gravity viewport rows must carry wave frequency for local renderer height sampling."
|
||||
Assert-Contains $zoneRenderer "_zoneRenderBodyPoses" "ZoneRenderer terrain/body presentation must consume typed body poses from zone-render."
|
||||
Assert-Contains $zoneRenderer "ZoneRenderRadius" "ZoneRenderer must consume render radius from the zone-render feed."
|
||||
Assert-NotContains $zoneRenderer "_daemonRunSnapshot" "ZoneRenderer must not retain the whole daemon run snapshot."
|
||||
|
|
|
|||
Loading…
Reference in a new issue