Spaces:
Sleeping
Sleeping
File size: 888 Bytes
ec5ee81 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | from __future__ import annotations
import json
from pathlib import Path
def main() -> int:
root = Path(__file__).resolve().parents[1]
evidence = root / "deploy" / "evidence"
manifests = sorted(evidence.glob("**/run_manifest.json"))
if not manifests:
raise SystemExit("No tagged evidence bundle found")
rows = []
for path in manifests:
manifest = json.loads(path.read_text(encoding="utf-8"))
rows.append(
{
"run_id": manifest.get("run_id"),
"scenario_hash": manifest.get("scenario_hash"),
"status": manifest.get("status"),
"bundle": str(path.parent.relative_to(evidence)),
}
)
print(json.dumps({"offline": True, "runs": rows}, indent=2))
return 0
if __name__ == "__main__":
raise SystemExit(main())
|