From 72e2041071cfe5e73aa8d696a9a494a4f507afc4 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 28 Jun 2026 11:52:11 +0100 Subject: [PATCH] Use reactive catalog inputs without fallback snapshots --- Aetheria.State.Verify/Program.cs | 11 ++++++++-- .../Runtime/AetheriaRuntimeVerseClient.cs | 20 ++++++++----------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/Aetheria.State.Verify/Program.cs b/Aetheria.State.Verify/Program.cs index 1a4a5114d..fb01a7d19 100644 --- a/Aetheria.State.Verify/Program.cs +++ b/Aetheria.State.Verify/Program.cs @@ -10820,8 +10820,6 @@ static void RequireAetheriaRuntimeVerseClientContract(string root) "starbridgeScenarioDocument.Reactive()", "starbridgeSessionDocument.Reactive()", "latestFrameDocument.Reactive()", - "BootstrapRuntimeCatalogSnapshot(),", - "BootstrapLoadoutTemplatesDocument())", "projectionInputs.RequireFrame()", "projectionInputs.Catalog", "projectionInputs.LoadoutTemplates.Templates", @@ -10874,6 +10872,15 @@ static void RequireAetheriaRuntimeVerseClientContract(string root) "Aetheria runtime Verse client projected documents still bootstrap through one-shot latest-frame reads instead of the managed reactive projection inputs."); } + if (client.Contains("_fallbackCatalog", StringComparison.Ordinal) || + client.Contains("_fallbackLoadoutTemplates", StringComparison.Ordinal) || + client.Contains("fallbackCatalog", StringComparison.Ordinal) || + client.Contains("fallbackLoadoutTemplates", StringComparison.Ordinal)) + { + throw new InvalidOperationException( + "Aetheria runtime Verse client projections must use managed reactive catalog/loadout documents directly instead of carrying manual fallback snapshots."); + } + var requiredClientStateSymbols = new[] { "public Func CreateEveSurfaceStateRefResolver()", diff --git a/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeVerseClient.cs b/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeVerseClient.cs index b52bb6099..b1697acde 100644 --- a/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeVerseClient.cs +++ b/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeVerseClient.cs @@ -551,9 +551,7 @@ namespace GameCult.Aetheria.State.Verse catalogDocument.Reactive(), loadoutTemplatesDocument.Reactive(), starbridgeScenarioDocument.Reactive(), - starbridgeSessionDocument.Reactive(), - BootstrapRuntimeCatalogSnapshot(), - BootstrapLoadoutTemplatesDocument()); + starbridgeSessionDocument.Reactive()); _projectionInputs = projectionInputs; return new AetheriaClientState( @@ -785,29 +783,27 @@ namespace GameCult.Aetheria.State.Verse private readonly CultMeshReactiveDocument _loadoutTemplates; private readonly CultMeshReactiveDocument _starbridgeScenario; private readonly CultMeshReactiveDocument _starbridgeSession; - private readonly AetheriaRuntimeCatalogSnapshot _fallbackCatalog; - private readonly AetheriaRuntimeLoadoutTemplatesDocument _fallbackLoadoutTemplates; public AetheriaRuntimeReactiveProjectionInputs( CultMeshReactiveDocument daemonFrame, CultMeshReactiveDocument catalog, CultMeshReactiveDocument loadoutTemplates, CultMeshReactiveDocument starbridgeScenario, - CultMeshReactiveDocument starbridgeSession, - AetheriaRuntimeCatalogSnapshot fallbackCatalog, - AetheriaRuntimeLoadoutTemplatesDocument fallbackLoadoutTemplates) + CultMeshReactiveDocument starbridgeSession) { _daemonFrame = daemonFrame ?? throw new ArgumentNullException(nameof(daemonFrame)); _catalog = catalog ?? throw new ArgumentNullException(nameof(catalog)); _loadoutTemplates = loadoutTemplates ?? throw new ArgumentNullException(nameof(loadoutTemplates)); _starbridgeScenario = starbridgeScenario ?? throw new ArgumentNullException(nameof(starbridgeScenario)); _starbridgeSession = starbridgeSession ?? throw new ArgumentNullException(nameof(starbridgeSession)); - _fallbackCatalog = fallbackCatalog ?? throw new ArgumentNullException(nameof(fallbackCatalog)); - _fallbackLoadoutTemplates = fallbackLoadoutTemplates ?? throw new ArgumentNullException(nameof(fallbackLoadoutTemplates)); } - public AetheriaRuntimeCatalogSnapshot Catalog => _catalog.Current ?? _fallbackCatalog; - public AetheriaRuntimeLoadoutTemplatesDocument LoadoutTemplates => _loadoutTemplates.Current ?? _fallbackLoadoutTemplates; + public AetheriaRuntimeCatalogSnapshot Catalog => _catalog.Current + ?? throw new InvalidOperationException("Aetheria Verse client has no runtime catalog document yet."); + + public AetheriaRuntimeLoadoutTemplatesDocument LoadoutTemplates => _loadoutTemplates.Current + ?? throw new InvalidOperationException("Aetheria Verse client has no loadout templates document yet."); + public AetheriaRuntimeStarbridgeScenarioDocument? StarbridgeScenario => _starbridgeScenario.Current; public AetheriaRuntimeStarbridgeSessionDocument? StarbridgeSession => _starbridgeSession.Current;