{
  "openapi": "3.1.0",
  "info": {
    "title": "ShadowLock runtime",
    "version": "0.1.0",
    "description": "Read-only zero-retention outcome mirror. Change is optional. Truth is not."
  },
  "servers": [
    {
      "url": "https://shadowlock-download-tracker.vibelock.workers.dev"
    }
  ],
  "paths": {
    "/v1/health": {
      "get": {
        "operationId": "health",
        "summary": "Liveness",
        "responses": {
          "200": {
            "description": "ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1/observe": {
      "post": {
        "operationId": "observe",
        "summary": "Observe one {observed, counterfactual} pair. Returns report JSON. Zero-retention.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "observed",
                  "counterfactual"
                ],
                "properties": {
                  "observed": {
                    "type": "object"
                  },
                  "counterfactual": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "report",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}