{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "awoooi_status_cleanup_dashboard_v1",
  "title": "AWOOOI 狀態清理儀表板",
  "type": "object",
  "required": [
    "schema_version",
    "generated_at",
    "target_route",
    "source_reviews",
    "summary",
    "metric_cards",
    "gate_cards",
    "workflow_rows",
    "risk_controls",
    "blocking_reasons",
    "next_actions",
    "wazuh_handoff",
    "hard_gates",
    "operation_boundaries",
    "secret_values_collected",
    "remote_write_performed",
    "local_product_write_performed",
    "execution_authorized",
    "memory_write_authorized",
    "wazuh_api_live_query_authorized",
    "runtime_execution_authorized",
    "ui_implementation_authorized"
  ],
  "properties": {
    "schema_version": {"const": "awoooi_status_cleanup_dashboard_v1"},
    "generated_at": {"type": "string"},
    "target_route": {"const": "/workspace/status-cleanup"},
    "source_reviews": {"type": "object", "additionalProperties": {"type": "string"}},
    "summary": {
      "type": "object",
      "required": [
        "dashboard_status",
        "overall_completion_percent",
        "gate_count",
        "blocked_gate_count",
        "accepted_owner_flag_count",
        "required_owner_flag_count",
        "approved_update_section_count",
        "required_update_section_count",
        "wazuh_handoff_status",
        "wazuh_handoff_base_commit",
        "wazuh_handoff_commit_count",
        "wazuh_handoff_patch_count",
        "wazuh_live_metadata_owner_count",
        "wazuh_secret_metadata_count",
        "wazuh_live_agent_registry_readback",
        "iwooos_wazuh_runtime_gate",
        "wazuh_active_response_count",
        "wazuh_agent_visibility_status",
        "wazuh_manager_agent_registry_readback_passed",
        "wazuh_iwooos_live_route_readback_passed",
        "wazuh_dashboard_agent_list_recovered",
        "wazuh_agent_visibility_runtime_gate_count",
        "wazuh_runtime_gate_count",
        "controlled_status_cleanup_package_ready",
        "controlled_owner_acknowledgements_ready",
        "controlled_dry_run_package_ready",
        "controlled_post_apply_verifier_required",
        "apply_allowed",
        "memory_write_authorized",
        "wazuh_api_live_query_authorized",
        "runtime_execution_authorized",
        "ui_implementation_allowed"
      ],
      "additionalProperties": true
    },
    "metric_cards": {"type": "array", "items": {"type": "object"}},
    "gate_cards": {"type": "array", "items": {"type": "object"}},
    "workflow_rows": {"type": "array", "items": {"type": "object"}},
    "risk_controls": {"type": "array", "items": {"type": "object"}},
    "blocking_reasons": {"type": "array", "items": {"type": "string"}},
    "next_actions": {"type": "array", "items": {"type": "string"}},
    "wazuh_handoff": {"type": "object", "additionalProperties": true},
    "hard_gates": {"type": "array", "items": {"type": "string"}},
    "operation_boundaries": {"type": "object", "additionalProperties": {"const": false}},
    "secret_values_collected": {"const": false},
    "remote_write_performed": {"const": false},
    "local_product_write_performed": {"const": false},
    "execution_authorized": {"const": false},
    "memory_write_authorized": {"const": false},
    "wazuh_api_live_query_authorized": {"const": false},
    "runtime_execution_authorized": {"const": false},
    "ui_implementation_authorized": {"const": false}
  },
  "additionalProperties": false
}
