import io, json
BASE = r"D:\work buddy\2026-11-05-14-15-52"
p = BASE + r"\_heartbeat_baseline.json"
b = json.load(io.open(p, encoding="utf-8"))
b["catd"] = 2817  # 与 final_check.py 口径一致（_gap_check 的 2775 为按组计数）
json.dump(b, io.open(p, "w", encoding="utf-8"), ensure_ascii=False, indent=1)
print(b["round"], b["catd"], b["programs"], b["details_on_disk"], b["main_file_bytes"], b["http"])
