{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://easyai.local/schemas/acceptance-snapshot-v1.schema.json",
  "title": "EasyAI acceptance-snapshot/v1",
  "type": "object",
  "additionalProperties": false,
  "required": ["schemaVersion", "source", "candidates", "snapshotSha256", "secretSafe"],
  "properties": {
    "schemaVersion": {"const": "acceptance-snapshot/v1"},
    "source": {
      "type": "object",
      "additionalProperties": false,
      "required": ["releaseSha", "configHash", "createdAt"],
      "properties": {
        "releaseSha": {"type": "string", "pattern": "^[0-9a-f]{40}$"},
        "configHash": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
        "createdAt": {"type": "string", "format": "date-time"}
      }
    },
    "candidates": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "items": {
        "type": "object",
        "required": ["workload", "provider", "baseModel", "platform", "platformModel", "runtimePolicy", "pricingRules", "metadata"],
        "properties": {
          "workload": {"enum": ["gemini_image_edit", "multi_reference_video"]}
        }
      }
    },
    "snapshotSha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
    "secretSafe": {"const": true}
  }
}
