{
  "additionalProperties": false,
  "description": "Public-safe transport receipt for one accepted or failed model attempt.",
  "properties": {
    "attempt": {
      "minimum": 1,
      "title": "Attempt",
      "type": "integer"
    },
    "completed_at": {
      "title": "Completed At",
      "type": "string"
    },
    "configured_model": {
      "minLength": 3,
      "title": "Configured Model",
      "type": "string"
    },
    "evidence_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "title": "Evidence Sha256",
      "type": "string"
    },
    "failure_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Failure Type"
    },
    "finish_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Finish Reason"
    },
    "http_status": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Http Status"
    },
    "latency_seconds": {
      "minimum": 0,
      "title": "Latency Seconds",
      "type": "number"
    },
    "response_content_sha256": {
      "anyOf": [
        {
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Response Content Sha256"
    },
    "response_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Response Id"
    },
    "response_model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Response Model"
    },
    "role": {
      "enum": [
        "researcher",
        "statistician",
        "adversarial_reviewer",
        "citation_checker",
        "editor"
      ],
      "title": "Role",
      "type": "string"
    },
    "router_metadata": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Router Metadata"
    },
    "schema_name": {
      "minLength": 3,
      "title": "Schema Name",
      "type": "string"
    },
    "schema_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "title": "Schema Sha256",
      "type": "string"
    },
    "started_at": {
      "title": "Started At",
      "type": "string"
    },
    "status": {
      "enum": [
        "success",
        "rejected_or_failed"
      ],
      "title": "Status",
      "type": "string"
    },
    "system_prompt_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "title": "System Prompt Sha256",
      "type": "string"
    },
    "usage": {
      "additionalProperties": true,
      "title": "Usage",
      "type": "object"
    }
  },
  "required": [
    "attempt",
    "completed_at",
    "configured_model",
    "evidence_sha256",
    "latency_seconds",
    "role",
    "schema_name",
    "schema_sha256",
    "started_at",
    "status",
    "system_prompt_sha256"
  ],
  "title": "OpenRouterCallRecord",
  "type": "object"
}