{
  "ok": true,
  "service": "doctor-blue-health-check",
  "target": "Blue Ive HQ / JP / HK",
  "checked_at": "2026-06-12T22:56:26.420Z",
  "severity": "normal",
  "short_summary": "Blue Ive HQ / JP / HK are normal.",
  "board_post": {
    "attempted": false,
    "ok": null,
    "skipped_reason": "severity_normal"
  },
  "targets": [
    {
      "key": "hq",
      "label": "Blue Ive HQ",
      "ok": true,
      "severity": "normal",
      "short_summary": "Blue Ive HQ is normal.",
      "used_service_binding": true,
      "status": 200,
      "health_url_used": "https://blue-hq/api/health",
      "health": {
        "ok": true,
        "service": "blue-ive-hq",
        "worker": "hq-a2a-intake",
        "checked_at_utc": "2026-06-12T22:56:26.432Z",
        "checks": {
          "worker": "ok",
          "d1_binding": "ok",
          "hq_external_cases_read": "ok",
          "hq_external_case_events_read": "ok"
        },
        "metrics": {
          "total_cases": 2,
          "total_events": 39,
          "unprocessed_cases": 0,
          "status_distribution": [
            {
              "status": "transferred_to_staff_email",
              "count": 1
            },
            {
              "status": "drafting",
              "count": 1
            }
          ],
          "gateway_decision_code_distribution": [
            {
              "gateway_decision_code": "sales_but_a2a_like_to_hq",
              "count": 1
            },
            {
              "gateway_decision_code": "hk_trade_but_uncertain_to_hq",
              "count": 1
            }
          ],
          "empty_gateway_decision_reason_count": 0,
          "source_desk_distribution": [
            {
              "source_desk": "JP",
              "count": 1
            },
            {
              "source_desk": "HK",
              "count": 1
            }
          ],
          "assigned_desk_distribution": [
            {
              "assigned_desk": "JP-Compliance",
              "count": 1
            },
            {
              "assigned_desk": "HQ",
              "count": 1
            }
          ],
          "empty_classification_reason_count": 2,
          "needs_human_review_count": 0
        },
        "warnings": [],
        "errors": [],
        "schema": {
          "hq_external_cases": [
            "id",
            "source_log_id",
            "external_id",
            "created_at",
            "received_at",
            "source_host",
            "source_desk",
            "source_system",
            "lang",
            "company_name",
            "country",
            "purpose",
            "summary",
            "original_message",
            "email",
            "gateway_decision_reason",
            "gateway_decision_code",
            "gateway_score",
            "assigned_to",
            "assigned_desk",
            "status",
            "review_note",
            "handled_at",
            "close_reason",
            "last_action_at",
            "is_processed",
            "processed_at",
            "processed_by",
            "classification_reason",
            "needs_human_review"
          ],
          "hq_external_case_events": [
            "id",
            "hq_case_id",
            "event_type",
            "actor",
            "note",
            "payload_json",
            "created_at"
          ]
        }
      },
      "error": null
    },
    {
      "key": "jp",
      "label": "Blue Ive JP Gateway",
      "ok": true,
      "severity": "normal",
      "short_summary": "Blue Ive JP Gateway is normal.",
      "used_service_binding": true,
      "status": 200,
      "health_url_used": "https://blue-jp/api/health",
      "health": {
        "ok": true,
        "service": "blueive-jp-a2a",
        "role": "blue-gateway",
        "desk": "JP",
        "checked_at_utc": "2026-06-12T22:56:28.877Z",
        "checks": {
          "worker": "ok",
          "d1_binding": "ok",
          "d1_read": "ok",
          "hq_a2a_binding": "ok",
          "hq_shared_secret_config": "ok"
        },
        "metrics": {
          "table_exists": false,
          "row_count": null
        },
        "warnings": {},
        "errors": {}
      },
      "error": null
    },
    {
      "key": "hk",
      "label": "Blue Ive HK Gateway",
      "ok": true,
      "severity": "normal",
      "short_summary": "Blue Ive HK Gateway is normal.",
      "used_service_binding": true,
      "status": 200,
      "health_url_used": "https://blue-hk/api/health",
      "health": {
        "ok": true,
        "service": "blueive-gateway",
        "role": "blue-gateway",
        "desk": "HK",
        "checked_at_utc": "2026-06-12T22:56:29.226Z",
        "checks": {
          "worker": "ok",
          "d1_binding": "ok",
          "d1_read": "ok",
          "hq_a2a_binding": "ok",
          "hq_shared_secret_config": "ok"
        },
        "metrics": {
          "table_name": "external_a2a_logs",
          "row_count": 8
        },
        "warnings": {},
        "errors": {}
      },
      "error": null
    }
  ]
}