Require managed client for daemon surface commands
This commit is contained in:
parent
d9bcb8c0bf
commit
8e84a98d64
3 changed files with 30 additions and 32 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue