import json
d = json.load(open(r"scripts/tier2/artifacts/result_migration_small_files_20260617/full_audit.json"))
target_files = [
    "src/multi_agent_conductor.py",
    "src/aggregate.py",
    "src/summarize.py",
    "src/theme_models.py",
    "src/presets.py",
    "src/markdown_helper.py",
    "src/commands.py",
    "src/warmup.py",
    "src/command_palette.py",
    "src/orchestrator_pm.py",
    "src/project_manager.py",
    "src/session_logger.py",
    "src/shell_runner.py",
    "src/conductor_tech_lead.py",
    "src/models.py",
    "src/diff_viewer.py",
]
for fname in target_files:
    for f_info in d["files"]:
        if fname in f_info["filename"]:
            print(f"## {fname}")
            for finding in f_info["findings"]:
                if finding["category"] in ("INTERNAL_SILENT_SWALLOW", "INTERNAL_BROAD_CATCH", "UNCLEAR"):
                    ctx = finding.get("context", "")
                    line = finding["line"]
                    cat = finding["category"]
                    kind = finding["kind"]
                    print(f"  L{line:4d} [{kind:7s}] {cat:30s} ctx={ctx}")
            break