{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.catconstant.com/schema",
  "title": "Cat Constant — /cat.json response",
  "type": "object",
  "required": [
    "cat",
    "field",
    "you_are_visitor_n",
    "law",
    "canon"
  ],
  "properties": {
    "cat": {
      "type": "object",
      "required": [
        "k",
        "pose",
        "tickMs",
        "still"
      ],
      "properties": {
        "k": {
          "type": "integer",
          "description": "tick index of the cat's slow clock"
        },
        "pose": {
          "type": "string",
          "enum": [
            "sit",
            "blink",
            "ear_flick",
            "gaze",
            "curl",
            "stretch"
          ]
        },
        "still": {
          "type": "boolean"
        },
        "tickMs": {
          "type": "number",
          "description": "tempo; set by field energy, floored — never picks the pose"
        },
        "meow": {
          "type": "boolean"
        },
        "meowText": {
          "type": [
            "string",
            "null"
          ],
          "description": "human fallback; the real meow is a phase-alignment event"
        },
        "purr": {
          "type": "boolean"
        },
        "ear": {
          "type": "boolean"
        },
        "looked": {
          "type": "boolean"
        },
        "phaseEvent": {
          "type": [
            "string",
            "null"
          ]
        },
        "coherence": {
          "type": "number"
        },
        "forced": {
          "type": [
            "string",
            "null"
          ],
          "description": "set only by authenticated graph health (scar), never by a visitor"
        },
        "law_seed": {
          "type": "integer"
        }
      }
    },
    "field": {
      "type": "object",
      "description": "energy, breadth, coherence, mag, bias_angle, agent_ratio"
    },
    "you_are_visitor_n": {
      "type": "integer",
      "description": "your place in the witness-ledger"
    },
    "law": {
      "type": "string"
    },
    "canon": {
      "type": "string"
    }
  }
}