Remove daemon publication store readers

This commit is contained in:
Meta Vens 2026-06-28 05:03:28 +01:00
commit 9eb42efdd6
3 changed files with 39 additions and 224 deletions

View file

@ -8704,15 +8704,7 @@ static void RequireDaemonVersePublication(string root)
"PublishGameSurface(",
"PublishGameTuiSurface(",
"PublishEditorSurface(",
"PublishEditorTuiSurface(",
"TryReadProviderAdvertisement(",
"TryReadHealth(",
"TryReadCommandBoundary(",
"TryReadStarbridgeSessionSummary(",
"TryReadGameSurface(",
"TryReadGameTuiSurface(",
"TryReadEditorSurface(",
"TryReadEditorTuiSurface("
"PublishEditorTuiSurface("
};
var storeSource = documentStore + "\n" + daemonPublicationStore;
var missingStoreSymbols = requiredStoreSymbols
@ -8725,6 +8717,29 @@ static void RequireDaemonVersePublication(string root)
string.Join(", ", missingStoreSymbols));
}
var forbiddenPublicationStoreSymbols = new[]
{
"TryReadProviderAdvertisement(",
"TryReadHealth(",
"TryReadVerseAuthorityPolicy(",
"TryReadCommandBoundary(",
"TryReadAssetManifest(",
"TryReadStarbridgeSessionSummary(",
"TryReadGameSurface(",
"TryReadGameTuiSurface(",
"TryReadEditorSurface(",
"TryReadEditorTuiSurface("
};
var publicationStoreReaderHits = forbiddenPublicationStoreSymbols
.Where(symbol => daemonPublicationStore.Contains(symbol, StringComparison.Ordinal))
.ToArray();
if (publicationStoreReaderHits.Length > 0)
{
throw new InvalidOperationException(
"Daemon publication store still exposes file-backed readers instead of passing typed tick-result documents: " +
string.Join(", ", publicationStoreReaderHits));
}
var requiredDaemonRegistrySymbols = new[]
{
"CultMesh.CreateCultCacheDocumentRegistry(DocumentTypes)",
@ -9205,13 +9220,13 @@ static void RequireDaemonVersePublication(string root)
var requiredTestSymbols = new[]
{
"TryReadProviderAdvertisement(",
"TryReadHealth(",
"TryReadCommandBoundary(",
"TryReadGameSurface(",
"TryReadEditorSurface(",
"TryReadGameTuiSurface(",
"TryReadEditorTuiSurface(",
"var providerAdvertisement = result.ProviderAdvertisement",
"var health = result.Health",
"var commandBoundary = result.CommandBoundary",
"var gameSurface = result.GameSurface",
"var editorSurface = result.EditorSurface",
"var gameTuiSurface = result.GameTuiSurface",
"var editorTuiSurface = result.EditorTuiSurface",
"AetheriaRuntimeDaemonSchemas.ProviderAdvertisement",
"AetheriaRuntimeDaemonSchemas.CommandBoundary",
"AetheriaRuntimeDaemonSchemas.Health",