#!/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)