{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:awoooi:ai-agent-market-radar-readback-v1",
  "title": "AWOOOI AI Agent 市場雷達讀回快照 (v1)",
  "type": "object",
  "required": [
    "schema_version",
    "generated_at",
    "source_scope",
    "summary",
    "policy",
    "recent_change_inventory",
    "market_source_freshness",
    "market_practice_alignment",
    "candidate_role_plan",
    "priority_workplan",
    "blocked_gates",
    "next_report_contract"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "ai_agent_market_radar_readback_v1"
    },
    "generated_at": {
      "type": "string",
      "minLength": 1
    },
    "source_scope": {
      "type": "object",
      "additionalProperties": true
    },
    "summary": {
      "type": "object",
      "required": [
        "overall_completion_percent",
        "market_watch_completion_percent",
        "market_candidates",
        "market_sources",
        "changed_candidates",
        "source_failures",
        "integration_blocked_candidates",
        "recommended_watch_additions",
        "replacement_decisions_approved",
        "status"
      ],
      "properties": {
        "overall_completion_percent": {"type": "number"},
        "market_watch_completion_percent": {"type": "number"},
        "market_candidates": {"type": "integer", "minimum": 0},
        "market_sources": {"type": "integer", "minimum": 0},
        "changed_candidates": {"type": "integer", "minimum": 0},
        "source_failures": {"type": "integer", "minimum": 0},
        "integration_blocked_candidates": {"type": "integer", "minimum": 0},
        "recommended_watch_additions": {"type": "integer", "minimum": 0},
        "replacement_decisions_approved": {"type": "integer", "const": 0},
        "status": {"type": "string", "minLength": 1}
      },
      "additionalProperties": true
    },
    "policy": {
      "type": "object",
      "required": [
        "read_only",
        "sdk_installation_approved",
        "paid_api_calls_approved",
        "replay_candidate_approved",
        "shadow_or_canary_approved",
        "production_routing_approved",
        "telegram_send_approved",
        "host_write_approved",
        "workflow_modification_approved",
        "openclaw_replacement_approved"
      ],
      "properties": {
        "read_only": {"type": "boolean", "const": true},
        "sdk_installation_approved": {"type": "boolean", "const": false},
        "paid_api_calls_approved": {"type": "boolean", "const": false},
        "replay_candidate_approved": {"type": "boolean", "const": false},
        "shadow_or_canary_approved": {"type": "boolean", "const": false},
        "production_routing_approved": {"type": "boolean", "const": false},
        "telegram_send_approved": {"type": "boolean", "const": false},
        "host_write_approved": {"type": "boolean", "const": false},
        "workflow_modification_approved": {"type": "boolean", "const": false},
        "openclaw_replacement_approved": {"type": "boolean", "const": false}
      },
      "additionalProperties": true
    },
    "recent_change_inventory": {
      "type": "array",
      "items": {"type": "object", "additionalProperties": true}
    },
    "market_source_freshness": {
      "type": "array",
      "items": {"type": "object", "additionalProperties": true}
    },
    "market_practice_alignment": {
      "type": "array",
      "items": {"type": "object", "additionalProperties": true}
    },
    "candidate_role_plan": {
      "type": "array",
      "items": {"type": "object", "additionalProperties": true}
    },
    "priority_workplan": {
      "type": "array",
      "items": {"type": "object", "additionalProperties": true}
    },
    "blocked_gates": {
      "type": "array",
      "items": {"type": "string", "minLength": 1}
    },
    "next_report_contract": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": false
}
