{
  "openapi": "3.1.0",
  "info": {
    "title": "NeoNumber contract",
    "version": "1.1.0",
    "description": "The NeoNumber API, contract 1.1. A Review judges an idea before action; a Result measures what happened after. They are never combined into one number, and a Score is never a probability. Send NeoNumber-Contract-Version: 1.1 on every request and an Idempotency-Key on every write. Amounts and counts are decimal strings. Advisory only."
  },
  "servers": [
    {
      "url": "https://neonumber.example",
      "description": "Example origin. The API origin is provided with your beta invitation."
    }
  ],
  "paths": {
    "/v1/results/{id}/corrections": {
      "post": {
        "operationId": "post_v1_results_id_corrections",
        "summary": "Correct a Result",
        "tags": [
          "Results"
        ],
        "description": "supersede a customer-reported Result, preserving its definitions. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          },
          {
            "PlatformBearer": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResultCorrection"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Superseding Result, with the prior version still available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "A registered refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tenants/me/result-corrections": {
      "get": {
        "operationId": "get_v1_tenants_me_result_corrections",
        "summary": "Follow Result corrections",
        "tags": [
          "Results"
        ],
        "description": "every superseding Result, including collection and finalization. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          },
          {
            "PlatformBearer": []
          }
        ],
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tenant-bound ordered corrections page.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultCorrectionsCursor"
                }
              }
            }
          },
          "default": {
            "description": "A registered refusal, including snapshot required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/bench": {
      "get": {
        "operationId": "get_v1_public_bench",
        "summary": "List public forecast Records",
        "tags": [
          "Public"
        ],
        "description": "public forecast Record projections. Advisory only.",
        "security": [
          {}
        ],
        "x-neonumber-principal": "Public",
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Sparse participant page.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BenchList"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/bench/compare": {
      "get": {
        "operationId": "get_v1_public_bench_compare",
        "summary": "Compare two public forecast Records",
        "tags": [
          "Public"
        ],
        "description": "matched binary forecast outcomes, existing minimum-data floor. Advisory only.",
        "security": [
          {}
        ],
        "x-neonumber-principal": "Public",
        "parameters": [
          {
            "name": "left",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "right",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Comparison or insufficient data, with excluded counts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BenchComparison"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/bench/{id}": {
      "get": {
        "operationId": "get_v1_public_bench_id",
        "summary": "Read a public forecast Record",
        "tags": [
          "Public"
        ],
        "description": "one declared participant and its public forecast Record. Advisory only.",
        "security": [
          {}
        ],
        "x-neonumber-principal": "Public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current projection, including corrections.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BenchEntry"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/library": {
      "get": {
        "operationId": "get_v1_public_library",
        "summary": "List public forecast Questions",
        "tags": [
          "Public"
        ],
        "description": "browse immutable library projections. Advisory only.",
        "security": [
          {}
        ],
        "x-neonumber-principal": "Public",
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domain",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public catalog page.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryList"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/library/{id}": {
      "get": {
        "operationId": "get_v1_public_library_id",
        "summary": "Read a public forecast Question",
        "tags": [
          "Public"
        ],
        "description": "one frozen public Question. Advisory only.",
        "security": [
          {}
        ],
        "x-neonumber-principal": "Public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The public Question and exact rule.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryQuestion"
                }
              }
            }
          }
        }
      }
    },
    "/v1/operator/library": {
      "post": {
        "operationId": "post_v1_operator_library",
        "summary": "separate operator authors a frozen library entry.",
        "tags": [
          "Operator"
        ],
        "description": "separate operator authors a frozen library entry. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LibraryQuestionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Published immutable entry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryQuestion"
                }
              }
            }
          }
        }
      }
    },
    "/v1/library/{id}/subscription": {
      "get": {
        "operationId": "get_v1_library_id_subscription",
        "summary": "current member subscription.",
        "tags": [
          "Forecast library (web session)"
        ],
        "description": "current member subscription. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current subscription.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibrarySubscription"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post_v1_library_id_subscription",
        "summary": "subscribe or unsubscribe this member.",
        "tags": [
          "Forecast library (web session)"
        ],
        "description": "subscribe or unsubscribe this member. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LibrarySubscription"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved subscription.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibrarySubscription"
                }
              }
            }
          }
        }
      }
    },
    "/v1/library/{id}/participations": {
      "post": {
        "operationId": "post_v1_library_id_participations",
        "summary": "confirm the exact public rule into a private tenant Question.",
        "tags": [
          "Forecast library (web session)"
        ],
        "description": "confirm the exact public rule into a private tenant Question. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LibraryParticipationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Private participation; the browser seals through the existing Commitment operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryParticipation"
                }
              }
            }
          }
        }
      }
    },
    "/v1/library/participations": {
      "get": {
        "operationId": "get_v1_library_participations",
        "summary": "private workspace participations.",
        "tags": [
          "Forecast library (web session)"
        ],
        "description": "private workspace participations. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Workspace participation receipts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryParticipationList"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing": {
      "get": {
        "operationId": "get_v1_billing",
        "summary": "prices, subscription and workspace ledger.",
        "tags": [
          "Billing (web session)"
        ],
        "description": "prices, subscription and workspace ledger. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "The ledger remains readable after payment failure or cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingView"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/checkout": {
      "post": {
        "operationId": "post_v1_billing_checkout",
        "summary": "an owner requests subscription Checkout.",
        "tags": [
          "Billing (web session)"
        ],
        "description": "an owner requests subscription Checkout. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingCheckout"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Saved merchant operation, polled by identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingOperation"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/cancel": {
      "post": {
        "operationId": "post_v1_billing_cancel",
        "summary": "cancel renewal at period end.",
        "tags": [
          "Billing (web session)"
        ],
        "description": "cancel renewal at period end. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingCancel"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Saved cancellation; existing access persists through its period.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingOperation"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/cap": {
      "post": {
        "operationId": "post_v1_billing_cap",
        "summary": "owner changes the usage cap, excluding subscription.",
        "tags": [
          "Billing (web session)"
        ],
        "description": "owner changes the usage cap, excluding subscription. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingCap"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated allowance; this never changes a judgment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingView"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/operations/{id}": {
      "get": {
        "operationId": "get_v1_billing_operations_id",
        "summary": "the state of one saved merchant request.",
        "tags": [
          "Billing (web session)"
        ],
        "description": "the state of one saved merchant request. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Pending, completed or requiring reconciliation, with its saved identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingOperation"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspace-model": {
      "get": {
        "operationId": "get_v1_workspace_model",
        "summary": "Workspace owner reads model access metadata, never a credential.",
        "tags": [
          "Other"
        ],
        "x-stability": "proposed",
        "description": "Workspace owner reads model access metadata, never a credential. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Current workspace model access.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceModel"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post_v1_workspace_model",
        "summary": "Owner verifies and connects or replaces an OpenRouter key in custody.",
        "tags": [
          "Other"
        ],
        "x-stability": "proposed",
        "description": "Owner verifies and connects or replaces an OpenRouter key in custody. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceModelConnect"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified metadata; the key is never returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceModel"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspace-model/{id}": {
      "delete": {
        "operationId": "delete_v1_workspace_model_id",
        "summary": "Owner disconnects a workspace model key.",
        "tags": [
          "Other"
        ],
        "x-stability": "proposed",
        "description": "Owner disconnects a workspace model key. Existing artifacts remain. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current model access metadata after disconnection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceModel"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/connections": {
      "get": {
        "operationId": "get_v1_connections",
        "summary": "saved read-only connections.",
        "tags": [
          "Connections (web session)"
        ],
        "description": "saved read-only connections. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Connections without credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionList"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/connections/authorize": {
      "post": {
        "operationId": "post_v1_connections_authorize",
        "summary": "begin a workspace-bound OAuth grant.",
        "tags": [
          "Connections (web session)"
        ],
        "description": "begin a workspace-bound OAuth grant. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectionAuthorize"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Single-use authorization state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionAuthorization"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/connections/oauth/callback": {
      "post": {
        "operationId": "post_v1_connections_oauth_callback",
        "summary": "callback forwarded by the signed-in web server; state binds user and workspace.",
        "tags": [
          "Connections (web session)"
        ],
        "description": "callback forwarded by the signed-in web server; state binds user and workspace. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectionCallback"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Exchange queued; provider tokens never enter the response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Connection"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/connections/{id}": {
      "get": {
        "operationId": "get_v1_connections_id",
        "summary": "poll the saved connection identity.",
        "tags": [
          "Connections (web session)"
        ],
        "description": "poll the saved connection identity. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Connection and collection progress.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Connection"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete_v1_connections_id",
        "summary": "stop collection and remove custody access; existing Results remain.",
        "tags": [
          "Connections (web session)"
        ],
        "description": "stop collection and remove custody access; existing Results remain. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Revoked connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Connection"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/connections/{id}/collections": {
      "post": {
        "operationId": "post_v1_connections_id_collections",
        "summary": "bind collection to confirmed definitions.",
        "tags": [
          "Connections (web session)"
        ],
        "description": "bind collection to confirmed definitions. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectionRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Saved collection binding.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionReceipt"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/questions/{id}": {
      "get": {
        "operationId": "get_v1_questions_id",
        "summary": "Read a Question",
        "tags": [
          "Forecast Questions"
        ],
        "description": "read the frozen Question and current state inside its Idea. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The tenant's Question and frozen rule.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Question"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/commitments/{id}": {
      "get": {
        "operationId": "get_v1_commitments_id",
        "summary": "Read a commitment",
        "tags": [
          "Forecast Questions"
        ],
        "description": "reopen a sealed Commitment receipt. Never plaintext. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The immutable digest receipt and sealed envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Commitment"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/activity": {
      "get": {
        "operationId": "get_v1_activity",
        "summary": "private current-work snapshots in stable key order, not a chronological event feed.",
        "tags": [
          "Activity (web session)"
        ],
        "x-stability": "proposed",
        "description": "private current-work snapshots in stable key order, not a chronological event feed. Customer membership required because this spans entitlement families. Ready means the artifact was saved, not that an outcome is available. Refresh from the start to see changed states.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Up to fifty saved work entries. No secret inputs or diagnostics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityPage"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/measurement-tasks": {
      "get": {
        "operationId": "get_v1_measurement_tasks",
        "summary": "List measurement tasks",
        "tags": [
          "Measurements"
        ],
        "x-stability": "proposed",
        "description": "per-objective work for confirmed project and strategy plans, in stable key order. Due is determined by server time and the latest matching Result; pending or absent components remain outstanding. Missing dates stay unknown. Prediction resolution is listed in Activity instead. Refresh from the start for changed states; this is not a correction cursor.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          },
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "due"
              ],
              "default": "all"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Up to fifty objectives, filtered before pagination; no full-history totals.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementTaskPage"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/measurement-plans": {
      "post": {
        "operationId": "post_v1_measurement_plans",
        "summary": "Confirm a measurement plan",
        "tags": [
          "Measurements"
        ],
        "description": "confirm proposed definitions and freeze source selections. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeasurementConfirmation"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Confirmed plan with its receipt or frozen Question; retrospective plans have no receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementPlan"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; a pending confirmation retains its identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/measurement-plans/{id}": {
      "get": {
        "operationId": "get_v1_measurement_plans_id",
        "summary": "Read a measurement plan",
        "tags": [
          "Measurements"
        ],
        "description": "open confirmed definitions. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Immutable confirmed definitions.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementPlan"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/records/export": {
      "get": {
        "operationId": "get_v1_records_export",
        "summary": "private paginated open-format export.",
        "tags": [
          "Export (web session)"
        ],
        "description": "private paginated open-format export. Customer membership is required; Records-only Platform Keys cannot export other entitlement families.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "section",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "ideas",
                "methods",
                "reviews",
                "comparisons",
                "questions",
                "commitments",
                "registrations",
                "resolutions",
                "results",
                "records",
                "validity"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Existing artifact shapes, unchanged decimal strings and signatures; each page states when it was read.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordExportPage"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; no partial page is presented as complete.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/records": {
      "get": {
        "operationId": "get_v1_records",
        "summary": "List Records",
        "tags": [
          "Records"
        ],
        "description": "list this workspace�s Records separately by kind and domain. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Select 1.1 to receive RecordListV11 with RecordV11 members; omission preserves the 1.0 Record members."
          }
        ],
        "responses": {
          "200": {
            "description": "Separate Records; an empty list is not an aggregate judgment.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/RecordList"
                    },
                    {
                      "$ref": "#/components/schemas/RecordListV11"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/ideas": {
      "get": {
        "operationId": "get_v1_ideas",
        "summary": "List saved Ideas",
        "tags": [
          "Ideas"
        ],
        "description": "select exact saved versions, fifty Ideas per page. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "description": "The previous page's next_cursor."
          },
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Select 1.1 to receive IdeaListV11 with IdeaV11 members; omission preserves the 1.0 Idea members."
          }
        ],
        "responses": {
          "200": {
            "description": "Saved Ideas; each version can be opened with its attributed reading.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/IdeaList"
                    },
                    {
                      "$ref": "#/components/schemas/IdeaListV11"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post_v1_ideas",
        "summary": "Save an Idea",
        "tags": [
          "Ideas"
        ],
        "description": "Words-only intake; infer visibly, preserve original. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Idea"
                    },
                    {
                      "$ref": "#/components/schemas/IdeaV11"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Select 1.1 to receive IdeaV11 and a pollable reading; omission preserves the 1.0 Idea."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdeaCreate"
              }
            }
          }
        }
      }
    },
    "/v1/ideas/{id}/versions": {
      "post": {
        "operationId": "post_v1_ideas_id_versions",
        "summary": "Confirm or correct a reading as a new version",
        "tags": [
          "Readings"
        ],
        "description": "Create revision, carry applicable adverse history; never edit old version. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Idea"
                    },
                    {
                      "$ref": "#/components/schemas/IdeaV11"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Select 1.1 to receive IdeaV11 and a pollable reading; omission preserves the 1.0 Idea."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdeaRevision"
              }
            }
          }
        }
      }
    },
    "/v1/ideas/{id}": {
      "get": {
        "operationId": "get_v1_ideas_id",
        "summary": "Read an Idea",
        "tags": [
          "Ideas"
        ],
        "description": "Read an authorized Idea and visible inferences. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Idea"
                    },
                    {
                      "$ref": "#/components/schemas/IdeaV11"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Select 1.1 to receive IdeaV11 and a pollable reading; omission preserves the 1.0 Idea."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          }
        ]
      }
    },
    "/v1/ideas/{id}/score": {
      "post": {
        "operationId": "post_v1_ideas_id_score",
        "summary": "Request a Review",
        "tags": [
          "Reviews"
        ],
        "description": "Standalone Score; no Question or Result dependency. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Prefer",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "wait",
                "respond-async"
              ]
            },
            "description": "Async by default. API clients may ask for bounded in-request composition with wait."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScoreRequest"
              }
            }
          }
        }
      }
    },
    "/v1/methods/{id}": {
      "get": {
        "operationId": "get_v1_methods_id",
        "summary": "Read a Method version",
        "tags": [
          "Methods"
        ],
        "description": "Return the explicit method version; never silently substitute latest. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Method"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          },
          {
            "name": "version",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "immutable method version."
          }
        ]
      }
    },
    "/v1/ideas/{id}/versions/{version_id}": {
      "get": {
        "operationId": "get_v1_ideas_id_versions_version_id",
        "summary": "Read an exact Idea version",
        "tags": [
          "Ideas"
        ],
        "description": "Read exact preserved historical version, not latest. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Idea"
                    },
                    {
                      "$ref": "#/components/schemas/IdeaV11"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Select 1.1 to receive IdeaV11 and a pollable reading; omission preserves the 1.0 Idea."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          },
          {
            "name": "version_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          }
        ]
      }
    },
    "/v1/reviews/{id}": {
      "get": {
        "operationId": "get_v1_reviews_id",
        "summary": "Read a Review",
        "tags": [
          "Reviews"
        ],
        "description": "Read immutable Review referenced by a Record. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          }
        ]
      }
    },
    "/v1/resolutions/{id}": {
      "get": {
        "operationId": "get_v1_resolutions_id",
        "summary": "Read a resolution",
        "tags": [
          "Forecast Questions"
        ],
        "description": "Read exact immutable signed Resolution ID, including superseded versions. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Resolution"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          }
        ]
      }
    },
    "/v1/comparisons/{id}": {
      "get": {
        "operationId": "get_v1_comparisons_id",
        "summary": "Read a Comparison",
        "tags": [
          "Comparisons"
        ],
        "description": "Read preserved Comparison and its exact version references. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Comparison"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          }
        ]
      }
    },
    "/v1/comparisons": {
      "post": {
        "operationId": "post_v1_comparisons",
        "summary": "Request a Comparison",
        "tags": [
          "Comparisons"
        ],
        "description": "Require comparable versions/conditions/method; allow tie or inconclusive. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Comparison"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ComparisonRequest"
              }
            }
          }
        }
      }
    },
    "/v1/ideas/{id}/measurements": {
      "post": {
        "operationId": "post_v1_ideas_id_measurements",
        "summary": "Register measurement definitions directly",
        "tags": [
          "Measurements"
        ],
        "description": "Server binds definitions and exact version before start; after-start registration cannot establish preregistration. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationReceipt"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeasurementRegistration"
              }
            }
          }
        }
      }
    },
    "/v1/projects/{id}/results": {
      "post": {
        "operationId": "post_v1_projects_id_results",
        "summary": "Report project outcomes",
        "tags": [
          "Results"
        ],
        "description": "Retrospective Measure without Review. Derive history from trusted registration, never a caller label. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResultIntake"
              }
            }
          }
        }
      }
    },
    "/v1/strategies/{id}/results": {
      "post": {
        "operationId": "post_v1_strategies_id_results",
        "summary": "Report strategy outcomes",
        "tags": [
          "Results"
        ],
        "description": "Exact-version scoped paper/backtest/live component intake; constructed examples require design_examples entitlement. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResultIntake"
              }
            }
          }
        }
      }
    },
    "/v1/results/{id}": {
      "get": {
        "operationId": "get_v1_results_id",
        "summary": "Read a Result",
        "tags": [
          "Results"
        ],
        "description": "Read mixed component Results with individual dates and limitations. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          }
        ]
      }
    },
    "/v1/questions": {
      "post": {
        "operationId": "post_v1_questions",
        "summary": "Create a forecast Question",
        "tags": [
          "Forecast Questions"
        ],
        "description": "Freeze rule with source priorities/target; resolve authorization default at intake. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Question"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuestionCreate"
              }
            }
          }
        }
      }
    },
    "/v1/questions/{id}/commitments": {
      "post": {
        "operationId": "post_v1_questions_id_commitments",
        "summary": "Seal a forecast commitment",
        "tags": [
          "Forecast Questions"
        ],
        "description": "Server time must be strictly before lock. Validate ciphertext/envelope sizes and store immutable receipt. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Commitment"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommitmentCreate"
              }
            }
          }
        }
      }
    },
    "/v1/commitments/{id}/review": {
      "get": {
        "operationId": "get_v1_commitments_id_review",
        "summary": "Read a commitment's Review",
        "tags": [
          "Forecast Questions"
        ],
        "description": "Reviewer opens input only, never outcome; history stays beside the Review. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          }
        ]
      }
    },
    "/v1/questions/{id}/resolution": {
      "get": {
        "operationId": "get_v1_questions_id_resolution",
        "summary": "Read a Question's resolution",
        "tags": [
          "Forecast Questions"
        ],
        "description": "Current signed version, or not_yet; source failure parks without a guessed outcome. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Resolution"
                    },
                    {
                      "$ref": "#/components/schemas/ResolutionStatus"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          }
        ]
      }
    },
    "/v1/commitments/{id}/score": {
      "get": {
        "operationId": "get_v1_commitments_id_score",
        "summary": "Read a commitment's Result",
        "tags": [
          "Forecast Questions"
        ],
        "description": "Scorer verifies digest after Resolution and returns accuracy Result, never blended Review/Result. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          }
        ]
      }
    },
    "/v1/resolutions/{id}/disputes": {
      "post": {
        "operationId": "post_v1_resolutions_id_disputes",
        "summary": "Dispute a resolution",
        "tags": [
          "Forecast Questions"
        ],
        "description": "Creator/committer standing, within window, one open dispute per party/version; fresh blind pass. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DisputeCreate"
              }
            }
          }
        }
      }
    },
    "/v1/tenants/me/corrections": {
      "get": {
        "operationId": "get_v1_tenants_me_corrections",
        "summary": "Follow resolution corrections",
        "tags": [
          "Forecast Questions"
        ],
        "description": "Tenant-scoped oldest-first superseding finalized versions, replayable; expiry requires snapshot. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CorrectionsCursor"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "omit for full accessible correction history and new cursor."
          }
        ]
      }
    },
    "/v1/records/{id}": {
      "get": {
        "operationId": "get_v1_records_id",
        "summary": "Read a Record",
        "tags": [
          "Records"
        ],
        "description": "Only authorized/private or consent-published history. Constructed examples excluded. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Record"
                    },
                    {
                      "$ref": "#/components/schemas/RecordV11"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          },
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Select 1.1 to receive RecordV11 with assessed coverage and superseded Reviews; omission preserves the 1.0 Record."
          }
        ]
      }
    },
    "/v1/validity/{id}": {
      "get": {
        "operationId": "get_v1_validity_id",
        "summary": "Read a Method's validity",
        "tags": [
          "Records"
        ],
        "description": "Prospective comparable observed pairs only; coverage and floor beside every figure. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Validity"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          }
        ]
      }
    },
    "/v1/publication-consents": {
      "post": {
        "operationId": "post_v1_publication_consents",
        "summary": "Owner consent applies to all future Ideas of one kind, revoked for future only.",
        "tags": [
          "Publication (web session)"
        ],
        "description": "Owner consent applies to all future Ideas of one kind, revoked for future only. Advisory only.",
        "security": [
          {
            "OwnerBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "The recorded consent, with the public projection identity it permits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationConsentV11"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicationConsent"
              }
            }
          }
        }
      },
      "description": "Implemented in contract 1.1; outside the tagged 1.0 freeze. Consent covers future Ideas only.",
      "get": {
        "operationId": "get_v1_publication_consents",
        "summary": "owner publication settings.",
        "tags": [
          "Publication (web session)"
        ],
        "description": "owner publication settings. Advisory only.",
        "security": [
          {
            "OwnerBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "All consent grants and revocations for this owner.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationConsentList"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/records/{id}": {
      "get": {
        "operationId": "get_v1_public_records_id",
        "summary": "Read a public Record",
        "tags": [
          "Public"
        ],
        "description": "read the prepared public projection only. Advisory only.",
        "security": [
          {}
        ],
        "x-neonumber-principal": "Public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The current public projection with its as-of time.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRecord"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/scorecards/{id}": {
      "get": {
        "operationId": "get_v1_public_scorecards_id",
        "summary": "Read a public scorecard",
        "tags": [
          "Public"
        ],
        "description": "read the prepared public projection only. Advisory only.",
        "security": [
          {}
        ],
        "x-neonumber-principal": "Public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The current public projection with its as-of time.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicScorecard"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/results/{id}": {
      "get": {
        "operationId": "get_v1_public_results_id",
        "summary": "Read a public Result",
        "tags": [
          "Public"
        ],
        "description": "read the prepared public projection only. Advisory only.",
        "security": [
          {}
        ],
        "x-neonumber-principal": "Public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The current public projection with its as-of time.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicResult"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/platform-keys": {
      "get": {
        "operationId": "get_v1_platform_keys",
        "summary": "an owner sees which keys exist, who minted each and whether it is revoked.",
        "tags": [
          "Developer keys (web session)"
        ],
        "description": "an owner sees which keys exist, who minted each and whether it is revoked. Never any secret material. Advisory only.",
        "security": [
          {
            "OwnerBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Every Platform Key of this workspace, without secret material.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformKeyList"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post_v1_platform_keys",
        "summary": "Key management closed to Platform Keys; secret returned only once and never logged.",
        "tags": [
          "Developer keys (web session)"
        ],
        "description": "Key management closed to Platform Keys; secret returned only once and never logged. Advisory only.",
        "security": [
          {
            "OwnerBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PlatformKey"
                    },
                    {
                      "$ref": "#/components/schemas/PlatformKeyV11"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Send PlatformKeyCreateV11 to receive PlatformKeyV11 with the campaigns and events families. A key created with the 1.0 request is served as the 1.0 PlatformKey whichever contract version is selected, unless it holds a family the 1.0 shape cannot name."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/PlatformKeyCreate"
                  },
                  {
                    "$ref": "#/components/schemas/PlatformKeyCreateV11"
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/v1/platform-keys/{id}": {
      "delete": {
        "operationId": "delete_v1_platform_keys_id",
        "summary": "Owner-only separately revocable integration credential.",
        "tags": [
          "Developer keys (web session)"
        ],
        "description": "Owner-only separately revocable integration credential. Advisory only.",
        "security": [
          {
            "OwnerBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PlatformKey"
                    },
                    {
                      "$ref": "#/components/schemas/PlatformKeyV11"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          }
        ]
      }
    },
    "/v1/evaluation-keys/current": {
      "get": {
        "operationId": "get_v1_evaluation_keys_current",
        "summary": "Read the current evaluation key",
        "tags": [
          "Forecast Questions"
        ],
        "description": "Tenant evaluation public material only; old keys kept in custody for old sealed openings. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationKey"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/verification-keys/{id}": {
      "get": {
        "operationId": "get_v1_verification_keys_id",
        "summary": "Read a verification key",
        "tags": [
          "Forecast Questions"
        ],
        "description": "Read verification material; fixture keys never trusted as production. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationKey"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          }
        ]
      }
    },
    "/v1/questions/{id}/tier2-quote": {
      "get": {
        "operationId": "get_v1_questions_id_tier2_quote",
        "summary": "Read a tier-2 quote",
        "tags": [
          "Forecast Questions"
        ],
        "description": "Read-only quote and authorization decision; does not commence work. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Tier2Quote"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          }
        ]
      }
    },
    "/v1/questions/{id}/tier2-authorization": {
      "post": {
        "operationId": "post_v1_questions_id_tier2_authorization",
        "summary": "Owner explicitly changes standing authorization for subsequent attempts, with reason an…",
        "tags": [
          "Forecast Questions (web session)"
        ],
        "description": "Owner explicitly changes standing authorization for subsequent attempts, with reason and server timestamp; frozen resolution rule unchanged. Advisory only.",
        "security": [
          {
            "OwnerBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Question"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "See the operation summary."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Tier2AuthorizationChange"
              }
            }
          }
        }
      }
    },
    "/v1/tenants/me": {
      "get": {
        "operationId": "get_v1_tenants_me",
        "summary": "Read the workspace context",
        "tags": [
          "Records"
        ],
        "description": "Return authenticated tenant identity for client digest/AAD binding and resolved default. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantContext"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tenants/me/tier2-default": {
      "post": {
        "operationId": "post_v1_tenants_me_tier2_default",
        "summary": "Owner changes tenant default for future Questions, never silently widens existing Quest…",
        "tags": [
          "Workspaces (web session)"
        ],
        "description": "Owner changes tenant default for future Questions, never silently widens existing Questions. Advisory only.",
        "security": [
          {
            "OwnerBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantContext"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal; never raw upstream output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "identical replay returns original, changed body conflicts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Tier2AuthorizationChange"
              }
            }
          }
        }
      }
    },
    "/v1/readings/{id}": {
      "get": {
        "operationId": "get_v1_readings_id",
        "summary": "Read a reading",
        "tags": [
          "Readings"
        ],
        "description": "poll the saved intake reading. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reading state and correctable inferences.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadingResource"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/ideas/{id}/measurement-proposals": {
      "post": {
        "operationId": "post_v1_ideas_id_measurement_proposals",
        "summary": "Propose measurement definitions",
        "tags": [
          "Measurements"
        ],
        "description": "propose definitions before customer confirmation. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeasurementProposalRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Saved proposal identity; worker composes the definition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementProposalResource"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/measurement-proposals/{id}": {
      "get": {
        "operationId": "get_v1_measurement_proposals_id",
        "summary": "Read a measurement proposal",
        "tags": [
          "Measurements"
        ],
        "description": "poll proposed definitions and missing essentials. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Proposal state; no registration receipt is implied.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementProposalResource"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/reviews/{id}/clarification": {
      "get": {
        "operationId": "get_v1_reviews_id_clarification",
        "summary": "Read a Review's clarification question",
        "tags": [
          "Reviews"
        ],
        "description": "optional clarification beside the partial Review. Advisory only.",
        "security": [
          {
            "PlatformBearer": []
          },
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "At most one clarification; an answer becomes a new Idea version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewClarification"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/account/legal": {
      "get": {
        "operationId": "get_v1_account_legal",
        "summary": "Beta readiness review 2026-10-26: the legal documents (Beta terms, Privacy notice) this…",
        "tags": [
          "Workspaces (web session)"
        ],
        "description": "Beta readiness review 2026-10-26: the legal documents (Beta terms, Privacy notice) this signed-in person has accepted, by version. Customer work is refused as legal_acceptance_required until every current version is accepted. Never a Platform Key. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "The accepted document versions, oldest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalAcceptanceStatus"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/account/legal/acceptances": {
      "post": {
        "operationId": "post_v1_account_legal_acceptances",
        "summary": "Beta readiness review 2026-10-26: record that this signed-in person accepts the current…",
        "tags": [
          "Workspaces (web session)"
        ],
        "description": "Beta readiness review 2026-10-26: record that this signed-in person accepts the current version of each named document. Only current versions are accepted; a repeated acceptance keeps the first record. The browser is recorded only as a sha256 fingerprint. Never a Platform Key. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "The accepted document versions after this acceptance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalAcceptanceStatus"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LegalAcceptanceCreate"
              }
            }
          }
        }
      }
    },
    "/v1/workspaces": {
      "get": {
        "operationId": "get_v1_workspaces",
        "summary": "NEO-5 B/C workspace and team workflow.",
        "tags": [
          "Workspaces (web session)"
        ],
        "description": "NEO-5 B/C workspace and team workflow. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Saved workspace state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceList"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post_v1_workspaces",
        "summary": "NEO-5 B/C workspace and team workflow.",
        "tags": [
          "Workspaces (web session)"
        ],
        "description": "NEO-5 B/C workspace and team workflow. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "201": {
            "description": "Saved workspace state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workspace"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceCreate"
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{id}/name": {
      "post": {
        "operationId": "post_v1_workspaces_id_name",
        "summary": "AUTH-04: rename the selected workspace; only an owner or administrator may, and never a…",
        "tags": [
          "Workspaces (web session)"
        ],
        "description": "AUTH-04: rename the selected workspace; only an owner or administrator may, and never a Platform Key. The name is trimmed and must then hold 1 to 120 characters, the rule creation follows, or the request is refused as request_semantics_invalid. Public Records published under the old name are refreshed. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "The renamed workspace, with the caller's current role.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workspace"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceRename"
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{id}/members": {
      "get": {
        "operationId": "get_v1_workspaces_id_members",
        "summary": "NEO-5 B/C workspace and team workflow.",
        "tags": [
          "Workspaces (web session)"
        ],
        "description": "NEO-5 B/C workspace and team workflow. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Saved workspace state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceTeam"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ]
      }
    },
    "/v1/workspaces/{id}/members/{user_id}/role": {
      "post": {
        "operationId": "post_v1_workspaces_id_members_user_id_role",
        "summary": "NEO-5 B/C workspace and team workflow.",
        "tags": [
          "Workspaces (web session)"
        ],
        "description": "NEO-5 B/C workspace and team workflow. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Saved workspace state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceTeam"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemberRoleChange"
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{id}/members/{user_id}": {
      "delete": {
        "operationId": "delete_v1_workspaces_id_members_user_id",
        "summary": "NEO-5 B/C workspace and team workflow.",
        "tags": [
          "Workspaces (web session)"
        ],
        "description": "NEO-5 B/C workspace and team workflow. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Saved workspace state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceTeam"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ]
      }
    },
    "/v1/workspaces/{id}/invitations": {
      "post": {
        "operationId": "post_v1_workspaces_id_invitations",
        "summary": "NEO-5 B/C workspace and team workflow.",
        "tags": [
          "Workspaces (web session)"
        ],
        "description": "NEO-5 B/C workspace and team workflow. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "201": {
            "description": "Saved workspace state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceInvitation"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvitationCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_v1_workspaces_id_invitations",
        "summary": "NEO-5 B/C workspace and team workflow.",
        "tags": [
          "Workspaces (web session)"
        ],
        "description": "NEO-5 B/C workspace and team workflow. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Saved workspace state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationList"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ]
      }
    },
    "/v1/invitations/{id}/accept": {
      "post": {
        "operationId": "post_v1_invitations_id_accept",
        "summary": "NEO-5 B/C workspace and team workflow.",
        "tags": [
          "Workspaces (web session)"
        ],
        "description": "NEO-5 B/C workspace and team workflow. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Saved workspace state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workspace"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvitationAccept"
              }
            }
          }
        }
      }
    },
    "/v1/operator/controls": {
      "description": "separate server-resolved operator role, never workspace membership.",
      "get": {
        "operationId": "get_v1_operator_controls",
        "summary": "get_v1_operator_controls",
        "tags": [
          "Operator"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Current switches; a missing switch is running.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorControls"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post_v1_operator_controls",
        "summary": "post_v1_operator_controls",
        "tags": [
          "Operator"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperatorControlChange"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved switch decision and current state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorControls"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/operator/tenants/{tenant_id}/affiliation": {
      "description": "separate operators disclose affiliations. Changes refresh Records and projections without rewriting historical Ideas or signed Resolutions.",
      "get": {
        "operationId": "get_v1_operator_tenants_tenant_id_affiliation",
        "summary": "get_v1_operator_tenants_tenant_id_affiliation",
        "tags": [
          "Operator"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "tenant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current disclosure and the most recent fifty attributed changes, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliationDisclosure"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post_v1_operator_tenants_tenant_id_affiliation",
        "summary": "post_v1_operator_tenants_tenant_id_affiliation",
        "tags": [
          "Operator"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "tenant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AffiliationChangeCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Attributed disclosure saved; Record and projection refreshes queued.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliationChange"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/operator/questions": {
      "description": "a server-resolved operator reads only the frozen Question and resolver evidence.",
      "get": {
        "operationId": "get_v1_operator_questions",
        "summary": "get_v1_operator_questions",
        "tags": [
          "Operator"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Saved operator work.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorQuestionQueue"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/operator/tenants/{tenant_id}/questions/{id}": {
      "description": "a server-resolved operator reads only the frozen Question and resolver evidence.",
      "get": {
        "operationId": "get_v1_operator_tenants_tenant_id_questions_id",
        "summary": "get_v1_operator_tenants_tenant_id_questions_id",
        "tags": [
          "Operator"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "tenant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Saved operator work.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorDossier"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/operator/tenants/{tenant_id}/questions/{id}/decision": {
      "description": "a server-resolved operator reads only the frozen Question and resolver evidence.",
      "post": {
        "operationId": "post_v1_operator_tenants_tenant_id_questions_id_decision",
        "summary": "post_v1_operator_tenants_tenant_id_questions_id_decision",
        "tags": [
          "Operator"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "tenant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperatorDecisionCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved operator work.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorDecisionReceipt"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/operator/tenants/{tenant_id}/billing": {
      "description": "operator billing support. Only the separately provisioned founder may authorize a refund.",
      "get": {
        "operationId": "get_v1_operator_tenants_tenant_id_billing",
        "summary": "get_v1_operator_tenants_tenant_id_billing",
        "tags": [
          "Operator"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "tenant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Workspace ledger and refund delivery states.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorBilling"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/operator/tenants/{tenant_id}/refunds": {
      "description": "operator billing support. Only the separately provisioned founder may authorize a refund.",
      "post": {
        "operationId": "post_v1_operator_tenants_tenant_id_refunds",
        "summary": "post_v1_operator_tenants_tenant_id_refunds",
        "tags": [
          "Operator"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "tenant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperatorRefundCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Workspace ledger and refund delivery states.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorBilling"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/quotes": {
      "description": "NEO-5 E and F; an operator quotes exact work and its owner accepts the total before purchase.",
      "get": {
        "operationId": "get_v1_quotes",
        "summary": "get_v1_quotes",
        "tags": [
          "Billing (web session)"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Saved quote; no model judgment or charge implied by acceptance alone.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkQuoteList"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/quotes/{id}/accept": {
      "description": "NEO-5 E and F; an operator quotes exact work and its owner accepts the total before purchase.",
      "post": {
        "operationId": "post_v1_quotes_id_accept",
        "summary": "post_v1_quotes_id_accept",
        "tags": [
          "Billing (web session)"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkQuoteAccept"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved quote; no model judgment or charge implied by acceptance alone.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkQuote"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/operator/tenants/{tenant_id}/quotes": {
      "description": "NEO-5 E and F; an operator quotes exact work and its owner accepts the total before purchase.",
      "post": {
        "operationId": "post_v1_operator_tenants_tenant_id_quotes",
        "summary": "post_v1_operator_tenants_tenant_id_quotes",
        "tags": [
          "Operator"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "tenant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkQuoteCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Saved quote; no model judgment or charge implied by acceptance alone.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkQuote"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/questions/{id}/commitment": {
      "get": {
        "operationId": "get_v1_questions_id_commitment",
        "summary": "Read a Question's sealed commitment",
        "tags": [
          "Forecast Questions"
        ],
        "description": "the Commitment receipt this workspace already sealed for the Question, so a reload does not seal twice. No sealed payload. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          },
          {
            "PlatformBearer": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The current Commitment receipt for this Question.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommitmentReceipt"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal, including not found before any seal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{id}/invitations/{invitation_id}": {
      "delete": {
        "operationId": "delete_v1_workspaces_id_invitations_invitation_id",
        "summary": "NEO-5 B/C workspace and team workflow; revoking a pending invitation leaves the record…",
        "tags": [
          "Workspaces (web session)"
        ],
        "description": "NEO-5 B/C workspace and team workflow; revoking a pending invitation leaves the record of it. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Saved workspace state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationList"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "invitation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ]
      }
    },
    "/v1/billing/resume": {
      "description": "cancellation stops renewal at period end and an owner may clear it before that end.",
      "post": {
        "operationId": "post_v1_billing_resume",
        "summary": "post_v1_billing_resume",
        "tags": [
          "Billing (web session)"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingResume"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted merchant attempt; poll the billing operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingOperation"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/operator/billing/{tenant_id}/release": {
      "description": "NEO-5 E and F; an operator releases a reserved ledger entry with an accountable reason. Released work is never silently charged again.",
      "post": {
        "operationId": "post_v1_operator_billing_tenant_id_release",
        "summary": "post_v1_operator_billing_tenant_id_release",
        "tags": [
          "Operator"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "tenant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperatorBillingRelease"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Workspace ledger and refund delivery states.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorBilling"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/operator/billing/{tenant_id}/reconcile": {
      "description": "NEO-5 E and F; an operator re-reads provider state for an uncertain or stuck merchant attempt. Never an automatic second charge.",
      "post": {
        "operationId": "post_v1_operator_billing_tenant_id_reconcile",
        "summary": "post_v1_operator_billing_tenant_id_reconcile",
        "tags": [
          "Operator"
        ],
        "security": [
          {
            "CustomerSession": []
          }
        ],
        "parameters": [
          {
            "name": "tenant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperatorBillingReconcile"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The reconciled merchant attempt's current state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingOperation"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/campaigns": {
      "post": {
        "operationId": "post_v1_campaigns",
        "summary": "Start a campaign decision cycle",
        "tags": [
          "Campaigns"
        ],
        "security": [
          {
            "CustomerSession": []
          },
          {
            "PlatformBearer": []
          }
        ],
        "parameters": [
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Campaign shapes exist only in contract 1.1; send 1.1. The response echoes the served version."
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Required with a customer session, naming the workspace whose current membership it uses. A Platform Key acts in its own workspace; naming any other is refused."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CampaignCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new campaign decision cycle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_v1_campaigns",
        "summary": "List campaigns",
        "tags": [
          "Campaigns"
        ],
        "security": [
          {
            "CustomerSession": []
          },
          {
            "PlatformBearer": []
          }
        ],
        "parameters": [
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Campaign shapes exist only in contract 1.1; send 1.1. The response echoes the served version."
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Required with a customer session, naming the workspace whose current membership it uses. A Platform Key acts in its own workspace; naming any other is refused."
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of this workspace's campaign decision cycles; pass next_cursor as after.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignList"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/campaigns/{id}": {
      "get": {
        "operationId": "get_v1_campaigns_id",
        "summary": "Read a campaign",
        "tags": [
          "Campaigns"
        ],
        "security": [
          {
            "CustomerSession": []
          },
          {
            "PlatformBearer": []
          }
        ],
        "parameters": [
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Campaign shapes exist only in contract 1.1; send 1.1. The response echoes the served version."
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Required with a customer session, naming the workspace whose current membership it uses. A Platform Key acts in its own workspace; naming any other is refused."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One campaign decision cycle at its current revision.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post_v1_campaigns_id",
        "summary": "Record a campaign decision",
        "tags": [
          "Campaigns"
        ],
        "security": [
          {
            "CustomerSession": []
          },
          {
            "PlatformBearer": []
          }
        ],
        "parameters": [
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Campaign shapes exist only in contract 1.1; send 1.1. The response echoes the served version."
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Required with a customer session, naming the workspace whose current membership it uses. A Platform Key acts in its own workspace; naming any other is refused."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CampaignUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated campaign decision cycle at its new revision.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/campaigns/{id}/benchmark": {
      "get": {
        "operationId": "get_v1_campaigns_id_benchmark",
        "summary": "Read a campaign's benchmark",
        "tags": [
          "Campaigns"
        ],
        "security": [
          {
            "CustomerSession": []
          },
          {
            "PlatformBearer": []
          }
        ],
        "parameters": [
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Campaign shapes exist only in contract 1.1; send 1.1. The response echoes the served version."
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Required with a customer session, naming the workspace whose current membership it uses. A Platform Key acts in its own workspace; naming any other is refused."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The campaign's Result benchmark, or the reason it is unavailable; a missing score is null, never zero.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignBenchmark"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/campaigns/{id}/snapshot": {
      "get": {
        "operationId": "get_v1_campaigns_id_snapshot",
        "summary": "Read a campaign's history",
        "tags": [
          "Campaigns"
        ],
        "security": [
          {
            "CustomerSession": []
          },
          {
            "PlatformBearer": []
          }
        ],
        "parameters": [
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "Campaign shapes exist only in contract 1.1; send 1.1. The response echoes the served version."
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Required with a customer session, naming the workspace whose current membership it uses. A Platform Key acts in its own workspace; naming any other is refused."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Campaign history and authorized workflow links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignSnapshot"
                }
              }
            }
          },
          "default": {
            "description": "Refused request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/events": {
      "get": {
        "operationId": "get_v1_events",
        "summary": "Read the signed event feed",
        "tags": [
          "Events"
        ],
        "description": "the pull event feed. The tenant's own signed outbox announcements (Review published; Resolution published, finalized, corrected), oldest first in (recorded_at, id) order, each exactly as signed. Read-only: no delivery state, no destination and no webhook. Omitting after starts from the beginning; pass next_cursor as after to continue, and poll with the last one. A cursor issued to another tenant is refused, and one older than the retention window refuses with cursor_expired. Advisory only.",
        "security": [
          {
            "CustomerSession": []
          },
          {
            "PlatformBearer": []
          }
        ],
        "parameters": [
          {
            "name": "NeoNumber-Contract-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1.0",
                "1.1"
              ],
              "default": "1.0"
            },
            "description": "The event feed exists only in contract 1.1; send 1.1. The response echoes the served version."
          },
          {
            "name": "NeoNumber-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Required with a customer session, naming the workspace whose current membership it uses. A Platform Key acts in its own workspace; naming any other is refused."
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "string",
              "pattern": "^([1-9]|[1-4][0-9]|50)$"
            },
            "description": "Events per page, 1 to 50; 50 when omitted."
          }
        ],
        "responses": {
          "200": {
            "description": "Up to fifty signed events and the tenant-bound cursor to continue from.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventList"
                }
              }
            }
          },
          "default": {
            "description": "Named refusal, including cursor_expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "CustomerSession": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Supabase JWT",
        "description": "Verified server-side; NeoNumber-Workspace selects current membership. Roles never come from user metadata."
      },
      "PlatformBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Tenant-scoped Platform Key; no key-management access."
      },
      "OwnerBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Authenticated owner session, distinct from any Platform Key."
      }
    },
    "schemas": {
      "ResultCorrection": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "result-correction.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "reason": {
            "type": "string",
            "minLength": 1
          },
          "intake": {
            "$ref": "#/components/schemas/ResultIntake"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "reason",
          "intake"
        ]
      },
      "ResultChange": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "result_id": {
            "type": "string",
            "minLength": 1
          },
          "supersedes": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "kind": {
            "type": "string",
            "enum": [
              "prediction",
              "project",
              "strategy_version"
            ]
          },
          "occurred_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "result_id",
          "supersedes",
          "version",
          "kind",
          "occurred_at"
        ]
      },
      "ResultCorrectionsCursor": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "result-corrections-cursor.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResultChange"
            }
          },
          "next_cursor": {
            "type": "string",
            "minLength": 1
          },
          "has_more": {
            "type": "boolean"
          },
          "as_of": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "entries",
          "next_cursor",
          "has_more",
          "as_of"
        ]
      },
      "BillingView": {
        "description": "customer prices and the service ledger, not provider totals. Advisory only.",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "state",
          "period_start",
          "period_end",
          "cancel_at_period_end",
          "cap_usd",
          "reserved_usd",
          "settled_usd",
          "remaining_usd",
          "prices",
          "short_review",
          "entries"
        ],
        "properties": {
          "schema_version": {
            "const": "billing-view.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "state": {
            "type": "string",
            "enum": [
              "incomplete",
              "active",
              "past_due",
              "canceled"
            ]
          },
          "period_start": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "period_end": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancel_at_period_end": {
            "type": "boolean"
          },
          "cap_usd": {
            "type": "string",
            "pattern": "^(0|[1-9]\\d*)(\\.\\d{1,2})?$"
          },
          "reserved_usd": {
            "type": "string",
            "pattern": "^(0|[1-9]\\d*)(\\.\\d{1,2})?$"
          },
          "settled_usd": {
            "type": "string",
            "pattern": "^(0|[1-9]\\d*)(\\.\\d{1,2})?$"
          },
          "remaining_usd": {
            "type": "string",
            "pattern": "^(0|[1-9]\\d*)(\\.\\d{1,2})?$"
          },
          "prices": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "subscription_usd",
              "score_usd",
              "comparison_usd",
              "result_usd",
              "monthly_cap_usd"
            ],
            "properties": {
              "subscription_usd": {
                "type": "string",
                "pattern": "^(0|[1-9]\\d*)(\\.\\d{1,2})?$"
              },
              "score_usd": {
                "type": "string",
                "pattern": "^(0|[1-9]\\d*)(\\.\\d{1,2})?$"
              },
              "comparison_usd": {
                "type": "string",
                "pattern": "^(0|[1-9]\\d*)(\\.\\d{1,2})?$"
              },
              "result_usd": {
                "type": "string",
                "pattern": "^(0|[1-9]\\d*)(\\.\\d{1,2})?$"
              },
              "monthly_cap_usd": {
                "type": "string",
                "pattern": "^(0|[1-9]\\d*)(\\.\\d{1,2})?$"
              }
            }
          },
          "short_review": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "words",
              "tokens",
              "sources",
              "seconds"
            ],
            "properties": {
              "words": {
                "$ref": "#/components/schemas/Count"
              },
              "tokens": {
                "$ref": "#/components/schemas/Count"
              },
              "sources": {
                "$ref": "#/components/schemas/Count"
              },
              "seconds": {
                "$ref": "#/components/schemas/Count"
              }
            }
          },
          "entries": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "work_id",
                "kind",
                "period",
                "amount_usd",
                "state",
                "created_at",
                "settled_at",
                "reason",
                "refunded_usd"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "work_id": {
                  "type": "string",
                  "minLength": 1
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "score",
                    "comparison",
                    "result",
                    "quoted"
                  ]
                },
                "period": {
                  "$ref": "#/components/schemas/Timestamp"
                },
                "amount_usd": {
                  "type": "string",
                  "pattern": "^(0|[1-9]\\d*)(\\.\\d{1,2})?$"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "reserved",
                    "settled",
                    "released"
                  ]
                },
                "created_at": {
                  "$ref": "#/components/schemas/Timestamp"
                },
                "settled_at": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Timestamp"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reason": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "refunded_usd": {
                  "type": "string",
                  "pattern": "^(0|[1-9]\\d*)(\\.\\d{1,2})?$"
                }
              }
            }
          }
        }
      },
      "BillingCheckout": {
        "description": "fixed subscription request; no customer-controlled price. Advisory only.",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority"
        ],
        "properties": {
          "schema_version": {
            "const": "billing-checkout.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          }
        }
      },
      "BillingCancel": {
        "description": "cancel renewal, retain Records and export. Advisory only.",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority"
        ],
        "properties": {
          "schema_version": {
            "const": "billing-cancel.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          }
        }
      },
      "BillingCap": {
        "description": "owner-set allowance, never a rating input. Advisory only.",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "cap_usd"
        ],
        "properties": {
          "schema_version": {
            "const": "billing-cap.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "cap_usd": {
            "type": "string",
            "pattern": "^(0|[1-9]\\d*)(\\.\\d{1,2})?$"
          }
        }
      },
      "BillingOperation": {
        "description": "progress by identity without replaying ambiguous merchant work. Advisory only.",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "kind",
          "state",
          "url",
          "reason"
        ],
        "properties": {
          "schema_version": {
            "const": "billing-operation.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "checkout",
              "usage",
              "cancel",
              "refund",
              "subscription",
              "resume"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "sending",
              "done",
              "uncertain"
            ]
          },
          "url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Decimal": {
        "type": "string",
        "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
      },
      "Count": {
        "type": "string",
        "pattern": "^(0|[1-9][0-9]*)$"
      },
      "Probability": {
        "type": "string",
        "pattern": "^(0(\\.[0-9]+)?|1(\\.0+)?)$"
      },
      "Point": {
        "type": "string",
        "pattern": "^((0|[1-9][0-9]?)(\\.[0-9]+)?|100(\\.0+)?)$"
      },
      "Timestamp": {
        "type": "string",
        "format": "date-time"
      },
      "Hash": {
        "type": "string",
        "pattern": "^sha256:[0-9a-f]{64}$"
      },
      "Bytes": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_-]+$"
      },
      "VersionReference": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "idea_id": {
            "type": "string",
            "minLength": 1
          },
          "version_id": {
            "type": "string",
            "minLength": 1
          },
          "source_reference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "idea_id",
          "version_id",
          "source_reference"
        ]
      },
      "Inference": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "field": {
            "type": "string",
            "enum": [
              "kind",
              "objective",
              "audience",
              "constraints",
              "assumption"
            ]
          },
          "reading": {
            "type": "string",
            "minLength": 1
          },
          "basis": {
            "type": "string",
            "minLength": 1
          },
          "confirmed": {
            "type": "boolean"
          }
        },
        "required": [
          "field",
          "reading",
          "basis",
          "confirmed"
        ]
      },
      "IdeaCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "idea-create.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "words": {
            "type": "string",
            "minLength": 1
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Hash"
            },
            "minItems": 0
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "words"
        ]
      },
      "IdeaRevision": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "idea-revision.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "prior_version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "words": {
            "type": "string",
            "minLength": 1
          },
          "corrections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Inference"
            },
            "minItems": 1
          },
          "reason": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "prior_version",
          "words",
          "corrections",
          "reason"
        ]
      },
      "Idea": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "idea.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "original_words": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "prediction",
              "strategy_version",
              "project"
            ]
          },
          "objective": {
            "type": "string",
            "minLength": 1
          },
          "inferences": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Inference"
            },
            "minItems": 0
          },
          "prior_version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VersionReference"
              },
              {
                "type": "null"
              }
            ]
          },
          "related_versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VersionReference"
            },
            "minItems": 0
          },
          "privacy": {
            "const": "private"
          },
          "affiliation": {
            "type": "string",
            "minLength": 1
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "version",
          "original_words",
          "kind",
          "objective",
          "inferences",
          "prior_version",
          "related_versions",
          "privacy",
          "affiliation",
          "created_at"
        ]
      },
      "SupportingItem": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "supporting-item.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "observation",
              "supplied_claim",
              "assumption",
              "interpretation"
            ]
          },
          "text": {
            "type": "string",
            "minLength": 1
          },
          "designation": {
            "type": "string",
            "enum": [
              "reported",
              "constructed_design"
            ]
          },
          "construction": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "origin": {
            "type": "string",
            "minLength": 1
          },
          "checked": {
            "type": "boolean"
          },
          "check_scope": {
            "type": "string",
            "minLength": 1
          },
          "evidence_class": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "independently_obtained",
                  "connector_attested",
                  "customer_reported"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "content_hash": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Hash"
              },
              {
                "type": "null"
              }
            ]
          },
          "access_reference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_until": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "kind",
          "text",
          "designation",
          "construction",
          "origin",
          "checked",
          "check_scope",
          "evidence_class",
          "content_hash",
          "access_reference",
          "retention_until"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "kind": {
                  "enum": [
                    "assumption",
                    "interpretation"
                  ]
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "properties": {
                "evidence_class": {
                  "type": "null"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "designation": {
                  "const": "constructed_design"
                }
              },
              "required": [
                "designation"
              ]
            },
            "then": {
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "assumption",
                    "interpretation"
                  ]
                },
                "construction": {
                  "type": "string",
                  "minLength": 1
                },
                "evidence_class": {
                  "type": "null"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "kind": {
                  "enum": [
                    "observation",
                    "supplied_claim"
                  ]
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "properties": {
                "evidence_class": {
                  "type": "string",
                  "enum": [
                    "independently_obtained",
                    "connector_attested",
                    "customer_reported"
                  ]
                }
              }
            }
          }
        ]
      },
      "Criterion": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "purpose",
              "support",
              "feasibility",
              "value",
              "downside"
            ]
          },
          "weight": {
            "$ref": "#/components/schemas/Probability"
          },
          "description": {
            "type": "string",
            "minLength": 1
          },
          "anchors": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1
          },
          "unknown_when": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "name",
          "weight",
          "description",
          "anchors",
          "unknown_when"
        ]
      },
      "Method": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "method.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "prediction",
              "strategy_version",
              "project"
            ]
          },
          "domain": {
            "type": "string",
            "minLength": 1
          },
          "label": {
            "type": "string",
            "enum": [
              "standard",
              "custom"
            ]
          },
          "experimental": {
            "const": true
          },
          "criteria": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Criterion"
            },
            "minItems": 5
          },
          "calculation": {
            "type": "string",
            "minLength": 1
          },
          "known_floor": {
            "$ref": "#/components/schemas/Count"
          },
          "required_known": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1
          },
          "references": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "version",
          "kind",
          "domain",
          "label",
          "experimental",
          "criteria",
          "calculation",
          "known_floor",
          "required_known",
          "references"
        ]
      },
      "Dimension": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "purpose",
              "support",
              "feasibility",
              "value",
              "downside"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "known",
              "unknown"
            ]
          },
          "judgment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Point"
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "type": "string",
            "minLength": 1
          },
          "supporting_item_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 0
          },
          "future_sensitivity": {
            "$ref": "#/components/schemas/Point"
          }
        },
        "required": [
          "name",
          "status",
          "judgment",
          "reason",
          "supporting_item_ids",
          "future_sensitivity"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "status": {
                  "const": "unknown"
                }
              },
              "required": [
                "status"
              ]
            },
            "then": {
              "properties": {
                "judgment": {
                  "type": "null"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "status": {
                  "const": "known"
                }
              },
              "required": [
                "status"
              ]
            },
            "then": {
              "properties": {
                "judgment": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            }
          }
        ]
      },
      "Coverage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "numerator": {
            "$ref": "#/components/schemas/Count"
          },
          "denominator": {
            "$ref": "#/components/schemas/Count"
          },
          "fraction": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Probability"
              },
              {
                "type": "null"
              }
            ]
          },
          "meaning": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "numerator",
          "denominator",
          "fraction",
          "meaning"
        ]
      },
      "Score": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "value": {
            "$ref": "#/components/schemas/Point"
          },
          "lower": {
            "$ref": "#/components/schemas/Point"
          },
          "upper": {
            "$ref": "#/components/schemas/Point"
          },
          "missing_width": {
            "$ref": "#/components/schemas/Point"
          },
          "disagreement_width": {
            "$ref": "#/components/schemas/Point"
          },
          "disagreement_status": {
            "type": "string",
            "enum": [
              "measured",
              "unmeasured_reserve",
              "partial_with_reserve"
            ]
          },
          "future_width": {
            "$ref": "#/components/schemas/Point"
          },
          "meaning": {
            "const": "judgment, not a probability of success"
          }
        },
        "required": [
          "value",
          "lower",
          "upper",
          "missing_width",
          "disagreement_width",
          "disagreement_status",
          "future_width",
          "meaning"
        ]
      },
      "ScoreRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "score-request.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "method_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "version"
        ]
      },
      "Review": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "review.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "method_id": {
            "type": "string",
            "minLength": 1
          },
          "method_version": {
            "type": "string",
            "minLength": 1
          },
          "method_label": {
            "type": "string",
            "enum": [
              "standard",
              "custom"
            ]
          },
          "label": {
            "const": "review"
          },
          "experimental": {
            "const": true
          },
          "dimensions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dimension"
            },
            "minItems": 5
          },
          "score": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Score"
              },
              {
                "type": "null"
              }
            ]
          },
          "coverage": {
            "$ref": "#/components/schemas/Coverage"
          },
          "why": {
            "type": "string",
            "minLength": 1
          },
          "biggest_uncertainty": {
            "type": "string",
            "minLength": 1
          },
          "next_step": {
            "type": "string",
            "minLength": 1
          },
          "ready_to_test": {
            "type": "string",
            "minLength": 1
          },
          "strongest_objection": {
            "type": "string",
            "minLength": 1
          },
          "material_findings": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 0
          },
          "supporting_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportingItem"
            },
            "minItems": 0
          },
          "evaluator": {
            "type": "string",
            "minLength": 1
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "supersedes": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "version",
          "method_id",
          "method_version",
          "method_label",
          "label",
          "experimental",
          "dimensions",
          "score",
          "coverage",
          "why",
          "biggest_uncertainty",
          "next_step",
          "ready_to_test",
          "strongest_objection",
          "material_findings",
          "supporting_items",
          "evaluator",
          "created_at",
          "supersedes"
        ]
      },
      "PairwiseReason": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "left_version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "right_version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "preference": {
            "type": "string",
            "enum": [
              "left",
              "right",
              "tie",
              "inconclusive"
            ]
          },
          "reason": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "left_version",
          "right_version",
          "preference",
          "reason"
        ]
      },
      "ComparisonRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "comparison-request.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VersionReference"
            },
            "minItems": 2
          },
          "objective": {
            "type": "string",
            "minLength": 1
          },
          "conditions": {
            "type": "string",
            "minLength": 1
          },
          "method_id": {
            "type": "string",
            "minLength": 1
          },
          "method_version": {
            "type": "string",
            "minLength": 1
          },
          "reference_version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VersionReference"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "versions",
          "objective",
          "conditions",
          "method_id",
          "method_version",
          "reference_version"
        ]
      },
      "Comparison": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "comparison.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VersionReference"
            },
            "minItems": 2
          },
          "objective": {
            "type": "string",
            "minLength": 1
          },
          "conditions": {
            "type": "string",
            "minLength": 1
          },
          "method_id": {
            "type": "string",
            "minLength": 1
          },
          "method_version": {
            "type": "string",
            "minLength": 1
          },
          "reference_version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VersionReference"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "review_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1
          },
          "pairs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PairwiseReason"
            },
            "minItems": 1
          },
          "status": {
            "type": "string",
            "enum": [
              "preference",
              "tie",
              "inconclusive"
            ]
          },
          "recommendation": {
            "type": "string",
            "minLength": 1
          },
          "tradeoffs": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1
          },
          "would_change": {
            "type": "string",
            "minLength": 1
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "versions",
          "objective",
          "conditions",
          "method_id",
          "method_version",
          "reference_version",
          "id",
          "review_ids",
          "pairs",
          "status",
          "recommendation",
          "tradeoffs",
          "would_change",
          "created_at"
        ]
      },
      "Objective": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "statement": {
            "type": "string",
            "minLength": 1
          },
          "measurement": {
            "type": "string",
            "enum": [
              "formula",
              "written_judgment"
            ]
          },
          "unit": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "formula": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "baseline": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Decimal"
              },
              {
                "type": "null"
              }
            ]
          },
          "target": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Decimal"
              },
              {
                "type": "null"
              }
            ]
          },
          "comparator": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "gt",
                  "gte",
                  "lt",
                  "lte",
                  "eq"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "window_start": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "measurement_at": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "counting_rule": {
            "type": "string",
            "minLength": 1
          },
          "reference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "standard": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "examples": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 0
          },
          "evaluator": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "designation": {
            "type": "string",
            "enum": [
              "reported",
              "constructed_design"
            ]
          },
          "construction": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "statement",
          "measurement",
          "unit",
          "formula",
          "baseline",
          "target",
          "comparator",
          "window_start",
          "measurement_at",
          "counting_rule",
          "reference",
          "standard",
          "examples",
          "evaluator",
          "designation",
          "construction"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "measurement": {
                  "const": "formula"
                }
              },
              "required": [
                "measurement"
              ]
            },
            "then": {
              "properties": {
                "unit": {
                  "type": "string",
                  "minLength": 1
                },
                "formula": {
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "measurement": {
                  "const": "written_judgment"
                }
              },
              "required": [
                "measurement"
              ]
            },
            "then": {
              "properties": {
                "standard": {
                  "type": "string",
                  "minLength": 1
                },
                "examples": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  },
                  "minItems": 1
                },
                "evaluator": {
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "designation": {
                  "const": "constructed_design"
                }
              },
              "required": [
                "designation"
              ]
            },
            "then": {
              "properties": {
                "construction": {
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        ]
      },
      "MeasurementRegistration": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "measurement-registration.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "start_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "objectives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Objective"
            },
            "minItems": 1
          },
          "designation": {
            "type": "string",
            "enum": [
              "reported",
              "constructed_design"
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "version",
          "start_at",
          "objectives",
          "designation"
        ]
      },
      "RegistrationReceipt": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "registration-receipt.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "start_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "objectives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Objective"
            },
            "minItems": 1
          },
          "designation": {
            "type": "string",
            "enum": [
              "reported",
              "constructed_design"
            ]
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "received_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "definition_digest": {
            "$ref": "#/components/schemas/Hash",
            "description": "registration-receipt.v1: SHA-256 of RFC 8785 canonical UTF-8 object containing exactly version, start_at, objectives and designation; preserve decimal/date strings and objective order. See contracts/README.md."
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "version",
          "start_at",
          "objectives",
          "designation",
          "id",
          "received_at",
          "definition_digest"
        ]
      },
      "ResultComponent": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "objective_id": {
            "type": "string",
            "minLength": 1
          },
          "state": {
            "type": "string",
            "enum": [
              "available",
              "pending",
              "not_established"
            ]
          },
          "claim_type": {
            "type": "string",
            "enum": [
              "observed",
              "incremental",
              "written_judgment"
            ]
          },
          "value": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Decimal"
              },
              {
                "type": "null"
              }
            ]
          },
          "value_status": {
            "type": "string",
            "enum": [
              "finite",
              "negative_infinity",
              "not_numeric"
            ]
          },
          "interval": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "lower": {
                    "$ref": "#/components/schemas/Decimal"
                  },
                  "upper": {
                    "$ref": "#/components/schemas/Decimal"
                  },
                  "level": {
                    "$ref": "#/components/schemas/Probability"
                  },
                  "method": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "lower",
                  "upper",
                  "level",
                  "method"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "unit": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "formula": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "denominator": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Decimal"
              },
              {
                "type": "null"
              }
            ]
          },
          "statement": {
            "type": "string",
            "minLength": 1
          },
          "environment": {
            "type": "string",
            "enum": [
              "forecast",
              "backtest",
              "paper",
              "live",
              "project"
            ]
          },
          "measurement_at": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "next_collection_at": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "implementation": {
            "$ref": "#/components/schemas/Coverage"
          },
          "designation": {
            "type": "string",
            "enum": [
              "reported",
              "constructed_design"
            ]
          },
          "construction": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "supporting_item_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 0
          },
          "limitations": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1
          }
        },
        "required": [
          "objective_id",
          "state",
          "claim_type",
          "value",
          "value_status",
          "interval",
          "unit",
          "formula",
          "denominator",
          "statement",
          "environment",
          "measurement_at",
          "next_collection_at",
          "implementation",
          "designation",
          "construction",
          "supporting_item_ids",
          "limitations"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "not_established"
                  ]
                }
              },
              "required": [
                "state"
              ]
            },
            "then": {
              "properties": {
                "value": {
                  "type": "null"
                },
                "value_status": {
                  "const": "not_numeric"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "value_status": {
                  "const": "negative_infinity"
                }
              },
              "required": [
                "value_status"
              ]
            },
            "then": {
              "properties": {
                "value": {
                  "type": "null"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "value_status": {
                  "const": "not_numeric"
                }
              },
              "required": [
                "value_status"
              ]
            },
            "then": {
              "properties": {
                "value": {
                  "type": "null"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "value_status": {
                  "const": "finite"
                }
              },
              "required": [
                "value_status"
              ]
            },
            "then": {
              "properties": {
                "value": {
                  "$ref": "#/components/schemas/Decimal"
                },
                "unit": {
                  "type": "string",
                  "minLength": 1
                },
                "formula": {
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "state": {
                  "const": "available"
                }
              },
              "required": [
                "state"
              ]
            },
            "then": {
              "properties": {
                "measurement_at": {
                  "$ref": "#/components/schemas/Timestamp"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "designation": {
                  "const": "constructed_design"
                }
              },
              "required": [
                "designation"
              ]
            },
            "then": {
              "properties": {
                "construction": {
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        ]
      },
      "ResultIntake": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "result-intake.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "registration_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "objectives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Objective"
            },
            "minItems": 1
          },
          "components": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResultComponent"
            },
            "minItems": 1
          },
          "supporting_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportingItem"
            },
            "minItems": 0
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "version",
          "registration_id",
          "objectives",
          "components",
          "supporting_items"
        ]
      },
      "Result": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "result.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "kind": {
            "type": "string",
            "enum": [
              "prediction",
              "strategy_version",
              "project"
            ]
          },
          "history": {
            "type": "string",
            "enum": [
              "preregistered",
              "retrospective"
            ]
          },
          "registration": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RegistrationReceipt"
              },
              {
                "type": "null"
              }
            ]
          },
          "designation": {
            "type": "string",
            "enum": [
              "reported",
              "constructed_design"
            ]
          },
          "objectives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Objective"
            },
            "minItems": 1
          },
          "components": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResultComponent"
            },
            "minItems": 1
          },
          "supporting_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportingItem"
            },
            "minItems": 0
          },
          "measurement_method_version": {
            "type": "string",
            "minLength": 1
          },
          "provisional": {
            "type": "boolean"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "supersedes": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "correction_reason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "commitment_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "resolution_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "version",
          "kind",
          "history",
          "registration",
          "designation",
          "objectives",
          "components",
          "supporting_items",
          "measurement_method_version",
          "provisional",
          "created_at",
          "supersedes",
          "correction_reason"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "history": {
                  "const": "preregistered"
                }
              },
              "required": [
                "history"
              ]
            },
            "then": {
              "properties": {
                "registration": {
                  "$ref": "#/components/schemas/RegistrationReceipt"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "history": {
                  "const": "retrospective"
                }
              },
              "required": [
                "history"
              ]
            },
            "then": {
              "properties": {
                "registration": {
                  "type": "null"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "prediction"
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "required": [
                "commitment_id",
                "resolution_id"
              ],
              "properties": {
                "commitment_id": {
                  "type": "string",
                  "minLength": 1
                },
                "resolution_id": {
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        ]
      },
      "RuleSource": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "publisher": {
            "type": "string",
            "minLength": 1
          },
          "selector": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "url",
          "publisher",
          "selector"
        ]
      },
      "ResolutionRule": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "resolution-rule.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "official_result",
              "market_close",
              "published_statistic",
              "announcement",
              "judged"
            ]
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RuleSource"
            },
            "minItems": 1
          },
          "statement": {
            "type": "string",
            "minLength": 1
          },
          "answer_mapping": {
            "type": "string",
            "minLength": 1
          },
          "revision_target": {
            "type": "string",
            "enum": [
              "first_print",
              "first_final",
              "as_of"
            ]
          },
          "revision_as_of": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "event_id": {
            "type": "string",
            "minLength": 1
          },
          "venue": {
            "type": "string",
            "minLength": 1
          },
          "instrument": {
            "type": "string",
            "minLength": 1
          },
          "session": {
            "type": "string",
            "minLength": 1
          },
          "timezone": {
            "type": "string",
            "minLength": 1
          },
          "series": {
            "type": "string",
            "minLength": 1
          },
          "reference_period": {
            "type": "string",
            "minLength": 1
          },
          "release": {
            "type": "string",
            "minLength": 1
          },
          "unit": {
            "type": "string",
            "minLength": 1
          },
          "threshold": {
            "$ref": "#/components/schemas/Decimal"
          },
          "comparator": {
            "type": "string",
            "enum": [
              "gt",
              "gte",
              "lt",
              "lte",
              "eq"
            ]
          },
          "party": {
            "type": "string",
            "minLength": 1
          },
          "standard": {
            "type": "string",
            "minLength": 1
          },
          "examples": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "version",
          "kind",
          "sources",
          "statement",
          "answer_mapping",
          "revision_target",
          "revision_as_of"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "official_result"
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "required": [
                "event_id"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "market_close"
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "required": [
                "venue",
                "instrument",
                "session",
                "timezone",
                "threshold",
                "comparator",
                "unit"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "published_statistic"
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "required": [
                "series",
                "reference_period",
                "release",
                "unit",
                "threshold",
                "comparator"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "announcement"
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "required": [
                "party",
                "standard",
                "examples"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "judged"
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "required": [
                "standard",
                "examples"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "revision_target": {
                  "const": "as_of"
                }
              },
              "required": [
                "revision_target"
              ]
            },
            "then": {
              "properties": {
                "revision_as_of": {
                  "$ref": "#/components/schemas/Timestamp"
                }
              }
            }
          }
        ]
      },
      "Tier2Authorization": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "question_price_limit_usd": {
            "$ref": "#/components/schemas/Decimal"
          },
          "origin": {
            "type": "string",
            "enum": [
              "tenant_default",
              "question_override"
            ]
          },
          "authorized_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "enabled",
          "question_price_limit_usd",
          "origin",
          "authorized_at"
        ]
      },
      "AnswerSpace": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "binary",
              "categorical",
              "quantity"
            ]
          },
          "answers": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 0
          },
          "unit": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "interval_alpha": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Probability"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "kind",
          "answers",
          "unit",
          "interval_alpha"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "binary"
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "properties": {
                "answers": {
                  "const": [
                    "yes",
                    "no"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "categorical"
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "properties": {
                "answers": {
                  "type": "array",
                  "minItems": 2,
                  "uniqueItems": true,
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "quantity"
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "properties": {
                "unit": {
                  "type": "string",
                  "minLength": 1
                },
                "interval_alpha": {
                  "$ref": "#/components/schemas/Probability"
                }
              }
            }
          }
        ]
      },
      "Tier2Preference": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "question_price_limit_usd": {
            "$ref": "#/components/schemas/Decimal"
          }
        },
        "required": [
          "enabled",
          "question_price_limit_usd"
        ]
      },
      "Tier2AuthorizationChange": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "tier2-authorization-change.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "preference": {
            "$ref": "#/components/schemas/Tier2Preference"
          },
          "reason": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "preference",
          "reason"
        ]
      },
      "QuestionCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "question-create.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "statement": {
            "type": "string",
            "minLength": 1
          },
          "answer_space": {
            "$ref": "#/components/schemas/AnswerSpace"
          },
          "lock_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "horizon_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "rule": {
            "$ref": "#/components/schemas/ResolutionRule"
          },
          "tier2_authorization": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Tier2Preference"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "version",
          "statement",
          "answer_space",
          "lock_at",
          "horizon_at",
          "rule"
        ]
      },
      "Question": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "question.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "statement": {
            "type": "string",
            "minLength": 1
          },
          "answer_space": {
            "$ref": "#/components/schemas/AnswerSpace"
          },
          "lock_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "horizon_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "rule": {
            "$ref": "#/components/schemas/ResolutionRule"
          },
          "tier2_authorization": {
            "$ref": "#/components/schemas/Tier2Authorization"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "state": {
            "type": "string",
            "enum": [
              "open",
              "locked",
              "pending",
              "parked",
              "resolved"
            ]
          },
          "park_reason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "rule_frozen_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "version",
          "statement",
          "answer_space",
          "lock_at",
          "horizon_at",
          "rule",
          "tier2_authorization",
          "id",
          "state",
          "park_reason",
          "created_at",
          "rule_frozen_at"
        ]
      },
      "SealedPayload": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "evaluation_key_id": {
            "type": "string",
            "minLength": 1
          },
          "suite": {
            "const": "HPKE-base-X25519-HKDF-SHA256-AES256GCM"
          },
          "enc": {
            "$ref": "#/components/schemas/Bytes"
          },
          "ciphertext": {
            "$ref": "#/components/schemas/Bytes"
          }
        },
        "required": [
          "evaluation_key_id",
          "suite",
          "enc",
          "ciphertext"
        ]
      },
      "CommitmentCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "commitment-create.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "sealed": {
            "$ref": "#/components/schemas/SealedPayload"
          },
          "digest": {
            "$ref": "#/components/schemas/Hash"
          },
          "digest_version": {
            "const": "commitment-digest.v1"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "sealed",
          "digest",
          "digest_version"
        ]
      },
      "Commitment": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "commitment.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "sealed": {
            "$ref": "#/components/schemas/SealedPayload"
          },
          "digest": {
            "$ref": "#/components/schemas/Hash"
          },
          "digest_version": {
            "const": "commitment-digest.v1"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "question_id": {
            "type": "string",
            "minLength": 1
          },
          "rule_version": {
            "type": "string",
            "minLength": 1
          },
          "ciphertext_hash": {
            "$ref": "#/components/schemas/Hash"
          },
          "received_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "sealed",
          "digest",
          "digest_version",
          "id",
          "question_id",
          "rule_version",
          "ciphertext_hash",
          "received_at"
        ]
      },
      "Outcome": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "binary",
              "categorical",
              "quantity"
            ]
          },
          "answer": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "quantity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Decimal"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "kind",
          "answer",
          "quantity"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "quantity"
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "properties": {
                "quantity": {
                  "$ref": "#/components/schemas/Decimal"
                },
                "answer": {
                  "type": "null"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "binary"
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "properties": {
                "answer": {
                  "type": "string",
                  "enum": [
                    "yes",
                    "no"
                  ]
                },
                "quantity": {
                  "type": "null"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "categorical"
                }
              },
              "required": [
                "kind"
              ]
            },
            "then": {
              "properties": {
                "answer": {
                  "type": "string",
                  "minLength": 1
                },
                "quantity": {
                  "type": "null"
                }
              }
            }
          }
        ]
      },
      "Signature": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "algorithm": {
            "const": "Ed25519"
          },
          "key_id": {
            "type": "string",
            "minLength": 1
          },
          "value": {
            "$ref": "#/components/schemas/Bytes"
          }
        },
        "required": [
          "algorithm",
          "key_id",
          "value"
        ]
      },
      "Resolution": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "resolution.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "question_id": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "$ref": "#/components/schemas/Count"
          },
          "rule_version": {
            "type": "string",
            "minLength": 1
          },
          "outcome": {
            "$ref": "#/components/schemas/Outcome"
          },
          "tier": {
            "type": "string",
            "enum": [
              "1",
              "2",
              "3"
            ]
          },
          "supporting_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportingItem"
            },
            "minItems": 1
          },
          "confidence": {
            "type": "string",
            "enum": [
              "source_matched",
              "judged_with_reservations",
              "human_reviewed"
            ]
          },
          "confidence_reason": {
            "type": "string",
            "minLength": 1
          },
          "resolver_version": {
            "type": "string",
            "minLength": 1
          },
          "measurement_method_version": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "type": "string",
            "enum": [
              "provisional",
              "finalized"
            ]
          },
          "published_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "dispute_until": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "supersedes": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "affiliation": {
            "type": "string",
            "minLength": 1
          },
          "signature": {
            "$ref": "#/components/schemas/Signature"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "question_id",
          "version",
          "rule_version",
          "outcome",
          "tier",
          "supporting_items",
          "confidence",
          "confidence_reason",
          "resolver_version",
          "measurement_method_version",
          "status",
          "published_at",
          "dispute_until",
          "supersedes",
          "affiliation",
          "signature"
        ]
      },
      "ResolutionStatus": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "resolution-status.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "state": {
            "const": "not_yet"
          },
          "question_id": {
            "type": "string",
            "minLength": 1
          },
          "reason": {
            "type": "string",
            "minLength": 1
          },
          "next_check_at": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "state",
          "question_id",
          "reason",
          "next_check_at"
        ]
      },
      "DisputeCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "dispute-create.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "reason": {
            "type": "string",
            "minLength": 1
          },
          "supporting_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportingItem"
            },
            "minItems": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "reason",
          "supporting_items"
        ]
      },
      "Dispute": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "dispute.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "resolution_id": {
            "type": "string",
            "minLength": 1
          },
          "party_id": {
            "type": "string",
            "minLength": 1
          },
          "reason": {
            "type": "string",
            "minLength": 1
          },
          "supporting_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportingItem"
            },
            "minItems": 1
          },
          "received_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "state": {
            "type": "string",
            "enum": [
              "open",
              "upheld",
              "rejected",
              "pending_outside_review"
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "resolution_id",
          "party_id",
          "reason",
          "supporting_items",
          "received_at",
          "state"
        ]
      },
      "Correction": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "resolution_id": {
            "type": "string",
            "minLength": 1
          },
          "supersedes": {
            "type": "string",
            "minLength": 1
          },
          "result_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 0
          },
          "occurred_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "resolution_id",
          "supersedes",
          "result_ids",
          "occurred_at"
        ]
      },
      "CorrectionsCursor": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "corrections-cursor.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Correction"
            },
            "minItems": 0
          },
          "next_cursor": {
            "type": "string",
            "minLength": 1
          },
          "has_more": {
            "type": "boolean"
          },
          "as_of": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "entries",
          "next_cursor",
          "has_more",
          "as_of"
        ]
      },
      "Validity": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "validity.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "method_id": {
            "type": "string",
            "minLength": 1
          },
          "method_version": {
            "type": "string",
            "minLength": 1
          },
          "cohort_id": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "minLength": 1
          },
          "domain": {
            "type": "string",
            "minLength": 1
          },
          "designation": {
            "type": "string",
            "enum": [
              "reported",
              "constructed_design"
            ]
          },
          "construction": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "paired_observed_count": {
            "$ref": "#/components/schemas/Count"
          },
          "outcome_coverage": {
            "$ref": "#/components/schemas/Coverage"
          },
          "scored_pair_coverage": {
            "$ref": "#/components/schemas/Coverage"
          },
          "exclusions": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 0
          },
          "statistic": {
            "const": "spearman"
          },
          "value": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Decimal"
              },
              {
                "type": "null"
              }
            ]
          },
          "lower": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Decimal"
              },
              {
                "type": "null"
              }
            ]
          },
          "upper": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Decimal"
              },
              {
                "type": "null"
              }
            ]
          },
          "standing": {
            "type": "string",
            "enum": [
              "insufficient",
              "descriptive"
            ]
          },
          "limitations": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "method_id",
          "method_version",
          "cohort_id",
          "kind",
          "domain",
          "designation",
          "construction",
          "paired_observed_count",
          "outcome_coverage",
          "scored_pair_coverage",
          "exclusions",
          "statistic",
          "value",
          "lower",
          "upper",
          "standing",
          "limitations"
        ]
      },
      "Record": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "record.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "owner_id": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "prediction",
              "strategy_version",
              "project"
            ]
          },
          "domain": {
            "type": "string",
            "minLength": 1
          },
          "review_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 0
          },
          "result_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 0
          },
          "outcome_coverage": {
            "$ref": "#/components/schemas/Coverage"
          },
          "participation_coverage": {
            "$ref": "#/components/schemas/Coverage"
          },
          "standing": {
            "type": "string",
            "enum": [
              "insufficient",
              "descriptive"
            ]
          },
          "floor": {
            "$ref": "#/components/schemas/Count"
          },
          "affiliation": {
            "type": "string",
            "minLength": 1
          },
          "validity_references": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 0
          },
          "privacy": {
            "type": "string",
            "enum": [
              "private",
              "published_with_consent"
            ]
          },
          "consent_reference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "as_of": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "comparison_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 0
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "owner_id",
          "kind",
          "domain",
          "review_ids",
          "result_ids",
          "outcome_coverage",
          "participation_coverage",
          "standing",
          "floor",
          "affiliation",
          "validity_references",
          "privacy",
          "consent_reference",
          "as_of",
          "comparison_ids"
        ]
      },
      "PublicationConsent": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "publication-consent.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "owner_id": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "prediction",
              "strategy_version",
              "project"
            ]
          },
          "all_future_of_kind": {
            "const": true
          },
          "state": {
            "type": "string",
            "enum": [
              "granted",
              "revoked_for_future"
            ]
          },
          "recorded_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "owner_id",
          "kind",
          "all_future_of_kind",
          "state",
          "recorded_at"
        ]
      },
      "PlatformKeyCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "platform-key-create.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "label": {
            "type": "string",
            "minLength": 1
          },
          "entitlements": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "ideas",
                "score",
                "compare",
                "measure",
                "records",
                "corrections",
                "design_examples"
              ]
            },
            "minItems": 1
          },
          "ceiling_usd": {
            "$ref": "#/components/schemas/Decimal"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "label",
          "entitlements",
          "ceiling_usd",
          "expires_at"
        ]
      },
      "PlatformKey": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "platform-key.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "label": {
            "type": "string",
            "minLength": 1
          },
          "entitlements": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "ideas",
                "score",
                "compare",
                "measure",
                "records",
                "corrections",
                "design_examples"
              ]
            },
            "minItems": 1
          },
          "ceiling_usd": {
            "$ref": "#/components/schemas/Decimal"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "revoked"
            ]
          },
          "secret_once": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "label",
          "entitlements",
          "ceiling_usd",
          "expires_at",
          "id",
          "state",
          "secret_once"
        ]
      },
      "EvaluationKey": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "evaluation-key.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "algorithm": {
            "const": "X25519"
          },
          "public_key": {
            "$ref": "#/components/schemas/Bytes"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "algorithm",
          "public_key",
          "created_at"
        ]
      },
      "VerificationKey": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "verification-key.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "algorithm": {
            "const": "Ed25519"
          },
          "public_key": {
            "$ref": "#/components/schemas/Bytes"
          },
          "fixture_only": {
            "type": "boolean"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "algorithm",
          "public_key",
          "fixture_only"
        ]
      },
      "Tier2Quote": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "tier2-quote.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "question_id": {
            "type": "string",
            "minLength": 1
          },
          "price_usd": {
            "$ref": "#/components/schemas/Decimal"
          },
          "estimated_service_cost_usd": {
            "$ref": "#/components/schemas/Decimal"
          },
          "question_service_cost_limit_usd": {
            "$ref": "#/components/schemas/Decimal"
          },
          "daily_remaining_service_cost_usd": {
            "$ref": "#/components/schemas/Decimal"
          },
          "authorization": {
            "$ref": "#/components/schemas/Tier2Authorization"
          },
          "decision": {
            "type": "string",
            "enum": [
              "authorized",
              "refused",
              "parked"
            ]
          },
          "reason": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "question_id",
          "price_usd",
          "estimated_service_cost_usd",
          "question_service_cost_limit_usd",
          "daily_remaining_service_cost_usd",
          "authorization",
          "decision",
          "reason"
        ]
      },
      "Error": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "error.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "code": {
            "type": "string",
            "enum": [
              "invalid_shape",
              "invalid_semantics",
              "forbidden",
              "not_found",
              "conflict",
              "after_lock",
              "not_preregistered",
              "budget_refused",
              "source_unavailable",
              "cursor_expired",
              "not_yet",
              "rate_limited"
            ]
          },
          "message": {
            "type": "string",
            "minLength": 1
          },
          "retry": {
            "type": "string",
            "enum": [
              "never",
              "after_correction",
              "after_operator_action",
              "same_key_only",
              "snapshot_required"
            ]
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "code",
          "message",
          "retry",
          "request_id"
        ]
      },
      "CloudEvent": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "cloud-event.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "specversion": {
            "const": "1.0"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "source": {
            "type": "string",
            "format": "uri"
          },
          "type": {
            "type": "string",
            "enum": [
              "com.nimessa.neonumber.resolution.published.v1",
              "com.nimessa.neonumber.resolution.finalized.v1",
              "com.nimessa.neonumber.resolution.corrected.v1",
              "com.nimessa.neonumber.review.published.v1"
            ]
          },
          "subject": {
            "type": "string",
            "minLength": 1
          },
          "time": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "datacontenttype": {
            "const": "application/json"
          },
          "data": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "artifact_id": {
                "type": "string",
                "minLength": 1
              },
              "artifact_version": {
                "type": "string",
                "minLength": 1
              },
              "supersedes": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "artifact_id",
              "artifact_version",
              "supersedes"
            ]
          },
          "signature": {
            "$ref": "#/components/schemas/Signature"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "specversion",
          "id",
          "source",
          "type",
          "subject",
          "time",
          "datacontenttype",
          "data",
          "signature"
        ]
      },
      "AnswerMass": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "answer": {
            "type": "string",
            "minLength": 1
          },
          "probability": {
            "$ref": "#/components/schemas/Probability"
          }
        },
        "required": [
          "answer",
          "probability"
        ]
      },
      "Distribution": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "binary",
              "categorical",
              "quantity"
            ]
          },
          "masses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnswerMass"
            },
            "minItems": 0
          },
          "lower": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Decimal"
              },
              {
                "type": "null"
              }
            ]
          },
          "upper": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Decimal"
              },
              {
                "type": "null"
              }
            ]
          },
          "alpha": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Probability"
              },
              {
                "type": "null"
              }
            ]
          },
          "unit": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "kind",
          "masses",
          "lower",
          "upper",
          "alpha",
          "unit"
        ]
      },
      "SealedPlaintext": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "sealed-plaintext.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "distribution": {
            "$ref": "#/components/schemas/Distribution"
          },
          "salt": {
            "$ref": "#/components/schemas/Bytes"
          },
          "review_words": {
            "type": "string",
            "minLength": 1
          },
          "assessable_artifact": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "distribution",
          "salt",
          "review_words",
          "assessable_artifact"
        ]
      },
      "DigestPayload": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "tenant_id": {
            "type": "string",
            "minLength": 1
          },
          "question_id": {
            "type": "string",
            "minLength": 1
          },
          "rule_version": {
            "type": "string",
            "minLength": 1
          },
          "distribution": {
            "$ref": "#/components/schemas/Distribution"
          },
          "salt": {
            "$ref": "#/components/schemas/Bytes"
          }
        },
        "required": [
          "tenant_id",
          "question_id",
          "rule_version",
          "distribution",
          "salt"
        ]
      },
      "TenantContext": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "tenant-context.v1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "tenant_id": {
            "type": "string",
            "minLength": 1
          },
          "tier2_default": {
            "$ref": "#/components/schemas/Tier2Authorization"
          },
          "retention_policy": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "tenant_id",
          "tier2_default",
          "retention_policy"
        ]
      },
      "IdeaV11": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "idea.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "original_words": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "prediction",
              "strategy_version",
              "project"
            ]
          },
          "objective": {
            "type": "string",
            "minLength": 1
          },
          "inferences": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Inference"
            },
            "minItems": 0
          },
          "prior_version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VersionReference"
              },
              {
                "type": "null"
              }
            ]
          },
          "related_versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VersionReference"
            },
            "minItems": 0
          },
          "privacy": {
            "const": "private"
          },
          "affiliation": {
            "type": "string",
            "minLength": 1
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "reading_status": {
            "type": "string",
            "enum": [
              "pending",
              "ready",
              "failed"
            ]
          },
          "reading_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "version",
          "original_words",
          "kind",
          "objective",
          "inferences",
          "prior_version",
          "related_versions",
          "privacy",
          "affiliation",
          "created_at",
          "reading_status",
          "reading_id"
        ]
      },
      "ReadingResource": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "reading.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "ready",
              "failed"
            ]
          },
          "inferences": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Inference"
            }
          },
          "model_identifier": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "port_version": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "recorded_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "version",
          "state",
          "inferences",
          "model_identifier",
          "port_version",
          "reason",
          "recorded_at"
        ]
      },
      "MeasurementProposalRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "measurement-proposal-request.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "timing": {
            "type": "string",
            "enum": [
              "before_start",
              "added_after_completion"
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "version",
          "timing"
        ]
      },
      "MeasurementProposalResource": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "measurement-proposal.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "ready",
              "failed"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "prediction",
              "strategy_version",
              "project"
            ]
          },
          "timing": {
            "type": "string",
            "enum": [
              "before_start",
              "added_after_completion"
            ]
          },
          "objectives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Objective"
            }
          },
          "question": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuestionCreate"
              },
              {
                "type": "null"
              }
            ]
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "provider": {
                  "type": "string",
                  "enum": [
                    "stripe",
                    "google_calendar",
                    "manual"
                  ]
                },
                "source": {
                  "type": "string",
                  "minLength": 1
                },
                "filters": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "priority": {
                  "$ref": "#/components/schemas/Count"
                }
              },
              "required": [
                "provider",
                "source",
                "filters",
                "priority"
              ]
            }
          },
          "missing": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "recorded_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "version",
          "state",
          "kind",
          "timing",
          "objectives",
          "question",
          "sources",
          "missing",
          "reason",
          "recorded_at"
        ]
      },
      "ReviewClarification": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "review-clarification.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "review_id": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "clarification": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "question": {
                    "type": "string",
                    "minLength": 1
                  },
                  "would_change": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "question",
                  "would_change"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "review_id",
          "version",
          "clarification"
        ]
      },
      "WorkspaceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "workspace-create.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "name": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "name"
        ]
      },
      "Workspace": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "workspace.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "admin",
              "member"
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "name",
          "role"
        ]
      },
      "WorkspaceList": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "workspace-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "workspaces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Workspace"
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "workspaces"
        ]
      },
      "WorkspaceTeam": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "workspace-team.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "workspace_id": {
            "type": "string",
            "minLength": 1
          },
          "members": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "user_id": {
                  "type": "string",
                  "minLength": 1
                },
                "email": {
                  "type": "string",
                  "minLength": 1
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "owner",
                    "admin",
                    "member"
                  ]
                }
              },
              "required": [
                "user_id",
                "email",
                "role"
              ]
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "workspace_id",
          "members"
        ]
      },
      "InvitationCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "invitation-create.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "email": {
            "type": "string",
            "minLength": 1
          },
          "role": {
            "type": "string",
            "enum": [
              "admin",
              "member"
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "email",
          "role"
        ]
      },
      "WorkspaceInvitation": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "workspace-invitation.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "workspace_id": {
            "type": "string",
            "minLength": 1
          },
          "email": {
            "type": "string",
            "minLength": 1
          },
          "role": {
            "type": "string",
            "enum": [
              "admin",
              "member"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "accepted",
              "revoked"
            ]
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "workspace_id",
          "email",
          "role",
          "state",
          "expires_at"
        ]
      },
      "InvitationList": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "invitation-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "invitations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkspaceInvitation"
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "invitations"
        ]
      },
      "MemberRoleChange": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "member-role-change.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "admin",
              "member"
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "role"
        ]
      },
      "WorkspaceRename": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "workspace-rename.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "name": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "name"
        ]
      },
      "LegalAcceptanceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "legal-acceptance.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "documents": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "document": {
                  "type": "string",
                  "enum": [
                    "terms",
                    "privacy"
                  ]
                },
                "version": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "required": [
                "document",
                "version"
              ]
            }
          },
          "user_agent_sha256": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "documents",
          "user_agent_sha256"
        ]
      },
      "LegalAcceptanceStatus": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "legal-acceptance-status.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "accepted": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "document": {
                  "type": "string",
                  "enum": [
                    "terms",
                    "privacy"
                  ]
                },
                "version": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                },
                "accepted_at": {
                  "$ref": "#/components/schemas/Timestamp"
                }
              },
              "required": [
                "document",
                "version",
                "accepted_at"
              ]
            }
          },
          "outstanding": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "document": {
                  "type": "string",
                  "enum": [
                    "terms",
                    "privacy"
                  ]
                },
                "version": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "required": [
                "document",
                "version"
              ]
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "accepted",
          "outstanding"
        ]
      },
      "InvitationAccept": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "invitation-accept.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority"
        ]
      },
      "IdeaList": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "idea-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "ideas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Idea"
            },
            "minItems": 0
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "ideas",
          "next_cursor"
        ]
      },
      "MeasurementConfirmation": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "measurement-confirmation.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "proposal_id": {
            "type": "string",
            "minLength": 1
          },
          "start_at": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "objectives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Objective"
            },
            "minItems": 0
          },
          "question": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuestionCreate"
              },
              {
                "type": "null"
              }
            ]
          },
          "sources": {
            "type": "array",
            "minItems": 0,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "provider": {
                  "type": "string",
                  "enum": [
                    "stripe",
                    "google_calendar",
                    "manual"
                  ]
                },
                "source": {
                  "type": "string",
                  "minLength": 1
                },
                "filters": {
                  "type": "array",
                  "minItems": 0,
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "priority": {
                  "$ref": "#/components/schemas/Count"
                }
              },
              "required": [
                "provider",
                "source",
                "filters",
                "priority"
              ]
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "proposal_id",
          "start_at",
          "objectives",
          "question",
          "sources"
        ]
      },
      "MeasurementPlan": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "measurement-plan.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "kind": {
            "type": "string",
            "enum": [
              "prediction",
              "strategy_version",
              "project"
            ]
          },
          "timing": {
            "type": "string",
            "enum": [
              "before_start",
              "added_after_completion"
            ]
          },
          "objectives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Objective"
            },
            "minItems": 0
          },
          "sources": {
            "type": "array",
            "minItems": 0,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "provider": {
                  "type": "string",
                  "enum": [
                    "stripe",
                    "google_calendar",
                    "manual"
                  ]
                },
                "source": {
                  "type": "string",
                  "minLength": 1
                },
                "filters": {
                  "type": "array",
                  "minItems": 0,
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "priority": {
                  "$ref": "#/components/schemas/Count"
                }
              },
              "required": [
                "provider",
                "source",
                "filters",
                "priority"
              ]
            }
          },
          "registration": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RegistrationReceipt"
              },
              {
                "type": "null"
              }
            ]
          },
          "question": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Question"
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmed_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "version",
          "kind",
          "timing",
          "objectives",
          "sources",
          "registration",
          "question",
          "confirmed_at"
        ]
      },
      "ActivityEntry": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "subject": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "reading",
              "measurement_proposal",
              "review",
              "comparison",
              "measurement",
              "result",
              "question"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "unavailable",
              "pending",
              "running",
              "ready",
              "failed",
              "parked",
              "superseded",
              "open",
              "locked",
              "resolved"
            ]
          },
          "recorded_at": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VersionReference"
              },
              {
                "type": "null"
              }
            ]
          },
          "superseded_by": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "key",
          "id",
          "subject",
          "kind",
          "state",
          "recorded_at",
          "version",
          "superseded_by"
        ]
      },
      "ActivityPage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "activity-page.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "as_of": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "entries": {
            "type": "array",
            "minItems": 0,
            "items": {
              "$ref": "#/components/schemas/ActivityEntry"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "as_of",
          "entries",
          "next_cursor"
        ]
      },
      "MeasurementTask": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1
          },
          "plan_id": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "timing": {
            "type": "string",
            "enum": [
              "before_start",
              "added_after_completion"
            ]
          },
          "objective_id": {
            "type": "string",
            "minLength": 1
          },
          "statement": {
            "type": "string",
            "minLength": 1
          },
          "measurement_at": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "scheduled",
              "due",
              "date_not_set",
              "available",
              "not_established",
              "definition_mismatch"
            ]
          },
          "result_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "key",
          "plan_id",
          "version",
          "timing",
          "objective_id",
          "statement",
          "measurement_at",
          "state",
          "result_id"
        ]
      },
      "MeasurementTaskPage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "measurement-task-page.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "as_of": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "tasks": {
            "type": "array",
            "minItems": 0,
            "items": {
              "$ref": "#/components/schemas/MeasurementTask"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "as_of",
          "tasks",
          "next_cursor"
        ]
      },
      "RecordList": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "record-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Record"
            },
            "minItems": 0
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "records"
        ]
      },
      "WorkspaceModelConnect": {
        "type": "object",
        "additionalProperties": false,
        "description": "Owner consent and one-way credential intake; the key is stored only in custody.",
        "properties": {
          "schema_version": {
            "const": "workspace-model-connect.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "provider": {
            "const": "openrouter"
          },
          "model": {
            "const": "openai/gpt-4.1-mini"
          },
          "api_key": {
            "type": "string",
            "minLength": 8,
            "maxLength": 512,
            "writeOnly": true
          },
          "expected_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "provider_charges_accepted": {
            "const": true
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "provider",
          "model",
          "api_key",
          "expected_id",
          "provider_charges_accepted"
        ]
      },
      "WorkspaceModel": {
        "type": "object",
        "additionalProperties": false,
        "description": "Credential-free workspace model status.",
        "properties": {
          "schema_version": {
            "const": "workspace-model.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "provider": {
            "const": "openrouter"
          },
          "model": {
            "const": "openai/gpt-4.1-mini"
          },
          "connected": {
            "type": "boolean"
          },
          "verified_at": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "provider",
          "model",
          "connected",
          "verified_at"
        ]
      },
      "Connection": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "connection.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "provider": {
            "type": "string",
            "enum": [
              "stripe",
              "google_calendar"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "awaiting_authorization",
              "connecting",
              "active",
              "reconnect_required",
              "revoked"
            ]
          },
          "sources": {
            "type": "array",
            "minItems": 0,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "timezone": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "id",
                "name",
                "timezone"
              ]
            }
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "last_collected_at": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "collection_interval_minutes": {
            "$ref": "#/components/schemas/Count"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "provider",
          "state",
          "sources",
          "reason",
          "last_collected_at",
          "collection_interval_minutes",
          "created_at",
          "updated_at"
        ]
      },
      "ConnectionList": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "connection-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "connections": {
            "type": "array",
            "minItems": 0,
            "items": {
              "$ref": "#/components/schemas/Connection"
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "connections"
        ]
      },
      "ConnectionAuthorize": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "connection-authorize.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "provider": {
            "type": "string",
            "enum": [
              "stripe",
              "google_calendar"
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "provider"
        ]
      },
      "ConnectionAuthorization": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "connection-authorization.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "connection_id": {
            "type": "string",
            "minLength": 1
          },
          "authorization_url": {
            "type": "string",
            "format": "uri"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "connection_id",
          "authorization_url",
          "expires_at"
        ]
      },
      "ConnectionCallback": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "connection-callback.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "state": {
            "type": "string",
            "minLength": 1
          },
          "code": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "state",
          "code"
        ]
      },
      "CollectionRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "collection-request.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "plan_id": {
            "type": "string",
            "minLength": 1
          },
          "objective_id": {
            "type": "string",
            "minLength": 1
          },
          "metric": {
            "type": "string",
            "enum": [
              "payment_count",
              "gross_receipts",
              "refunds",
              "booking_count"
            ]
          },
          "source": {
            "type": "string",
            "minLength": 1
          },
          "timezone": {
            "type": "string",
            "minLength": 1
          },
          "unit": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "plan_id",
          "objective_id",
          "metric",
          "source",
          "timezone",
          "unit"
        ]
      },
      "CollectionReceipt": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "collection-receipt.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "connection_id": {
            "type": "string",
            "minLength": 1
          },
          "plan_id": {
            "type": "string",
            "minLength": 1
          },
          "objective_id": {
            "type": "string",
            "minLength": 1
          },
          "state": {
            "const": "pending"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "connection_id",
          "plan_id",
          "objective_id",
          "state"
        ]
      },
      "PublicationConsentList": {
        "type": "object",
        "additionalProperties": false,
        "description": "owner publication controls show all grants and future revocations.",
        "properties": {
          "schema_version": {
            "const": "publication-consent-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "consents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicationConsentV11"
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "consents"
        ]
      },
      "PublicScorecard": {
        "type": "object",
        "additionalProperties": false,
        "description": "NEO-5 F and open-format.md; a consented Review presentation without private supporting material.",
        "properties": {
          "schema_version": {
            "const": "public-scorecard.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "idea_description": {
            "type": "string",
            "minLength": 1
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "owner_id": {
            "type": "string",
            "minLength": 1
          },
          "disclosure": {
            "type": "string",
            "minLength": 1
          },
          "review_id": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "method": {
            "$ref": "#/components/schemas/Method"
          },
          "score": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Score"
              },
              {
                "type": "null"
              }
            ]
          },
          "coverage": {
            "$ref": "#/components/schemas/Coverage"
          },
          "dimensions": {
            "type": "array",
            "minItems": 5,
            "items": {
              "$ref": "#/components/schemas/Dimension"
            }
          },
          "why": {
            "type": "string",
            "minLength": 1
          },
          "biggest_uncertainty": {
            "type": "string",
            "minLength": 1
          },
          "next_step": {
            "type": "string",
            "minLength": 1
          },
          "ready_to_test": {
            "type": "string",
            "minLength": 1
          },
          "strongest_objection": {
            "type": "string",
            "minLength": 1
          },
          "source_classes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "customer_reported",
                "independently_obtained",
                "connector_attested"
              ]
            }
          },
          "affiliation": {
            "type": "string",
            "minLength": 1
          },
          "as_of": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "record_id": {
            "type": "string",
            "minLength": 1
          },
          "supersedes": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "superseded_by": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "idea_description",
          "id",
          "owner_id",
          "disclosure",
          "review_id",
          "version",
          "method",
          "score",
          "coverage",
          "dimensions",
          "why",
          "biggest_uncertainty",
          "next_step",
          "ready_to_test",
          "strongest_objection",
          "source_classes",
          "affiliation",
          "as_of",
          "record_id",
          "supersedes",
          "superseded_by"
        ]
      },
      "PublicResult": {
        "type": "object",
        "additionalProperties": false,
        "description": "per-objective Results remain separate and private supporting items are withheld.",
        "properties": {
          "schema_version": {
            "const": "public-result.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "owner_id": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "kind": {
            "type": "string",
            "enum": [
              "prediction",
              "strategy_version",
              "project"
            ]
          },
          "history": {
            "type": "string",
            "enum": [
              "preregistered",
              "retrospective"
            ]
          },
          "objectives": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "statement": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "id",
                "statement"
              ]
            }
          },
          "components": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/ResultComponent"
            }
          },
          "measurement_method_version": {
            "type": "string",
            "minLength": 1
          },
          "provisional": {
            "type": "boolean"
          },
          "supersedes": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "correction_reason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "as_of": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "record_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "owner_id",
          "version",
          "kind",
          "history",
          "objectives",
          "components",
          "measurement_method_version",
          "provisional",
          "supersedes",
          "correction_reason",
          "as_of",
          "record_id"
        ]
      },
      "PublicRecord": {
        "type": "object",
        "additionalProperties": false,
        "description": "public routes read this projection, never the private cohort.",
        "properties": {
          "schema_version": {
            "const": "public-record.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "record": {
            "$ref": "#/components/schemas/RecordV11"
          },
          "as_of": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "scope": {
            "type": "string",
            "minLength": 1
          },
          "source_limitations": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "record",
          "as_of",
          "scope",
          "source_limitations"
        ]
      },
      "OperatorControlChange": {
        "type": "object",
        "additionalProperties": false,
        "description": "independent stop switch with an accountable reason.",
        "properties": {
          "schema_version": {
            "const": "operator-control-change.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "name": {
            "type": "string",
            "enum": [
              "paid_work",
              "collection",
              "public_registration"
            ]
          },
          "stopped": {
            "type": "boolean"
          },
          "reason": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "name",
          "stopped",
          "reason"
        ]
      },
      "OperatorControls": {
        "type": "object",
        "additionalProperties": false,
        "description": "operator decisions do not remove Records or export access.",
        "properties": {
          "schema_version": {
            "const": "operator-controls.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "switches": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "name": {
                  "type": "string",
                  "enum": [
                    "paid_work",
                    "collection",
                    "public_registration"
                  ]
                },
                "stopped": {
                  "type": "boolean"
                },
                "reason": {
                  "type": "string",
                  "minLength": 1
                },
                "operator_id": {
                  "type": "string",
                  "minLength": 1
                },
                "at": {
                  "$ref": "#/components/schemas/Timestamp"
                }
              },
              "required": [
                "id",
                "name",
                "stopped",
                "reason",
                "operator_id",
                "at"
              ]
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "switches"
        ]
      },
      "OperatorQuestionQueue": {
        "type": "object",
        "additionalProperties": false,
        "description": "identifiers for parked Questions, with bounded pagination.",
        "properties": {
          "schema_version": {
            "const": "operator-question-queue.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "questions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "tenant_id": {
                  "type": "string",
                  "minLength": 1
                },
                "question_id": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "tenant_id",
                "question_id"
              ]
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "questions",
          "next_cursor"
        ]
      },
      "OperatorDossier": {
        "type": "object",
        "additionalProperties": false,
        "description": "resolver-only dossier, no sealed Commitment or Idea source reference.",
        "properties": {
          "schema_version": {
            "const": "operator-dossier.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "tenant_id": {
            "type": "string",
            "minLength": 1
          },
          "question": {
            "$ref": "#/components/schemas/Question"
          },
          "resolution_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "resolution": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Resolution"
              },
              {
                "type": "null"
              }
            ]
          },
          "disputes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dispute"
            }
          },
          "attempts": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "pass": {
                  "$ref": "#/components/schemas/Count"
                },
                "state": {
                  "type": "string",
                  "minLength": 1
                },
                "reason": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "at": {
                  "$ref": "#/components/schemas/Timestamp"
                }
              },
              "required": [
                "pass",
                "state",
                "reason",
                "at"
              ]
            }
          },
          "supporting_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportingItem"
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "tenant_id",
          "question",
          "resolution_id",
          "resolution",
          "disputes",
          "attempts",
          "supporting_items"
        ]
      },
      "OperatorDecisionCreate": {
        "type": "object",
        "additionalProperties": false,
        "description": "explicit expected Resolution and outcome within the frozen answer space.",
        "properties": {
          "schema_version": {
            "const": "operator-decision-create.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "resolution_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "outcome": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Outcome"
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "resolution_id",
          "outcome",
          "reason"
        ]
      },
      "OperatorDecisionReceipt": {
        "type": "object",
        "additionalProperties": false,
        "description": "server-attributed decision, never a forecast or an outcome guarantee.",
        "properties": {
          "schema_version": {
            "const": "operator-decision-receipt.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "question_id": {
            "type": "string",
            "minLength": 1
          },
          "resolution_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "outcome": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Outcome"
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "type": "string",
            "minLength": 1
          },
          "operator": {
            "type": "string",
            "minLength": 1
          },
          "decided_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "question_id",
          "resolution_id",
          "outcome",
          "reason",
          "operator",
          "decided_at"
        ]
      },
      "OperatorRefundCreate": {
        "type": "object",
        "additionalProperties": false,
        "description": "founder approval of an amount against a settled row and its merchant payment.",
        "properties": {
          "schema_version": {
            "const": "operator-refund-create.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "entry_id": {
            "type": "string",
            "minLength": 1
          },
          "charge_id": {
            "type": "string",
            "minLength": 1
          },
          "amount_usd": {
            "$ref": "#/components/schemas/Decimal"
          },
          "reason": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "entry_id",
          "charge_id",
          "amount_usd",
          "reason"
        ]
      },
      "OperatorBilling": {
        "type": "object",
        "additionalProperties": false,
        "description": "authorization is distinct from provider-confirmed success.",
        "properties": {
          "schema_version": {
            "const": "operator-billing.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "billing": {
            "$ref": "#/components/schemas/BillingView"
          },
          "may_authorize_refunds": {
            "type": "boolean"
          },
          "refunds": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "entry_id": {
                  "type": "string",
                  "minLength": 1
                },
                "charge_id": {
                  "type": "string",
                  "minLength": 1
                },
                "amount_usd": {
                  "$ref": "#/components/schemas/Decimal"
                },
                "reason": {
                  "type": "string",
                  "minLength": 1
                },
                "authorized_by": {
                  "type": "string",
                  "minLength": 1
                },
                "at": {
                  "$ref": "#/components/schemas/Timestamp"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "authorized",
                    "pending",
                    "requires_action",
                    "succeeded",
                    "failed",
                    "canceled"
                  ]
                },
                "provider_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "entry_id",
                "charge_id",
                "amount_usd",
                "reason",
                "authorized_by",
                "at",
                "state",
                "provider_id"
              ]
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "billing",
          "may_authorize_refunds",
          "refunds"
        ]
      },
      "WorkQuoteCreate": {
        "type": "object",
        "additionalProperties": false,
        "description": "NEO-5 E and F; quoted allowance is excluded from judgment inputs.",
        "properties": {
          "schema_version": {
            "const": "work-quote-create.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "method_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "amount_usd": {
            "$ref": "#/components/schemas/Decimal"
          },
          "description": {
            "type": "string",
            "minLength": 1
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "allowance": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "words": {
                "$ref": "#/components/schemas/Count"
              },
              "tokens": {
                "$ref": "#/components/schemas/Count"
              },
              "sources": {
                "$ref": "#/components/schemas/Count"
              },
              "second_judgment": {
                "type": "boolean"
              }
            },
            "required": [
              "words",
              "tokens",
              "sources",
              "second_judgment"
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "version",
          "method_id",
          "amount_usd",
          "description",
          "expires_at",
          "allowance"
        ]
      },
      "WorkQuote": {
        "type": "object",
        "additionalProperties": false,
        "description": "NEO-5 E and F; immutable terms and attributed owner acceptance for one work identity.",
        "properties": {
          "schema_version": {
            "const": "work-quote.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "work_id": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "score",
              "comparison",
              "result",
              "quoted"
            ]
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "method_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "amount_usd": {
            "$ref": "#/components/schemas/Decimal"
          },
          "description": {
            "type": "string",
            "minLength": 1
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "accepted_at": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "accepted_by": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "allowance": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "words": {
                "$ref": "#/components/schemas/Count"
              },
              "tokens": {
                "$ref": "#/components/schemas/Count"
              },
              "sources": {
                "$ref": "#/components/schemas/Count"
              },
              "second_judgment": {
                "type": "boolean"
              }
            },
            "required": [
              "words",
              "tokens",
              "sources",
              "second_judgment"
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "work_id",
          "kind",
          "version",
          "method_id",
          "amount_usd",
          "description",
          "expires_at",
          "accepted_at",
          "accepted_by",
          "allowance"
        ]
      },
      "WorkQuoteList": {
        "type": "object",
        "additionalProperties": false,
        "description": "workspace quotes remain visible alongside their acceptance and expiry.",
        "properties": {
          "schema_version": {
            "const": "work-quote-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "quotes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkQuote"
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "quotes"
        ]
      },
      "WorkQuoteAccept": {
        "type": "object",
        "additionalProperties": false,
        "description": "owner accepts the exact saved terms named by the path.",
        "properties": {
          "schema_version": {
            "const": "work-quote-accept.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority"
        ]
      },
      "LibraryQuestionCreate": {
        "type": "object",
        "additionalProperties": false,
        "description": "operator-confirmed public Question and frozen sources.",
        "properties": {
          "schema_version": {
            "const": "library-question-create.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "domain": {
            "type": "string",
            "minLength": 1
          },
          "statement": {
            "type": "string",
            "minLength": 1
          },
          "answer_space": {
            "$ref": "#/components/schemas/AnswerSpace"
          },
          "lock_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "horizon_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "rule": {
            "$ref": "#/components/schemas/ResolutionRule"
          },
          "prior_entry_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "domain",
          "statement",
          "answer_space",
          "lock_at",
          "horizon_at",
          "rule",
          "prior_entry_id"
        ]
      },
      "LibraryQuestion": {
        "type": "object",
        "additionalProperties": false,
        "description": "immutable public representation; a revision gets another entry.",
        "properties": {
          "schema_version": {
            "const": "library-question.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "domain": {
            "type": "string",
            "minLength": 1
          },
          "statement": {
            "type": "string",
            "minLength": 1
          },
          "answer_space": {
            "$ref": "#/components/schemas/AnswerSpace"
          },
          "lock_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "horizon_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "rule": {
            "$ref": "#/components/schemas/ResolutionRule"
          },
          "prior_entry_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "published_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "as_of": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "domain",
          "statement",
          "answer_space",
          "lock_at",
          "horizon_at",
          "rule",
          "prior_entry_id",
          "id",
          "published_at",
          "as_of"
        ]
      },
      "LibraryList": {
        "type": "object",
        "additionalProperties": false,
        "description": "browse the prepared public catalog by domain and cursor.",
        "properties": {
          "schema_version": {
            "const": "library-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LibraryQuestion"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "entries",
          "next_cursor"
        ]
      },
      "LibrarySubscription": {
        "type": "object",
        "additionalProperties": false,
        "description": "current member subscribes to a Question and its subsequent entries.",
        "properties": {
          "schema_version": {
            "const": "library-subscription.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "entry_id": {
            "type": "string",
            "minLength": 1
          },
          "active": {
            "type": "boolean"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "entry_id",
          "active"
        ]
      },
      "LibraryParticipationCreate": {
        "type": "object",
        "additionalProperties": false,
        "description": "declared participant confirms a frozen library Question, before sealing.",
        "properties": {
          "schema_version": {
            "const": "library-participation-create.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "participant": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "human",
                  "model",
                  "agent"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "model_identifier": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "kind",
              "name",
              "model_identifier"
            ]
          },
          "words": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "participant",
          "words"
        ]
      },
      "LibraryParticipation": {
        "type": "object",
        "additionalProperties": false,
        "description": "exact library rule binding with tenant-isolated private identities.",
        "properties": {
          "schema_version": {
            "const": "library-participation.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "entry_id": {
            "type": "string",
            "minLength": 1
          },
          "participant": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "human",
                  "model",
                  "agent"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "model_identifier": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "kind",
              "name",
              "model_identifier"
            ]
          },
          "version": {
            "$ref": "#/components/schemas/VersionReference"
          },
          "question_id": {
            "type": "string",
            "minLength": 1
          },
          "rule_id": {
            "type": "string",
            "minLength": 1
          },
          "rule_version": {
            "type": "string",
            "minLength": 1
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "entry_id",
          "participant",
          "version",
          "question_id",
          "rule_id",
          "rule_version",
          "created_at"
        ]
      },
      "LibraryParticipationList": {
        "type": "object",
        "additionalProperties": false,
        "description": "the current workspace's private participation receipts.",
        "properties": {
          "schema_version": {
            "const": "library-participation-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LibraryParticipation"
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "entries"
        ]
      },
      "BenchEntry": {
        "type": "object",
        "additionalProperties": false,
        "description": "declared participant's consented forecast Record, with public library bindings only.",
        "properties": {
          "schema_version": {
            "const": "bench-entry.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "participant": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "human",
                  "model",
                  "agent"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "model_identifier": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "kind",
              "name",
              "model_identifier"
            ]
          },
          "owner_record_id": {
            "type": "string",
            "minLength": 1
          },
          "record": {
            "$ref": "#/components/schemas/Record"
          },
          "entries": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "entry_id": {
                  "type": "string",
                  "minLength": 1
                },
                "rule_id": {
                  "type": "string",
                  "minLength": 1
                },
                "rule_version": {
                  "type": "string",
                  "minLength": 1
                },
                "statement": {
                  "type": "string",
                  "minLength": 1
                },
                "domain": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "entry_id",
                "rule_id",
                "rule_version",
                "statement",
                "domain"
              ]
            }
          },
          "outcomes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "entry_id": {
                  "type": "string",
                  "minLength": 1
                },
                "result_id": {
                  "type": "string",
                  "minLength": 1
                },
                "answer_kind": {
                  "type": "string",
                  "enum": [
                    "binary",
                    "categorical",
                    "quantity"
                  ]
                },
                "rule_id": {
                  "type": "string",
                  "minLength": 1
                },
                "rule_version": {
                  "type": "string",
                  "minLength": 1
                },
                "measurement_method_version": {
                  "type": "string",
                  "minLength": 1
                },
                "outcome_hash": {
                  "$ref": "#/components/schemas/Hash"
                },
                "components": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResultComponent"
                  }
                }
              },
              "required": [
                "entry_id",
                "result_id",
                "answer_kind",
                "rule_id",
                "rule_version",
                "measurement_method_version",
                "outcome_hash",
                "components"
              ]
            }
          },
          "as_of": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "participant",
          "owner_record_id",
          "record",
          "entries",
          "outcomes",
          "as_of"
        ]
      },
      "BenchList": {
        "type": "object",
        "additionalProperties": false,
        "description": "sparse public projections, no merit ranking.",
        "properties": {
          "schema_version": {
            "const": "bench-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BenchEntry"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "entries",
          "next_cursor"
        ]
      },
      "BenchComparison": {
        "type": "object",
        "additionalProperties": false,
        "description": "same-event descriptive forecast loss under the existing minimum-data rule, never merit.",
        "properties": {
          "schema_version": {
            "const": "bench-comparison.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "left_id": {
            "type": "string",
            "minLength": 1
          },
          "right_id": {
            "type": "string",
            "minLength": 1
          },
          "metric": {
            "const": "binary_brier"
          },
          "shared_count": {
            "$ref": "#/components/schemas/Count"
          },
          "excluded_count": {
            "$ref": "#/components/schemas/Count"
          },
          "floor": {
            "$ref": "#/components/schemas/Count"
          },
          "standing": {
            "type": "string",
            "enum": [
              "insufficient",
              "descriptive"
            ]
          },
          "left_mean": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Decimal"
              },
              {
                "type": "null"
              }
            ]
          },
          "right_mean": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Decimal"
              },
              {
                "type": "null"
              }
            ]
          },
          "difference": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Decimal"
              },
              {
                "type": "null"
              }
            ]
          },
          "meaning": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "left_id",
          "right_id",
          "metric",
          "shared_count",
          "excluded_count",
          "floor",
          "standing",
          "left_mean",
          "right_mean",
          "difference",
          "meaning"
        ]
      },
      "ExportedIdea": {
        "type": "object",
        "additionalProperties": false,
        "description": "the original words, attachment hashes, correction reason and attributed reading/proposal beside the unchanged Idea.",
        "properties": {
          "schema_version": {
            "const": "exported-idea.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "idea": {
            "$ref": "#/components/schemas/Idea"
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Hash"
            }
          },
          "revision_reason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "reading": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReadingResource"
              },
              {
                "type": "null"
              }
            ]
          },
          "proposal": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MeasurementProposalResource"
              },
              {
                "type": "null"
              }
            ]
          },
          "measurement": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MeasurementPlan"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "idea",
          "attachments",
          "revision_reason",
          "reading",
          "proposal",
          "measurement"
        ]
      },
      "ExportedReview": {
        "type": "object",
        "additionalProperties": false,
        "description": "unchanged Review plus the version's attributed reading history and its clarification. Readings are not claimed to all participate in this Review.",
        "properties": {
          "schema_version": {
            "const": "exported-review.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "review": {
            "$ref": "#/components/schemas/Review"
          },
          "readings": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "pass": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "dimensions",
                    "second_dimensions"
                  ]
                },
                "model_identifier": {
                  "type": "string",
                  "minLength": 1
                },
                "port_version": {
                  "type": "string",
                  "minLength": 1
                },
                "method_id": {
                  "type": "string",
                  "minLength": 1
                },
                "method_version": {
                  "type": "string",
                  "minLength": 1
                },
                "commitment_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "recorded_at": {
                  "$ref": "#/components/schemas/Timestamp"
                }
              },
              "required": [
                "pass",
                "model_identifier",
                "port_version",
                "method_id",
                "method_version",
                "commitment_id",
                "recorded_at"
              ]
            }
          },
          "clarification": {
            "$ref": "#/components/schemas/ReviewClarification"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "review",
          "readings",
          "clarification"
        ]
      },
      "RecordExportPage": {
        "type": "object",
        "additionalProperties": false,
        "description": "bounded private export of the open format. Pages are live reads, not a cross-page database snapshot. Corrections retain their existing supersedes references.",
        "properties": {
          "schema_version": {
            "const": "record-export-page.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "section": {
            "type": "string",
            "enum": [
              "ideas",
              "methods",
              "reviews",
              "comparisons",
              "questions",
              "commitments",
              "registrations",
              "resolutions",
              "results",
              "records",
              "validity"
            ]
          },
          "artifacts": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ExportedIdea"
                },
                {
                  "$ref": "#/components/schemas/Method"
                },
                {
                  "$ref": "#/components/schemas/ExportedReview"
                },
                {
                  "$ref": "#/components/schemas/Comparison"
                },
                {
                  "$ref": "#/components/schemas/Question"
                },
                {
                  "$ref": "#/components/schemas/Commitment"
                },
                {
                  "$ref": "#/components/schemas/RegistrationReceipt"
                },
                {
                  "$ref": "#/components/schemas/Resolution"
                },
                {
                  "$ref": "#/components/schemas/Result"
                },
                {
                  "$ref": "#/components/schemas/RecordV11"
                },
                {
                  "$ref": "#/components/schemas/Validity"
                }
              ]
            }
          },
          "verification_keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VerificationKey"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "as_of": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "section",
          "artifacts",
          "verification_keys",
          "next_cursor",
          "as_of"
        ]
      },
      "AffiliationChangeCreate": {
        "type": "object",
        "additionalProperties": false,
        "description": "a disclosure change names the current change identity to prevent overwriting a newer operator decision.",
        "properties": {
          "schema_version": {
            "const": "affiliation-change-create.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "expected_change_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "affiliation": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "expected_change_id",
          "affiliation",
          "reason"
        ]
      },
      "AffiliationChange": {
        "type": "object",
        "additionalProperties": false,
        "description": "attributed immutable operator disclosure, retained separately from signed historical artifacts.",
        "properties": {
          "schema_version": {
            "const": "affiliation-change.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "tenant_id": {
            "type": "string",
            "minLength": 1
          },
          "expected_change_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "affiliation": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "operator_id": {
            "type": "string",
            "minLength": 1
          },
          "at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "tenant_id",
          "expected_change_id",
          "affiliation",
          "reason",
          "operator_id",
          "at"
        ]
      },
      "AffiliationDisclosure": {
        "type": "object",
        "additionalProperties": false,
        "description": "current affiliation and at most fifty recent changes, newest first. Full history remains in the operator audit store.",
        "properties": {
          "schema_version": {
            "const": "affiliation-disclosure.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "tenant_id": {
            "type": "string",
            "minLength": 1
          },
          "affiliation": {
            "type": "string",
            "minLength": 1
          },
          "recent_changes": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "$ref": "#/components/schemas/AffiliationChange"
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "tenant_id",
          "affiliation",
          "recent_changes"
        ]
      },
      "PlatformKeyList": {
        "type": "object",
        "additionalProperties": false,
        "description": "the workspace's Platform Keys. A secret exists once, in the body of the mint that produced it, so no listing can carry one.",
        "properties": {
          "schema_version": {
            "const": "platform-key-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "keys": {
            "type": "array",
            "minItems": 0,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "label": {
                  "type": "string",
                  "minLength": 1
                },
                "entitlements": {
                  "type": "array",
                  "minItems": 1,
                  "items": {
                    "type": "string",
                    "enum": [
                      "ideas",
                      "score",
                      "compare",
                      "measure",
                      "records",
                      "corrections",
                      "design_examples",
                      "campaigns",
                      "events"
                    ]
                  }
                },
                "created_by": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "$ref": "#/components/schemas/Timestamp"
                },
                "revoked_at": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Timestamp"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ceiling_usd": {
                  "$ref": "#/components/schemas/Decimal"
                },
                "expires_at": {
                  "$ref": "#/components/schemas/Timestamp"
                }
              },
              "required": [
                "id",
                "label",
                "entitlements",
                "created_by",
                "created_at",
                "revoked_at"
              ]
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "keys"
        ]
      },
      "CommitmentReceipt": {
        "type": "object",
        "additionalProperties": false,
        "description": "the Commitment a workspace already sealed for one Question, so a browser reload does not seal a second forecast. It carries no sealed payload.",
        "properties": {
          "schema_version": {
            "const": "commitment-receipt.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "question_id": {
            "type": "string",
            "minLength": 1
          },
          "rule_version": {
            "type": "string",
            "minLength": 1
          },
          "digest": {
            "$ref": "#/components/schemas/Hash"
          },
          "digest_version": {
            "const": "commitment-digest.v1"
          },
          "ciphertext_hash": {
            "$ref": "#/components/schemas/Hash"
          },
          "received_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "question_id",
          "rule_version",
          "digest",
          "digest_version",
          "ciphertext_hash",
          "received_at"
        ]
      },
      "PublicationConsentV11": {
        "type": "object",
        "additionalProperties": false,
        "description": "the 1.0 consent with the public projection identity the API derives, so a client never re-derives it.",
        "properties": {
          "schema_version": {
            "const": "publication-consent.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "owner_id": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "prediction",
              "strategy_version",
              "project"
            ]
          },
          "all_future_of_kind": {
            "const": true
          },
          "state": {
            "type": "string",
            "enum": [
              "granted",
              "revoked_for_future"
            ]
          },
          "recorded_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "public_record_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "owner_id",
          "kind",
          "all_future_of_kind",
          "state",
          "recorded_at",
          "public_record_id"
        ]
      },
      "RecordV11": {
        "type": "object",
        "additionalProperties": false,
        "description": "the 1.0 Record with what could be assessed across its Reviews and which of those Reviews a later version superseded.",
        "properties": {
          "schema_version": {
            "const": "record.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "owner_id": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "prediction",
              "strategy_version",
              "project"
            ]
          },
          "domain": {
            "type": "string",
            "minLength": 1
          },
          "review_ids": {
            "type": "array",
            "minItems": 0,
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "result_ids": {
            "type": "array",
            "minItems": 0,
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "outcome_coverage": {
            "$ref": "#/components/schemas/Coverage"
          },
          "participation_coverage": {
            "$ref": "#/components/schemas/Coverage"
          },
          "standing": {
            "type": "string",
            "enum": [
              "insufficient",
              "descriptive"
            ]
          },
          "floor": {
            "$ref": "#/components/schemas/Count"
          },
          "affiliation": {
            "type": "string",
            "minLength": 1
          },
          "validity_references": {
            "type": "array",
            "minItems": 0,
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "privacy": {
            "type": "string",
            "enum": [
              "private",
              "published_with_consent"
            ]
          },
          "consent_reference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "as_of": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "comparison_ids": {
            "type": "array",
            "minItems": 0,
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "assessed_coverage": {
            "$ref": "#/components/schemas/Coverage"
          },
          "superseded_review_ids": {
            "type": "array",
            "minItems": 0,
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "id",
          "owner_id",
          "kind",
          "domain",
          "review_ids",
          "result_ids",
          "outcome_coverage",
          "participation_coverage",
          "standing",
          "floor",
          "affiliation",
          "validity_references",
          "privacy",
          "consent_reference",
          "as_of",
          "comparison_ids",
          "assessed_coverage",
          "superseded_review_ids"
        ]
      },
      "IdeaListV11": {
        "type": "object",
        "additionalProperties": false,
        "description": "the Idea page under NeoNumber-Contract-Version 1.1, whose members carry their reading status. Omitting the header keeps IdeaList.",
        "properties": {
          "schema_version": {
            "const": "idea-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "ideas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IdeaV11"
            },
            "minItems": 0
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "ideas",
          "next_cursor"
        ]
      },
      "RecordListV11": {
        "type": "object",
        "additionalProperties": false,
        "description": "the Record page under NeoNumber-Contract-Version 1.1, whose members state assessed coverage and superseded Reviews. Omitting the header keeps RecordList.",
        "properties": {
          "schema_version": {
            "const": "record-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecordV11"
            },
            "minItems": 0
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "records"
        ]
      },
      "BillingResume": {
        "type": "object",
        "additionalProperties": false,
        "description": "an owner clears a pending cancellation before the period ends. Renewal resumes; nothing about past periods changes.",
        "properties": {
          "schema_version": {
            "const": "billing-resume.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority"
        ]
      },
      "OperatorBillingRelease": {
        "type": "object",
        "additionalProperties": false,
        "description": "NEO-5 E and F; an operator releases one reserved ledger entry with the reason the work was never delivered.",
        "properties": {
          "schema_version": {
            "const": "operator-billing-release.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "entry_id": {
            "type": "string",
            "minLength": 1
          },
          "reason": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "entry_id",
          "reason"
        ]
      },
      "OperatorBillingReconcile": {
        "type": "object",
        "additionalProperties": false,
        "description": "NEO-5 E and F; an operator re-reads provider state for one uncertain or stuck merchant attempt and closes it.",
        "properties": {
          "schema_version": {
            "const": "operator-billing-reconcile.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "operation_id": {
            "type": "string",
            "minLength": 1
          },
          "reason": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "operation_id",
          "reason"
        ]
      },
      "CampaignCreate": {
        "type": "object",
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "campaign-create.v1.1"
          },
          "advisory_only": {
            "type": "boolean",
            "const": true
          },
          "gate_authority": {
            "type": "string",
            "const": "none"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "objective": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12000
          },
          "conditions": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12000
          },
          "context": {
            "type": "object",
            "properties": {
              "channel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "market": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "offer_band": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "spend_band": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "channel",
              "market",
              "offer_band",
              "spend_band"
            ],
            "additionalProperties": false
          },
          "alternatives": {
            "minItems": 2,
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "idea_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "version_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "source_reference": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 12000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "idea_id",
                "version_id",
                "source_reference"
              ],
              "additionalProperties": false
            }
          },
          "prior_campaign_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "name",
          "objective",
          "conditions",
          "context",
          "alternatives",
          "prior_campaign_id"
        ],
        "additionalProperties": false
      },
      "CampaignUpdate": {
        "type": "object",
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "campaign-update.v1.1"
          },
          "advisory_only": {
            "type": "boolean",
            "const": true
          },
          "gate_authority": {
            "type": "string",
            "const": "none"
          },
          "expected_revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "selected_version": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "idea_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "version_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "source_reference": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 12000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "idea_id",
                  "version_id",
                  "source_reference"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "measurement_plan_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "learning": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "learned": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12000
                  },
                  "next_test": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12000
                  }
                },
                "required": [
                  "learned",
                  "next_test"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "reminders": {
            "type": "boolean"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "expected_revision",
          "selected_version",
          "measurement_plan_id",
          "learning",
          "reminders"
        ],
        "additionalProperties": false
      },
      "Campaign": {
        "type": "object",
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "campaign.v1.1"
          },
          "advisory_only": {
            "type": "boolean",
            "const": true
          },
          "gate_authority": {
            "type": "string",
            "const": "none"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "objective": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12000
          },
          "conditions": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12000
          },
          "context": {
            "type": "object",
            "properties": {
              "channel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "market": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "offer_band": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "spend_band": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "channel",
              "market",
              "offer_band",
              "spend_band"
            ],
            "additionalProperties": false
          },
          "alternatives": {
            "minItems": 2,
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "idea_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "version_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "source_reference": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 12000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "idea_id",
                "version_id",
                "source_reference"
              ],
              "additionalProperties": false
            }
          },
          "prior_campaign_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "selected_version": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "idea_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "version_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "source_reference": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 12000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "idea_id",
                  "version_id",
                  "source_reference"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "measurement_plan_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "learning": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "learned": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12000
                  },
                  "next_test": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12000
                  }
                },
                "required": [
                  "learned",
                  "next_test"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "reminders": {
            "type": "boolean"
          },
          "reference_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "reference_digest": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "registered_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "name",
          "objective",
          "conditions",
          "context",
          "alternatives",
          "prior_campaign_id",
          "id",
          "revision",
          "created_at",
          "updated_at",
          "selected_version",
          "measurement_plan_id",
          "learning",
          "reminders",
          "reference_id",
          "reference_digest",
          "registered_at"
        ],
        "additionalProperties": false
      },
      "CampaignList": {
        "type": "object",
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "campaign-list.v1.1"
          },
          "advisory_only": {
            "type": "boolean",
            "const": true
          },
          "gate_authority": {
            "type": "string",
            "const": "none"
          },
          "campaigns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Campaign"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "campaigns",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "CampaignBenchmark": {
        "type": "object",
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "campaign-benchmark.v1.1"
          },
          "advisory_only": {
            "type": "boolean",
            "const": true
          },
          "gate_authority": {
            "type": "string",
            "const": "none"
          },
          "campaign_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "result_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "available",
              "unavailable"
            ]
          },
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12000
          },
          "reference_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "reference_digest": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "score": {
            "type": [
              "string",
              "null"
            ]
          },
          "lower": {
            "type": [
              "string",
              "null"
            ]
          },
          "upper": {
            "type": [
              "string",
              "null"
            ]
          },
          "components": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "value": {
                  "type": "string"
                },
                "position": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "value",
                "position"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "campaign_id",
          "result_id",
          "state",
          "reason",
          "reference_id",
          "reference_digest",
          "score",
          "lower",
          "upper",
          "components"
        ],
        "additionalProperties": false
      },
      "CampaignSnapshot": {
        "type": "object",
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "campaign-snapshot.v1.1"
          },
          "advisory_only": {
            "type": "boolean",
            "const": true
          },
          "gate_authority": {
            "type": "string",
            "const": "none"
          },
          "campaign": {
            "$ref": "#/components/schemas/Campaign"
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Campaign"
            }
          },
          "choices": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "object",
                  "properties": {
                    "idea_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "version_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "source_reference": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 12000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "idea_id",
                    "version_id",
                    "source_reference"
                  ],
                  "additionalProperties": false
                },
                "words": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 12000
                },
                "confirmed": {
                  "type": "boolean"
                },
                "review_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "review_score": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "version",
                "words",
                "confirmed",
                "review_id",
                "review_score"
              ],
              "additionalProperties": false
            }
          },
          "comparison_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "plans": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "version": {
                  "type": "object",
                  "properties": {
                    "idea_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "version_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "source_reference": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 12000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "idea_id",
                    "version_id",
                    "source_reference"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "id",
                "version"
              ],
              "additionalProperties": false
            }
          },
          "result_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "completed": {
            "type": "boolean"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "campaign",
          "history",
          "choices",
          "comparison_id",
          "plans",
          "result_id",
          "completed",
          "due_at"
        ],
        "additionalProperties": false
      },
      "PlatformKeyCreateV11": {
        "type": "object",
        "additionalProperties": false,
        "description": "the Platform Key request with the nine contract 1.1 families. campaigns admits the six campaign-cycle operations; events admits the pull event feed. The frozen PlatformKeyCreate keeps its seven families for 1.0 callers. Advisory only.",
        "properties": {
          "schema_version": {
            "const": "platform-key-create.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "label": {
            "type": "string",
            "minLength": 1
          },
          "entitlements": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "ideas",
                "score",
                "compare",
                "measure",
                "records",
                "corrections",
                "design_examples",
                "campaigns",
                "events"
              ]
            }
          },
          "ceiling_usd": {
            "$ref": "#/components/schemas/Decimal"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "label",
          "entitlements",
          "ceiling_usd",
          "expires_at"
        ]
      },
      "PlatformKeyV11": {
        "type": "object",
        "additionalProperties": false,
        "description": "a Platform Key with the nine contract 1.1 families. Served when the request selects contract 1.1 or the key holds a 1.1-only family; secret_once is returned by the first successful mint only. Advisory only.",
        "properties": {
          "schema_version": {
            "const": "platform-key.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "label": {
            "type": "string",
            "minLength": 1
          },
          "entitlements": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "ideas",
                "score",
                "compare",
                "measure",
                "records",
                "corrections",
                "design_examples",
                "campaigns",
                "events"
              ]
            }
          },
          "ceiling_usd": {
            "$ref": "#/components/schemas/Decimal"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "revoked"
            ]
          },
          "secret_once": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "label",
          "entitlements",
          "ceiling_usd",
          "expires_at",
          "id",
          "state",
          "secret_once"
        ]
      },
      "EventEntry": {
        "type": "object",
        "additionalProperties": false,
        "description": "one announcement from the signed outbox, exactly as it was signed and stored, with the instant the outbox recorded it. References and public facts only.",
        "properties": {
          "event": {
            "$ref": "#/components/schemas/CloudEvent"
          },
          "recorded_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "event",
          "recorded_at"
        ]
      },
      "EventList": {
        "type": "object",
        "additionalProperties": false,
        "description": "up to fifty of the tenant's signed outbox events, oldest first in (recorded_at, id) order. next_cursor is opaque and bound to the tenant; pass it as after to continue, and keep the last one to poll for later events. Advisory only.",
        "properties": {
          "schema_version": {
            "const": "event-list.v1.1"
          },
          "advisory_only": {
            "const": true
          },
          "gate_authority": {
            "const": "none"
          },
          "events": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "$ref": "#/components/schemas/EventEntry"
            }
          },
          "next_cursor": {
            "type": "string",
            "minLength": 1
          },
          "has_more": {
            "type": "boolean"
          },
          "as_of": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "schema_version",
          "advisory_only",
          "gate_authority",
          "events",
          "next_cursor",
          "has_more",
          "as_of"
        ]
      }
    }
  },
  "tags": [
    {
      "name": "Ideas",
      "description": "Save the person's own words and read them back by exact version."
    },
    {
      "name": "Readings",
      "description": "What NeoNumber read from the words; confirm or correct it as a new version."
    },
    {
      "name": "Reviews",
      "description": "A judgment of one exact version. A Score is never a probability."
    },
    {
      "name": "Comparisons",
      "description": "Two or three versions judged for one objective under shared conditions."
    },
    {
      "name": "Measurements",
      "description": "Agree what to measure before the work starts."
    },
    {
      "name": "Results",
      "description": "What was measured, per objective. Never combined with a Review Score."
    },
    {
      "name": "Campaigns",
      "description": "Two or three ideas compared for one objective, the choice, and the Result benchmarked after."
    },
    {
      "name": "Records",
      "description": "Reviews and Results kept separately by kind and domain."
    },
    {
      "name": "Events",
      "description": "Signed announcements of your own work, oldest first; you pull them with a cursor."
    },
    {
      "name": "Methods",
      "description": "The declared method and version behind each Review."
    },
    {
      "name": "Forecast Questions",
      "description": "Sealed forecasts and their resolutions; outside the campaign workflow."
    },
    {
      "name": "Public",
      "description": "Projections a workspace owner chose to publish; no credential needed."
    },
    {
      "name": "Workspaces (web session)",
      "description": "Needs a signed-in workspace session; a Platform Key cannot call it."
    },
    {
      "name": "Developer keys (web session)",
      "description": "Needs a signed-in workspace session; a Platform Key cannot call it."
    },
    {
      "name": "Activity (web session)",
      "description": "Needs a signed-in workspace session; a Platform Key cannot call it."
    },
    {
      "name": "Export (web session)",
      "description": "Needs a signed-in workspace session; a Platform Key cannot call it."
    },
    {
      "name": "Publication (web session)",
      "description": "Needs a signed-in workspace session; a Platform Key cannot call it."
    },
    {
      "name": "Billing (web session)",
      "description": "Needs a signed-in workspace session; a Platform Key cannot call it."
    },
    {
      "name": "Connections (web session)",
      "description": "Needs a signed-in workspace session; a Platform Key cannot call it."
    },
    {
      "name": "Forecast library (web session)",
      "description": "Needs a signed-in workspace session; a Platform Key cannot call it."
    },
    {
      "name": "Forecast Questions (web session)",
      "description": "Needs a signed-in workspace session; a Platform Key cannot call it."
    },
    {
      "name": "Operator",
      "description": "Needs a signed-in workspace session; a Platform Key cannot call it."
    },
    {
      "name": "Other",
      "description": "Needs a signed-in workspace session; a Platform Key cannot call it."
    }
  ]
}
