import json

with open("pre_ar88_prod_manifest.json", "r") as f1, open("post_ar88_prod_manifest.json", "r") as f2:
    m1 = json.load(f1)
    m2 = json.load(f2)

print("Keys:", list(m1.keys()))
print("m1 file_count:", m1.get("file_count"))
print("m2 file_count:", m2.get("file_count"))
print("m1 db_check:", m1.get("db_check"))
print("m2 db_check:", m2.get("db_check"))

diff_files = [k for k in m1.get("files", {}) if m1["files"][k] != m2.get("files", {}).get(k)]
print("Difference count between pre and post prod manifest:", len(diff_files))
assert len(diff_files) == 0
print("PROD_INTEGRITY: 100% UNTOUCHED (0 BYTES CHANGED)")
