docs: mark RUN COMMAND as trusted-only

This commit is contained in:
Hermes Agent
2026-09-22 20:47:12 +00:00
parent 3ef86e6479
commit 51b69bc291
5 changed files with 40 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env python3
"""Ensure the learner-facing RUN COMMAND docs describe its trust boundary."""
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
DOC = ROOT / "docs" / "PRACTICAL_SCRIPTING.md"
def main() -> int:
text = DOC.read_text(encoding="utf-8").lower()
required = (
"trusted code",
"not a sandbox",
"runs commands on the user's computer",
)
missing = [phrase for phrase in required if phrase not in text]
if missing:
raise SystemExit("RUN COMMAND documentation is missing: " + ", ".join(missing))
print("Trusted command documentation validation complete")
return 0
if __name__ == "__main__":
raise SystemExit(main())