import json
import subprocess
r = subprocess.run(['uv', 'run', 'python', 'scripts/audit_exception_handling.py', '--json'], capture_output=True, text=True)
data = json.loads(r.stdout)
app = [f for f in data['files'] if 'app_controller' in f.get('filename', '')][0]
print(f"app_controller: V={app['violation_count']} C={app['compliant_count']} S={app['suspicious_count']} ?={app['unclear_count']}")
print()
findings = app['findings']
broad = [f for f in findings if f.get('category') == 'INTERNAL_BROAD_CATCH']
print(f"INTERNAL_BROAD_CATCH: {len(broad)} remaining")
for f in broad:
    print(f"  L{f.get('line', 0)}: {f.get('context', '')}")
