{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://ax0s.io/data/integrations-public.schema.json",
 "title": "Ax0s Live public integration ledger",
 "type": "object",
 "additionalProperties": false,
 "required": [
  "schema_version",
  "checked_date",
  "ingest_boundary",
  "rows"
 ],
 "properties": {
  "schema_version": {
   "const": 1
  },
  "checked_date": {
   "type": "string",
   "format": "date"
  },
  "ingest_boundary": {
   "const": "Automated secret redaction runs on the Fathom, Gmail, Google Calendar, Google Drive, SignWell, Stripe, and Mercury persistent-ingest paths before any write; the iMessage path and other ingest paths remain unredacted."
  },
  "rows": {
   "type": "array",
   "minItems": 20,
   "maxItems": 20,
   "items": {
    "$ref": "#/$defs/integration"
   }
  }
 },
 "$defs": {
  "integration": {
   "type": "object",
   "additionalProperties": false,
   "required": [
    "id",
    "integration",
    "runtime_status",
    "product_lifecycle",
    "mode",
    "evidence_state",
    "checked_date",
    "artifact_link",
    "limitation",
    "public_owner_role",
    "next_gate"
   ],
   "properties": {
    "id": {
     "type": "string",
     "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
    },
    "integration": {
     "type": "string",
     "minLength": 1
    },
    "runtime_status": {
     "enum": [
      "LIVE",
      "IN BUILD",
      "PLANNED"
     ]
    },
    "product_lifecycle": {
     "enum": [
      "shipped",
      "experimental",
      "roadmap",
      "unsupported",
      "not a product surface"
     ]
    },
    "mode": {
     "type": "string",
     "minLength": 1
    },
    "evidence_state": {
     "oneOf": [
      {
       "enum": [
        "Method published",
        "Re-run pending",
        "Internal dogfood",
        "In build",
        "Direction",
        "Experimental",
        "Roadmap",
        "Disconfirmed",
        "Superseded"
       ]
      },
      {
       "type": "string",
       "pattern": "^Verified [0-9]{4}-[0-9]{2}-[0-9]{2}$"
      }
     ]
    },
    "checked_date": {
     "enum": [
      "2026-07-14",
      "2026-07-15",
      "2026-07-17",
      "2026-07-20"
     ]
    },
    "artifact_link": {
     "oneOf": [
      {
       "type": "null"
      },
      {
       "type": "string",
       "pattern": "^/"
      }
     ]
    },
    "limitation": {
     "type": "string",
     "minLength": 1
    },
    "public_owner_role": {
     "type": "string",
     "minLength": 1
    },
    "next_gate": {
     "type": "string",
     "minLength": 1
    }
   }
  }
 }
}
