{
  "$defs": {
    "__schema0": {
      "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"
    },
    "__schema1": {
      "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
      "title": "EntityId",
      "type": "string"
    },
    "__schema10": {
      "$ref": "#/$defs/__schema1"
    },
    "__schema100": {
      "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"
    },
    "__schema101": {
      "additionalProperties": false,
      "properties": {
        "additionalDependencies": {
          "$ref": "#/$defs/__schema78"
        },
        "kind": {
          "const": "lua-expression",
          "type": "string"
        },
        "source": {
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "kind",
        "source"
      ],
      "type": "object"
    },
    "__schema102": {
      "enum": [
        "plain",
        "active-text"
      ],
      "type": "string"
    },
    "__schema103": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema1"
        },
        "kind": {
          "const": "scene",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "type": "object"
    },
    "__schema104": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema1"
        },
        "kind": {
          "const": "dialogue",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "type": "object"
    },
    "__schema105": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema1"
        },
        "kind": {
          "const": "room",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "type": "object"
    },
    "__schema106": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "return",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema107": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "end",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema11": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "interactables",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema12": {
      "$ref": "#/$defs/__schema1"
    },
    "__schema13": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "characters",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema14": {
      "additionalProperties": false,
      "properties": {
        "$ref": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "registry": {
              "const": "interactableInstances",
              "type": "string"
            }
          },
          "required": [
            "registry",
            "id"
          ],
          "type": "object"
        }
      },
      "required": [
        "$ref"
      ],
      "type": "object"
    },
    "__schema15": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema1"
        },
        "ownerKind": {
          "const": "room",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "ownerKind",
        "room",
        "featureId"
      ],
      "type": "object"
    },
    "__schema16": {
      "$ref": "#/$defs/__schema1"
    },
    "__schema17": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "rooms",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema18": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema1"
        },
        "interactable": {
          "$ref": "#/$defs/__schema14"
        },
        "ownerKind": {
          "const": "interactable",
          "type": "string"
        }
      },
      "required": [
        "ownerKind",
        "interactable",
        "featureId"
      ],
      "type": "object"
    },
    "__schema19": {
      "anyOf": [
        {
          "$ref": "#/$defs/__schema20"
        },
        {
          "type": "null"
        }
      ],
      "description": "Rule-derived discovery uses the named starting slot selectors. offer: null disables subject-first discovery only, not complete-command execution.",
      "x-noveltea-documentation": {
        "description": "Rule-derived discovery uses the named starting slot selectors. offer: null disables subject-first discovery only, not complete-command execution."
      }
    },
    "__schema2": {
      "const": "interaction",
      "type": "string"
    },
    "__schema20": {
      "additionalProperties": false,
      "properties": {
        "condition": {
          "$ref": "#/$defs/__schema21",
          "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."
          }
        },
        "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."
          }
        },
        "slotId": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "slotId",
        "rank",
        "primary"
      ],
      "type": "object"
    },
    "__schema21": {
      "$ref": "#/$defs/__schema22",
      "title": "Condition"
    },
    "__schema22": {
      "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/__schema21"
                  },
                  "type": "array"
                },
                "kind": {
                  "const": "all",
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "conditions"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "conditions": {
                  "items": {
                    "$ref": "#/$defs/__schema21"
                  },
                  "type": "array"
                },
                "kind": {
                  "const": "any",
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "conditions"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "condition": {
                  "$ref": "#/$defs/__schema21"
                },
                "kind": {
                  "const": "not",
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "condition"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "const": "variable-comparison",
                  "type": "string"
                },
                "operator": {
                  "$ref": "#/$defs/__schema25"
                },
                "value": {
                  "$ref": "#/$defs/__schema26"
                },
                "variable": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "kind",
                "variable",
                "operator"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "const": "property-comparison",
                  "type": "string"
                },
                "operator": {
                  "$ref": "#/$defs/__schema25"
                },
                "owner": {
                  "$ref": "#/$defs/__schema31"
                },
                "propertyId": {
                  "$ref": "#/$defs/__schema1"
                },
                "value": {
                  "$ref": "#/$defs/__schema26"
                }
              },
              "required": [
                "kind",
                "owner",
                "propertyId",
                "operator"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "const": "trait-presence",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema31"
                },
                "present": {
                  "type": "boolean"
                },
                "trait": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "kind",
                "owner",
                "trait",
                "present"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "const": "location-comparison",
                  "type": "string"
                },
                "location": {
                  "$ref": "#/$defs/__schema49"
                },
                "operator": {
                  "enum": [
                    "equal",
                    "not-equal"
                  ],
                  "type": "string"
                },
                "subject": {
                  "$ref": "#/$defs/__schema46"
                }
              },
              "required": [
                "kind",
                "subject",
                "operator",
                "location"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "inventory": {
                  "$ref": "#/$defs/__schema56"
                },
                "kind": {
                  "const": "inventory-quantity-comparison",
                  "type": "string"
                },
                "matcher": {
                  "$ref": "#/$defs/__schema71"
                },
                "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/__schema78"
                },
                "kind": {
                  "const": "lua-predicate",
                  "type": "string"
                },
                "source": {
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "source"
              ],
              "type": "object"
            }
          ]
        }
      ]
    },
    "__schema23": {
      "$ref": "#/$defs/__schema1"
    },
    "__schema24": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "variables",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema25": {
      "enum": [
        "equal",
        "not-equal",
        "less",
        "less-equal",
        "greater",
        "greater-equal",
        "truthy",
        "falsy"
      ],
      "type": "string"
    },
    "__schema26": {
      "anyOf": [
        {
          "$ref": "#/$defs/__schema27"
        },
        {
          "$ref": "#/$defs/__schema28"
        },
        {
          "$ref": "#/$defs/__schema29"
        },
        {
          "$ref": "#/$defs/__schema30"
        }
      ],
      "title": "RuntimeScalar",
      "x-noveltea-documentation": {
        "name": "RuntimeScalar"
      }
    },
    "__schema27": {
      "type": "null"
    },
    "__schema28": {
      "type": "boolean"
    },
    "__schema29": {
      "type": "number"
    },
    "__schema3": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "guard": {
            "$ref": "#/$defs/__schema21"
          },
          "id": {
            "$ref": "#/$defs/__schema1"
          },
          "narrativeRefs": {
            "$ref": "#/$defs/__schema0"
          },
          "offer": {
            "$ref": "#/$defs/__schema19"
          },
          "priority": {
            "$ref": "#/$defs/__schema85"
          },
          "program": {
            "$ref": "#/$defs/__schema86"
          },
          "slots": {
            "$ref": "#/$defs/__schema6"
          },
          "verb": {
            "$ref": "#/$defs/__schema1"
          }
        },
        "required": [
          "id",
          "verb",
          "slots",
          "offer",
          "guard",
          "priority",
          "program"
        ],
        "type": "object",
        "x-noveltea-documentation": {
          "notes": [
            "guard is a pure execution predicate with access to all bound slots, independent of Offer discovery. If no Guard passes in this structural tier, try the next broader tier; evaluation errors fault before behavior."
          ]
        }
      },
      "type": "array"
    },
    "__schema30": {
      "type": "string"
    },
    "__schema31": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema32"
        },
        {
          "$ref": "#/$defs/__schema33"
        },
        {
          "$ref": "#/$defs/__schema34"
        },
        {
          "$ref": "#/$defs/__schema37"
        },
        {
          "$ref": "#/$defs/__schema38"
        },
        {
          "$ref": "#/$defs/__schema39"
        },
        {
          "$ref": "#/$defs/__schema40"
        },
        {
          "$ref": "#/$defs/__schema42"
        }
      ],
      "title": "GameplayIdentityOperand",
      "x-noveltea-documentation": {
        "name": "GameplayIdentityOperand"
      }
    },
    "__schema32": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "room",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "kind",
        "room"
      ],
      "type": "object"
    },
    "__schema33": {
      "additionalProperties": false,
      "properties": {
        "character": {
          "$ref": "#/$defs/__schema1"
        },
        "kind": {
          "const": "character",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "character"
      ],
      "type": "object"
    },
    "__schema34": {
      "additionalProperties": false,
      "properties": {
        "interactable": {
          "$ref": "#/$defs/__schema35"
        },
        "kind": {
          "const": "interactable",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable"
      ],
      "type": "object"
    },
    "__schema35": {
      "additionalProperties": false,
      "properties": {
        "$ref": {
          "$ref": "#/$defs/__schema36"
        }
      },
      "required": [
        "$ref"
      ],
      "title": "InteractableInstanceRef",
      "type": "object",
      "x-noveltea-documentation": {
        "name": "InteractableInstanceRef"
      }
    },
    "__schema36": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema1"
        },
        "registry": {
          "const": "interactableInstances",
          "type": "string"
        }
      },
      "required": [
        "registry",
        "id"
      ],
      "type": "object"
    },
    "__schema37": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema1"
        },
        "kind": {
          "const": "room-feature",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "kind",
        "room",
        "featureId"
      ],
      "type": "object"
    },
    "__schema38": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema1"
        },
        "interactable": {
          "$ref": "#/$defs/__schema35"
        },
        "kind": {
          "const": "interactable-feature",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable",
        "featureId"
      ],
      "type": "object"
    },
    "__schema39": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "current-room",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema4": {
      "$ref": "#/$defs/__schema1"
    },
    "__schema40": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "$ref": "#/$defs/__schema41"
        },
        "slotId": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "kind",
        "slotId"
      ],
      "title": "InteractionSlotOperand",
      "type": "object",
      "x-noveltea-documentation": {
        "name": "InteractionSlotOperand"
      }
    },
    "__schema41": {
      "const": "interaction-slot",
      "type": "string"
    },
    "__schema42": {
      "additionalProperties": false,
      "properties": {
        "bindingId": {
          "$ref": "#/$defs/__schema1"
        },
        "kind": {
          "$ref": "#/$defs/__schema43"
        }
      },
      "required": [
        "kind",
        "bindingId"
      ],
      "title": "CommandResultOperand",
      "type": "object",
      "x-noveltea-documentation": {
        "name": "CommandResultOperand"
      }
    },
    "__schema43": {
      "const": "command-result",
      "type": "string"
    },
    "__schema44": {
      "$ref": "#/$defs/__schema1"
    },
    "__schema45": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "traits",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema46": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema47"
        },
        {
          "$ref": "#/$defs/__schema48"
        },
        {
          "$ref": "#/$defs/__schema40"
        },
        {
          "$ref": "#/$defs/__schema42"
        }
      ],
      "title": "LocationSubjectOperand",
      "x-noveltea-documentation": {
        "name": "LocationSubjectOperand"
      }
    },
    "__schema47": {
      "additionalProperties": false,
      "properties": {
        "character": {
          "$ref": "#/$defs/__schema1"
        },
        "kind": {
          "const": "character",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "character"
      ],
      "type": "object"
    },
    "__schema48": {
      "additionalProperties": false,
      "properties": {
        "interactable": {
          "$ref": "#/$defs/__schema35"
        },
        "kind": {
          "const": "interactable",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable"
      ],
      "type": "object"
    },
    "__schema49": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema50"
        },
        {
          "$ref": "#/$defs/__schema51"
        },
        {
          "$ref": "#/$defs/__schema55"
        }
      ],
      "title": "LocationOperand",
      "x-noveltea-documentation": {
        "name": "LocationOperand"
      }
    },
    "__schema5": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "verbs",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema50": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "unplaced",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema51": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "room",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema52"
        }
      },
      "required": [
        "kind",
        "room"
      ],
      "type": "object"
    },
    "__schema52": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema53"
        },
        {
          "$ref": "#/$defs/__schema54"
        },
        {
          "$ref": "#/$defs/__schema42"
        }
      ],
      "title": "RoomOperand",
      "x-noveltea-documentation": {
        "name": "RoomOperand"
      }
    },
    "__schema53": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "room",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "kind",
        "room"
      ],
      "type": "object"
    },
    "__schema54": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "current-room",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema55": {
      "additionalProperties": false,
      "properties": {
        "inventory": {
          "$ref": "#/$defs/__schema56"
        },
        "kind": {
          "const": "inventory",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "inventory"
      ],
      "type": "object"
    },
    "__schema56": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema57"
        },
        {
          "$ref": "#/$defs/__schema64"
        },
        {
          "$ref": "#/$defs/__schema65"
        },
        {
          "$ref": "#/$defs/__schema42"
        }
      ],
      "title": "InventoryOperand",
      "x-noveltea-documentation": {
        "name": "InventoryOperand"
      }
    },
    "__schema57": {
      "additionalProperties": false,
      "properties": {
        "inventory": {
          "additionalProperties": false,
          "properties": {
            "inventoryId": {
              "$ref": "#/$defs/__schema1"
            },
            "owner": {
              "$ref": "#/$defs/__schema58"
            }
          },
          "required": [
            "owner",
            "inventoryId"
          ],
          "title": "InventoryRef",
          "type": "object",
          "x-noveltea-documentation": {
            "name": "InventoryRef"
          }
        },
        "kind": {
          "const": "inventory",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "inventory"
      ],
      "type": "object"
    },
    "__schema58": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema59"
        },
        {
          "$ref": "#/$defs/__schema60"
        },
        {
          "$ref": "#/$defs/__schema61"
        },
        {
          "$ref": "#/$defs/__schema62"
        },
        {
          "$ref": "#/$defs/__schema63"
        }
      ],
      "title": "InventoryOwner",
      "x-noveltea-documentation": {
        "name": "InventoryOwner"
      }
    },
    "__schema59": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "project",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema6": {
      "description": "Bind every Verb slot exactly once by slotId. Rule slot array ordering is non-semantic.",
      "items": {
        "$ref": "#/$defs/__schema7"
      },
      "type": "array",
      "x-noveltea-documentation": {
        "description": "Bind every Verb slot exactly once by slotId. Rule slot array ordering is non-semantic."
      }
    },
    "__schema60": {
      "additionalProperties": false,
      "properties": {
        "character": {
          "$ref": "#/$defs/__schema1"
        },
        "kind": {
          "const": "character",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "character"
      ],
      "type": "object"
    },
    "__schema61": {
      "additionalProperties": false,
      "properties": {
        "interactable": {
          "$ref": "#/$defs/__schema35"
        },
        "kind": {
          "const": "interactable",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable"
      ],
      "type": "object"
    },
    "__schema62": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema1"
        },
        "kind": {
          "const": "room-feature",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "kind",
        "room",
        "featureId"
      ],
      "type": "object"
    },
    "__schema63": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema1"
        },
        "interactable": {
          "$ref": "#/$defs/__schema35"
        },
        "kind": {
          "const": "interactable-feature",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable",
        "featureId"
      ],
      "type": "object"
    },
    "__schema64": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "player-inventory",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema65": {
      "additionalProperties": false,
      "properties": {
        "inventoryId": {
          "$ref": "#/$defs/__schema1"
        },
        "kind": {
          "const": "owner-inventory",
          "type": "string"
        },
        "owner": {
          "oneOf": [
            {
              "$ref": "#/$defs/__schema66"
            },
            {
              "$ref": "#/$defs/__schema67"
            },
            {
              "$ref": "#/$defs/__schema68"
            },
            {
              "$ref": "#/$defs/__schema69"
            },
            {
              "$ref": "#/$defs/__schema70"
            },
            {
              "$ref": "#/$defs/__schema40"
            },
            {
              "$ref": "#/$defs/__schema42"
            }
          ],
          "title": "InventoryOwnerOperand",
          "x-noveltea-documentation": {
            "name": "InventoryOwnerOperand"
          }
        }
      },
      "required": [
        "kind",
        "owner",
        "inventoryId"
      ],
      "type": "object"
    },
    "__schema66": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "project",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "__schema67": {
      "additionalProperties": false,
      "properties": {
        "character": {
          "$ref": "#/$defs/__schema1"
        },
        "kind": {
          "const": "character",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "character"
      ],
      "type": "object"
    },
    "__schema68": {
      "additionalProperties": false,
      "properties": {
        "interactable": {
          "$ref": "#/$defs/__schema35"
        },
        "kind": {
          "const": "interactable",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable"
      ],
      "type": "object"
    },
    "__schema69": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema1"
        },
        "kind": {
          "const": "room-feature",
          "type": "string"
        },
        "room": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "kind",
        "room",
        "featureId"
      ],
      "type": "object"
    },
    "__schema7": {
      "additionalProperties": false,
      "properties": {
        "selectors": {
          "items": {
            "$ref": "#/$defs/__schema8"
          },
          "minItems": 1,
          "type": "array"
        },
        "slotId": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "slotId",
        "selectors"
      ],
      "type": "object"
    },
    "__schema70": {
      "additionalProperties": false,
      "properties": {
        "featureId": {
          "$ref": "#/$defs/__schema1"
        },
        "interactable": {
          "$ref": "#/$defs/__schema35"
        },
        "kind": {
          "const": "interactable-feature",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable",
        "featureId"
      ],
      "type": "object"
    },
    "__schema71": {
      "additionalProperties": false,
      "properties": {
        "definition": {
          "$ref": "#/$defs/__schema72"
        },
        "exact": {
          "$ref": "#/$defs/__schema75"
        },
        "properties": {
          "$ref": "#/$defs/__schema74"
        },
        "traits": {
          "$ref": "#/$defs/__schema73"
        }
      },
      "title": "InteractableMatcher",
      "type": "object",
      "x-noveltea-documentation": {
        "name": "InteractableMatcher"
      }
    },
    "__schema72": {
      "$ref": "#/$defs/__schema1"
    },
    "__schema73": {
      "default": [],
      "items": {
        "$ref": "#/$defs/__schema1"
      },
      "type": "array"
    },
    "__schema74": {
      "default": [],
      "items": {
        "additionalProperties": false,
        "properties": {
          "propertyId": {
            "$ref": "#/$defs/__schema1"
          },
          "value": {
            "$ref": "#/$defs/__schema26"
          }
        },
        "required": [
          "propertyId",
          "value"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "__schema75": {
      "$ref": "#/$defs/__schema76"
    },
    "__schema76": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema77"
        },
        {
          "$ref": "#/$defs/__schema40"
        },
        {
          "$ref": "#/$defs/__schema42"
        }
      ],
      "title": "InteractableOperand",
      "x-noveltea-documentation": {
        "name": "InteractableOperand"
      }
    },
    "__schema77": {
      "additionalProperties": false,
      "properties": {
        "interactable": {
          "$ref": "#/$defs/__schema35"
        },
        "kind": {
          "const": "interactable",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "interactable"
      ],
      "type": "object"
    },
    "__schema78": {
      "$ref": "#/$defs/__schema79"
    },
    "__schema79": {
      "additionalProperties": false,
      "properties": {
        "targets": {
          "$ref": "#/$defs/__schema80"
        }
      },
      "title": "LuaExplicitDependencies",
      "type": "object"
    },
    "__schema8": {
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "any-subject",
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "family": {
              "$ref": "#/$defs/__schema9"
            },
            "kind": {
              "const": "family",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "family"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "trait",
              "type": "string"
            },
            "trait": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "kind",
            "trait"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "interactableDefinition": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "interactable-definition",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "interactableDefinition"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "featureId": {
              "$ref": "#/$defs/__schema1"
            },
            "interactableDefinition": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "interactable-feature",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "interactableDefinition",
            "featureId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "family": {
              "$ref": "#/$defs/__schema9"
            },
            "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/__schema1"
                    },
                    "kind": {
                      "const": "character",
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "character"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "interactable": {
                      "$ref": "#/$defs/__schema14"
                    },
                    "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/__schema15"
                        },
                        {
                          "$ref": "#/$defs/__schema18"
                        }
                      ],
                      "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"
        }
      ]
    },
    "__schema80": {
      "default": [],
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/__schema81"
          },
          {
            "$ref": "#/$defs/__schema82"
          },
          {
            "$ref": "#/$defs/__schema83"
          },
          {
            "$ref": "#/$defs/__schema84"
          }
        ],
        "title": "LuaDependencyTarget"
      },
      "type": "array"
    },
    "__schema81": {
      "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"
    },
    "__schema82": {
      "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"
    },
    "__schema83": {
      "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"
    },
    "__schema84": {
      "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"
    },
    "__schema85": {
      "description": "Greatest priority wins among passing rules within one structural tier, never across tiers. Equal winning priority is an ambiguity fault that executes nothing; declaration order is not a tie-break.",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991,
      "type": "integer",
      "x-noveltea-documentation": {
        "description": "Greatest priority wins among passing rules within one structural tier, never across tiers. Equal winning priority is an ambiguity fault that executes nothing; declaration order is not a tie-break."
      }
    },
    "__schema86": {
      "additionalProperties": false,
      "properties": {
        "completion": {
          "oneOf": [
            {
              "$ref": "#/$defs/__schema103"
            },
            {
              "$ref": "#/$defs/__schema104"
            },
            {
              "$ref": "#/$defs/__schema105"
            },
            {
              "$ref": "#/$defs/__schema106"
            },
            {
              "$ref": "#/$defs/__schema107"
            }
          ],
          "title": "FlowTarget",
          "x-noveltea-documentation": {
            "name": "FlowTarget"
          }
        },
        "instructions": {
          "items": {
            "$ref": "#/$defs/__schema87"
          },
          "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"
    },
    "__schema87": {
      "$ref": "#/$defs/__schema88",
      "title": "GameplayCommand"
    },
    "__schema88": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "set-global-property",
              "type": "string"
            },
            "value": {
              "$ref": "#/$defs/__schema26"
            },
            "variable": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "id",
            "kind",
            "variable",
            "value"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "unset-global-property",
              "type": "string"
            },
            "variable": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "id",
            "kind",
            "variable"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "set-property",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema31"
            },
            "propertyId": {
              "$ref": "#/$defs/__schema1"
            },
            "value": {
              "$ref": "#/$defs/__schema26"
            }
          },
          "required": [
            "id",
            "kind",
            "owner",
            "propertyId",
            "value"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "unset-property",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema31"
            },
            "propertyId": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "id",
            "kind",
            "owner",
            "propertyId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "add-trait",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema31"
            },
            "trait": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "id",
            "kind",
            "owner",
            "trait"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "remove-trait",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema31"
            },
            "trait": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "id",
            "kind",
            "owner",
            "trait"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "set-enabled",
              "type": "string"
            },
            "subject": {
              "$ref": "#/$defs/__schema46"
            }
          },
          "required": [
            "id",
            "kind",
            "subject",
            "enabled"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "set-visible",
              "type": "string"
            },
            "subject": {
              "$ref": "#/$defs/__schema46"
            },
            "visible": {
              "type": "boolean"
            }
          },
          "required": [
            "id",
            "kind",
            "subject",
            "visible"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "move-instance",
              "type": "string"
            },
            "location": {
              "$ref": "#/$defs/__schema49"
            },
            "roomPresentation": {
              "enum": [
                "resolve",
                "none"
              ],
              "type": "string"
            },
            "subject": {
              "$ref": "#/$defs/__schema46"
            }
          },
          "required": [
            "id",
            "kind",
            "subject",
            "location"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "create-room",
              "type": "string"
            },
            "result": {
              "$ref": "#/$defs/__schema1"
            },
            "source": {
              "$ref": "#/$defs/__schema89"
            }
          },
          "required": [
            "id",
            "kind",
            "source"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "create-character",
              "type": "string"
            },
            "location": {
              "$ref": "#/$defs/__schema49"
            },
            "result": {
              "$ref": "#/$defs/__schema1"
            },
            "source": {
              "$ref": "#/$defs/__schema89"
            },
            "visible": {
              "type": "boolean"
            }
          },
          "required": [
            "id",
            "kind",
            "source",
            "location",
            "enabled",
            "visible"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "definition": {
              "$ref": "#/$defs/__schema1"
            },
            "enabled": {
              "type": "boolean"
            },
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "create-interactable",
              "type": "string"
            },
            "location": {
              "$ref": "#/$defs/__schema49"
            },
            "quantity": {
              "$ref": "#/$defs/__schema94"
            },
            "result": {
              "$ref": "#/$defs/__schema1"
            },
            "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/__schema1"
            },
            "instance": {
              "$ref": "#/$defs/__schema31"
            },
            "kind": {
              "const": "destroy-instance",
              "type": "string"
            }
          },
          "required": [
            "id",
            "kind",
            "instance"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "split-quantity",
              "type": "string"
            },
            "quantity": {
              "$ref": "#/$defs/__schema94"
            },
            "result": {
              "$ref": "#/$defs/__schema1"
            },
            "source": {
              "$ref": "#/$defs/__schema76"
            }
          },
          "required": [
            "id",
            "kind",
            "source",
            "quantity"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "donor": {
              "$ref": "#/$defs/__schema76"
            },
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "merge-quantity",
              "type": "string"
            },
            "receiver": {
              "$ref": "#/$defs/__schema76"
            }
          },
          "required": [
            "id",
            "kind",
            "receiver",
            "donor"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "transfer-quantity",
              "type": "string"
            },
            "location": {
              "$ref": "#/$defs/__schema49"
            },
            "mode": {
              "const": "exact",
              "type": "string"
            },
            "quantity": {
              "$ref": "#/$defs/__schema94"
            },
            "result": {
              "$ref": "#/$defs/__schema1"
            },
            "source": {
              "$ref": "#/$defs/__schema76"
            }
          },
          "required": [
            "id",
            "kind",
            "mode",
            "source",
            "quantity",
            "location"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "transfer-quantity",
              "type": "string"
            },
            "location": {
              "$ref": "#/$defs/__schema49"
            },
            "matcher": {
              "$ref": "#/$defs/__schema71"
            },
            "mode": {
              "const": "aggregate",
              "type": "string"
            },
            "quantity": {
              "$ref": "#/$defs/__schema94"
            },
            "sourceInventory": {
              "$ref": "#/$defs/__schema56"
            }
          },
          "required": [
            "id",
            "kind",
            "mode",
            "matcher",
            "quantity",
            "location"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "definition": {
              "$ref": "#/$defs/__schema1"
            },
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "add-quantity",
              "type": "string"
            },
            "location": {
              "$ref": "#/$defs/__schema49"
            },
            "quantity": {
              "$ref": "#/$defs/__schema94"
            }
          },
          "required": [
            "id",
            "kind",
            "definition",
            "quantity",
            "location"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "consume-quantity",
              "type": "string"
            },
            "mode": {
              "const": "exact",
              "type": "string"
            },
            "quantity": {
              "$ref": "#/$defs/__schema94"
            },
            "source": {
              "$ref": "#/$defs/__schema76"
            }
          },
          "required": [
            "id",
            "kind",
            "mode",
            "source",
            "quantity"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "consume-quantity",
              "type": "string"
            },
            "matcher": {
              "$ref": "#/$defs/__schema71"
            },
            "mode": {
              "const": "aggregate",
              "type": "string"
            },
            "quantity": {
              "$ref": "#/$defs/__schema94"
            },
            "sourceInventory": {
              "$ref": "#/$defs/__schema56"
            }
          },
          "required": [
            "id",
            "kind",
            "mode",
            "matcher",
            "quantity"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "coexist": {
              "type": "boolean"
            },
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "inventory": {
              "$ref": "#/$defs/__schema56"
            },
            "kind": {
              "const": "present-inventory",
              "type": "string"
            },
            "layout": {
              "$ref": "#/$defs/__schema1"
            },
            "parentToTriggeringLayout": {
              "type": "boolean"
            },
            "useTriggerAnchor": {
              "type": "boolean"
            }
          },
          "required": [
            "id",
            "kind",
            "inventory"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "exitId": {
              "$ref": "#/$defs/__schema1"
            },
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "navigate-exit",
              "type": "string"
            }
          },
          "required": [
            "id",
            "kind",
            "exitId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "change-room",
              "type": "string"
            },
            "room": {
              "$ref": "#/$defs/__schema52"
            }
          },
          "required": [
            "id",
            "kind",
            "room"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "call-scene",
              "type": "string"
            },
            "scene": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "id",
            "kind",
            "scene"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "dialogue": {
              "$ref": "#/$defs/__schema1"
            },
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "call-dialogue",
              "type": "string"
            }
          },
          "required": [
            "id",
            "kind",
            "dialogue"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "notify",
              "type": "string"
            },
            "message": {
              "additionalProperties": false,
              "properties": {
                "markup": {
                  "$ref": "#/$defs/__schema102"
                },
                "source": {
                  "$ref": "#/$defs/__schema98"
                }
              },
              "required": [
                "source",
                "markup"
              ],
              "title": "TextContent",
              "type": "object",
              "x-noveltea-documentation": {
                "name": "TextContent"
              }
            }
          },
          "required": [
            "id",
            "kind",
            "message"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "run-lua",
              "type": "string"
            },
            "source": {
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "id",
            "kind",
            "source"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "condition": {
              "$ref": "#/$defs/__schema21"
            },
            "else": {
              "items": {
                "$ref": "#/$defs/__schema87"
              },
              "type": "array"
            },
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "const": "if",
              "type": "string"
            },
            "then": {
              "items": {
                "$ref": "#/$defs/__schema87"
              },
              "type": "array"
            }
          },
          "required": [
            "id",
            "kind",
            "condition",
            "then",
            "else"
          ],
          "type": "object"
        }
      ]
    },
    "__schema89": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema90"
        },
        {
          "$ref": "#/$defs/__schema92"
        },
        {
          "$ref": "#/$defs/__schema93"
        }
      ],
      "title": "GameplayConfigurationSource",
      "x-noveltea-documentation": {
        "name": "GameplayConfigurationSource"
      }
    },
    "__schema9": {
      "enum": [
        "character",
        "interactable",
        "feature"
      ],
      "type": "string"
    },
    "__schema90": {
      "additionalProperties": false,
      "properties": {
        "archetype": {
          "$ref": "#/$defs/__schema1"
        },
        "kind": {
          "const": "archetype",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "archetype"
      ],
      "type": "object"
    },
    "__schema91": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "archetypes",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema92": {
      "additionalProperties": false,
      "properties": {
        "instance": {
          "$ref": "#/$defs/__schema31"
        },
        "kind": {
          "const": "compiled-instance",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "instance"
      ],
      "type": "object"
    },
    "__schema93": {
      "additionalProperties": false,
      "properties": {
        "instance": {
          "$ref": "#/$defs/__schema31"
        },
        "kind": {
          "const": "effective-instance",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "instance"
      ],
      "type": "object"
    },
    "__schema94": {
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "type": "integer"
    },
    "__schema95": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "layouts",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema96": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "scenes",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema97": {
      "additionalProperties": false,
      "properties": {
        "collection": {
          "const": "dialogues",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "collection",
        "id"
      ],
      "type": "object"
    },
    "__schema98": {
      "oneOf": [
        {
          "$ref": "#/$defs/__schema99"
        },
        {
          "$ref": "#/$defs/__schema100"
        },
        {
          "$ref": "#/$defs/__schema101"
        }
      ],
      "title": "TextSource",
      "x-noveltea-documentation": {
        "name": "TextSource"
      }
    },
    "__schema99": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "inline",
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "text"
      ],
      "type": "object"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "rules": {
          "default": [],
          "items": {
            "additionalProperties": false,
            "properties": {
              "guard": {
                "$ref": "#/$defs/__schema21",
                "default": "always"
              },
              "id": {
                "$ref": "#/$defs/__schema1"
              },
              "narrativeRefs": {
                "$ref": "#/$defs/__schema0"
              },
              "offer": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "condition": {
                        "$ref": "#/$defs/__schema21",
                        "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."
                        }
                      },
                      "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."
                        }
                      },
                      "slotId": {
                        "$ref": "#/$defs/__schema1"
                      }
                    },
                    "required": [
                      "slotId"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Rule-derived discovery uses the named starting slot selectors. offer: null disables subject-first discovery only, not complete-command execution.",
                "x-noveltea-documentation": {
                  "description": "Rule-derived discovery uses the named starting slot selectors. offer: null disables subject-first discovery only, not complete-command execution."
                }
              },
              "priority": {
                "$ref": "#/$defs/__schema85",
                "default": 0
              },
              "program": {
                "additionalProperties": false,
                "default": {
                  "completion": {
                    "kind": "return"
                  },
                  "instructions": [],
                  "outcome": "handled"
                },
                "properties": {
                  "completion": {
                    "default": {
                      "kind": "return"
                    },
                    "oneOf": [
                      {
                        "$ref": "#/$defs/__schema103"
                      },
                      {
                        "$ref": "#/$defs/__schema104"
                      },
                      {
                        "$ref": "#/$defs/__schema105"
                      },
                      {
                        "$ref": "#/$defs/__schema106"
                      },
                      {
                        "$ref": "#/$defs/__schema107"
                      }
                    ],
                    "title": "FlowTarget",
                    "x-noveltea-documentation": {
                      "name": "FlowTarget"
                    }
                  },
                  "instructions": {
                    "default": [],
                    "items": {
                      "$ref": "#/$defs/__schema87"
                    },
                    "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"
              },
              "slots": {
                "$ref": "#/$defs/__schema6"
              },
              "verb": {
                "$ref": "#/$defs/__schema1"
              }
            },
            "required": [
              "id",
              "verb",
              "slots"
            ],
            "type": "object",
            "x-noveltea-documentation": {
              "notes": [
                "guard is a pure execution predicate with access to all bound slots, independent of Offer discovery. If no Guard passes in this structural tier, try the next broader tier; evaluation errors fault before behavior."
              ]
            }
          },
          "type": "array"
        }
      },
      "required": [],
      "type": "object",
      "x-noveltea-documentation": {
        "constraints": [
          "Interaction resolution considers the structurally most-specific matching Rule tier before comparing priority.",
          "Within the winning structural tier, the highest passing priority wins; multiple passing Rules at the same winning priority are an ambiguity error, not an arbitrary tie-break."
        ],
        "examples": [
          {
            "title": "False narrow Guard falls through to a broad rule; discovery opt-in is independent",
            "value": {
              "kind": "interaction",
              "rules": [
                {
                  "guard": {
                    "condition": {
                      "kind": "always"
                    },
                    "kind": "not"
                  },
                  "id": "narrow",
                  "offer": null,
                  "priority": 100,
                  "program": {
                    "completion": {
                      "kind": "return"
                    },
                    "instructions": [],
                    "outcome": "handled"
                  },
                  "slots": [
                    {
                      "selectors": [
                        {
                          "kind": "exact",
                          "subject": {
                            "interactable": {
                              "$ref": {
                                "id": "sealed-box",
                                "registry": "interactableInstances"
                              }
                            },
                            "kind": "interactable"
                          }
                        }
                      ],
                      "slotId": "object"
                    }
                  ],
                  "verb": {
                    "$ref": {
                      "collection": "verbs",
                      "id": "inspect"
                    }
                  }
                },
                {
                  "guard": {
                    "kind": "always"
                  },
                  "id": "broad",
                  "offer": {
                    "primary": false,
                    "rank": 0,
                    "slotId": "object"
                  },
                  "priority": 0,
                  "program": {
                    "completion": {
                      "kind": "return"
                    },
                    "instructions": [],
                    "outcome": "handled"
                  },
                  "slots": [
                    {
                      "selectors": [
                        {
                          "kind": "any-subject"
                        }
                      ],
                      "slotId": "object"
                    }
                  ],
                  "verb": {
                    "$ref": {
                      "collection": "verbs",
                      "id": "inspect"
                    }
                  }
                }
              ]
            }
          }
        ]
      }
    },
    "description": {
      "type": "string"
    },
    "id": {
      "$ref": "#/$defs/__schema1"
    },
    "label": {
      "minLength": 1,
      "type": "string"
    },
    "narrativeRefs": {
      "$ref": "#/$defs/__schema0"
    }
  },
  "required": [
    "id",
    "label",
    "data"
  ],
  "type": "object"
}
