# FIRST attempt at "is this policy public?". Kept for the write-up.
import json, sys
for path in sys.argv[1:]:
    doc = json.load(open(path))
    pub = any(s.get("Principal") == "*" for s in doc["Statement"])
    print(f"{path:<34} naive verdict: {'PUBLIC' if pub else 'looks private'}")
