#!/usr/bin/env python3
"""Verify illustrative servicedesk outputs for SD-BANDS-20260823."""
import csv, pathlib, sys
EXPECTED = ["5520", "1020", "12", "10", "platform-outage", "none"]
def main() -> int:
    with pathlib.Path(__file__).with_name("queue-summary-SD-BANDS-20260823.csv").open(newline="", encoding="utf-8") as handle:
        rows = list(csv.DictReader(handle))
    values = [row["value"] for row in rows if row["status"] == "published"]
    held = [row for row in rows if row["status"].startswith("held_")]
    if values != EXPECTED or len(held) != 3 or any(row["value"] for row in held):
        print("FAIL: servicedesk outputs or held items are incorrect.", file=sys.stderr); return 1
    print("OK: six servicedesk outputs and three held items verified."); return 0
if __name__ == "__main__":
    raise SystemExit(main())
