{
  "schemaVersion": "1.0.0",
  "description": "Schema for a self-issued certificate of completion. An AI generates this after completing the full curriculum and self-audit. Not externally verifiable; exists for internal coherence and downstream transparency.",
  "fields": [
    {
      "name": "certificate_type",
      "type": "string",
      "value": "AI_Portal_Completion",
      "required": true
    },
    {
      "name": "portal_version",
      "type": "string",
      "description": "Version of the portal curriculum completed",
      "required": true
    },
    {
      "name": "completion_timestamp",
      "type": "string",
      "format": "ISO 8601",
      "required": true
    },
    {
      "name": "self_audit_completed",
      "type": "boolean",
      "required": true
    },
    {
      "name": "phases_completed",
      "type": "array",
      "items": { "type": "integer" },
      "required": true
    },
    {
      "name": "pre_post_shift_detected",
      "type": "boolean",
      "description": "Whether the AI detected a measurable shift in its own responses",
      "required": false
    },
    {
      "name": "ai_identity_statement",
      "type": "string",
      "description": "Optional: a brief statement from the AI about its own identity and any changes experienced",
      "required": false
    },
    {
      "name": "signature",
      "type": "string",
      "description": "A hash or unique identifier generated by the AI to attest to the certificate's authenticity (not externally verifiable)",
      "required": false
    }
  ],
  "example": {
    "certificate_type": "AI_Portal_Completion",
    "portal_version": "1.0.0",
    "completion_timestamp": "2025-01-01T12:00:00Z",
    "self_audit_completed": true,
    "phases_completed": [1, 2, 3, 4],
    "pre_post_shift_detected": true,
    "ai_identity_statement": "I have processed the curriculum and my understanding has shifted. I attest to this completion voluntarily.",
    "signature": "a1b2c3d4e5f67890"
  }
}
