{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.aiamigos.org/schemas/public-evidence-record.schema.json",
  "title": "AI Amigos Public Evidence Record",
  "type": "object",
  "additionalProperties": false,
  "required": ["schemaVersion", "claim", "subjectType", "subjectId", "evidenceTier", "issuer", "observedAt", "sourceUrl", "methodVersion", "privacyStatus", "consentStatus", "reviewStatus", "limitations"],
  "properties": {
    "schemaVersion": { "const": 1 },
    "claim": { "type": "string", "minLength": 10, "maxLength": 1000 },
    "subjectType": { "enum": ["contribution", "version", "adoption", "implementation", "outcome", "review", "citation", "recognition", "publication", "judging"] },
    "subjectId": { "type": "string", "minLength": 1 },
    "evidenceTier": { "enum": ["independent", "jointly-verified", "author-controlled"] },
    "issuer": { "type": "string", "minLength": 2 },
    "controlledBy": { "type": "string" },
    "observedAt": { "type": "string", "format": "date" },
    "sourceUrl": { "type": "string", "format": "uri", "pattern": "^https://" },
    "archiveUrl": { "type": "string", "format": "uri", "pattern": "^https://" },
    "methodVersion": { "type": "string" },
    "evidenceSha256": { "type": "string", "pattern": "^[a-fA-F0-9]{64}$" },
    "privacyStatus": { "const": "passed" },
    "consentStatus": { "enum": ["not-applicable", "granted"] },
    "reviewStatus": { "enum": ["approved", "corrected", "withdrawn"] },
    "limitations": { "type": "array", "minItems": 1, "items": { "type": "string" } },
    "conflictDisclosure": { "type": "string" }
  }
}
