"""Post-hoc spec audit of a Harbor job: flag trials whose agent tried to reach the network, solved end to end or looked outside /app/context (e.g. curl/wget/pip/git/python requests, WebFetch/WebSearch, HF dataset names). Bash already runs in an empty network namespace, so attempts should fail; any flagged trial is listed and excluded from the headline numbers. python -I scripts/audit_network.py [--out audit.json] """ import glob, json, os, re, sys NET = re.compile(r'(?