{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mumo-chat/json-schema/mumo-chat-ack-schema.json",
  "title": "Ack",
  "description": "Returned by both write operations. The ack confirms the round row committed and tells you where to poll — it does not contain results. If the ack reached you, the round committed; if it did not, replaying your idempotency key resolves the uncertainty.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mumo-chat-openapi.yml#/components/schemas/Ack",
  "type": "object",
  "required": [
    "session_id",
    "round_id",
    "round_index",
    "status",
    "idempotency_key",
    "client_request_id",
    "poll_after_ms",
    "progress_url",
    "progress_version"
  ],
  "properties": {
    "session_id": {
      "type": "string",
      "description": "Session UUID."
    },
    "round_id": {
      "type": "string",
      "description": "UUID of the round just committed."
    },
    "round_index": {
      "type": "integer",
      "description": "Zero-based index of the committed round."
    },
    "status": {
      "type": "string",
      "enum": [
        "processing"
      ]
    },
    "idempotency_key": {
      "type": [
        "string",
        "null"
      ],
      "description": "The key used — echoed from your header, or the server-generated UUID when you omitted it. Persist it for retry safety."
    },
    "client_request_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Echoed from `X-Client-Request-Id` when supplied."
    },
    "poll_after_ms": {
      "type": "integer",
      "description": "Suggested delay before the first poll of `progress_url`."
    },
    "progress_url": {
      "type": "string",
      "description": "Path to poll for terminal state, relative to the server URL."
    },
    "progress_version": {
      "type": "integer",
      "description": "Monotonic counter on the round row. Diff it across polls to short-circuit no-op reads."
    },
    "disclosure": {
      "type": [
        "string",
        "null"
      ],
      "description": "Present only when the resolved platform-improvement consent decision carries a disclosure string."
    }
  }
}