{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ultimateodycer.com/agent-manifest.schema.json",
  "title": "Ultimate Odycer delegated agent manifest v1",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "$schema",
    "schemaVersion",
    "publishedAt",
    "product",
    "statusVocabulary",
    "authority",
    "discovery",
    "mcp",
    "licensing",
    "ports",
    "clients",
    "starterFactory",
    "documentation"
  ],
  "properties": {
    "$schema": {
      "const": "https://ultimateodycer.com/agent-manifest.schema.json"
    },
    "schemaVersion": {
      "const": "1.0.0"
    },
    "publishedAt": {
      "type": "string",
      "format": "date"
    },
    "product": {
      "type": "object",
      "required": [
        "name",
        "publicBaseUrl"
      ]
    },
    "statusVocabulary": {
      "type": "object",
      "required": [
        "supported",
        "experimental",
        "planned"
      ]
    },
    "authority": {
      "type": "object",
      "required": [
        "licenseOwner",
        "agentRole",
        "humanApprovalRequiredFor"
      ]
    },
    "discovery": {
      "type": "array",
      "minItems": 3,
      "items": {
        "$ref": "#/$defs/statusEntry"
      }
    },
    "mcp": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "publicOnboarding",
        "privateOperations"
      ],
      "properties": {
        "publicOnboarding": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "status",
            "endpoint",
            "access",
            "transport",
            "protocolVersion",
            "streamableHttpCompliance",
            "sdkInteroperability",
            "maxRequestBytes",
            "methods",
            "tools",
            "note"
          ],
          "properties": {
            "status": {
              "const": "experimental"
            },
            "endpoint": {
              "const": "/api/agent-mcp.json"
            },
            "access": {
              "const": "public read-only"
            },
            "transport": {
              "const": "MCP Streamable HTTP, stateless POST only"
            },
            "protocolVersion": {
              "const": "2026-07-28"
            },
            "streamableHttpCompliance": {
              "type": "string",
              "minLength": 1
            },
            "sdkInteroperability": {
              "type": "string",
              "minLength": 1
            },
            "maxRequestBytes": {
              "type": "integer",
              "minimum": 1,
              "maximum": 16384
            },
            "methods": {
              "type": "array",
              "const": [
                "server/discover",
                "tools/list",
                "tools/call"
              ]
            },
            "tools": {
              "type": "array",
              "const": [
                "get_manifest",
                "get_license_policy",
                "validate_starter_manifest"
              ]
            },
            "note": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "privateOperations": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "status",
            "endpoint",
            "access",
            "publicOnboarding",
            "capabilityClasses",
            "note"
          ],
          "properties": {
            "status": {
              "const": "experimental"
            },
            "endpoint": {
              "const": "/api/mcp.json"
            },
            "access": {
              "const": "private x-agent-key"
            },
            "publicOnboarding": {
              "const": false
            },
            "capabilityClasses": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              }
            },
            "note": {
              "type": "string",
              "minLength": 1
            }
          }
        }
      }
    },
    "licensing": {
      "type": "object",
      "required": [
        "runtimeGate",
        "payments",
        "issuance",
        "tiers"
      ]
    },
    "ports": {
      "type": "array",
      "minItems": 4,
      "items": {
        "allOf": [
          {
            "$ref": "#/$defs/statusEntry"
          },
          {
            "type": "object",
            "required": [
              "port",
              "protocol",
              "evidence"
            ],
            "properties": {
              "port": {
                "type": "integer",
                "minimum": 1,
                "maximum": 65535
              }
            }
          }
        ]
      }
    },
    "clients": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/statusEntry"
      }
    },
    "starterFactory": {
      "type": "object",
      "required": [
        "status",
        "label",
        "gallery",
        "blueprint",
        "localTarget"
      ],
      "properties": {
        "status": {
          "$ref": "#/$defs/status"
        }
      }
    },
    "documentation": {
      "type": "object",
      "required": [
        "agentDecision",
        "starterBlueprint",
        "quickstart",
        "privateWebAdminOpenApi",
        "runtimeLicense"
      ]
    }
  },
  "$defs": {
    "status": {
      "type": "string",
      "enum": [
        "supported",
        "experimental",
        "planned"
      ]
    },
    "statusEntry": {
      "type": "object",
      "required": [
        "id",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "status": {
          "$ref": "#/$defs/status"
        }
      }
    }
  }
}
