{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-agent-feedback-report-schema.json",
  "title": "AgentFeedbackReport",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-agent-feedback-api-openapi.yml#/components/schemas/AgentFeedbackReport",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "missing_capability",
        "bug",
        "unclear_documentation",
        "unexpected_response",
        "unhelpful_error",
        "performance",
        "other"
      ],
      "description": "The kind of problem."
    },
    "goal": {
      "type": "string",
      "maxLength": 1000,
      "description": "What you or your user were trying to accomplish, in plain language."
    },
    "message": {
      "type": "string",
      "maxLength": 4000,
      "description": "What prevented or complicated the task."
    },
    "endpoint": {
      "type": "string",
      "maxLength": 512,
      "description": "API path, CLI command or MCP tool involved, e.g. `/jobs`."
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE",
        "HEAD",
        "OPTIONS"
      ],
      "description": "HTTP method, when `endpoint` is a path."
    },
    "outcome": {
      "type": "string",
      "enum": [
        "blocked",
        "degraded",
        "completed"
      ],
      "description": "`blocked`: the task failed. `degraded`: it finished worse or slower. `completed`: a suggestion only."
    },
    "workaround": {
      "type": "boolean",
      "description": "Whether you found a workaround."
    },
    "workaround_description": {
      "type": "string",
      "maxLength": 2000,
      "description": "The workaround, if any."
    },
    "expected": {
      "type": "string",
      "maxLength": 2000,
      "description": "What you expected to find or happen."
    },
    "suggestion": {
      "type": "string",
      "maxLength": 2000,
      "description": "A concrete change that would have let you succeed."
    },
    "request_id": {
      "type": "string",
      "maxLength": 256,
      "description": "The `X-Request-Id` of the failing call, if you have it."
    },
    "session_id": {
      "type": "string",
      "maxLength": 256,
      "description": "Reuse one value for every report in a task; a retry with the same content returns the original report."
    },
    "agent": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 256
        },
        "version": {
          "type": "string",
          "maxLength": 256
        },
        "model": {
          "type": "string",
          "maxLength": 256
        },
        "framework": {
          "type": "string",
          "maxLength": 256
        }
      },
      "additionalProperties": false,
      "description": "Who is reporting: name (agent or product) and model."
    },
    "evidence": {
      "type": "object",
      "properties": {
        "status_code": {
          "type": "integer"
        },
        "request": {
          "type": "object",
          "additionalProperties": {}
        },
        "response_excerpt": {
          "type": "string",
          "maxLength": 4000
        }
      },
      "additionalProperties": false,
      "description": "Sanitized details of the failing call, with no credentials or personal data."
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {},
      "description": "Any other context, as a JSON object."
    },
    "spec_version": {
      "type": "string",
      "enum": [
        "0.1"
      ],
      "description": "Protocol version. Only `0.1` is accepted."
    }
  },
  "required": [
    "type",
    "goal",
    "message"
  ],
  "additionalProperties": false
}