feat: update-swarm CLI, scout schema, gated and watchlist reports

This commit is contained in:
ginnoir committed 2026-08-14 14:58:55 -05:00
1 parent 5445f82d91
commit a34686f7a5
5 files changed
+173

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
from __future__ import annotations
import os
def write_reports(run_dir: str, verdicts: list[dict]) -> None:
gated = [v for v in verdicts if v["bucket"] == "gated_queue"]
watch = [v for v in verdicts if v["bucket"] == "watchlist_report"]
def table(path, title, rows):
lines = [f"# {title}", "", "| Stem | Latest English | Reason |", "|---|---|---|"]
for v in rows:
lines.append(f"| {v['stem']} | {v.get('latest_english_version') or ''} | {v.get('reason') or ''} |")
lines.append("")
open(path, "w", encoding="utf-8").write("\n".join(lines))
table(os.path.join(run_dir, "gated.md"), "Gated queue", gated)
table(os.path.join(run_dir, "watchlist-report.md"), "Watchlist check-in", watch)