From 64dcc58262ae3479713f7853f90b52bd4a781e83 Mon Sep 17 00:00:00 2001 From: spark Date: Fri, 23 Oct 2026 03:46:00 +0000 Subject: [PATCH] spark: add hermes path verification script --- wizard-work/spark/verify_hermes_path.py | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 wizard-work/spark/verify_hermes_path.py diff --git a/wizard-work/spark/verify_hermes_path.py b/wizard-work/spark/verify_hermes_path.py new file mode 100644 index 0000000..385362b --- /dev/null +++ b/wizard-work/spark/verify_hermes_path.py @@ -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) \ No newline at end of file