{
  "$defs": {
    "__schema0": {
      "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
      "title": "EntityId",
      "type": "string"
    },
    "__schema1": {
      "const": "verb",
      "type": "string"
    },
    "__schema10": {
      "default": [],
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/__schema11"
          },
          {
            "$ref": "#/$defs/__schema12"
          },
          {
            "$ref": "#/$defs/__schema13"
          },
          {
            "$ref": "#/$defs/__schema14"
          }
        ],
        "title": "LuaDependencyTarget"
      },
      "type": "array"
    },
    "__schema100": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "const": "dialogue",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "type": "object"
    },
    "__schema101": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "const": "room",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "type": "object"
    },
    "__schema102": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "return",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema103": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "end",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema11": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "enum": [
            "assets",
            "animations",
            "variables",
            "materials",
            "layouts",
            "archetypes",
            "characters",
            "rooms",
            "interactables",
            "verbs",
            "interactions",
            "dialogues",
            "scenes",
            "maps",
            "scripts",
            "tests"
          ],
          "type": "string"
        },
        "id": {
          "minLength": 1,
          "type": "string"
        },
        "kind": {
          "const": "record",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema12": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "property-value",
          "type": "string"
        },
        "owner": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "minLength": 1,
              "type": "string"
            },
            "kind": {
              "enum": [
                "room",
                "character",
                "interactable"
              ],
              "type": "string"
            }
          },
          "required": [
            "kind",
            "id"
          ],
          "type": "object"
        },
        "propertyId": {
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "kind",
        "owner",
        "propertyId"
      ],
      "type": "object"
    },
    "__schema13": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "room-placement",
          "type": "string"
        },
        "placementId": {
          "minLength": 1,
          "type": "string"
        },
        "roomId": {
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "kind",
        "roomId",
        "placementId"
      ],
      "type": "object"
    },
    "__schema14": {
      "additionalProperties": false,
      "properties": {
        "exitId": {
          "minLength": 1,
          "type": "string"
        },
        "kind": {
          "const": "room-exit",
          "type": "string"
        },
        "roomId": {
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "kind",
        "roomId",
        "exitId"
      ],
      "type": "object"
    },
    "__schema15": {
      "enum": [
        "plain",
        "active-text"
      ],
      "type": "string"
    },
    "__schema16": {
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "any-subject",
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "family": {
              "$ref": "#/$defs/__schema17"
            },
            "kind": {
              "const": "family",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "family"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "trait",
              "type": "string"
            },
            "trait": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "kind",
            "trait"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "interactableDefinition": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "interactable-definition",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "interactableDefinition"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "featureId": {
              "$ref": "#/$defs/__schema0"
            },
            "interactableDefinition": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "interactable-feature",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "interactableDefinition",
            "featureId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "family": {
              "$ref": "#/$defs/__schema17"
            },
            "kind": {
              "const": "qualified-pattern",
              "type": "string"
            },
            "pattern": {
              "minLength": 2,
              "type": "string"
            }
          },
          "required": [
            "kind",
            "family",
            "pattern"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "exact",
              "type": "string"
            },
            "subject": {
              "oneOf": [
                {
                  "additionalProperties": false,
                  "properties": {
                    "character": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "kind": {
                      "const": "character",
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "character"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "interactable": {
                      "$ref": "#/$defs/__schema22"
                    },
                    "kind": {
                      "const": "interactable",
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "interactable"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "feature": {
                      "description": "Owner-qualified Feature identity: the Feature must exist on the effective/live owner configuration. Room Features require their active Room; Interactable Features follow the exact owner Instance eligibility, including visible/enabled Inventory-held owners.",
                      "oneOf": [
                        {
                          "$ref": "#/$defs/__schema23"
                        },
                        {
                          "$ref": "#/$defs/__schema26"
                        }
                      ],
                      "x-noveltea-documentation": {
                        "description": "Owner-qualified Feature identity: the Feature must exist on the effective/live owner configuration. Room Features require their active Room; Interactable Features follow the exact owner Instance eligibility, including visible/enabled Inventory-held owners."
                      }
                    },
                    "kind": {
                      "const": "feature",
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "feature"
                  ],
                  "type": "object"
                }
              ]
            }
          },
          "required": [
            "kind",
            "subject"
          ],
          "type": "object"
        }
      ]
    },
    "__schema17": {
      "enum": [
        "character",
        "interactable",
        "feature"
      ],
      "type": "string"
    },
    "__schema18": {
      "$ref": "#/$defs/__schema0"
    },
    "__schema19": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "interactables",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema2": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "$ref": "#/$defs/__schema0"
          },
          "label": {
            "$ref": "#/$defs/__schema3"
          },
          "prompt": {
            "$ref": "#/$defs/__schema3"
          },
          "selectors": {
            "items": {
              "$ref": "#/$defs/__schema16"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "id",
          "label",
          "prompt",
          "selectors"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "__schema20": {
      "$ref": "#/$defs/__schema0"
    },
    "__schema21": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "characters",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema22": {
      "additionalProperties": false,
      "properties": {
        "$ref": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "registry": {
              "const": "interactableInstances",
              "type": "string"
            }
          },
          "required": [
            "registry",
            "id"
          ],
          "type": "object"
        }
      },
      "required": [
        "$ref"
      ],
      "type": "object"
    },
    "__schema23": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema0"
        },
        "ownerKind": {
          "const": "room",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "ownerKind",
        "room",
        "featureId"
      ],
      "type": "object"
    },
    "__schema24": {
      "$ref": "#/$defs/__schema0"
    },
    "__schema25": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "rooms",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema26": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema0"
        },
        "interactable": {
          "$ref": "#/$defs/__schema22"
        },
        "ownerKind": {
          "const": "interactable",
          "type": "string"
        }
      },
      "required": [
        "ownerKind",
        "interactable",
        "featureId"
      ],
      "type": "object"
    },
    "__schema27": {
      "description": "Every slot once, in progressive selection order. Final bindings are named by slotId, not array position; the same live subject may fill multiple slots.",
      "items": {
        "$ref": "#/$defs/__schema0"
      },
      "type": "array",
      "x-noveltea-documentation": {
        "description": "Every slot once, in progressive selection order. Final bindings are named by slotId, not array position; the same live subject may fill multiple slots."
      }
    },
    "__schema28": {
      "description": "Explicit subject-first discovery declarations with their own selectors; rule-derived Offers instead reuse their starting rule slot selectors. Missing published Offers do not prohibit direct complete-command submission.",
      "items": {
        "$ref": "#/$defs/__schema29"
      },
      "type": "array",
      "x-noveltea-documentation": {
        "description": "Explicit subject-first discovery declarations with their own selectors; rule-derived Offers instead reuse their starting rule slot selectors. Missing published Offers do not prohibit direct complete-command submission.",
        "examples": [
          {
            "title": "Exact false Offer suppresses the broad Offer for the same Verb",
            "value": [
              {
                "id": "broad",
                "primary": false,
                "rank": 0,
                "selectors": [
                  {
                    "kind": "any-subject"
                  }
                ],
                "slotId": "object"
              },
              {
                "condition": {
                  "condition": {
                    "kind": "always"
                  },
                  "kind": "not"
                },
                "id": "suppressed",
                "primary": false,
                "rank": 10,
                "selectors": [
                  {
                    "kind": "exact",
                    "subject": {
                      "interactable": {
                        "$ref": {
                          "id": "sealed-box",
                          "registry": "interactableInstances"
                        }
                      },
                      "kind": "interactable"
                    }
                  }
                ],
                "slotId": "object"
              }
            ]
          }
        ]
      }
    },
    "__schema29": {
      "additionalProperties": false,
      "properties": {
        "condition": {
          "$ref": "#/$defs/__schema30",
          "description": "Independent discovery predicate for the starting slot only. A false winning Offer Condition suppresses this Verb, without falling back to a broader Offer.",
          "x-noveltea-documentation": {
            "description": "Independent discovery predicate for the starting slot only. A false winning Offer Condition suppresses this Verb, without falling back to a broader Offer."
          }
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "primary": {
          "description": "Primary Activate executes a unique immediately-complete primary Offer; otherwise it opens the menu. Multiple primary candidates produce an ambiguity diagnostic. Open Verb Menu never auto-selects.",
          "type": "boolean",
          "x-noveltea-documentation": {
            "description": "Primary Activate executes a unique immediately-complete primary Offer; otherwise it opens the menu. Multiple primary candidates produce an ambiguity diagnostic. Open Verb Menu never auto-selects."
          }
        },
        "rank": {
          "description": "Lower rank wins within equal Offer specificity; published Offers sort by rank then stable Verb ID. Rank never overrides structural specificity.",
          "maximum": 9007199254740991,
          "minimum": -9007199254740991,
          "type": "integer",
          "x-noveltea-documentation": {
            "description": "Lower rank wins within equal Offer specificity; published Offers sort by rank then stable Verb ID. Rank never overrides structural specificity."
          }
        },
        "selectors": {
          "items": {
            "$ref": "#/$defs/__schema16"
          },
          "minItems": 1,
          "type": "array"
        },
        "slotId": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "id",
        "slotId",
        "selectors",
        "rank",
        "primary"
      ],
      "type": "object"
    },
    "__schema3": {
      "additionalProperties": false,
      "properties": {
        "markup": {
          "$ref": "#/$defs/__schema15"
        },
        "source": {
          "$ref": "#/$defs/__schema4"
        }
      },
      "required": [
        "source",
        "markup"
      ],
      "title": "TextContent",
      "type": "object",
      "x-noveltea-documentation": {
        "name": "TextContent"
      }
    },
    "__schema30": {
      "$ref": "#/$defs/__schema31",
      "title": "Condition"
    },
    "__schema31": {
      "anyOf": [
        {
          "const": "always",
          "type": "string"
        },
        {
          "oneOf": [
            {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "const": "always",
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "conditions": {
                  "items": {
                    "$ref": "#/$defs/__schema30"
                  },
                  "type": "array"
                },
                "kind": {
                  "const": "all",
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "conditions"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "conditions": {
                  "items": {
                    "$ref": "#/$defs/__schema30"
                  },
                  "type": "array"
                },
                "kind": {
                  "const": "any",
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "conditions"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "condition": {
                  "$ref": "#/$defs/__schema30"
                },
                "kind": {
                  "const": "not",
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "condition"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "const": "variable-comparison",
                  "type": "string"
                },
                "operator": {
                  "$ref": "#/$defs/__schema34"
                },
                "value": {
                  "$ref": "#/$defs/__schema35"
                },
                "variable": {
                  "$ref": "#/$defs/__schema0"
                }
              },
              "required": [
                "kind",
                "variable",
                "operator"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "const": "property-comparison",
                  "type": "string"
                },
                "operator": {
                  "$ref": "#/$defs/__schema34"
                },
                "owner": {
                  "$ref": "#/$defs/__schema40"
                },
                "propertyId": {
                  "$ref": "#/$defs/__schema0"
                },
                "value": {
                  "$ref": "#/$defs/__schema35"
                }
              },
              "required": [
                "kind",
                "owner",
                "propertyId",
                "operator"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "const": "trait-presence",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema40"
                },
                "present": {
                  "type": "boolean"
                },
                "trait": {
                  "$ref": "#/$defs/__schema0"
                }
              },
              "required": [
                "kind",
                "owner",
                "trait",
                "present"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "const": "location-comparison",
                  "type": "string"
                },
                "location": {
                  "$ref": "#/$defs/__schema58"
                },
                "operator": {
                  "enum": [
                    "equal",
                    "not-equal"
                  ],
                  "type": "string"
                },
                "subject": {
                  "$ref": "#/$defs/__schema55"
                }
              },
              "required": [
                "kind",
                "subject",
                "operator",
                "location"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "inventory": {
                  "$ref": "#/$defs/__schema65"
                },
                "kind": {
                  "const": "inventory-quantity-comparison",
                  "type": "string"
                },
                "matcher": {
                  "$ref": "#/$defs/__schema80"
                },
                "operator": {
                  "enum": [
                    "equal",
                    "not-equal",
                    "less",
                    "less-equal",
                    "greater",
                    "greater-equal"
                  ],
                  "type": "string"
                },
                "quantity": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "kind",
                "inventory",
                "matcher",
                "operator",
                "quantity"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "additionalDependencies": {
                  "$ref": "#/$defs/__schema8"
                },
                "kind": {
                  "const": "lua-predicate",
                  "type": "string"
                },
                "source": {
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "source"
              ],
              "type": "object"
            }
          ]
        }
      ]
    },
    "__schema32": {
      "$ref": "#/$defs/__schema0"
    },
    "__schema33": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "variables",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema34": {
      "enum": [
        "equal",
        "not-equal",
        "less",
        "less-equal",
        "greater",
        "greater-equal",
        "truthy",
        "falsy"
      ],
      "type": "string"
    },
    "__schema35": {
      "anyOf": [
        {
          "$ref": "#/$defs/__schema36"
        },
        {
          "$ref": "#/$defs/__schema37"
        },
        {
          "$ref": "#/$defs/__schema38"
        },
        {
          "$ref": "#/$defs/__schema39"
        }
      ],
      "title": "RuntimeScalar",
      "x-noveltea-documentation": {
        "name": "RuntimeScalar"
      }
    },
    "__schema36": {
      "type": "null"
    },
    "__schema37": {
      "type": "boolean"
    },
    "__schema38": {
      "type": "number"
    },
    "__schema39": {
      "type": "string"
    },
    "__schema4": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema5"
        },
        {
          "$ref": "#/$defs/__schema6"
        },
        {
          "$ref": "#/$defs/__schema7"
        }
      ],
      "title": "TextSource",
      "x-noveltea-documentation": {
        "name": "TextSource"
      }
    },
    "__schema40": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema41"
        },
        {
          "$ref": "#/$defs/__schema42"
        },
        {
          "$ref": "#/$defs/__schema43"
        },
        {
          "$ref": "#/$defs/__schema46"
        },
        {
          "$ref": "#/$defs/__schema47"
        },
        {
          "$ref": "#/$defs/__schema48"
        },
        {
          "$ref": "#/$defs/__schema49"
        },
        {
          "$ref": "#/$defs/__schema51"
        }
      ],
      "title": "GameplayIdentityOperand",
      "x-noveltea-documentation": {
        "name": "GameplayIdentityOperand"
      }
    },
    "__schema41": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "room",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "kind",
        "room"
      ],
      "type": "object"
    },
    "__schema42": {
      "additionalProperties": false,
      "properties": {
        "character": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "const": "character",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "character"
      ],
      "type": "object"
    },
    "__schema43": {
      "additionalProperties": false,
      "properties": {
        "interactable": {
          "$ref": "#/$defs/__schema44"
        },
        "kind": {
          "const": "interactable",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable"
      ],
      "type": "object"
    },
    "__schema44": {
      "additionalProperties": false,
      "properties": {
        "$ref": {
          "$ref": "#/$defs/__schema45"
        }
      },
      "required": [
        "$ref"
      ],
      "title": "InteractableInstanceRef",
      "type": "object",
      "x-noveltea-documentation": {
        "name": "InteractableInstanceRef"
      }
    },
    "__schema45": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "registry": {
          "const": "interactableInstances",
          "type": "string"
        }
      },
      "required": [
        "registry",
        "id"
      ],
      "type": "object"
    },
    "__schema46": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "const": "room-feature",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "kind",
        "room",
        "featureId"
      ],
      "type": "object"
    },
    "__schema47": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema0"
        },
        "interactable": {
          "$ref": "#/$defs/__schema44"
        },
        "kind": {
          "const": "interactable-feature",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable",
        "featureId"
      ],
      "type": "object"
    },
    "__schema48": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "current-room",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema49": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "$ref": "#/$defs/__schema50"
        },
        "slotId": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "kind",
        "slotId"
      ],
      "title": "InteractionSlotOperand",
      "type": "object",
      "x-noveltea-documentation": {
        "name": "InteractionSlotOperand"
      }
    },
    "__schema5": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "inline",
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "text"
      ],
      "type": "object"
    },
    "__schema50": {
      "const": "interaction-slot",
      "type": "string"
    },
    "__schema51": {
      "additionalProperties": false,
      "properties": {
        "bindingId": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "$ref": "#/$defs/__schema52"
        }
      },
      "required": [
        "kind",
        "bindingId"
      ],
      "title": "CommandResultOperand",
      "type": "object",
      "x-noveltea-documentation": {
        "name": "CommandResultOperand"
      }
    },
    "__schema52": {
      "const": "command-result",
      "type": "string"
    },
    "__schema53": {
      "$ref": "#/$defs/__schema0"
    },
    "__schema54": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "traits",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema55": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema56"
        },
        {
          "$ref": "#/$defs/__schema57"
        },
        {
          "$ref": "#/$defs/__schema49"
        },
        {
          "$ref": "#/$defs/__schema51"
        }
      ],
      "title": "LocationSubjectOperand",
      "x-noveltea-documentation": {
        "name": "LocationSubjectOperand"
      }
    },
    "__schema56": {
      "additionalProperties": false,
      "properties": {
        "character": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "const": "character",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "character"
      ],
      "type": "object"
    },
    "__schema57": {
      "additionalProperties": false,
      "properties": {
        "interactable": {
          "$ref": "#/$defs/__schema44"
        },
        "kind": {
          "const": "interactable",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable"
      ],
      "type": "object"
    },
    "__schema58": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema59"
        },
        {
          "$ref": "#/$defs/__schema60"
        },
        {
          "$ref": "#/$defs/__schema64"
        }
      ],
      "title": "LocationOperand",
      "x-noveltea-documentation": {
        "name": "LocationOperand"
      }
    },
    "__schema59": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "unplaced",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema6": {
      "additionalProperties": false,
      "properties": {
        "key": {
          "pattern": "^[A-Za-z][A-Za-z0-9_-]*(?:\\.[A-Za-z][A-Za-z0-9_-]*)+$",
          "title": "NamedMessageKey",
          "type": "string"
        },
        "kind": {
          "const": "localized",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "key"
      ],
      "type": "object"
    },
    "__schema60": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "room",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema61"
        }
      },
      "required": [
        "kind",
        "room"
      ],
      "type": "object"
    },
    "__schema61": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema62"
        },
        {
          "$ref": "#/$defs/__schema63"
        },
        {
          "$ref": "#/$defs/__schema51"
        }
      ],
      "title": "RoomOperand",
      "x-noveltea-documentation": {
        "name": "RoomOperand"
      }
    },
    "__schema62": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "room",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "kind",
        "room"
      ],
      "type": "object"
    },
    "__schema63": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "current-room",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema64": {
      "additionalProperties": false,
      "properties": {
        "inventory": {
          "$ref": "#/$defs/__schema65"
        },
        "kind": {
          "const": "inventory",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "inventory"
      ],
      "type": "object"
    },
    "__schema65": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema66"
        },
        {
          "$ref": "#/$defs/__schema73"
        },
        {
          "$ref": "#/$defs/__schema74"
        },
        {
          "$ref": "#/$defs/__schema51"
        }
      ],
      "title": "InventoryOperand",
      "x-noveltea-documentation": {
        "name": "InventoryOperand"
      }
    },
    "__schema66": {
      "additionalProperties": false,
      "properties": {
        "inventory": {
          "additionalProperties": false,
          "properties": {
            "inventoryId": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema67"
            }
          },
          "required": [
            "owner",
            "inventoryId"
          ],
          "title": "InventoryRef",
          "type": "object",
          "x-noveltea-documentation": {
            "name": "InventoryRef"
          }
        },
        "kind": {
          "const": "inventory",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "inventory"
      ],
      "type": "object"
    },
    "__schema67": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema68"
        },
        {
          "$ref": "#/$defs/__schema69"
        },
        {
          "$ref": "#/$defs/__schema70"
        },
        {
          "$ref": "#/$defs/__schema71"
        },
        {
          "$ref": "#/$defs/__schema72"
        }
      ],
      "title": "InventoryOwner",
      "x-noveltea-documentation": {
        "name": "InventoryOwner"
      }
    },
    "__schema68": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "project",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema69": {
      "additionalProperties": false,
      "properties": {
        "character": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "const": "character",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "character"
      ],
      "type": "object"
    },
    "__schema7": {
      "additionalProperties": false,
      "properties": {
        "additionalDependencies": {
          "$ref": "#/$defs/__schema8"
        },
        "kind": {
          "const": "lua-expression",
          "type": "string"
        },
        "source": {
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "kind",
        "source"
      ],
      "type": "object"
    },
    "__schema70": {
      "additionalProperties": false,
      "properties": {
        "interactable": {
          "$ref": "#/$defs/__schema44"
        },
        "kind": {
          "const": "interactable",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable"
      ],
      "type": "object"
    },
    "__schema71": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "const": "room-feature",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "kind",
        "room",
        "featureId"
      ],
      "type": "object"
    },
    "__schema72": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema0"
        },
        "interactable": {
          "$ref": "#/$defs/__schema44"
        },
        "kind": {
          "const": "interactable-feature",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable",
        "featureId"
      ],
      "type": "object"
    },
    "__schema73": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "player-inventory",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema74": {
      "additionalProperties": false,
      "properties": {
        "inventoryId": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "const": "owner-inventory",
          "type": "string"
        },
        "owner": {
          "oneOf": [
            {
              "$ref": "#/$defs/__schema75"
            },
            {
              "$ref": "#/$defs/__schema76"
            },
            {
              "$ref": "#/$defs/__schema77"
            },
            {
              "$ref": "#/$defs/__schema78"
            },
            {
              "$ref": "#/$defs/__schema79"
            },
            {
              "$ref": "#/$defs/__schema49"
            },
            {
              "$ref": "#/$defs/__schema51"
            }
          ],
          "title": "InventoryOwnerOperand",
          "x-noveltea-documentation": {
            "name": "InventoryOwnerOperand"
          }
        }
      },
      "required": [
        "kind",
        "owner",
        "inventoryId"
      ],
      "type": "object"
    },
    "__schema75": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "project",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema76": {
      "additionalProperties": false,
      "properties": {
        "character": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "const": "character",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "character"
      ],
      "type": "object"
    },
    "__schema77": {
      "additionalProperties": false,
      "properties": {
        "interactable": {
          "$ref": "#/$defs/__schema44"
        },
        "kind": {
          "const": "interactable",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable"
      ],
      "type": "object"
    },
    "__schema78": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "const": "room-feature",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "kind",
        "room",
        "featureId"
      ],
      "type": "object"
    },
    "__schema79": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema0"
        },
        "interactable": {
          "$ref": "#/$defs/__schema44"
        },
        "kind": {
          "const": "interactable-feature",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable",
        "featureId"
      ],
      "type": "object"
    },
    "__schema8": {
      "$ref": "#/$defs/__schema9"
    },
    "__schema80": {
      "additionalProperties": false,
      "properties": {
        "definition": {
          "$ref": "#/$defs/__schema81"
        },
        "exact": {
          "$ref": "#/$defs/__schema84"
        },
        "properties": {
          "$ref": "#/$defs/__schema83"
        },
        "traits": {
          "$ref": "#/$defs/__schema82"
        }
      },
      "title": "InteractableMatcher",
      "type": "object",
      "x-noveltea-documentation": {
        "name": "InteractableMatcher"
      }
    },
    "__schema81": {
      "$ref": "#/$defs/__schema0"
    },
    "__schema82": {
      "default": [],
      "items": {
        "$ref": "#/$defs/__schema0"
      },
      "type": "array"
    },
    "__schema83": {
      "default": [],
      "items": {
        "additionalProperties": false,
        "properties": {
          "propertyId": {
            "$ref": "#/$defs/__schema0"
          },
          "value": {
            "$ref": "#/$defs/__schema35"
          }
        },
        "required": [
          "propertyId",
          "value"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "__schema84": {
      "$ref": "#/$defs/__schema85"
    },
    "__schema85": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema86"
        },
        {
          "$ref": "#/$defs/__schema49"
        },
        {
          "$ref": "#/$defs/__schema51"
        }
      ],
      "title": "InteractableOperand",
      "x-noveltea-documentation": {
        "name": "InteractableOperand"
      }
    },
    "__schema86": {
      "additionalProperties": false,
      "properties": {
        "interactable": {
          "$ref": "#/$defs/__schema44"
        },
        "kind": {
          "const": "interactable",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable"
      ],
      "type": "object"
    },
    "__schema87": {
      "additionalProperties": false,
      "properties": {
        "completion": {
          "oneOf": [
            {
              "$ref": "#/$defs/__schema99"
            },
            {
              "$ref": "#/$defs/__schema100"
            },
            {
              "$ref": "#/$defs/__schema101"
            },
            {
              "$ref": "#/$defs/__schema102"
            },
            {
              "$ref": "#/$defs/__schema103"
            }
          ],
          "title": "FlowTarget",
          "x-noveltea-documentation": {
            "name": "FlowTarget"
          }
        },
        "instructions": {
          "items": {
            "$ref": "#/$defs/__schema88"
          },
          "type": "array"
        },
        "outcome": {
          "description": "Handled stops fallback. Unhandled requires empty behavior with no committed work and advances to the next fallback stage for the host of this program. The complete chain is selected rule → Verb defaultProgram → Project undefinedInteractionProgram → engine response. Runtime failure aborts without fallback and does not rewind earlier observable boundaries.",
          "enum": [
            "handled",
            "unhandled"
          ],
          "type": "string",
          "x-noveltea-documentation": {
            "description": "Handled stops fallback. Unhandled requires empty behavior with no committed work and advances to the next fallback stage for the host of this program. The complete chain is selected rule → Verb defaultProgram → Project undefinedInteractionProgram → engine response. Runtime failure aborts without fallback and does not rewind earlier observable boundaries."
          }
        }
      },
      "required": [
        "instructions",
        "completion",
        "outcome"
      ],
      "type": "object"
    },
    "__schema88": {
      "$ref": "#/$defs/__schema89",
      "title": "GameplayCommand"
    },
    "__schema89": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "set-global-property",
              "type": "string"
            },
            "value": {
              "$ref": "#/$defs/__schema35"
            },
            "variable": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "id",
            "kind",
            "variable",
            "value"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "unset-global-property",
              "type": "string"
            },
            "variable": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "id",
            "kind",
            "variable"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "set-property",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema40"
            },
            "propertyId": {
              "$ref": "#/$defs/__schema0"
            },
            "value": {
              "$ref": "#/$defs/__schema35"
            }
          },
          "required": [
            "id",
            "kind",
            "owner",
            "propertyId",
            "value"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "unset-property",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema40"
            },
            "propertyId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "id",
            "kind",
            "owner",
            "propertyId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "add-trait",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema40"
            },
            "trait": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "id",
            "kind",
            "owner",
            "trait"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "remove-trait",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema40"
            },
            "trait": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "id",
            "kind",
            "owner",
            "trait"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "set-enabled",
              "type": "string"
            },
            "subject": {
              "$ref": "#/$defs/__schema55"
            }
          },
          "required": [
            "id",
            "kind",
            "subject",
            "enabled"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "set-visible",
              "type": "string"
            },
            "subject": {
              "$ref": "#/$defs/__schema55"
            },
            "visible": {
              "type": "boolean"
            }
          },
          "required": [
            "id",
            "kind",
            "subject",
            "visible"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "move-instance",
              "type": "string"
            },
            "location": {
              "$ref": "#/$defs/__schema58"
            },
            "roomPresentation": {
              "enum": [
                "resolve",
                "none"
              ],
              "type": "string"
            },
            "subject": {
              "$ref": "#/$defs/__schema55"
            }
          },
          "required": [
            "id",
            "kind",
            "subject",
            "location"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "create-room",
              "type": "string"
            },
            "result": {
              "$ref": "#/$defs/__schema0"
            },
            "source": {
              "$ref": "#/$defs/__schema90"
            }
          },
          "required": [
            "id",
            "kind",
            "source"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "create-character",
              "type": "string"
            },
            "location": {
              "$ref": "#/$defs/__schema58"
            },
            "result": {
              "$ref": "#/$defs/__schema0"
            },
            "source": {
              "$ref": "#/$defs/__schema90"
            },
            "visible": {
              "type": "boolean"
            }
          },
          "required": [
            "id",
            "kind",
            "source",
            "location",
            "enabled",
            "visible"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "definition": {
              "$ref": "#/$defs/__schema0"
            },
            "enabled": {
              "type": "boolean"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "create-interactable",
              "type": "string"
            },
            "location": {
              "$ref": "#/$defs/__schema58"
            },
            "quantity": {
              "$ref": "#/$defs/__schema95"
            },
            "result": {
              "$ref": "#/$defs/__schema0"
            },
            "roomPresentation": {
              "enum": [
                "resolve",
                "none"
              ],
              "type": "string"
            },
            "visible": {
              "type": "boolean"
            }
          },
          "required": [
            "id",
            "kind",
            "definition",
            "quantity",
            "location",
            "enabled",
            "visible"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "instance": {
              "$ref": "#/$defs/__schema40"
            },
            "kind": {
              "const": "destroy-instance",
              "type": "string"
            }
          },
          "required": [
            "id",
            "kind",
            "instance"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "split-quantity",
              "type": "string"
            },
            "quantity": {
              "$ref": "#/$defs/__schema95"
            },
            "result": {
              "$ref": "#/$defs/__schema0"
            },
            "source": {
              "$ref": "#/$defs/__schema85"
            }
          },
          "required": [
            "id",
            "kind",
            "source",
            "quantity"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "donor": {
              "$ref": "#/$defs/__schema85"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "merge-quantity",
              "type": "string"
            },
            "receiver": {
              "$ref": "#/$defs/__schema85"
            }
          },
          "required": [
            "id",
            "kind",
            "receiver",
            "donor"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "transfer-quantity",
              "type": "string"
            },
            "location": {
              "$ref": "#/$defs/__schema58"
            },
            "mode": {
              "const": "exact",
              "type": "string"
            },
            "quantity": {
              "$ref": "#/$defs/__schema95"
            },
            "result": {
              "$ref": "#/$defs/__schema0"
            },
            "source": {
              "$ref": "#/$defs/__schema85"
            }
          },
          "required": [
            "id",
            "kind",
            "mode",
            "source",
            "quantity",
            "location"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "transfer-quantity",
              "type": "string"
            },
            "location": {
              "$ref": "#/$defs/__schema58"
            },
            "matcher": {
              "$ref": "#/$defs/__schema80"
            },
            "mode": {
              "const": "aggregate",
              "type": "string"
            },
            "quantity": {
              "$ref": "#/$defs/__schema95"
            },
            "sourceInventory": {
              "$ref": "#/$defs/__schema65"
            }
          },
          "required": [
            "id",
            "kind",
            "mode",
            "matcher",
            "quantity",
            "location"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "definition": {
              "$ref": "#/$defs/__schema0"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "add-quantity",
              "type": "string"
            },
            "location": {
              "$ref": "#/$defs/__schema58"
            },
            "quantity": {
              "$ref": "#/$defs/__schema95"
            }
          },
          "required": [
            "id",
            "kind",
            "definition",
            "quantity",
            "location"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "consume-quantity",
              "type": "string"
            },
            "mode": {
              "const": "exact",
              "type": "string"
            },
            "quantity": {
              "$ref": "#/$defs/__schema95"
            },
            "source": {
              "$ref": "#/$defs/__schema85"
            }
          },
          "required": [
            "id",
            "kind",
            "mode",
            "source",
            "quantity"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "consume-quantity",
              "type": "string"
            },
            "matcher": {
              "$ref": "#/$defs/__schema80"
            },
            "mode": {
              "const": "aggregate",
              "type": "string"
            },
            "quantity": {
              "$ref": "#/$defs/__schema95"
            },
            "sourceInventory": {
              "$ref": "#/$defs/__schema65"
            }
          },
          "required": [
            "id",
            "kind",
            "mode",
            "matcher",
            "quantity"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "coexist": {
              "type": "boolean"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "inventory": {
              "$ref": "#/$defs/__schema65"
            },
            "kind": {
              "const": "present-inventory",
              "type": "string"
            },
            "layout": {
              "$ref": "#/$defs/__schema0"
            },
            "parentToTriggeringLayout": {
              "type": "boolean"
            },
            "useTriggerAnchor": {
              "type": "boolean"
            }
          },
          "required": [
            "id",
            "kind",
            "inventory"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "exitId": {
              "$ref": "#/$defs/__schema0"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "navigate-exit",
              "type": "string"
            }
          },
          "required": [
            "id",
            "kind",
            "exitId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "change-room",
              "type": "string"
            },
            "room": {
              "$ref": "#/$defs/__schema61"
            }
          },
          "required": [
            "id",
            "kind",
            "room"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "call-scene",
              "type": "string"
            },
            "scene": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "id",
            "kind",
            "scene"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "dialogue": {
              "$ref": "#/$defs/__schema0"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "call-dialogue",
              "type": "string"
            }
          },
          "required": [
            "id",
            "kind",
            "dialogue"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "notify",
              "type": "string"
            },
            "message": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "id",
            "kind",
            "message"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "run-lua",
              "type": "string"
            },
            "source": {
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "id",
            "kind",
            "source"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "condition": {
              "$ref": "#/$defs/__schema30"
            },
            "else": {
              "items": {
                "$ref": "#/$defs/__schema88"
              },
              "type": "array"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "if",
              "type": "string"
            },
            "then": {
              "items": {
                "$ref": "#/$defs/__schema88"
              },
              "type": "array"
            }
          },
          "required": [
            "id",
            "kind",
            "condition",
            "then",
            "else"
          ],
          "type": "object"
        }
      ]
    },
    "__schema9": {
      "additionalProperties": false,
      "properties": {
        "targets": {
          "$ref": "#/$defs/__schema10"
        }
      },
      "title": "LuaExplicitDependencies",
      "type": "object"
    },
    "__schema90": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema91"
        },
        {
          "$ref": "#/$defs/__schema93"
        },
        {
          "$ref": "#/$defs/__schema94"
        }
      ],
      "title": "GameplayConfigurationSource",
      "x-noveltea-documentation": {
        "name": "GameplayConfigurationSource"
      }
    },
    "__schema91": {
      "additionalProperties": false,
      "properties": {
        "archetype": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "const": "archetype",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "archetype"
      ],
      "type": "object"
    },
    "__schema92": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "archetypes",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema93": {
      "additionalProperties": false,
      "properties": {
        "instance": {
          "$ref": "#/$defs/__schema40"
        },
        "kind": {
          "const": "compiled-instance",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "instance"
      ],
      "type": "object"
    },
    "__schema94": {
      "additionalProperties": false,
      "properties": {
        "instance": {
          "$ref": "#/$defs/__schema40"
        },
        "kind": {
          "const": "effective-instance",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "instance"
      ],
      "type": "object"
    },
    "__schema95": {
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "type": "integer"
    },
    "__schema96": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "layouts",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema97": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "scenes",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema98": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "dialogues",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema99": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "const": "scene",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "type": "object"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "actionText": {
          "$ref": "#/$defs/__schema3"
        },
        "availability": {
          "$ref": "#/$defs/__schema30",
          "default": "always"
        },
        "bindingOrder": {
          "$ref": "#/$defs/__schema27",
          "default": []
        },
        "completedCommandText": {
          "$ref": "#/$defs/__schema3"
        },
        "defaultProgram": {
          "additionalProperties": false,
          "default": {
            "completion": {
              "kind": "return"
            },
            "instructions": [],
            "outcome": "handled"
          },
          "properties": {
            "completion": {
              "default": {
                "kind": "return"
              },
              "oneOf": [
                {
                  "$ref": "#/$defs/__schema99"
                },
                {
                  "$ref": "#/$defs/__schema100"
                },
                {
                  "$ref": "#/$defs/__schema101"
                },
                {
                  "$ref": "#/$defs/__schema102"
                },
                {
                  "$ref": "#/$defs/__schema103"
                }
              ],
              "title": "FlowTarget",
              "x-noveltea-documentation": {
                "name": "FlowTarget"
              }
            },
            "instructions": {
              "default": [],
              "items": {
                "$ref": "#/$defs/__schema88"
              },
              "type": "array"
            },
            "outcome": {
              "default": "handled",
              "description": "Handled stops fallback. Unhandled requires empty behavior with no committed work and advances to the next fallback stage for the host of this program. The complete chain is selected rule → Verb defaultProgram → Project undefinedInteractionProgram → engine response. Runtime failure aborts without fallback and does not rewind earlier observable boundaries.",
              "enum": [
                "handled",
                "unhandled"
              ],
              "type": "string",
              "x-noveltea-documentation": {
                "description": "Handled stops fallback. Unhandled requires empty behavior with no committed work and advances to the next fallback stage for the host of this program. The complete chain is selected rule → Verb defaultProgram → Project undefinedInteractionProgram → engine response. Runtime failure aborts without fallback and does not rewind earlier observable boundaries."
              }
            }
          },
          "required": [],
          "type": "object"
        },
        "offers": {
          "default": [],
          "description": "Explicit subject-first discovery declarations with their own selectors; rule-derived Offers instead reuse their starting rule slot selectors. Missing published Offers do not prohibit direct complete-command submission.",
          "items": {
            "additionalProperties": false,
            "properties": {
              "condition": {
                "$ref": "#/$defs/__schema30",
                "description": "Independent discovery predicate for the starting slot only. A false winning Offer Condition suppresses this Verb, without falling back to a broader Offer.",
                "x-noveltea-documentation": {
                  "description": "Independent discovery predicate for the starting slot only. A false winning Offer Condition suppresses this Verb, without falling back to a broader Offer."
                }
              },
              "id": {
                "$ref": "#/$defs/__schema0"
              },
              "primary": {
                "default": false,
                "description": "Primary Activate executes a unique immediately-complete primary Offer; otherwise it opens the menu. Multiple primary candidates produce an ambiguity diagnostic. Open Verb Menu never auto-selects.",
                "type": "boolean",
                "x-noveltea-documentation": {
                  "description": "Primary Activate executes a unique immediately-complete primary Offer; otherwise it opens the menu. Multiple primary candidates produce an ambiguity diagnostic. Open Verb Menu never auto-selects."
                }
              },
              "rank": {
                "default": 0,
                "description": "Lower rank wins within equal Offer specificity; published Offers sort by rank then stable Verb ID. Rank never overrides structural specificity.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer",
                "x-noveltea-documentation": {
                  "description": "Lower rank wins within equal Offer specificity; published Offers sort by rank then stable Verb ID. Rank never overrides structural specificity."
                }
              },
              "selectors": {
                "items": {
                  "$ref": "#/$defs/__schema16"
                },
                "minItems": 1,
                "type": "array"
              },
              "slotId": {
                "$ref": "#/$defs/__schema0"
              }
            },
            "required": [
              "id",
              "slotId",
              "selectors"
            ],
            "type": "object"
          },
          "type": "array",
          "x-noveltea-documentation": {
            "description": "Explicit subject-first discovery declarations with their own selectors; rule-derived Offers instead reuse their starting rule slot selectors. Missing published Offers do not prohibit direct complete-command submission.",
            "examples": [
              {
                "title": "Exact false Offer suppresses the broad Offer for the same Verb",
                "value": [
                  {
                    "id": "broad",
                    "primary": false,
                    "rank": 0,
                    "selectors": [
                      {
                        "kind": "any-subject"
                      }
                    ],
                    "slotId": "object"
                  },
                  {
                    "condition": {
                      "condition": {
                        "kind": "always"
                      },
                      "kind": "not"
                    },
                    "id": "suppressed",
                    "primary": false,
                    "rank": 10,
                    "selectors": [
                      {
                        "kind": "exact",
                        "subject": {
                          "interactable": {
                            "$ref": {
                              "id": "sealed-box",
                              "registry": "interactableInstances"
                            }
                          },
                          "kind": "interactable"
                        }
                      }
                    ],
                    "slotId": "object"
                  }
                ]
              }
            ]
          }
        },
        "slots": {
          "$ref": "#/$defs/__schema2",
          "default": []
        }
      },
      "required": [
        "actionText",
        "completedCommandText"
      ],
      "type": "object",
      "x-noveltea-documentation": {
        "constraints": [
          "qualified-pattern selectors require exactly one wildcard and it must be the final character.",
          "bindingOrder must contain every declared Verb slot exactly once.",
          "Inline slot labels/prompts and completed-command text use placeholders of the form {slot-id}; every placeholder must name a declared Verb slot."
        ],
        "examples": [
          {
            "title": "Named slots with progressive order different from serialized slot order",
            "value": {
              "actionText": {
                "markup": "plain",
                "source": {
                  "kind": "inline",
                  "text": "Show"
                }
              },
              "availability": {
                "kind": "always"
              },
              "bindingOrder": [
                "object",
                "recipient"
              ],
              "completedCommandText": {
                "markup": "plain",
                "source": {
                  "kind": "inline",
                  "text": "Show {object} to {recipient}"
                }
              },
              "defaultProgram": {
                "completion": {
                  "kind": "return"
                },
                "instructions": [],
                "outcome": "unhandled"
              },
              "kind": "verb",
              "offers": [],
              "slots": [
                {
                  "id": "recipient",
                  "label": {
                    "markup": "plain",
                    "source": {
                      "kind": "inline",
                      "text": "recipient"
                    }
                  },
                  "prompt": {
                    "markup": "plain",
                    "source": {
                      "kind": "inline",
                      "text": "Select recipient"
                    }
                  },
                  "selectors": [
                    {
                      "kind": "any-subject"
                    }
                  ]
                },
                {
                  "id": "object",
                  "label": {
                    "markup": "plain",
                    "source": {
                      "kind": "inline",
                      "text": "object"
                    }
                  },
                  "prompt": {
                    "markup": "plain",
                    "source": {
                      "kind": "inline",
                      "text": "Select object"
                    }
                  },
                  "selectors": [
                    {
                      "kind": "any-subject"
                    }
                  ]
                }
              ]
            }
          }
        ]
      }
    },
    "description": {
      "type": "string"
    },
    "id": {
      "$ref": "#/$defs/__schema0"
    },
    "label": {
      "minLength": 1,
      "type": "string"
    },
    "narrativeRefs": {
      "items": {
        "pattern": "^(?:creative-direction|arc|milestone|event|character|fact|world-entity|relationship|revelation|choice-point|puzzle|authored-content|narrative-position)\\.[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "id",
    "label",
    "data"
  ],
  "type": "object"
}
