{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://dubaioftomorrow.com/schema/anchored-record.v1.schema.json",
  "title": "Anchored Record Format v1",
  "description": "Machine-readable, independently verifiable founder records. Spec: docs/RECORD_FORMAT.md. Frozen 2026-07-04; additive changes only.",
  "type": "object",
  "required": ["format", "publication", "domain", "generatedAt", "records"],
  "properties": {
    "format": { "const": "anchored-record/v1" },
    "publication": { "type": "string" },
    "domain": { "type": "string" },
    "generatedAt": { "type": "string", "format": "date-time" },
    "records": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["id", "no", "series", "personId", "company", "verified", "profile", "proof"],
        "properties": {
          "id": { "type": "string", "format": "uri" },
          "no": { "type": "integer", "minimum": 1 },
          "series": { "type": "string", "pattern": "^[0-9]{4}$" },
          "personId": { "type": ["string", "null"], "description": "Reserved for cross-edition entity resolution. Null until the network registry assigns person:<uuid> identifiers." },
          "founder": { "type": ["string", "null"] },
          "company": { "type": "string" },
          "category": { "type": ["string", "null"] },
          "founded": { "type": ["string", "null"] },
          "raised": { "type": ["string", "null"] },
          "backers": { "type": ["string", "null"] },
          "moves": { "type": "array", "items": { "type": "string" }, "maxItems": 4 },
          "verified": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$" },
          "founderConfirmed": { "type": ["string", "null"], "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$" },
          "profile": { "type": "string", "format": "uri" },
          "proof": {
            "type": "object",
            "required": ["version", "sha256", "otsStatus", "chain", "page"],
            "properties": {
              "version": { "type": "integer", "minimum": 1 },
              "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
              "otsStatus": { "enum": ["bitcoin", "pending", "unstamped"] },
              "chain": { "type": "string", "format": "uri" },
              "ots": { "type": ["string", "null"], "format": "uri" },
              "page": { "type": "string", "format": "uri" }
            }
          }
        }
      }
    }
  }
}
