O6: telemetry report and eval task set (#14)

This commit was merged in pull request #14.
This commit is contained in:
hermes committed 2026-11-13 00:19:52 +00:00
1 parent bea07e82bb
commit b2d72f2dc9
31 files changed
+809 -3

No files matched your search

+4
View File
@@ -46,6 +46,10 @@ try:
# hx itself saw the block from the guard extension (or orch killed it first; either way the file was not read)
audit = subprocess.run([orch, "audit", rid], env=env, capture_output=True, text=True).stdout
assert '"decision":"deny"' in audit.replace(" ", ""), audit
# telemetry carries the real `hx --version`
tel = [json.loads(l) for l in (tmp / "state/telemetry.jsonl").read_text().splitlines() if l.strip()]
ver = subprocess.run([str(hx), "--version"], capture_output=True, text=True).stdout.strip()
assert ver and tel[-1]["hx_version"] == ver and tel[-1]["status"] == "needs-human", (tel, ver)
print("real hx e2e ok:", st["reason"], "| audit by:", sorted({json.loads(l)["detail"].get("by", "guard") for l in audit.splitlines() if "decision" in l}))
finally:
srv.terminate()