Require managed client for daemon surface commands

This commit is contained in:
Meta Vens 2026-06-28 04:56:48 +01:00
commit 8e84a98d64
3 changed files with 30 additions and 32 deletions

View file

@ -3226,7 +3226,6 @@ static void RequireEveRuntimeBootstrap(string root)
"EveSurfaceCommandRequest request",
"request.ProviderId, \"aetheria.daemon\"",
"AetheriaClient",
".OpenAsync(",
"ObserveAsync()",
"new AetheriaRuntimeDaemonOperationClient(",
"AetheriaRuntimeDaemonSurfaceCommandCatalog.TrySubmitArgumentless(",
@ -3248,6 +3247,13 @@ static void RequireEveRuntimeBootstrap(string root)
"Daemon Eve surface command routing still reads observed daemon state through the runtime file reader instead of the Verse client.");
}
if (daemonSurfaceCommands.Contains(".OpenAsync(", StringComparison.Ordinal) ||
daemonSurfaceCommands.Contains("string stateFilePath", StringComparison.Ordinal))
{
throw new InvalidOperationException(
"Daemon Eve surface command routing still hides the managed client boundary behind a state-file-path shortcut.");
}
var forbiddenDaemonSurfaceCommandSymbols = new[]
{
"request.Payload.TryGetValue",