{
  "capability_id": "brand_visibility_snapshot",
  "schema_kind": "output",
  "schema_version": "1.0.0",
  "schema": {
    "type": "object",
    "additionalProperties": false,
    "required": [
      "summary",
      "score",
      "strengths",
      "gaps",
      "priority_actions",
      "source_health",
      "limitations",
      "recommended_next_actions"
    ],
    "properties": {
      "summary": {
        "type": "string"
      },
      "score": {
        "type": "number"
      },
      "strengths": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "gaps": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "priority_actions": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "sources": {
        "type": "array",
        "items": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "label",
            "kind"
          ],
          "properties": {
            "label": {
              "type": "string"
            },
            "kind": {
              "type": "string"
            },
            "freshness": {
              "type": "string"
            }
          }
        }
      },
      "source_health": {
        "type": "array",
        "items": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "source",
            "status",
            "freshness",
            "confidence",
            "limitations"
          ],
          "properties": {
            "source": {
              "type": "string"
            },
            "status": {
              "type": "string",
              "enum": [
                "available",
                "limited",
                "unavailable",
                "not_checked"
              ]
            },
            "freshness": {
              "type": "string",
              "enum": [
                "live",
                "recent",
                "stale",
                "unknown"
              ]
            },
            "confidence": {
              "type": "string",
              "enum": [
                "high",
                "medium",
                "low"
              ]
            },
            "limitations": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "limitations": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "recommended_next_actions": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "confidence": {
        "type": "string",
        "enum": [
          "high",
          "medium",
          "low"
        ]
      },
      "capability_id": {
        "type": "string"
      },
      "schema_version": {
        "type": "string"
      }
    }
  }
}
