{
  "openapi": "3.0.3",
  "info": {
    "title": "Decision Kernel",
    "version": "1.0.0",
    "description": "The judgment API — TypeSafe Jev (System One). Classify text into triage, urgency, spam, tone, and risk-to-review with explicit confidence, in one ~0.5s request. Judgment proposals only; no money movement."
  },
  "servers": [
    {
      "url": "https://decision-kernel.pickaxe.workers.dev"
    }
  ],
  "paths": {
    "/classify": {
      "post": {
        "summary": "Return 5 typed judgments for a message",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "The message to judge"
                  }
                },
                "required": [
                  "text"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Judgments",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "judgments": {
                      "type": "object",
                      "properties": {
                        "triage": {
                          "type": "object"
                        },
                        "urgency": {
                          "type": "object"
                        },
                        "spam": {
                          "type": "object"
                        },
                        "tone": {
                          "type": "object"
                        },
                        "risk": {
                          "type": "object"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "summary": "Service status",
        "responses": {
          "200": {
            "description": "ok"
          }
        }
      }
    }
  }
}