#!/usr/bin/env python3
import json
line = {
  "ts": "2026-06-26T00:00:00Z",
  "task": "remove-sabrina-new-patient-queue",
  "status": "done",
  "system": "RingCentral",
  "queue": "New Patient Department (id 931357009, ext 56)",
  "target": "Sabrina Bhargava ext 113 / extension id 63637512008",
  "prior_state": "queue members [113 Sabrina, 201 Shaye]",
  "after_state": "queue members [201 Shaye] only; verified via GET totalElements=1",
  "method": "POST /call-queues/931357009/bulk-assign removedExtensionIds=[63637512008] -> HTTP 204; reversible",
  "restore": "MANUAL tomorrow: python3 /tmp/sab/rc.py add_member 931357009 63637512008 CONFIRM_ADD (addedExtensionIds). No auto-restore.",
  "note": "Only Sabrina changed. Shaye (201) untouched. Other queues untouched."
}
with open("/tmp/orchestrator-status.jsonl", "a") as f:
    f.write(json.dumps(line) + "\n")
print("STATUS_APPENDED")
