{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "additionalProperties": false,
  "required": ["schemaVersion", "candidateId", "sourceCommit", "gitTree", "entries"],
  "properties": {
    "schemaVersion": {"const": "1.0.0"},
    "candidateId": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"},
    "sourceCommit": {"type": "string", "pattern": "^[0-9a-f]{40}$"},
    "gitTree": {"type": "string", "pattern": "^[0-9a-f]{40}$"},
    "entries": {
      "type": "array", "minItems": 1, "uniqueItems": true,
      "items": {
        "type": "object", "additionalProperties": false,
        "required": ["path", "sha256", "kind"],
        "properties": {
          "path": {"type": "string", "minLength": 1},
          "sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
          "kind": {"enum": ["evidence-claim", "objective-artifact", "supporting-artifact", "resolved-artifact", "trust-registry"]}
        }
      }
    }
  }
}
