{
  "openapi": "3.1.0",
  "info": {
    "title": "AZ-CLCE runtime",
    "version": "0.1.0",
    "summary": "Cross-Layer Consistency Engine. Inconsistency, not intent.",
    "description": "CLCE detects inconsistency, not intent. Type D is a label, not a finding of malice. Human validation required. Not a cybersecurity exploit, not a scanner of other people's systems, not a lie detector. Advisory scores only. Threshold 0.7 is the paper's acceptable line, not a pass/fail of truth."
  },
  "servers": [
    {
      "url": "https://azclce-download-tracker.vibelock.workers.dev"
    }
  ],
  "paths": {
    "/v1/health": {
      "get": {
        "operationId": "azclce_health",
        "summary": "Liveness. Does not increment download KV.",
        "responses": {
          "200": {
            "description": "ok"
          }
        }
      }
    },
    "/v1/score": {
      "post": {
        "operationId": "azclce_score",
        "summary": "Jaccard triple, pairwise average, CLCE+. Advisory. Threshold 0.7.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "r": {
                    "description": "Representation layer (string or token array)"
                  },
                  "d": {
                    "description": "Description layer"
                  },
                  "p": {
                    "description": "Reality / performance layer"
                  },
                  "n": {
                    "description": "Optional negative space"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "report"
          }
        }
      }
    },
    "/v1/classify": {
      "post": {
        "operationId": "azclce_classify",
        "summary": "Same as score plus mismatch types. Type D is a label only.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "r": {
                    "description": "Representation layer (string or token array)"
                  },
                  "d": {
                    "description": "Description layer"
                  },
                  "p": {
                    "description": "Reality / performance layer"
                  },
                  "n": {
                    "description": "Optional negative space"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "report"
          }
        }
      }
    },
    "/v1/gate": {
      "post": {
        "operationId": "azclce_gate",
        "summary": "Pass iff triple ≥ min_score (default 0.7). Advisory, not a truth verdict.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "r": {},
                  "d": {},
                  "p": {},
                  "n": {},
                  "min": {},
                  "min_score": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "passed + report"
          }
        }
      }
    }
  }
}