Keep daemon viewport hooks client-neutral

This commit is contained in:
Meta Vens 2026-07-06 02:28:04 +01:00
commit bf5e06a284
4 changed files with 31 additions and 6 deletions

View file

@ -1500,6 +1500,31 @@ static void RequireNoDeadRuntimeProjectionClasses(string root)
"Active architecture docs must not point future work at deleted runtime-specific shared authorities: " +
string.Join("; ", docHits));
}
var daemonRuntimeSpecificHookPhrases = new[]
{
"daemon RTS viewport",
"Daemon RTS viewport",
"temporary RUDP RTS viewport",
"RUDP RTS viewport",
"daemon RTS command",
"Daemon RTS command"
};
var hookPhraseHits = Directory.EnumerateFiles(activeDocsRoot, "*.md", SearchOption.AllDirectories)
.SelectMany(path =>
{
var text = File.ReadAllText(path);
return daemonRuntimeSpecificHookPhrases
.Where(phrase => text.Contains(phrase, StringComparison.Ordinal))
.Select(phrase => $"{Path.GetRelativePath(root, path)} contains {phrase}");
})
.ToArray();
if (hookPhraseHits.Length > 0)
{
throw new InvalidOperationException(
"Active architecture docs must describe daemon RUDP hooks as client-neutral compatibility, not RTS-specific daemon authority: " +
string.Join("; ", hookPhraseHits));
}
}
}