{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agentcarousel.com/spec/schemas/0.1/agent-evaluation-statement.schema.json",
  "title": "Agent evaluation attestation statement",
  "description": "An in-toto Statement v1 (https://in-toto.io/Statement/v1) whose subjects are the tested artifacts (test-suite files and, when present, the system prompt) and whose predicate is an agent evaluation.",
  "type": "object",
  "required": ["_type", "subject", "predicateType", "predicate"],
  "properties": {
    "_type": { "const": "https://in-toto.io/Statement/v1" },
    "subject": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": ["name", "digest"],
        "properties": {
          "name": { "type": "string", "minLength": 1 },
          "digest": {
            "type": "object",
            "required": ["sha256"],
            "properties": {
              "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" }
            }
          }
        }
      }
    },
    "predicateType": { "const": "https://agentcarousel.com/spec/predicates/agent-evaluation/v0.1" },
    "predicate": { "$ref": "agent-evaluation-predicate.schema.json" }
  }
}
