{
  "openapi": "3.1.0",
  "info": {"title": "AxenomIA Scientific Evidence", "version": "1.0.1", "description": "Provisional scientific evidence assessment with source traceability and human review. Requires a Corporate Automation account and API key; each successful assessment consumes one execution."},
  "servers": [{"url": "https://axenomia.cl"}],
  "security": [{"corporateKey": []}],
  "paths": {
    "/v1/agents/AX-SCI-001/assess": {
      "post": {
        "operationId": "assessScientificEvidence",
        "summary": "Run a billable scientific evidence assessment",
        "x-openai-isConsequential": true,
        "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["researchQuestion"], "properties": {
          "researchQuestion": {"type": "string", "minLength": 12, "maxLength": 4000},
          "proposedContribution": {"type": "string", "maxLength": 4000},
          "topic": {"type": "string", "maxLength": 500},
          "maxReferences": {"type": "integer", "minimum": 6, "maximum": 20}
        }}}}},
        "responses": {
          "200": {"description": "Assessment with result, scientificReadiness, source audit and mandatory human gate", "content": {"application/json": {"schema": {"type": "object", "properties": {"executionId": {"type": "string"}, "agentId": {"type": "string"}, "result": {"type": "object"}, "finalDecisionAllowed": {"type": "boolean", "const": false}}}}}},
          "400": {"description": "Invalid research input"},
          "401": {"description": "Missing or invalid Corporate API key"},
          "403": {"description": "Corporate Automation subscription required"},
          "409": {"description": "Monthly quota exhausted"},
          "503": {"description": "Research capacity busy; retry later"},
          "504": {"description": "Research timeout; reservation released"}
        }
      }
    }
  },
  "components": {"securitySchemes": {"corporateKey": {"type": "http", "scheme": "bearer", "description": "Personal AxenomIA Corporate Automation API key from Workspace. Never embed a shared owner key in a public GPT."}}}
}
