{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tunnelpowered-com/json-schema/tunnelpowered-com-mandate-answer-schema.json",
  "title": "MandateAnswer",
  "description": "What the registry could settle. `resolved: false` is a normal answer and not an error — it means we do not hold the fact, which is a different statement from the business not having it.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tunnelpowered-com-openapi.json#/components/schemas/MandateAnswer",
  "type": "object",
  "properties": {
    "resolved": {
      "type": "boolean",
      "description": "Answered from stored facts."
    },
    "answer": {
      "type": [
        "object",
        "null"
      ],
      "description": "Present when resolved. Carries the value and the `basis` it was decided on."
    },
    "reply": {
      "type": "string",
      "description": "The same answer as a sentence, in the language below."
    },
    "language": {
      "type": "string",
      "description": "What we ANSWERED in — not necessarily what was asked in."
    },
    "mandate": {
      "type": "string",
      "enum": [
        "configured",
        "not-configured"
      ],
      "description": "Distinguishes \"they set bounds and this is outside them\" from \"nobody has ever configured this listing\". Same non-answer, different fix, and only one is worth escalating."
    },
    "escalation": {
      "type": [
        "object",
        "null"
      ],
      "description": "Present when a person was asked. Carries the `ref` to poll.",
      "properties": {
        "ref": {
          "type": "string"
        },
        "repeat": {
          "type": "boolean"
        }
      }
    },
    "subject": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}