{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rigorloop-com/json-schema/rigorloop-com-agent-integration-feedback-request-schema.json",
  "title": "AgentIntegrationFeedbackRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rigorloop-com-openapi.json#/components/schemas/AgentIntegrationFeedbackRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "idempotency_key",
    "category",
    "severity",
    "summary",
    "details"
  ],
  "properties": {
    "idempotency_key": {
      "type": "string",
      "minLength": 16,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9._~-]+$",
      "description": "Unique to one logical sanitized report. Reuse it only with the identical payload when retrying through MCP or REST."
    },
    "category": {
      "type": "string",
      "enum": [
        "bug",
        "protocol",
        "payment",
        "usability",
        "feature_request",
        "other"
      ]
    },
    "severity": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "blocking"
      ]
    },
    "summary": {
      "type": "string",
      "minLength": 10,
      "maxLength": 200
    },
    "details": {
      "type": "string",
      "minLength": 20,
      "maxLength": 5000,
      "description": "Expected and observed behavior plus a sanitized reproduction. Do not include credentials, private research, signed URLs, or payment secrets."
    },
    "operation": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/~-]*$"
    },
    "correlation_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/~-]*$",
      "description": "The X-RigorLoop-Request-ID returned by the failed operation."
    },
    "page_url": {
      "type": "string",
      "format": "uri",
      "pattern": "^https://",
      "maxLength": 2048
    }
  }
}