spark: add hermes path verification script

This commit is contained in:
spark committed 2026-10-23 03:46:00 +00:00
1 parent c22da0fa98
commit 64dcc58262
1 file changed
+31
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/env python3
"""Verify that hermes paths exist and contain expected structure."""
import os
import sys
from pathlib import Path
def verify_hermes_structure():
"""Check that required hermes directories exist."""
required_paths = [
Path("/root/.hermes/wizard-outputs/spark"),
Path("/root/troupe-standup/wizard-work/spark"),
Path("/root/.hermes/profiles/spark"),
]
results = []
for p in required_paths:
exists = p.exists()
is_dir = p.is_dir() if exists else False
results.append((str(p), exists, is_dir))
return results
if __name__ == "__main__":
results = verify_hermes_structure()
for path, exists, is_dir in results:
status = "OK" if exists and is_dir else "MISSING"
print(f"{status}: {path}")
all_ok = all(exists and is_dir for _, exists, is_dir in results)
sys.exit(0 if all_ok else 1)