{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:awoooi:agent-market-capability-evidence-v1",
  "title": "AWOOOI Agent Market Capability Evidence (v1)",
  "type": "object",
  "required": [
    "schema_version",
    "updated_at",
    "baseline_candidate_id",
    "scoring_version",
    "dimensions",
    "candidates"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "agent_market_capability_evidence_v1"
    },
    "updated_at": {
      "type": "string"
    },
    "baseline_candidate_id": {
      "type": "string",
      "minLength": 1
    },
    "scoring_version": {
      "type": "string",
      "minLength": 1
    },
    "dimensions": {
      "type": "object",
      "additionalProperties": {
        "type": "number",
        "minimum": 0,
        "maximum": 1
      }
    },
    "candidates": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "candidate_id",
          "display_name",
          "evaluation_priority",
          "capabilities"
        ],
        "properties": {
          "candidate_id": {
            "type": "string",
            "minLength": 1
          },
          "display_name": {
            "type": "string",
            "minLength": 1
          },
          "evaluation_priority": {
            "type": "string",
            "enum": ["baseline", "must_test", "can_test", "secondary", "watch"]
          },
          "capabilities": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "minimum": 0,
              "maximum": 3
            }
          },
          "official_sources": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["title", "url"],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "evidence": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "risks": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
