import json, datetime
f = "/workspace/heartbeat-state.json"
with open(f) as fh:
data = json.load(fh)
now = datetime.datetime(2026, 7, 25, 6, 4, 0)
ts = int(now.timestamp())
for k in ["missionControl", "hostBill"]:
data["lastChecks"][k] = ts
data["lastHeartbeat"] = "2026-07-25T06:04:00Z"
data["status"] = "nominal"
with open(f, "w") as fh:
json.dump(data, fh, indent=2)
print("updated")