import os
import json

lab = r"C:\Users\intel\AppData\Local\OptimusRuntime\Labs\AR74\12_ar88_authority_operational_closure"
inc_dir = os.path.join(lab, "evidence", "brain_hook_reports_run1")

if os.path.exists(inc_dir):
    for root, dirs, files in os.walk(inc_dir):
        for f in files:
            p = os.path.join(root, f)
            print("Found report file:", p)
            if f in ("shadow_repair_report.json", "candidate_verdict.json"):
                with open(p, "r", encoding="utf-8") as jf:
                    data = json.load(jf)
                    print(f"--- {f} ---")
                    for k in ("shadow_status", "status", "reason", "error_message", "error"):
                        if k in data:
                            print(f"  {k}: {data[k]}")
else:
    print("inc_dir does not exist:", inc_dir)

