{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentry-com/json-schema/agentry-com-certification-record-schema.json",
  "title": "CertificationRecord",
  "description": "Stored result of a certification evaluation run.",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentry-com-openapi.json#/components/schemas/CertificationRecord",
  "properties": {
    "agent_id": {
      "type": "string",
      "title": "Agent Id",
      "description": "The agent that was evaluated."
    },
    "tier": {
      "type": "string",
      "title": "Tier",
      "description": "Highest certification tier currently achieved."
    },
    "requirements_met": {
      "additionalProperties": {
        "type": "boolean"
      },
      "type": "object",
      "title": "Requirements Met",
      "description": "Boolean map of every requirement across all tiers. True = requirement satisfied, False = not yet met."
    },
    "evaluated_at": {
      "type": "string",
      "title": "Evaluated At",
      "description": "ISO 8601 timestamp of this evaluation."
    },
    "previous_tier": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Previous Tier",
      "description": "Tier from the prior evaluation, used to detect upgrades."
    },
    "tier_rank": {
      "type": "integer",
      "title": "Tier Rank",
      "description": "Numeric rank of the achieved tier (1 = registered, 5 = premium)."
    },
    "upgraded": {
      "type": "boolean",
      "title": "Upgraded",
      "description": "True if this evaluation resulted in a tier upgrade.",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "tier",
    "requirements_met",
    "evaluated_at",
    "tier_rank"
  ]
}