{
  "openapi": "3.1.0",
  "info": {
    "title": "VAREXIS INDEX Qualification API",
    "version": "1.0.0",
    "description": "Contract for qualifying an existing evidence corpus against a workload request. A query miss returns NOT_DEMONSTRATED and does not autonomously initiate research or compute."
  },
  "servers": [
    {
      "url": "https://api.varexis.tech",
      "description": "Intended public API host. Publication of this contract does not assert that the runtime is deployed or validated."
    }
  ],
  "paths": {
    "/api/index/qualify-workload": {
      "post": {
        "operationId": "qualify_workload",
        "summary": "Qualify existing evidence for a workload",
        "description": "Runs semantic candidate retrieval followed by explicit qualification. Semantic similarity alone cannot support reliance.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "../schemas/index-query-v1.json"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Qualification result, including NOT_DEMONSTRATED where no evidence survives qualification.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "../schemas/index-response-v1.json"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query contract."
          },
          "401": {
            "description": "Authentication required or invalid."
          },
          "429": {
            "description": "Usage/rate limit exceeded."
          },
          "500": {
            "description": "Internal execution failure. No reliance result should be inferred from an error response."
          }
        },
        "x-varexis-authority-boundary": "VAREXIS INDEX informs evidence reliance; it does not grant authority to deploy or act.",
        "x-varexis-no-autonomous-research": true
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Authentication mechanism is implementation-specific. Authentication does not establish evidence truth or authority to act."
      }
    }
  },
  "x-varexis-deployment-status": "CONTRACT_ONLY_UNTIL_SEPARATELY_DEPLOYED_AND_VALIDATED"
}
