{
  "type": "object",
  "properties": {
    "wright": {
      "type": "object",
      "properties": {
        "version": {
          "const": "wright.resolved/1",
          "type": "string"
        },
        "topology": {
          "type": "object",
          "properties": {
            "version": {
              "const": "wright.world/1",
              "type": "string"
            },
            "identity": {
              "type": "string"
            },
            "rooms": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "furnishing": {
                    "type": "object",
                    "properties": {
                      "roomProgram": {
                        "type": "object",
                        "properties": {
                          "repair": {
                            "type": "object",
                            "properties": {
                              "stage": {
                                "const": "semantic",
                                "type": "string"
                              },
                              "attempts": {
                                "type": "number"
                              },
                              "strategy": {
                                "anyOf": [
                                  {
                                    "const": "none",
                                    "type": "string"
                                  },
                                  {
                                    "const": "bounded-semantic-revision",
                                    "type": "string"
                                  }
                                ]
                              },
                              "initialFailures": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "finalState": {
                                "const": "accepted",
                                "type": "string"
                              },
                              "relaxedConstraints": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "stage",
                              "attempts",
                              "strategy",
                              "initialFailures",
                              "finalState",
                              "relaxedConstraints"
                            ],
                            "additionalProperties": false
                          },
                          "enrichment": {
                            "type": "object",
                            "properties": {
                              "provider": {
                                "type": "string"
                              },
                              "model": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": ["provider", "model", "version"],
                            "additionalProperties": false
                          },
                          "intent": {
                            "type": "object",
                            "properties": {
                              "version": {
                                "const": "qway.room-program/1",
                                "type": "string"
                              },
                              "archetype": {
                                "type": "string"
                              },
                              "archetypeRevision": {
                                "type": "string"
                              },
                              "purpose": {
                                "type": "string"
                              },
                              "capacity": {
                                "type": "number"
                              },
                              "style": {
                                "type": "string"
                              },
                              "zones": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "reference": {
                                      "type": "string"
                                    },
                                    "purpose": {
                                      "type": "string"
                                    },
                                    "priority": {
                                      "anyOf": [
                                        {
                                          "const": "required",
                                          "type": "string"
                                        },
                                        {
                                          "const": "recommended",
                                          "type": "string"
                                        },
                                        {
                                          "const": "optional",
                                          "type": "string"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "reference",
                                    "purpose",
                                    "priority"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "needs": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "reference": {
                                      "type": "string"
                                    },
                                    "category": {
                                      "type": "string"
                                    },
                                    "zone": {
                                      "type": "string"
                                    },
                                    "quantity": {
                                      "type": "number"
                                    },
                                    "capacity": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "number"
                                        }
                                      ]
                                    },
                                    "priority": {
                                      "anyOf": [
                                        {
                                          "const": "required",
                                          "type": "string"
                                        },
                                        {
                                          "const": "recommended",
                                          "type": "string"
                                        },
                                        {
                                          "const": "optional",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "assetAlias": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "placement": {
                                      "anyOf": [
                                        {
                                          "const": "auto",
                                          "type": "string"
                                        },
                                        {
                                          "const": "center",
                                          "type": "string"
                                        },
                                        {
                                          "const": "perimeter",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "evidence": {
                                      "type": "object",
                                      "properties": {
                                        "origin": {
                                          "anyOf": [
                                            {
                                              "const": "explicit",
                                              "type": "string"
                                            },
                                            {
                                              "const": "archetype",
                                              "type": "string"
                                            },
                                            {
                                              "const": "inferred",
                                              "type": "string"
                                            }
                                          ]
                                        },
                                        "confidence": {
                                          "type": "number"
                                        },
                                        "explanation": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "origin",
                                        "confidence",
                                        "explanation"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "reference",
                                    "category",
                                    "zone",
                                    "quantity",
                                    "capacity",
                                    "priority",
                                    "assetAlias",
                                    "placement",
                                    "evidence"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "reference": {
                                      "type": "string"
                                    },
                                    "kind": {
                                      "anyOf": [
                                        {
                                          "const": "on",
                                          "type": "string"
                                        },
                                        {
                                          "const": "seating",
                                          "type": "string"
                                        },
                                        {
                                          "const": "beside",
                                          "type": "string"
                                        },
                                        {
                                          "const": "facing",
                                          "type": "string"
                                        },
                                        {
                                          "const": "near-window",
                                          "type": "string"
                                        },
                                        {
                                          "const": "wall-alignment",
                                          "type": "string"
                                        },
                                        {
                                          "const": "interior",
                                          "type": "string"
                                        },
                                        {
                                          "const": "access",
                                          "type": "string"
                                        },
                                        {
                                          "const": "visibility",
                                          "type": "string"
                                        },
                                        {
                                          "const": "clearance",
                                          "type": "string"
                                        },
                                        {
                                          "const": "circulation",
                                          "type": "string"
                                        },
                                        {
                                          "const": "minimum-dimensions",
                                          "type": "string"
                                        },
                                        {
                                          "const": "unsupported",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "subjects": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "target": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "priority": {
                                      "anyOf": [
                                        {
                                          "const": "required",
                                          "type": "string"
                                        },
                                        {
                                          "const": "recommended",
                                          "type": "string"
                                        },
                                        {
                                          "const": "optional",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "strength": {
                                      "anyOf": [
                                        {
                                          "const": "hard",
                                          "type": "string"
                                        },
                                        {
                                          "const": "soft",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "clearanceM": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "number"
                                        }
                                      ]
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "evidence": {
                                      "type": "object",
                                      "properties": {
                                        "origin": {
                                          "anyOf": [
                                            {
                                              "const": "explicit",
                                              "type": "string"
                                            },
                                            {
                                              "const": "archetype",
                                              "type": "string"
                                            },
                                            {
                                              "const": "inferred",
                                              "type": "string"
                                            }
                                          ]
                                        },
                                        "confidence": {
                                          "type": "number"
                                        },
                                        "explanation": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "origin",
                                        "confidence",
                                        "explanation"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "reference",
                                    "kind",
                                    "subjects",
                                    "target",
                                    "priority",
                                    "strength",
                                    "clearanceM",
                                    "description",
                                    "evidence"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "architecture": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "reference": {
                                      "type": "string"
                                    },
                                    "kind": {
                                      "anyOf": [
                                        {
                                          "const": "window",
                                          "type": "string"
                                        },
                                        {
                                          "const": "portal",
                                          "type": "string"
                                        },
                                        {
                                          "const": "wall-run",
                                          "type": "string"
                                        },
                                        {
                                          "const": "open-center",
                                          "type": "string"
                                        },
                                        {
                                          "const": "natural-light",
                                          "type": "string"
                                        },
                                        {
                                          "const": "ceiling-light",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "quantity": {
                                      "type": "number"
                                    },
                                    "priority": {
                                      "anyOf": [
                                        {
                                          "const": "required",
                                          "type": "string"
                                        },
                                        {
                                          "const": "recommended",
                                          "type": "string"
                                        },
                                        {
                                          "const": "optional",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "evidence": {
                                      "type": "object",
                                      "properties": {
                                        "origin": {
                                          "anyOf": [
                                            {
                                              "const": "explicit",
                                              "type": "string"
                                            },
                                            {
                                              "const": "archetype",
                                              "type": "string"
                                            },
                                            {
                                              "const": "inferred",
                                              "type": "string"
                                            }
                                          ]
                                        },
                                        "confidence": {
                                          "type": "number"
                                        },
                                        "explanation": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "origin",
                                        "confidence",
                                        "explanation"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "reference",
                                    "kind",
                                    "quantity",
                                    "priority",
                                    "evidence"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "exclusions": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "category": {
                                      "type": "string"
                                    },
                                    "evidence": {
                                      "type": "object",
                                      "properties": {
                                        "origin": {
                                          "const": "explicit",
                                          "type": "string"
                                        },
                                        "confidence": {
                                          "type": "number"
                                        },
                                        "explanation": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "origin",
                                        "confidence",
                                        "explanation"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": ["category", "evidence"],
                                  "additionalProperties": false
                                }
                              },
                              "uncertainties": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "version",
                              "archetype",
                              "archetypeRevision",
                              "purpose",
                              "capacity",
                              "style",
                              "zones",
                              "needs",
                              "rules",
                              "architecture",
                              "exclusions",
                              "uncertainties"
                            ],
                            "additionalProperties": false
                          },
                          "archetypeSnapshot": {
                            "type": "object",
                            "properties": {
                              "version": {
                                "const": "qway.room-program/1",
                                "type": "string"
                              },
                              "archetype": {
                                "type": "string"
                              },
                              "archetypeRevision": {
                                "type": "string"
                              },
                              "purpose": {
                                "type": "string"
                              },
                              "capacity": {
                                "type": "number"
                              },
                              "style": {
                                "type": "string"
                              },
                              "zones": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "reference": {
                                      "type": "string"
                                    },
                                    "purpose": {
                                      "type": "string"
                                    },
                                    "priority": {
                                      "anyOf": [
                                        {
                                          "const": "required",
                                          "type": "string"
                                        },
                                        {
                                          "const": "recommended",
                                          "type": "string"
                                        },
                                        {
                                          "const": "optional",
                                          "type": "string"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "reference",
                                    "purpose",
                                    "priority"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "needs": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "reference": {
                                      "type": "string"
                                    },
                                    "category": {
                                      "type": "string"
                                    },
                                    "zone": {
                                      "type": "string"
                                    },
                                    "quantity": {
                                      "type": "number"
                                    },
                                    "capacity": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "number"
                                        }
                                      ]
                                    },
                                    "priority": {
                                      "anyOf": [
                                        {
                                          "const": "required",
                                          "type": "string"
                                        },
                                        {
                                          "const": "recommended",
                                          "type": "string"
                                        },
                                        {
                                          "const": "optional",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "assetAlias": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "placement": {
                                      "anyOf": [
                                        {
                                          "const": "auto",
                                          "type": "string"
                                        },
                                        {
                                          "const": "center",
                                          "type": "string"
                                        },
                                        {
                                          "const": "perimeter",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "evidence": {
                                      "type": "object",
                                      "properties": {
                                        "origin": {
                                          "anyOf": [
                                            {
                                              "const": "explicit",
                                              "type": "string"
                                            },
                                            {
                                              "const": "archetype",
                                              "type": "string"
                                            },
                                            {
                                              "const": "inferred",
                                              "type": "string"
                                            }
                                          ]
                                        },
                                        "confidence": {
                                          "type": "number"
                                        },
                                        "explanation": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "origin",
                                        "confidence",
                                        "explanation"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "reference",
                                    "category",
                                    "zone",
                                    "quantity",
                                    "capacity",
                                    "priority",
                                    "assetAlias",
                                    "placement",
                                    "evidence"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "reference": {
                                      "type": "string"
                                    },
                                    "kind": {
                                      "anyOf": [
                                        {
                                          "const": "on",
                                          "type": "string"
                                        },
                                        {
                                          "const": "seating",
                                          "type": "string"
                                        },
                                        {
                                          "const": "beside",
                                          "type": "string"
                                        },
                                        {
                                          "const": "facing",
                                          "type": "string"
                                        },
                                        {
                                          "const": "near-window",
                                          "type": "string"
                                        },
                                        {
                                          "const": "wall-alignment",
                                          "type": "string"
                                        },
                                        {
                                          "const": "interior",
                                          "type": "string"
                                        },
                                        {
                                          "const": "access",
                                          "type": "string"
                                        },
                                        {
                                          "const": "visibility",
                                          "type": "string"
                                        },
                                        {
                                          "const": "clearance",
                                          "type": "string"
                                        },
                                        {
                                          "const": "circulation",
                                          "type": "string"
                                        },
                                        {
                                          "const": "minimum-dimensions",
                                          "type": "string"
                                        },
                                        {
                                          "const": "unsupported",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "subjects": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "target": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "priority": {
                                      "anyOf": [
                                        {
                                          "const": "required",
                                          "type": "string"
                                        },
                                        {
                                          "const": "recommended",
                                          "type": "string"
                                        },
                                        {
                                          "const": "optional",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "strength": {
                                      "anyOf": [
                                        {
                                          "const": "hard",
                                          "type": "string"
                                        },
                                        {
                                          "const": "soft",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "clearanceM": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "number"
                                        }
                                      ]
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "evidence": {
                                      "type": "object",
                                      "properties": {
                                        "origin": {
                                          "anyOf": [
                                            {
                                              "const": "explicit",
                                              "type": "string"
                                            },
                                            {
                                              "const": "archetype",
                                              "type": "string"
                                            },
                                            {
                                              "const": "inferred",
                                              "type": "string"
                                            }
                                          ]
                                        },
                                        "confidence": {
                                          "type": "number"
                                        },
                                        "explanation": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "origin",
                                        "confidence",
                                        "explanation"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "reference",
                                    "kind",
                                    "subjects",
                                    "target",
                                    "priority",
                                    "strength",
                                    "clearanceM",
                                    "description",
                                    "evidence"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "architecture": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "reference": {
                                      "type": "string"
                                    },
                                    "kind": {
                                      "anyOf": [
                                        {
                                          "const": "window",
                                          "type": "string"
                                        },
                                        {
                                          "const": "portal",
                                          "type": "string"
                                        },
                                        {
                                          "const": "wall-run",
                                          "type": "string"
                                        },
                                        {
                                          "const": "open-center",
                                          "type": "string"
                                        },
                                        {
                                          "const": "natural-light",
                                          "type": "string"
                                        },
                                        {
                                          "const": "ceiling-light",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "quantity": {
                                      "type": "number"
                                    },
                                    "priority": {
                                      "anyOf": [
                                        {
                                          "const": "required",
                                          "type": "string"
                                        },
                                        {
                                          "const": "recommended",
                                          "type": "string"
                                        },
                                        {
                                          "const": "optional",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "evidence": {
                                      "type": "object",
                                      "properties": {
                                        "origin": {
                                          "anyOf": [
                                            {
                                              "const": "explicit",
                                              "type": "string"
                                            },
                                            {
                                              "const": "archetype",
                                              "type": "string"
                                            },
                                            {
                                              "const": "inferred",
                                              "type": "string"
                                            }
                                          ]
                                        },
                                        "confidence": {
                                          "type": "number"
                                        },
                                        "explanation": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "origin",
                                        "confidence",
                                        "explanation"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "reference",
                                    "kind",
                                    "quantity",
                                    "priority",
                                    "evidence"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "exclusions": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "category": {
                                      "type": "string"
                                    },
                                    "evidence": {
                                      "type": "object",
                                      "properties": {
                                        "origin": {
                                          "const": "explicit",
                                          "type": "string"
                                        },
                                        "confidence": {
                                          "type": "number"
                                        },
                                        "explanation": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "origin",
                                        "confidence",
                                        "explanation"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": ["category", "evidence"],
                                  "additionalProperties": false
                                }
                              },
                              "uncertainties": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "version",
                              "archetype",
                              "archetypeRevision",
                              "purpose",
                              "capacity",
                              "style",
                              "zones",
                              "needs",
                              "rules",
                              "architecture",
                              "exclusions",
                              "uncertainties"
                            ],
                            "additionalProperties": false
                          },
                          "bindings": {
                            "type": "object",
                            "properties": {},
                            "required": [],
                            "additionalProperties": {
                              "type": "string"
                            }
                          }
                        },
                        "required": ["intent", "archetypeSnapshot", "bindings"],
                        "additionalProperties": false
                      },
                      "version": {
                        "const": "qway.furnishing/1",
                        "type": "string"
                      },
                      "purpose": {
                        "type": "string"
                      },
                      "capacity": {
                        "type": "number"
                      },
                      "style": {
                        "type": "string"
                      },
                      "needs": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "identity": {
                              "type": "string"
                            },
                            "category": {
                              "type": "string"
                            },
                            "quantity": {
                              "type": "number"
                            },
                            "capacity": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "number"
                                }
                              ]
                            },
                            "assetAlias": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "placement": {
                              "anyOf": [
                                {
                                  "const": "auto",
                                  "type": "string"
                                },
                                {
                                  "const": "center",
                                  "type": "string"
                                },
                                {
                                  "const": "perimeter",
                                  "type": "string"
                                }
                              ]
                            },
                            "relation": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "const": "on",
                                  "type": "string"
                                },
                                {
                                  "const": "seating",
                                  "type": "string"
                                },
                                {
                                  "const": "near-window",
                                  "type": "string"
                                }
                              ]
                            },
                            "target": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "instances": {
                              "type": "array",
                              "items": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "required": [
                            "identity",
                            "category",
                            "quantity",
                            "capacity",
                            "assetAlias",
                            "placement",
                            "relation",
                            "target",
                            "instances"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "version",
                      "purpose",
                      "capacity",
                      "style",
                      "needs"
                    ],
                    "additionalProperties": false
                  },
                  "identity": {
                    "type": "string"
                  },
                  "alias": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "label": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "level": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "parent": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "size": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "frame": {
                    "type": "object",
                    "properties": {
                      "position": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "minItems": 3,
                        "maxItems": 3,
                        "items": false
                      },
                      "quaternion": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "minItems": 4,
                        "maxItems": 4,
                        "items": false
                      }
                    },
                    "required": ["position", "quaternion"],
                    "additionalProperties": false
                  },
                  "backdrop": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "materialId": {
                            "type": "string"
                          },
                          "identity": {
                            "type": "string"
                          },
                          "semantic": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "source": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "const": "image",
                                    "type": "string"
                                  },
                                  "assetId": {
                                    "type": "string"
                                  },
                                  "uri": {
                                    "type": "string"
                                  },
                                  "mediaType": {
                                    "anyOf": [
                                      {
                                        "const": "image/png",
                                        "type": "string"
                                      },
                                      {
                                        "const": "image/jpeg",
                                        "type": "string"
                                      },
                                      {
                                        "const": "image/webp",
                                        "type": "string"
                                      }
                                    ]
                                  },
                                  "sha256": {
                                    "type": "string"
                                  },
                                  "byteLength": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "kind",
                                  "assetId",
                                  "uri",
                                  "mediaType",
                                  "sha256",
                                  "byteLength"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "const": "asset",
                                    "type": "string"
                                  },
                                  "uri": {
                                    "type": "null"
                                  },
                                  "assetId": {
                                    "type": "string"
                                  }
                                },
                                "required": ["kind", "uri", "assetId"],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "side": {
                            "anyOf": [
                              {
                                "const": "north",
                                "type": "string"
                              },
                              {
                                "const": "south",
                                "type": "string"
                              },
                              {
                                "const": "east",
                                "type": "string"
                              },
                              {
                                "const": "west",
                                "type": "string"
                              }
                            ]
                          },
                          "mode": {
                            "const": "architectural",
                            "type": "string"
                          },
                          "fit": {
                            "anyOf": [
                              {
                                "const": "cover",
                                "type": "string"
                              },
                              {
                                "const": "contain",
                                "type": "string"
                              }
                            ]
                          },
                          "projection": {
                            "const": "flat",
                            "type": "string"
                          },
                          "distance": {
                            "type": "number"
                          },
                          "lighting": {
                            "anyOf": [
                              {
                                "const": "unlit",
                                "type": "string"
                              },
                              {
                                "const": "lit",
                                "type": "string"
                              }
                            ]
                          },
                          "enabled": {
                            "anyOf": [
                              {
                                "const": false,
                                "type": "boolean"
                              },
                              {
                                "const": true,
                                "type": "boolean"
                              }
                            ]
                          }
                        },
                        "required": [
                          "identity",
                          "semantic",
                          "source",
                          "side",
                          "mode",
                          "fit",
                          "projection",
                          "distance",
                          "lighting",
                          "enabled"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "north": {
                            "type": "object",
                            "properties": {
                              "materialId": {
                                "type": "string"
                              },
                              "identity": {
                                "type": "string"
                              },
                              "semantic": {
                                "type": "string",
                                "maxLength": 200
                              },
                              "source": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "const": "image",
                                        "type": "string"
                                      },
                                      "assetId": {
                                        "type": "string"
                                      },
                                      "uri": {
                                        "type": "string"
                                      },
                                      "mediaType": {
                                        "anyOf": [
                                          {
                                            "const": "image/png",
                                            "type": "string"
                                          },
                                          {
                                            "const": "image/jpeg",
                                            "type": "string"
                                          },
                                          {
                                            "const": "image/webp",
                                            "type": "string"
                                          }
                                        ]
                                      },
                                      "sha256": {
                                        "type": "string"
                                      },
                                      "byteLength": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "assetId",
                                      "uri",
                                      "mediaType",
                                      "sha256",
                                      "byteLength"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "const": "asset",
                                        "type": "string"
                                      },
                                      "uri": {
                                        "type": "null"
                                      },
                                      "assetId": {
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind", "uri", "assetId"],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "side": {
                                "anyOf": [
                                  {
                                    "const": "north",
                                    "type": "string"
                                  },
                                  {
                                    "const": "south",
                                    "type": "string"
                                  },
                                  {
                                    "const": "east",
                                    "type": "string"
                                  },
                                  {
                                    "const": "west",
                                    "type": "string"
                                  }
                                ]
                              },
                              "mode": {
                                "const": "architectural",
                                "type": "string"
                              },
                              "fit": {
                                "anyOf": [
                                  {
                                    "const": "cover",
                                    "type": "string"
                                  },
                                  {
                                    "const": "contain",
                                    "type": "string"
                                  }
                                ]
                              },
                              "projection": {
                                "const": "flat",
                                "type": "string"
                              },
                              "distance": {
                                "type": "number"
                              },
                              "lighting": {
                                "anyOf": [
                                  {
                                    "const": "unlit",
                                    "type": "string"
                                  },
                                  {
                                    "const": "lit",
                                    "type": "string"
                                  }
                                ]
                              },
                              "enabled": {
                                "anyOf": [
                                  {
                                    "const": false,
                                    "type": "boolean"
                                  },
                                  {
                                    "const": true,
                                    "type": "boolean"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "identity",
                              "semantic",
                              "source",
                              "side",
                              "mode",
                              "fit",
                              "projection",
                              "distance",
                              "lighting",
                              "enabled"
                            ],
                            "additionalProperties": false
                          },
                          "south": {
                            "type": "object",
                            "properties": {
                              "materialId": {
                                "type": "string"
                              },
                              "identity": {
                                "type": "string"
                              },
                              "semantic": {
                                "type": "string",
                                "maxLength": 200
                              },
                              "source": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "const": "image",
                                        "type": "string"
                                      },
                                      "assetId": {
                                        "type": "string"
                                      },
                                      "uri": {
                                        "type": "string"
                                      },
                                      "mediaType": {
                                        "anyOf": [
                                          {
                                            "const": "image/png",
                                            "type": "string"
                                          },
                                          {
                                            "const": "image/jpeg",
                                            "type": "string"
                                          },
                                          {
                                            "const": "image/webp",
                                            "type": "string"
                                          }
                                        ]
                                      },
                                      "sha256": {
                                        "type": "string"
                                      },
                                      "byteLength": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "assetId",
                                      "uri",
                                      "mediaType",
                                      "sha256",
                                      "byteLength"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "const": "asset",
                                        "type": "string"
                                      },
                                      "uri": {
                                        "type": "null"
                                      },
                                      "assetId": {
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind", "uri", "assetId"],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "side": {
                                "anyOf": [
                                  {
                                    "const": "north",
                                    "type": "string"
                                  },
                                  {
                                    "const": "south",
                                    "type": "string"
                                  },
                                  {
                                    "const": "east",
                                    "type": "string"
                                  },
                                  {
                                    "const": "west",
                                    "type": "string"
                                  }
                                ]
                              },
                              "mode": {
                                "const": "architectural",
                                "type": "string"
                              },
                              "fit": {
                                "anyOf": [
                                  {
                                    "const": "cover",
                                    "type": "string"
                                  },
                                  {
                                    "const": "contain",
                                    "type": "string"
                                  }
                                ]
                              },
                              "projection": {
                                "const": "flat",
                                "type": "string"
                              },
                              "distance": {
                                "type": "number"
                              },
                              "lighting": {
                                "anyOf": [
                                  {
                                    "const": "unlit",
                                    "type": "string"
                                  },
                                  {
                                    "const": "lit",
                                    "type": "string"
                                  }
                                ]
                              },
                              "enabled": {
                                "anyOf": [
                                  {
                                    "const": false,
                                    "type": "boolean"
                                  },
                                  {
                                    "const": true,
                                    "type": "boolean"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "identity",
                              "semantic",
                              "source",
                              "side",
                              "mode",
                              "fit",
                              "projection",
                              "distance",
                              "lighting",
                              "enabled"
                            ],
                            "additionalProperties": false
                          },
                          "east": {
                            "type": "object",
                            "properties": {
                              "materialId": {
                                "type": "string"
                              },
                              "identity": {
                                "type": "string"
                              },
                              "semantic": {
                                "type": "string",
                                "maxLength": 200
                              },
                              "source": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "const": "image",
                                        "type": "string"
                                      },
                                      "assetId": {
                                        "type": "string"
                                      },
                                      "uri": {
                                        "type": "string"
                                      },
                                      "mediaType": {
                                        "anyOf": [
                                          {
                                            "const": "image/png",
                                            "type": "string"
                                          },
                                          {
                                            "const": "image/jpeg",
                                            "type": "string"
                                          },
                                          {
                                            "const": "image/webp",
                                            "type": "string"
                                          }
                                        ]
                                      },
                                      "sha256": {
                                        "type": "string"
                                      },
                                      "byteLength": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "assetId",
                                      "uri",
                                      "mediaType",
                                      "sha256",
                                      "byteLength"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "const": "asset",
                                        "type": "string"
                                      },
                                      "uri": {
                                        "type": "null"
                                      },
                                      "assetId": {
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind", "uri", "assetId"],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "side": {
                                "anyOf": [
                                  {
                                    "const": "north",
                                    "type": "string"
                                  },
                                  {
                                    "const": "south",
                                    "type": "string"
                                  },
                                  {
                                    "const": "east",
                                    "type": "string"
                                  },
                                  {
                                    "const": "west",
                                    "type": "string"
                                  }
                                ]
                              },
                              "mode": {
                                "const": "architectural",
                                "type": "string"
                              },
                              "fit": {
                                "anyOf": [
                                  {
                                    "const": "cover",
                                    "type": "string"
                                  },
                                  {
                                    "const": "contain",
                                    "type": "string"
                                  }
                                ]
                              },
                              "projection": {
                                "const": "flat",
                                "type": "string"
                              },
                              "distance": {
                                "type": "number"
                              },
                              "lighting": {
                                "anyOf": [
                                  {
                                    "const": "unlit",
                                    "type": "string"
                                  },
                                  {
                                    "const": "lit",
                                    "type": "string"
                                  }
                                ]
                              },
                              "enabled": {
                                "anyOf": [
                                  {
                                    "const": false,
                                    "type": "boolean"
                                  },
                                  {
                                    "const": true,
                                    "type": "boolean"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "identity",
                              "semantic",
                              "source",
                              "side",
                              "mode",
                              "fit",
                              "projection",
                              "distance",
                              "lighting",
                              "enabled"
                            ],
                            "additionalProperties": false
                          },
                          "west": {
                            "type": "object",
                            "properties": {
                              "materialId": {
                                "type": "string"
                              },
                              "identity": {
                                "type": "string"
                              },
                              "semantic": {
                                "type": "string",
                                "maxLength": 200
                              },
                              "source": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "const": "image",
                                        "type": "string"
                                      },
                                      "assetId": {
                                        "type": "string"
                                      },
                                      "uri": {
                                        "type": "string"
                                      },
                                      "mediaType": {
                                        "anyOf": [
                                          {
                                            "const": "image/png",
                                            "type": "string"
                                          },
                                          {
                                            "const": "image/jpeg",
                                            "type": "string"
                                          },
                                          {
                                            "const": "image/webp",
                                            "type": "string"
                                          }
                                        ]
                                      },
                                      "sha256": {
                                        "type": "string"
                                      },
                                      "byteLength": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "assetId",
                                      "uri",
                                      "mediaType",
                                      "sha256",
                                      "byteLength"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "const": "asset",
                                        "type": "string"
                                      },
                                      "uri": {
                                        "type": "null"
                                      },
                                      "assetId": {
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind", "uri", "assetId"],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "side": {
                                "anyOf": [
                                  {
                                    "const": "north",
                                    "type": "string"
                                  },
                                  {
                                    "const": "south",
                                    "type": "string"
                                  },
                                  {
                                    "const": "east",
                                    "type": "string"
                                  },
                                  {
                                    "const": "west",
                                    "type": "string"
                                  }
                                ]
                              },
                              "mode": {
                                "const": "architectural",
                                "type": "string"
                              },
                              "fit": {
                                "anyOf": [
                                  {
                                    "const": "cover",
                                    "type": "string"
                                  },
                                  {
                                    "const": "contain",
                                    "type": "string"
                                  }
                                ]
                              },
                              "projection": {
                                "const": "flat",
                                "type": "string"
                              },
                              "distance": {
                                "type": "number"
                              },
                              "lighting": {
                                "anyOf": [
                                  {
                                    "const": "unlit",
                                    "type": "string"
                                  },
                                  {
                                    "const": "lit",
                                    "type": "string"
                                  }
                                ]
                              },
                              "enabled": {
                                "anyOf": [
                                  {
                                    "const": false,
                                    "type": "boolean"
                                  },
                                  {
                                    "const": true,
                                    "type": "boolean"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "identity",
                              "semantic",
                              "source",
                              "side",
                              "mode",
                              "fit",
                              "projection",
                              "distance",
                              "lighting",
                              "enabled"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "required": [
                  "identity",
                  "alias",
                  "label",
                  "level",
                  "parent",
                  "size",
                  "frame"
                ],
                "additionalProperties": false
              }
            },
            "levels": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "identity": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  }
                },
                "required": ["identity", "label"],
                "additionalProperties": false
              }
            },
            "portals": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "identity": {
                    "type": "string"
                  },
                  "alias": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "frame": {
                    "type": "object",
                    "properties": {
                      "position": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "minItems": 3,
                        "maxItems": 3,
                        "items": false
                      },
                      "quaternion": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "minItems": 4,
                        "maxItems": 4,
                        "items": false
                      }
                    },
                    "required": ["position", "quaternion"],
                    "additionalProperties": false
                  },
                  "width": {
                    "type": "number"
                  },
                  "height": {
                    "type": "number"
                  },
                  "traversable": {
                    "anyOf": [
                      {
                        "const": false,
                        "type": "boolean"
                      },
                      {
                        "const": true,
                        "type": "boolean"
                      }
                    ]
                  },
                  "door": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "identity",
                  "alias",
                  "from",
                  "to",
                  "frame",
                  "width",
                  "height",
                  "traversable",
                  "door"
                ],
                "additionalProperties": false
              }
            },
            "entrances": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "identity": {
                    "type": "string"
                  },
                  "alias": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "room": {
                    "type": "string"
                  },
                  "frame": {
                    "type": "object",
                    "properties": {
                      "position": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "minItems": 3,
                        "maxItems": 3,
                        "items": false
                      },
                      "quaternion": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "minItems": 4,
                        "maxItems": 4,
                        "items": false
                      }
                    },
                    "required": ["position", "quaternion"],
                    "additionalProperties": false
                  },
                  "width": {
                    "type": "number"
                  },
                  "height": {
                    "type": "number"
                  },
                  "traversable": {
                    "anyOf": [
                      {
                        "const": false,
                        "type": "boolean"
                      },
                      {
                        "const": true,
                        "type": "boolean"
                      }
                    ]
                  },
                  "door": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "identity",
                  "alias",
                  "room",
                  "frame",
                  "width",
                  "height",
                  "traversable",
                  "door"
                ],
                "additionalProperties": false
              }
            },
            "membership": {
              "type": "object",
              "properties": {},
              "required": [],
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          "required": [
            "version",
            "identity",
            "rooms",
            "levels",
            "portals",
            "membership"
          ],
          "additionalProperties": false
        },
        "worldFrames": {
          "type": "object",
          "properties": {},
          "required": [],
          "additionalProperties": {
            "type": "object",
            "properties": {
              "position": {
                "type": "array",
                "prefixItems": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "minItems": 3,
                "maxItems": 3,
                "items": false
              },
              "quaternion": {
                "type": "array",
                "prefixItems": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "minItems": 4,
                "maxItems": 4,
                "items": false
              }
            },
            "required": ["position", "quaternion"],
            "additionalProperties": false
          }
        },
        "localPoses": {
          "type": "object",
          "properties": {},
          "required": [],
          "additionalProperties": {
            "type": "object",
            "properties": {
              "position": {
                "type": "array",
                "prefixItems": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "minItems": 3,
                "maxItems": 3,
                "items": false
              },
              "quaternion": {
                "type": "array",
                "prefixItems": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "minItems": 4,
                "maxItems": 4,
                "items": false
              },
              "scale": {
                "type": "array",
                "prefixItems": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "minItems": 3,
                "maxItems": 3,
                "items": false
              }
            },
            "required": ["position", "quaternion", "scale"],
            "additionalProperties": false
          }
        },
        "programVerification": {
          "type": "object",
          "properties": {
            "policy": {
              "anyOf": [
                {
                  "const": "qway.room-program-geometry/1",
                  "type": "string"
                },
                {
                  "const": "qway.room-program-geometry/2",
                  "type": "string"
                },
                {
                  "const": "qway.room-program-geometry/3",
                  "type": "string"
                }
              ]
            },
            "actor": {
              "type": "object",
              "properties": {
                "radiusM": {
                  "type": "number"
                },
                "heightM": {
                  "type": "number"
                }
              },
              "required": ["radiusM", "heightM"],
              "additionalProperties": false
            },
            "rooms": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "room": {
                    "type": "string"
                  },
                  "archetypeRevision": {
                    "type": "string"
                  },
                  "layout": {
                    "type": "object",
                    "properties": {
                      "policy": {
                        "const": "qway.room-program-layout/1",
                        "type": "string"
                      },
                      "strategy": {
                        "const": "bounded-geometric-search",
                        "type": "string"
                      },
                      "candidateBudget": {
                        "type": "number"
                      },
                      "candidatesTested": {
                        "type": "number"
                      },
                      "passesPerformed": {
                        "type": "number"
                      },
                      "initialRules": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string"
                            },
                            "status": {
                              "anyOf": [
                                {
                                  "const": "unsupported",
                                  "type": "string"
                                },
                                {
                                  "const": "satisfied",
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                },
                                {
                                  "const": "unknown",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": ["reference", "status"],
                          "additionalProperties": false
                        }
                      },
                      "changedInstances": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "relaxedConstraints": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "termination": {
                        "anyOf": [
                          {
                            "const": "stationary",
                            "type": "string"
                          },
                          {
                            "const": "budget-exhausted",
                            "type": "string"
                          },
                          {
                            "const": "pass-limit",
                            "type": "string"
                          },
                          {
                            "const": "zero-score",
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "policy",
                      "strategy",
                      "candidateBudget",
                      "candidatesTested",
                      "passesPerformed",
                      "initialRules",
                      "changedInstances",
                      "relaxedConstraints",
                      "termination"
                    ],
                    "additionalProperties": false
                  },
                  "inventory": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string"
                        },
                        "priority": {
                          "anyOf": [
                            {
                              "const": "required",
                              "type": "string"
                            },
                            {
                              "const": "recommended",
                              "type": "string"
                            },
                            {
                              "const": "optional",
                              "type": "string"
                            }
                          ]
                        },
                        "requestedUnits": {
                          "type": "number"
                        },
                        "resolvedUnits": {
                          "type": "number"
                        },
                        "status": {
                          "anyOf": [
                            {
                              "const": "unsupported",
                              "type": "string"
                            },
                            {
                              "const": "satisfied",
                              "type": "string"
                            },
                            {
                              "const": "failed",
                              "type": "string"
                            },
                            {
                              "const": "unknown",
                              "type": "string"
                            }
                          ]
                        }
                      },
                      "required": [
                        "reference",
                        "priority",
                        "requestedUnits",
                        "resolvedUnits",
                        "status"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string"
                        },
                        "kind": {
                          "anyOf": [
                            {
                              "const": "on",
                              "type": "string"
                            },
                            {
                              "const": "seating",
                              "type": "string"
                            },
                            {
                              "const": "beside",
                              "type": "string"
                            },
                            {
                              "const": "facing",
                              "type": "string"
                            },
                            {
                              "const": "near-window",
                              "type": "string"
                            },
                            {
                              "const": "wall-alignment",
                              "type": "string"
                            },
                            {
                              "const": "interior",
                              "type": "string"
                            },
                            {
                              "const": "access",
                              "type": "string"
                            },
                            {
                              "const": "visibility",
                              "type": "string"
                            },
                            {
                              "const": "clearance",
                              "type": "string"
                            },
                            {
                              "const": "circulation",
                              "type": "string"
                            },
                            {
                              "const": "minimum-dimensions",
                              "type": "string"
                            },
                            {
                              "const": "unsupported",
                              "type": "string"
                            }
                          ]
                        },
                        "priority": {
                          "anyOf": [
                            {
                              "const": "required",
                              "type": "string"
                            },
                            {
                              "const": "recommended",
                              "type": "string"
                            },
                            {
                              "const": "optional",
                              "type": "string"
                            }
                          ]
                        },
                        "strength": {
                          "anyOf": [
                            {
                              "const": "hard",
                              "type": "string"
                            },
                            {
                              "const": "soft",
                              "type": "string"
                            }
                          ]
                        },
                        "status": {
                          "anyOf": [
                            {
                              "const": "unsupported",
                              "type": "string"
                            },
                            {
                              "const": "satisfied",
                              "type": "string"
                            },
                            {
                              "const": "failed",
                              "type": "string"
                            },
                            {
                              "const": "unknown",
                              "type": "string"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "maxLength": 2000
                        },
                        "pairs": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "subject": {
                                "type": "string"
                              },
                              "target": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "status": {
                                "anyOf": [
                                  {
                                    "const": "unsupported",
                                    "type": "string"
                                  },
                                  {
                                    "const": "satisfied",
                                    "type": "string"
                                  },
                                  {
                                    "const": "failed",
                                    "type": "string"
                                  },
                                  {
                                    "const": "unknown",
                                    "type": "string"
                                  }
                                ]
                              },
                              "message": {
                                "type": "string",
                                "maxLength": 2000
                              },
                              "residuals": {
                                "type": "object",
                                "properties": {},
                                "required": [],
                                "additionalProperties": {
                                  "type": "number"
                                }
                              }
                            },
                            "required": [
                              "subject",
                              "target",
                              "status",
                              "message",
                              "residuals"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "kind",
                        "priority",
                        "strength",
                        "status",
                        "message",
                        "pairs"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "architecture": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string"
                        },
                        "kind": {
                          "anyOf": [
                            {
                              "const": "window",
                              "type": "string"
                            },
                            {
                              "const": "portal",
                              "type": "string"
                            },
                            {
                              "const": "wall-run",
                              "type": "string"
                            },
                            {
                              "const": "open-center",
                              "type": "string"
                            },
                            {
                              "const": "natural-light",
                              "type": "string"
                            },
                            {
                              "const": "ceiling-light",
                              "type": "string"
                            }
                          ]
                        },
                        "priority": {
                          "anyOf": [
                            {
                              "const": "required",
                              "type": "string"
                            },
                            {
                              "const": "recommended",
                              "type": "string"
                            },
                            {
                              "const": "optional",
                              "type": "string"
                            }
                          ]
                        },
                        "requested": {
                          "type": "number"
                        },
                        "verified": {
                          "type": "number"
                        },
                        "status": {
                          "anyOf": [
                            {
                              "const": "unsupported",
                              "type": "string"
                            },
                            {
                              "const": "satisfied",
                              "type": "string"
                            },
                            {
                              "const": "failed",
                              "type": "string"
                            },
                            {
                              "const": "unknown",
                              "type": "string"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "maxLength": 2000
                        }
                      },
                      "required": [
                        "reference",
                        "kind",
                        "priority",
                        "requested",
                        "verified",
                        "status",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "room",
                  "archetypeRevision",
                  "inventory",
                  "rules",
                  "architecture"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": ["policy", "actor", "rooms"],
          "additionalProperties": false
        },
        "verification": {
          "type": "object",
          "properties": {
            "policy": {
              "const": "wright.portal-geometry/1",
              "type": "string"
            },
            "actor": {
              "type": "object",
              "properties": {
                "radius": {
                  "type": "number"
                },
                "height": {
                  "type": "number"
                }
              },
              "required": ["radius", "height"],
              "additionalProperties": false
            },
            "portals": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "identity": {
                    "type": "string"
                  },
                  "requestedAperture": {
                    "anyOf": [
                      {
                        "const": "unknown",
                        "type": "string"
                      },
                      {
                        "const": "clear",
                        "type": "string"
                      },
                      {
                        "const": "collision",
                        "type": "string"
                      }
                    ]
                  },
                  "actorPassage": {
                    "anyOf": [
                      {
                        "const": "unknown",
                        "type": "string"
                      },
                      {
                        "const": "clear",
                        "type": "string"
                      },
                      {
                        "const": "collision",
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["identity", "requestedAperture", "actorPassage"],
                "additionalProperties": false
              }
            },
            "entrances": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "identity": {
                    "type": "string"
                  },
                  "requestedAperture": {
                    "anyOf": [
                      {
                        "const": "unknown",
                        "type": "string"
                      },
                      {
                        "const": "clear",
                        "type": "string"
                      },
                      {
                        "const": "collision",
                        "type": "string"
                      }
                    ]
                  },
                  "actorPassage": {
                    "anyOf": [
                      {
                        "const": "unknown",
                        "type": "string"
                      },
                      {
                        "const": "clear",
                        "type": "string"
                      },
                      {
                        "const": "collision",
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["identity", "requestedAperture", "actorPassage"],
                "additionalProperties": false
              }
            },
            "circulation": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "room": {
                    "type": "string"
                  },
                  "status": {
                    "anyOf": [
                      {
                        "const": "unsupported",
                        "type": "string"
                      },
                      {
                        "const": "ready",
                        "type": "string"
                      },
                      {
                        "const": "unresolved",
                        "type": "string"
                      },
                      {
                        "const": "not-requested",
                        "type": "string"
                      }
                    ]
                  },
                  "entryCount": {
                    "type": "number"
                  },
                  "reachableSamples": {
                    "type": "number"
                  },
                  "routeOutcomes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "room",
                  "status",
                  "entryCount",
                  "reachableSamples",
                  "routeOutcomes"
                ],
                "additionalProperties": false
              }
            },
            "navigationBoxes": {
              "type": "object",
              "properties": {},
              "required": [],
              "additionalProperties": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "min": {
                      "type": "array",
                      "prefixItems": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "minItems": 3,
                      "maxItems": 3,
                      "items": false
                    },
                    "max": {
                      "type": "array",
                      "prefixItems": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "minItems": 3,
                      "maxItems": 3,
                      "items": false
                    }
                  },
                  "required": ["min", "max"],
                  "additionalProperties": false
                }
              }
            }
          },
          "required": [
            "policy",
            "actor",
            "portals",
            "circulation",
            "navigationBoxes"
          ],
          "additionalProperties": false
        },
        "diagnostics": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "severity": {
                "anyOf": [
                  {
                    "const": "error",
                    "type": "string"
                  },
                  {
                    "const": "warning",
                    "type": "string"
                  }
                ]
              },
              "identity": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "message": {
                "type": "string"
              }
            },
            "required": ["code", "severity", "identity", "message"],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "version",
        "topology",
        "worldFrames",
        "localPoses",
        "diagnostics"
      ],
      "additionalProperties": false
    },
    "schema": {
      "const": "quay.scene",
      "type": "string"
    },
    "schemaVersion": {
      "const": "2.0.0-draft.1",
      "type": "string"
    },
    "semantic": {
      "type": "object",
      "properties": {
        "materials": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "version": {
                "const": "quay.material/1",
                "type": "string"
              },
              "identity": {
                "type": "string"
              },
              "alias": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "category": {
                "anyOf": [
                  {
                    "const": "generic",
                    "type": "string"
                  },
                  {
                    "const": "wood",
                    "type": "string"
                  },
                  {
                    "const": "metal",
                    "type": "string"
                  },
                  {
                    "const": "stone",
                    "type": "string"
                  },
                  {
                    "const": "concrete",
                    "type": "string"
                  },
                  {
                    "const": "ceramic",
                    "type": "string"
                  },
                  {
                    "const": "fabric",
                    "type": "string"
                  },
                  {
                    "const": "glass",
                    "type": "string"
                  },
                  {
                    "const": "paper",
                    "type": "string"
                  },
                  {
                    "const": "plastic",
                    "type": "string"
                  },
                  {
                    "const": "paint",
                    "type": "string"
                  }
                ]
              },
              "shader": {
                "anyOf": [
                  {
                    "const": "unlit",
                    "type": "string"
                  },
                  {
                    "const": "standard",
                    "type": "string"
                  }
                ]
              },
              "color": {
                "type": "string"
              },
              "roughness": {
                "type": "number"
              },
              "metalness": {
                "type": "number"
              },
              "emissive": {
                "type": "string"
              },
              "emissiveIntensity": {
                "type": "number"
              },
              "opacity": {
                "type": "number"
              },
              "alphaMode": {
                "anyOf": [
                  {
                    "const": "opaque",
                    "type": "string"
                  },
                  {
                    "const": "mask",
                    "type": "string"
                  },
                  {
                    "const": "blend",
                    "type": "string"
                  }
                ]
              },
              "alphaCutoff": {
                "type": "number"
              },
              "side": {
                "anyOf": [
                  {
                    "const": "front",
                    "type": "string"
                  },
                  {
                    "const": "back",
                    "type": "string"
                  },
                  {
                    "const": "double",
                    "type": "string"
                  }
                ]
              },
              "preset": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "maps": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "slot": {
                      "anyOf": [
                        {
                          "const": "color",
                          "type": "string"
                        },
                        {
                          "const": "normal",
                          "type": "string"
                        },
                        {
                          "const": "roughness",
                          "type": "string"
                        },
                        {
                          "const": "metalness",
                          "type": "string"
                        },
                        {
                          "const": "emissive",
                          "type": "string"
                        },
                        {
                          "const": "occlusion",
                          "type": "string"
                        },
                        {
                          "const": "alpha",
                          "type": "string"
                        }
                      ]
                    },
                    "image": {
                      "type": "object",
                      "properties": {
                        "assetId": {
                          "type": "string"
                        },
                        "uri": {
                          "type": "string"
                        },
                        "sha256": {
                          "type": "string"
                        },
                        "byteLength": {
                          "type": "number"
                        },
                        "mediaType": {
                          "anyOf": [
                            {
                              "const": "image/png",
                              "type": "string"
                            },
                            {
                              "const": "image/jpeg",
                              "type": "string"
                            },
                            {
                              "const": "image/webp",
                              "type": "string"
                            }
                          ]
                        },
                        "displayName": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "assetId",
                        "uri",
                        "sha256",
                        "byteLength",
                        "mediaType",
                        "displayName"
                      ],
                      "additionalProperties": false
                    },
                    "repeat": {
                      "type": "array",
                      "prefixItems": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "minItems": 2,
                      "maxItems": 2,
                      "items": false
                    },
                    "offset": {
                      "type": "array",
                      "prefixItems": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "minItems": 2,
                      "maxItems": 2,
                      "items": false
                    },
                    "rotation": {
                      "type": "number"
                    },
                    "wrap": {
                      "anyOf": [
                        {
                          "const": "repeat",
                          "type": "string"
                        },
                        {
                          "const": "clamp",
                          "type": "string"
                        },
                        {
                          "const": "mirror",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": [
                    "slot",
                    "image",
                    "repeat",
                    "offset",
                    "rotation",
                    "wrap"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "version",
              "identity",
              "alias",
              "label",
              "description",
              "category",
              "shader",
              "color",
              "roughness",
              "metalness",
              "emissive",
              "emissiveIntensity",
              "opacity",
              "alphaMode",
              "alphaCutoff",
              "side",
              "preset",
              "maps"
            ],
            "additionalProperties": false
          }
        },
        "assetPolicy": {
          "const": "project-user-standard",
          "type": "string"
        },
        "composition": {
          "const": "quay.room-composition/1",
          "type": "string"
        },
        "version": {
          "const": "quay.semantic/1",
          "type": "string"
        },
        "sceneId": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "seed": {
          "type": "number"
        },
        "room": {
          "type": "object",
          "properties": {
            "identity": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "string"
                }
              ]
            },
            "size": {
              "type": "array",
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "minItems": 3,
              "maxItems": 3,
              "items": false
            }
          },
          "required": ["identity", "size"],
          "additionalProperties": false
        },
        "profile": {
          "anyOf": [
            {
              "const": "static",
              "type": "string"
            },
            {
              "const": "physical",
              "type": "string"
            }
          ]
        },
        "objects": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "materialId": {
                "type": "string"
              },
              "region": {
                "anyOf": [
                  {
                    "const": "center",
                    "type": "string"
                  },
                  {
                    "const": "perimeter",
                    "type": "string"
                  }
                ]
              },
              "actor": {
                "type": "object",
                "properties": {
                  "policy": {
                    "const": "quay.actor-box/1",
                    "type": "string"
                  },
                  "size": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "eye": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "manipulationOrigin": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "reachM": {
                    "type": "number"
                  }
                },
                "required": [
                  "policy",
                  "size",
                  "eye",
                  "manipulationOrigin",
                  "reachM"
                ],
                "additionalProperties": false
              },
              "animation": {
                "type": "object",
                "properties": {
                  "policy": {
                    "const": "quay.animation/1",
                    "type": "string"
                  },
                  "clipIndex": {
                    "type": "number"
                  },
                  "clipName": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "mode": {
                    "anyOf": [
                      {
                        "const": "in-place",
                        "type": "string"
                      },
                      {
                        "const": "articulated",
                        "type": "string"
                      }
                    ]
                  },
                  "speed": {
                    "type": "number"
                  },
                  "loop": {
                    "anyOf": [
                      {
                        "const": false,
                        "type": "boolean"
                      },
                      {
                        "const": true,
                        "type": "boolean"
                      }
                    ]
                  },
                  "offsetSeconds": {
                    "type": "number"
                  }
                },
                "required": [
                  "policy",
                  "clipIndex",
                  "clipName",
                  "mode",
                  "speed",
                  "loop",
                  "offsetSeconds"
                ],
                "additionalProperties": false
              },
              "normalization": {
                "type": "object",
                "properties": {
                  "rawBounds": {
                    "type": "object",
                    "properties": {
                      "min": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "minItems": 3,
                        "maxItems": 3,
                        "items": false
                      },
                      "max": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "minItems": 3,
                        "maxItems": 3,
                        "items": false
                      }
                    },
                    "required": ["min", "max"],
                    "additionalProperties": false
                  },
                  "scale": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "baseOffset": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "forwardCorrection": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 4,
                    "maxItems": 4,
                    "items": false
                  }
                },
                "required": [
                  "rawBounds",
                  "scale",
                  "baseOffset",
                  "forwardCorrection"
                ],
                "additionalProperties": false
              },
              "orientation": {
                "type": "object",
                "properties": {
                  "policy": {
                    "anyOf": [
                      {
                        "const": "quay.orientation/1",
                        "type": "string"
                      },
                      {
                        "const": "quay.orientation/2",
                        "type": "string"
                      }
                    ]
                  },
                  "quaternion": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 4,
                    "maxItems": 4,
                    "items": false
                  },
                  "up": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "front": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "confidence": {
                    "type": "number"
                  },
                  "evidence": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "policy",
                  "quaternion",
                  "up",
                  "front",
                  "confidence",
                  "evidence"
                ],
                "additionalProperties": false
              },
              "identity": {
                "type": "string"
              },
              "alias": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "notes": {
                "type": "string",
                "maxLength": 2000
              },
              "assetId": {
                "type": "string"
              },
              "manifestId": {
                "type": "string"
              },
              "role": {
                "type": "string"
              },
              "visible": {
                "anyOf": [
                  {
                    "const": false,
                    "type": "boolean"
                  },
                  {
                    "const": true,
                    "type": "boolean"
                  }
                ]
              },
              "pose": {
                "type": "object",
                "properties": {
                  "position": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "quaternion": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 4,
                    "maxItems": 4,
                    "items": false
                  },
                  "scale": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  }
                },
                "required": [],
                "additionalProperties": false
              },
              "size": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  }
                ]
              },
              "sizing": {
                "type": "object",
                "properties": {
                  "measurement": {
                    "type": "object",
                    "properties": {
                      "reference": {
                        "anyOf": [
                          {
                            "const": "whole-bounds",
                            "type": "string"
                          },
                          {
                            "const": "withers",
                            "type": "string"
                          }
                        ]
                      },
                      "targetM": {
                        "type": "number"
                      },
                      "sourceReferenceM": {
                        "type": "number"
                      },
                      "method": {
                        "anyOf": [
                          {
                            "const": "measured-bounds",
                            "type": "string"
                          },
                          {
                            "const": "rig-shoulder-envelope-approximation/1",
                            "type": "string"
                          }
                        ]
                      },
                      "confidence": {
                        "type": "number"
                      },
                      "evidence": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "reference",
                      "targetM",
                      "sourceReferenceM",
                      "method",
                      "confidence",
                      "evidence"
                    ],
                    "additionalProperties": false
                  },
                  "policy": {
                    "const": "quay.sizing/1",
                    "type": "string"
                  },
                  "measuredDimensions": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "orientedDimensions": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "chosenDimensions": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "finalSceneDimensions": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "uniformScale": {
                    "type": "number"
                  },
                  "profile": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "schema": {
                            "const": "quay.archetype",
                            "type": "string"
                          },
                          "schemaVersion": {
                            "const": "1.0.0",
                            "type": "string"
                          },
                          "profileId": {
                            "type": "string"
                          },
                          "revision": {
                            "type": "number"
                          },
                          "parentId": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "semanticClass": {
                            "type": "string"
                          },
                          "status": {
                            "anyOf": [
                              {
                                "const": "accepted",
                                "type": "string"
                              },
                              {
                                "const": "suggested",
                                "type": "string"
                              },
                              {
                                "const": "rejected",
                                "type": "string"
                              },
                              {
                                "const": "user-corrected",
                                "type": "string"
                              }
                            ]
                          },
                          "dimensions": {
                            "type": "object",
                            "properties": {
                              "width": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "minM": {
                                        "type": "number"
                                      },
                                      "typicalM": {
                                        "type": "number"
                                      },
                                      "maxM": {
                                        "type": "number"
                                      },
                                      "reference": {
                                        "anyOf": [
                                          {
                                            "const": "whole-bounds",
                                            "type": "string"
                                          },
                                          {
                                            "const": "withers",
                                            "type": "string"
                                          },
                                          {
                                            "const": "seat",
                                            "type": "string"
                                          },
                                          {
                                            "const": "worktop",
                                            "type": "string"
                                          },
                                          {
                                            "const": "opening",
                                            "type": "string"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "minM",
                                      "typicalM",
                                      "maxM",
                                      "reference"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "height": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "minM": {
                                        "type": "number"
                                      },
                                      "typicalM": {
                                        "type": "number"
                                      },
                                      "maxM": {
                                        "type": "number"
                                      },
                                      "reference": {
                                        "anyOf": [
                                          {
                                            "const": "whole-bounds",
                                            "type": "string"
                                          },
                                          {
                                            "const": "withers",
                                            "type": "string"
                                          },
                                          {
                                            "const": "seat",
                                            "type": "string"
                                          },
                                          {
                                            "const": "worktop",
                                            "type": "string"
                                          },
                                          {
                                            "const": "opening",
                                            "type": "string"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "minM",
                                      "typicalM",
                                      "maxM",
                                      "reference"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "depth": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "minM": {
                                        "type": "number"
                                      },
                                      "typicalM": {
                                        "type": "number"
                                      },
                                      "maxM": {
                                        "type": "number"
                                      },
                                      "reference": {
                                        "anyOf": [
                                          {
                                            "const": "whole-bounds",
                                            "type": "string"
                                          },
                                          {
                                            "const": "withers",
                                            "type": "string"
                                          },
                                          {
                                            "const": "seat",
                                            "type": "string"
                                          },
                                          {
                                            "const": "worktop",
                                            "type": "string"
                                          },
                                          {
                                            "const": "opening",
                                            "type": "string"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "minM",
                                      "typicalM",
                                      "maxM",
                                      "reference"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              }
                            },
                            "required": ["width", "height", "depth"],
                            "additionalProperties": false
                          },
                          "preferredDimension": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "const": "width",
                                "type": "string"
                              },
                              {
                                "const": "height",
                                "type": "string"
                              },
                              {
                                "const": "depth",
                                "type": "string"
                              }
                            ]
                          },
                          "grounding": {
                            "anyOf": [
                              {
                                "const": "architectural",
                                "type": "string"
                              },
                              {
                                "const": "unknown",
                                "type": "string"
                              },
                              {
                                "const": "floor",
                                "type": "string"
                              },
                              {
                                "const": "support",
                                "type": "string"
                              }
                            ]
                          },
                          "orientation": {
                            "type": "object",
                            "properties": {
                              "up": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "const": "+Y",
                                    "type": "string"
                                  },
                                  {
                                    "const": "+Z",
                                    "type": "string"
                                  },
                                  {
                                    "const": "+X",
                                    "type": "string"
                                  },
                                  {
                                    "const": "-Y",
                                    "type": "string"
                                  },
                                  {
                                    "const": "-Z",
                                    "type": "string"
                                  },
                                  {
                                    "const": "-X",
                                    "type": "string"
                                  }
                                ]
                              },
                              "forward": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "const": "+Z",
                                    "type": "string"
                                  },
                                  {
                                    "const": "+X",
                                    "type": "string"
                                  },
                                  {
                                    "const": "-Z",
                                    "type": "string"
                                  },
                                  {
                                    "const": "-X",
                                    "type": "string"
                                  }
                                ]
                              }
                            },
                            "required": ["up", "forward"],
                            "additionalProperties": false
                          },
                          "affordances": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "clearances": {
                            "type": "object",
                            "properties": {
                              "usableSideM": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              },
                              "circulationM": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            },
                            "required": ["usableSideM", "circulationM"],
                            "additionalProperties": false
                          },
                          "relationHints": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "provenance": {
                            "type": "object",
                            "properties": {
                              "source": {
                                "anyOf": [
                                  {
                                    "const": "standard",
                                    "type": "string"
                                  },
                                  {
                                    "const": "curated",
                                    "type": "string"
                                  },
                                  {
                                    "const": "ai_inferred",
                                    "type": "string"
                                  },
                                  {
                                    "const": "user_confirmed",
                                    "type": "string"
                                  },
                                  {
                                    "const": "project_specific",
                                    "type": "string"
                                  }
                                ]
                              },
                              "producer": {
                                "type": "string"
                              },
                              "model": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "inferenceVersion": {
                                "type": "string"
                              },
                              "requestedClass": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "confidence": {
                                "type": "number"
                              },
                              "createdAt": {
                                "type": "string"
                              },
                              "evidence": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "source",
                              "producer",
                              "model",
                              "inferenceVersion",
                              "requestedClass",
                              "confidence",
                              "createdAt",
                              "evidence"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "schema",
                          "schemaVersion",
                          "profileId",
                          "revision",
                          "parentId",
                          "semanticClass",
                          "status",
                          "dimensions",
                          "preferredDimension",
                          "grounding",
                          "orientation",
                          "affordances",
                          "clearances",
                          "relationHints",
                          "provenance"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "source": {
                    "anyOf": [
                      {
                        "const": "archetype",
                        "type": "string"
                      },
                      {
                        "const": "instance",
                        "type": "string"
                      },
                      {
                        "const": "conservative-fallback",
                        "type": "string"
                      }
                    ]
                  },
                  "plausibility": {
                    "anyOf": [
                      {
                        "const": "unknown",
                        "type": "string"
                      },
                      {
                        "const": "plausible",
                        "type": "string"
                      },
                      {
                        "const": "implausible",
                        "type": "string"
                      }
                    ]
                  },
                  "diagnostics": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "policy",
                  "measuredDimensions",
                  "orientedDimensions",
                  "chosenDimensions",
                  "uniformScale",
                  "profile",
                  "source",
                  "plausibility",
                  "diagnostics"
                ],
                "additionalProperties": false
              },
              "architecture": {
                "type": "object",
                "properties": {
                  "boundary": {
                    "anyOf": [
                      {
                        "const": "front",
                        "type": "string"
                      },
                      {
                        "const": "back",
                        "type": "string"
                      },
                      {
                        "const": "left",
                        "type": "string"
                      },
                      {
                        "const": "right",
                        "type": "string"
                      }
                    ]
                  },
                  "section": {
                    "anyOf": [
                      {
                        "const": "full",
                        "type": "string"
                      },
                      {
                        "const": "opening-left",
                        "type": "string"
                      },
                      {
                        "const": "opening-right",
                        "type": "string"
                      },
                      {
                        "const": "opening-header",
                        "type": "string"
                      },
                      {
                        "const": "opening-sill",
                        "type": "string"
                      }
                    ]
                  },
                  "opening": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["boundary", "section", "opening"],
                "additionalProperties": false
              },
              "physics": {
                "type": "object",
                "properties": {
                  "motion": {
                    "anyOf": [
                      {
                        "const": "static",
                        "type": "string"
                      },
                      {
                        "const": "dynamic",
                        "type": "string"
                      },
                      {
                        "const": "kinematic",
                        "type": "string"
                      }
                    ]
                  },
                  "collision": {
                    "anyOf": [
                      {
                        "const": "none",
                        "type": "string"
                      },
                      {
                        "const": "solid",
                        "type": "string"
                      },
                      {
                        "const": "sensor",
                        "type": "string"
                      }
                    ]
                  },
                  "controller": {
                    "anyOf": [
                      {
                        "const": "none",
                        "type": "string"
                      },
                      {
                        "const": "character",
                        "type": "string"
                      }
                    ]
                  },
                  "collider": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "identity": {
                            "type": "string"
                          },
                          "manifestId": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "featureId": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "kind": {
                            "anyOf": [
                              {
                                "const": "object",
                                "type": "string"
                              },
                              {
                                "const": "surface",
                                "type": "string"
                              },
                              {
                                "const": "component",
                                "type": "string"
                              },
                              {
                                "const": "collider",
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": [
                          "identity",
                          "manifestId",
                          "featureId",
                          "kind"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "shape": {
                    "anyOf": [
                      {
                        "const": "auto",
                        "type": "string"
                      },
                      {
                        "const": "box",
                        "type": "string"
                      },
                      {
                        "const": "convex-hull",
                        "type": "string"
                      },
                      {
                        "const": "decomposition",
                        "type": "string"
                      },
                      {
                        "const": "triangle-mesh",
                        "type": "string"
                      }
                    ]
                  },
                  "massKg": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "friction": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "restitution": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "provenance": {
                    "type": "object",
                    "properties": {},
                    "required": [],
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "const": "instance",
                          "type": "string"
                        },
                        {
                          "const": "asset-override",
                          "type": "string"
                        },
                        {
                          "const": "profile",
                          "type": "string"
                        },
                        {
                          "const": "inference",
                          "type": "string"
                        },
                        {
                          "const": "fallback",
                          "type": "string"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "motion",
                  "collision",
                  "controller",
                  "collider",
                  "massKg",
                  "friction",
                  "restitution",
                  "provenance"
                ],
                "additionalProperties": false
              },
              "interaction": {
                "type": "object",
                "properties": {
                  "capabilities": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "const": "grab",
                          "type": "string"
                        },
                        {
                          "const": "open",
                          "type": "string"
                        },
                        {
                          "const": "close",
                          "type": "string"
                        },
                        {
                          "const": "toggle",
                          "type": "string"
                        },
                        {
                          "const": "walk",
                          "type": "string"
                        },
                        {
                          "const": "animate",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "enabled": {
                    "anyOf": [
                      {
                        "const": false,
                        "type": "boolean"
                      },
                      {
                        "const": true,
                        "type": "boolean"
                      }
                    ]
                  },
                  "cooldownSeconds": {
                    "type": "number"
                  }
                },
                "required": ["capabilities", "enabled", "cooldownSeconds"],
                "additionalProperties": false
              },
              "span": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "number"
                  },
                  "end": {
                    "type": "number"
                  },
                  "line": {
                    "type": "number"
                  },
                  "column": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "line", "column"],
                "additionalProperties": false
              }
            },
            "required": [
              "identity",
              "alias",
              "label",
              "assetId",
              "manifestId",
              "role",
              "visible",
              "pose",
              "size",
              "physics",
              "interaction",
              "span"
            ],
            "additionalProperties": false
          }
        },
        "wallImages": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "materialId": {
                "type": "string"
              },
              "identity": {
                "type": "string"
              },
              "alias": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "assetId": {
                "type": "string"
              },
              "wallInstanceId": {
                "type": "string"
              },
              "uri": {
                "type": "string"
              },
              "sha256": {
                "type": "string"
              },
              "byteLength": {
                "type": "number"
              },
              "mediaType": {
                "anyOf": [
                  {
                    "const": "image/png",
                    "type": "string"
                  },
                  {
                    "const": "image/jpeg",
                    "type": "string"
                  },
                  {
                    "const": "image/webp",
                    "type": "string"
                  }
                ]
              },
              "displayName": {
                "type": "string"
              },
              "position": {
                "type": "array",
                "prefixItems": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "minItems": 2,
                "maxItems": 2,
                "items": false
              },
              "size": {
                "type": "array",
                "prefixItems": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "minItems": 2,
                "maxItems": 2,
                "items": false
              },
              "surfaceOffset": {
                "type": "number"
              },
              "preserveAspectRatio": {
                "anyOf": [
                  {
                    "const": false,
                    "type": "boolean"
                  },
                  {
                    "const": true,
                    "type": "boolean"
                  }
                ]
              },
              "span": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "number"
                  },
                  "end": {
                    "type": "number"
                  },
                  "line": {
                    "type": "number"
                  },
                  "column": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "line", "column"],
                "additionalProperties": false
              }
            },
            "required": [
              "identity",
              "alias",
              "label",
              "assetId",
              "wallInstanceId",
              "uri",
              "sha256",
              "byteLength",
              "mediaType",
              "displayName",
              "position",
              "size",
              "surfaceOffset",
              "preserveAspectRatio",
              "span"
            ],
            "additionalProperties": false
          }
        },
        "interactiveLabels": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "identity": {
                "type": "string"
              },
              "alias": {
                "type": "string"
              },
              "parentObjectId": {
                "type": "string"
              },
              "text": {
                "type": "string",
                "maxLength": 200
              },
              "icon": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "anchor": {
                "anyOf": [
                  {
                    "const": "center",
                    "type": "string"
                  },
                  {
                    "const": "front",
                    "type": "string"
                  },
                  {
                    "const": "left",
                    "type": "string"
                  },
                  {
                    "const": "right",
                    "type": "string"
                  },
                  {
                    "const": "above",
                    "type": "string"
                  },
                  {
                    "const": "custom",
                    "type": "string"
                  }
                ]
              },
              "offset": {
                "type": "array",
                "prefixItems": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "minItems": 3,
                "maxItems": 3,
                "items": false
              },
              "maxDistance": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "billboard": {
                "anyOf": [
                  {
                    "const": false,
                    "type": "boolean"
                  },
                  {
                    "const": true,
                    "type": "boolean"
                  }
                ]
              },
              "theme": {
                "anyOf": [
                  {
                    "const": "default",
                    "type": "string"
                  },
                  {
                    "const": "cool",
                    "type": "string"
                  },
                  {
                    "const": "warm",
                    "type": "string"
                  }
                ]
              },
              "action": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "const": "none",
                        "type": "string"
                      }
                    },
                    "required": ["kind"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "anyOf": [
                          {
                            "const": "pdf",
                            "type": "string"
                          },
                          {
                            "const": "html",
                            "type": "string"
                          },
                          {
                            "const": "audio",
                            "type": "string"
                          },
                          {
                            "const": "video",
                            "type": "string"
                          }
                        ]
                      },
                      "assetId": {
                        "type": "string"
                      },
                      "uri": {
                        "type": "string"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "byteLength": {
                        "type": "number"
                      },
                      "mediaType": {
                        "type": "string"
                      },
                      "displayName": {
                        "type": "string"
                      },
                      "title": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "posterUri": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "captionsUri": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "autoplay": {
                        "anyOf": [
                          {
                            "const": false,
                            "type": "boolean"
                          },
                          {
                            "const": true,
                            "type": "boolean"
                          }
                        ]
                      },
                      "loop": {
                        "anyOf": [
                          {
                            "const": false,
                            "type": "boolean"
                          },
                          {
                            "const": true,
                            "type": "boolean"
                          }
                        ]
                      },
                      "muted": {
                        "anyOf": [
                          {
                            "const": false,
                            "type": "boolean"
                          },
                          {
                            "const": true,
                            "type": "boolean"
                          }
                        ]
                      },
                      "volume": {
                        "type": "number"
                      },
                      "restartOnOpen": {
                        "anyOf": [
                          {
                            "const": false,
                            "type": "boolean"
                          },
                          {
                            "const": true,
                            "type": "boolean"
                          }
                        ]
                      },
                      "startSeconds": {
                        "type": "number"
                      },
                      "endSeconds": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      }
                    },
                    "required": [
                      "kind",
                      "assetId",
                      "uri",
                      "sha256",
                      "byteLength",
                      "mediaType",
                      "displayName",
                      "title",
                      "posterUri",
                      "captionsUri",
                      "autoplay",
                      "loop",
                      "muted",
                      "volume",
                      "restartOnOpen",
                      "startSeconds",
                      "endSeconds"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "const": "ridley",
                        "type": "string"
                      },
                      "target": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "target"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "const": "external-link",
                        "type": "string"
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2048
                      }
                    },
                    "required": ["kind", "url"],
                    "additionalProperties": false
                  }
                ]
              },
              "span": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "number"
                  },
                  "end": {
                    "type": "number"
                  },
                  "line": {
                    "type": "number"
                  },
                  "column": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "line", "column"],
                "additionalProperties": false
              }
            },
            "required": [
              "identity",
              "alias",
              "parentObjectId",
              "text",
              "icon",
              "anchor",
              "offset",
              "maxDistance",
              "billboard",
              "theme",
              "action",
              "span"
            ],
            "additionalProperties": false
          }
        },
        "relations": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "identity": {
                "type": "string"
              },
              "kind": {
                "anyOf": [
                  {
                    "const": "on",
                    "type": "string"
                  },
                  {
                    "const": "beside",
                    "type": "string"
                  },
                  {
                    "const": "facing",
                    "type": "string"
                  },
                  {
                    "const": "inside",
                    "type": "string"
                  },
                  {
                    "const": "against",
                    "type": "string"
                  },
                  {
                    "const": "attached-to",
                    "type": "string"
                  },
                  {
                    "const": "keep-clear",
                    "type": "string"
                  },
                  {
                    "const": "reachable-from",
                    "type": "string"
                  }
                ]
              },
              "subject": {
                "type": "object",
                "properties": {
                  "identity": {
                    "type": "string"
                  },
                  "manifestId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "featureId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "kind": {
                    "anyOf": [
                      {
                        "const": "object",
                        "type": "string"
                      },
                      {
                        "const": "surface",
                        "type": "string"
                      },
                      {
                        "const": "component",
                        "type": "string"
                      },
                      {
                        "const": "collider",
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["identity", "manifestId", "featureId", "kind"],
                "additionalProperties": false
              },
              "target": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "identity": {
                        "type": "string"
                      },
                      "manifestId": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "featureId": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "kind": {
                        "anyOf": [
                          {
                            "const": "object",
                            "type": "string"
                          },
                          {
                            "const": "surface",
                            "type": "string"
                          },
                          {
                            "const": "component",
                            "type": "string"
                          },
                          {
                            "const": "collider",
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["identity", "manifestId", "featureId", "kind"],
                    "additionalProperties": false
                  }
                ]
              },
              "temporal": {
                "anyOf": [
                  {
                    "const": "initial",
                    "type": "string"
                  },
                  {
                    "const": "monitor",
                    "type": "string"
                  },
                  {
                    "const": "maintain",
                    "type": "string"
                  }
                ]
              },
              "strength": {
                "anyOf": [
                  {
                    "const": "hard",
                    "type": "string"
                  },
                  {
                    "const": "soft",
                    "type": "string"
                  }
                ]
              },
              "weight": {
                "type": "number"
              },
              "parameters": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "number"
                      }
                    }
                  ]
                }
              },
              "sourceCommand": {
                "type": "string"
              },
              "span": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "number"
                  },
                  "end": {
                    "type": "number"
                  },
                  "line": {
                    "type": "number"
                  },
                  "column": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "line", "column"],
                "additionalProperties": false
              }
            },
            "required": [
              "identity",
              "kind",
              "subject",
              "target",
              "temporal",
              "strength",
              "weight",
              "parameters",
              "sourceCommand",
              "span"
            ],
            "additionalProperties": false
          }
        },
        "bindings": {
          "type": "object",
          "properties": {},
          "required": [],
          "additionalProperties": {
            "type": "string"
          }
        },
        "dependencies": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "assetId": {
                "type": "string"
              },
              "manifestId": {
                "type": "string"
              },
              "analysisRevision": {
                "type": "string"
              },
              "contentHash": {
                "type": "string"
              }
            },
            "required": [
              "assetId",
              "manifestId",
              "analysisRevision",
              "contentHash"
            ],
            "additionalProperties": false
          }
        },
        "versions": {
          "type": "object",
          "properties": {
            "compiler": {
              "const": "quay.compiler/1",
              "type": "string"
            },
            "layout": {
              "anyOf": [
                {
                  "const": "quay.legacy-layout-adapter/1",
                  "type": "string"
                },
                {
                  "const": "quay.semantic-layout/1",
                  "type": "string"
                },
                {
                  "const": "quay.semantic-layout/2",
                  "type": "string"
                }
              ]
            },
            "policy": {
              "anyOf": [
                {
                  "const": "quay.static-policy/1",
                  "type": "string"
                },
                {
                  "const": "quay.physical-policy/1",
                  "type": "string"
                }
              ]
            }
          },
          "required": ["compiler", "layout", "policy"],
          "additionalProperties": false
        }
      },
      "required": [
        "version",
        "sceneId",
        "name",
        "seed",
        "room",
        "profile",
        "objects",
        "relations",
        "bindings",
        "dependencies",
        "versions"
      ],
      "additionalProperties": false
    },
    "projection": {
      "type": "object",
      "properties": {
        "materials": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "version": {
                "const": "quay.material/1",
                "type": "string"
              },
              "identity": {
                "type": "string"
              },
              "alias": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "category": {
                "anyOf": [
                  {
                    "const": "generic",
                    "type": "string"
                  },
                  {
                    "const": "wood",
                    "type": "string"
                  },
                  {
                    "const": "metal",
                    "type": "string"
                  },
                  {
                    "const": "stone",
                    "type": "string"
                  },
                  {
                    "const": "concrete",
                    "type": "string"
                  },
                  {
                    "const": "ceramic",
                    "type": "string"
                  },
                  {
                    "const": "fabric",
                    "type": "string"
                  },
                  {
                    "const": "glass",
                    "type": "string"
                  },
                  {
                    "const": "paper",
                    "type": "string"
                  },
                  {
                    "const": "plastic",
                    "type": "string"
                  },
                  {
                    "const": "paint",
                    "type": "string"
                  }
                ]
              },
              "shader": {
                "anyOf": [
                  {
                    "const": "unlit",
                    "type": "string"
                  },
                  {
                    "const": "standard",
                    "type": "string"
                  }
                ]
              },
              "color": {
                "type": "string"
              },
              "roughness": {
                "type": "number"
              },
              "metalness": {
                "type": "number"
              },
              "emissive": {
                "type": "string"
              },
              "emissiveIntensity": {
                "type": "number"
              },
              "opacity": {
                "type": "number"
              },
              "alphaMode": {
                "anyOf": [
                  {
                    "const": "opaque",
                    "type": "string"
                  },
                  {
                    "const": "mask",
                    "type": "string"
                  },
                  {
                    "const": "blend",
                    "type": "string"
                  }
                ]
              },
              "alphaCutoff": {
                "type": "number"
              },
              "side": {
                "anyOf": [
                  {
                    "const": "front",
                    "type": "string"
                  },
                  {
                    "const": "back",
                    "type": "string"
                  },
                  {
                    "const": "double",
                    "type": "string"
                  }
                ]
              },
              "preset": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "maps": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "slot": {
                      "anyOf": [
                        {
                          "const": "color",
                          "type": "string"
                        },
                        {
                          "const": "normal",
                          "type": "string"
                        },
                        {
                          "const": "roughness",
                          "type": "string"
                        },
                        {
                          "const": "metalness",
                          "type": "string"
                        },
                        {
                          "const": "emissive",
                          "type": "string"
                        },
                        {
                          "const": "occlusion",
                          "type": "string"
                        },
                        {
                          "const": "alpha",
                          "type": "string"
                        }
                      ]
                    },
                    "image": {
                      "type": "object",
                      "properties": {
                        "assetId": {
                          "type": "string"
                        },
                        "uri": {
                          "type": "string"
                        },
                        "sha256": {
                          "type": "string"
                        },
                        "byteLength": {
                          "type": "number"
                        },
                        "mediaType": {
                          "anyOf": [
                            {
                              "const": "image/png",
                              "type": "string"
                            },
                            {
                              "const": "image/jpeg",
                              "type": "string"
                            },
                            {
                              "const": "image/webp",
                              "type": "string"
                            }
                          ]
                        },
                        "displayName": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "assetId",
                        "uri",
                        "sha256",
                        "byteLength",
                        "mediaType",
                        "displayName"
                      ],
                      "additionalProperties": false
                    },
                    "repeat": {
                      "type": "array",
                      "prefixItems": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "minItems": 2,
                      "maxItems": 2,
                      "items": false
                    },
                    "offset": {
                      "type": "array",
                      "prefixItems": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "minItems": 2,
                      "maxItems": 2,
                      "items": false
                    },
                    "rotation": {
                      "type": "number"
                    },
                    "wrap": {
                      "anyOf": [
                        {
                          "const": "repeat",
                          "type": "string"
                        },
                        {
                          "const": "clamp",
                          "type": "string"
                        },
                        {
                          "const": "mirror",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": [
                    "slot",
                    "image",
                    "repeat",
                    "offset",
                    "rotation",
                    "wrap"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "version",
              "identity",
              "alias",
              "label",
              "description",
              "category",
              "shader",
              "color",
              "roughness",
              "metalness",
              "emissive",
              "emissiveIntensity",
              "opacity",
              "alphaMode",
              "alphaCutoff",
              "side",
              "preset",
              "maps"
            ],
            "additionalProperties": false
          }
        },
        "schema": {
          "const": "quay.scene",
          "type": "string"
        },
        "schemaVersion": {
          "const": "1.0.0",
          "type": "string"
        },
        "sceneId": {
          "type": "string"
        },
        "revision": {
          "type": "number"
        },
        "name": {
          "type": "string"
        },
        "createdAt": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        },
        "units": {
          "const": "metres",
          "type": "string"
        },
        "coordinateSystem": {
          "const": "right-handed-y-up-negative-z-forward",
          "type": "string"
        },
        "seed": {
          "type": "number"
        },
        "environment": {
          "type": "object",
          "properties": {
            "room": {
              "type": "object",
              "properties": {
                "width": {
                  "type": "number"
                },
                "depth": {
                  "type": "number"
                },
                "height": {
                  "type": "number"
                },
                "floorY": {
                  "type": "number"
                }
              },
              "required": ["width", "depth", "height", "floorY"],
              "additionalProperties": false
            },
            "background": {
              "type": "string"
            },
            "fog": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "properties": {
                    "color": {
                      "type": "string"
                    },
                    "near": {
                      "type": "number"
                    },
                    "far": {
                      "type": "number"
                    }
                  },
                  "required": ["color", "near", "far"],
                  "additionalProperties": false
                }
              ]
            },
            "floor": {
              "type": "object",
              "properties": {
                "visible": {
                  "anyOf": [
                    {
                      "const": false,
                      "type": "boolean"
                    },
                    {
                      "const": true,
                      "type": "boolean"
                    }
                  ]
                },
                "color": {
                  "type": "string"
                },
                "receiveShadow": {
                  "anyOf": [
                    {
                      "const": false,
                      "type": "boolean"
                    },
                    {
                      "const": true,
                      "type": "boolean"
                    }
                  ]
                },
                "gridVisible": {
                  "anyOf": [
                    {
                      "const": false,
                      "type": "boolean"
                    },
                    {
                      "const": true,
                      "type": "boolean"
                    }
                  ]
                }
              },
              "required": ["visible", "color", "receiveShadow", "gridVisible"],
              "additionalProperties": false
            },
            "lights": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "const": "ambient",
                        "type": "string"
                      },
                      {
                        "const": "hemisphere",
                        "type": "string"
                      },
                      {
                        "const": "directional",
                        "type": "string"
                      },
                      {
                        "const": "point",
                        "type": "string"
                      }
                    ]
                  },
                  "color": {
                    "type": "string"
                  },
                  "groundColor": {
                    "type": "string"
                  },
                  "intensity": {
                    "type": "number"
                  },
                  "position": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "castShadow": {
                    "anyOf": [
                      {
                        "const": false,
                        "type": "boolean"
                      },
                      {
                        "const": true,
                        "type": "boolean"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "color",
                  "intensity",
                  "position",
                  "castShadow"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": ["room", "background", "fog", "floor", "lights"],
          "additionalProperties": false
        },
        "assets": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "library": {
                "type": "object",
                "properties": {
                  "version": {
                    "const": "quay.asset-library/1",
                    "type": "string"
                  },
                  "alias": {
                    "type": "string"
                  },
                  "scope": {
                    "anyOf": [
                      {
                        "const": "standard",
                        "type": "string"
                      },
                      {
                        "const": "user",
                        "type": "string"
                      },
                      {
                        "const": "project",
                        "type": "string"
                      }
                    ]
                  },
                  "projectId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "origin": {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string"
                      },
                      "originalAssetId": {
                        "type": "string"
                      },
                      "originalUrl": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "author": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "license": {
                        "type": "string"
                      },
                      "attributionRequired": {
                        "anyOf": [
                          {
                            "const": false,
                            "type": "boolean"
                          },
                          {
                            "const": true,
                            "type": "boolean"
                          }
                        ]
                      },
                      "originalFilename": {
                        "type": "string"
                      },
                      "downloadedAt": {
                        "type": "string"
                      },
                      "contentHash": {
                        "type": "string"
                      },
                      "sourceHash": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "provider",
                      "originalAssetId",
                      "originalUrl",
                      "author",
                      "license",
                      "attributionRequired",
                      "originalFilename",
                      "downloadedAt",
                      "contentHash",
                      "sourceHash"
                    ],
                    "additionalProperties": false
                  },
                  "semantics": {
                    "type": "object",
                    "properties": {
                      "taxonomy": {
                        "const": "quay.asset-taxonomy/1",
                        "type": "string"
                      },
                      "category": {
                        "type": "string"
                      },
                      "styles": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "roomTypes": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "affordances": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "capacity": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "confidence": {
                        "type": "number"
                      },
                      "state": {
                        "anyOf": [
                          {
                            "const": "accepted",
                            "type": "string"
                          },
                          {
                            "const": "unknown",
                            "type": "string"
                          },
                          {
                            "const": "suggested",
                            "type": "string"
                          }
                        ]
                      },
                      "producer": {
                        "type": "string"
                      },
                      "model": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "taxonomy",
                      "category",
                      "styles",
                      "roomTypes",
                      "affordances",
                      "capacity",
                      "confidence",
                      "state",
                      "producer",
                      "model"
                    ],
                    "additionalProperties": false
                  },
                  "manifestId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "archetypeId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "cost": {
                    "type": "object",
                    "properties": {
                      "triangles": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "materials": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "textureBytes": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "texturePixels": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      }
                    },
                    "required": [
                      "triangles",
                      "materials",
                      "textureBytes",
                      "texturePixels"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "version",
                  "alias",
                  "scope",
                  "projectId",
                  "origin",
                  "semantics",
                  "manifestId",
                  "archetypeId",
                  "cost"
                ],
                "additionalProperties": false
              },
              "assetId": {
                "type": "string"
              },
              "uri": {
                "type": "string"
              },
              "sha256": {
                "type": "string"
              },
              "byteLength": {
                "type": "number"
              },
              "mediaType": {
                "const": "model/gltf-binary",
                "type": "string"
              },
              "displayName": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "category": {
                "type": "string"
              },
              "canonicalSize": {
                "type": "array",
                "prefixItems": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "minItems": 3,
                "maxItems": 3,
                "items": false
              },
              "normalization": {
                "type": "object",
                "properties": {
                  "rawBounds": {
                    "type": "object",
                    "properties": {
                      "min": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "minItems": 3,
                        "maxItems": 3,
                        "items": false
                      },
                      "max": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "minItems": 3,
                        "maxItems": 3,
                        "items": false
                      }
                    },
                    "required": ["min", "max"],
                    "additionalProperties": false
                  },
                  "scale": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "baseOffset": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "forwardCorrection": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 4,
                    "maxItems": 4,
                    "items": false
                  }
                },
                "required": [
                  "rawBounds",
                  "scale",
                  "baseOffset",
                  "forwardCorrection"
                ],
                "additionalProperties": false
              },
              "placement": {
                "anyOf": [
                  {
                    "const": "floor_only",
                    "type": "string"
                  },
                  {
                    "const": "support_only",
                    "type": "string"
                  },
                  {
                    "const": "floor_or_support",
                    "type": "string"
                  }
                ]
              },
              "supportsObjects": {
                "anyOf": [
                  {
                    "const": false,
                    "type": "boolean"
                  },
                  {
                    "const": true,
                    "type": "boolean"
                  }
                ]
              },
              "wallAlignment": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "const": "center",
                    "type": "string"
                  },
                  {
                    "const": "left",
                    "type": "string"
                  },
                  {
                    "const": "right",
                    "type": "string"
                  }
                ]
              },
              "availability": {
                "anyOf": [
                  {
                    "const": "global",
                    "type": "string"
                  },
                  {
                    "const": "local",
                    "type": "string"
                  }
                ]
              },
              "roomId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "supportSurfaces": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "surfaceId": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "center": {
                      "type": "array",
                      "prefixItems": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "minItems": 3,
                      "maxItems": 3,
                      "items": false
                    },
                    "normal": {
                      "type": "array",
                      "prefixItems": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "minItems": 3,
                      "maxItems": 3,
                      "items": false
                    },
                    "size": {
                      "type": "array",
                      "prefixItems": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "minItems": 2,
                      "maxItems": 2,
                      "items": false
                    },
                    "source": {
                      "anyOf": [
                        {
                          "const": "bounds",
                          "type": "string"
                        },
                        {
                          "const": "mesh",
                          "type": "string"
                        },
                        {
                          "const": "manual",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": [
                    "surfaceId",
                    "label",
                    "center",
                    "normal",
                    "size",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "assetId",
              "uri",
              "sha256",
              "byteLength",
              "mediaType",
              "displayName",
              "description",
              "category",
              "canonicalSize",
              "normalization",
              "placement",
              "supportsObjects",
              "supportSurfaces"
            ],
            "additionalProperties": false
          }
        },
        "imageAssets": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "assetId": {
                "type": "string"
              },
              "uri": {
                "type": "string"
              },
              "sha256": {
                "type": "string"
              },
              "byteLength": {
                "type": "number"
              },
              "mediaType": {
                "anyOf": [
                  {
                    "const": "image/png",
                    "type": "string"
                  },
                  {
                    "const": "image/jpeg",
                    "type": "string"
                  },
                  {
                    "const": "image/webp",
                    "type": "string"
                  }
                ]
              },
              "displayName": {
                "type": "string"
              }
            },
            "required": [
              "assetId",
              "uri",
              "sha256",
              "byteLength",
              "mediaType",
              "displayName"
            ],
            "additionalProperties": false
          }
        },
        "instances": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "materialId": {
                "type": "string"
              },
              "normalization": {
                "type": "object",
                "properties": {
                  "rawBounds": {
                    "type": "object",
                    "properties": {
                      "min": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "minItems": 3,
                        "maxItems": 3,
                        "items": false
                      },
                      "max": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "minItems": 3,
                        "maxItems": 3,
                        "items": false
                      }
                    },
                    "required": ["min", "max"],
                    "additionalProperties": false
                  },
                  "scale": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "baseOffset": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "forwardCorrection": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 4,
                    "maxItems": 4,
                    "items": false
                  }
                },
                "required": [
                  "rawBounds",
                  "scale",
                  "baseOffset",
                  "forwardCorrection"
                ],
                "additionalProperties": false
              },
              "instanceId": {
                "type": "string"
              },
              "assetId": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "transform": {
                "type": "object",
                "properties": {
                  "position": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  },
                  "quaternion": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 4,
                    "maxItems": 4,
                    "items": false
                  },
                  "scale": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 3,
                    "maxItems": 3,
                    "items": false
                  }
                },
                "required": ["position", "quaternion", "scale"],
                "additionalProperties": false
              },
              "visible": {
                "anyOf": [
                  {
                    "const": false,
                    "type": "boolean"
                  },
                  {
                    "const": true,
                    "type": "boolean"
                  }
                ]
              },
              "castShadow": {
                "anyOf": [
                  {
                    "const": false,
                    "type": "boolean"
                  },
                  {
                    "const": true,
                    "type": "boolean"
                  }
                ]
              },
              "receiveShadow": {
                "anyOf": [
                  {
                    "const": false,
                    "type": "boolean"
                  },
                  {
                    "const": true,
                    "type": "boolean"
                  }
                ]
              },
              "locked": {
                "anyOf": [
                  {
                    "const": false,
                    "type": "boolean"
                  },
                  {
                    "const": true,
                    "type": "boolean"
                  }
                ]
              },
              "placement": {
                "type": "object",
                "properties": {
                  "source": {
                    "anyOf": [
                      {
                        "const": "manual",
                        "type": "string"
                      },
                      {
                        "const": "solver",
                        "type": "string"
                      },
                      {
                        "const": "imported",
                        "type": "string"
                      }
                    ]
                  },
                  "supportingInstanceId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "supportSurfaceId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "solverStatus": {
                    "anyOf": [
                      {
                        "const": "unresolved",
                        "type": "string"
                      },
                      {
                        "const": "fallback",
                        "type": "string"
                      },
                      {
                        "const": "placed",
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "source",
                  "supportingInstanceId",
                  "supportSurfaceId",
                  "solverStatus"
                ],
                "additionalProperties": false
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "wallImage": {
                "type": "object",
                "properties": {
                  "wallInstanceId": {
                    "type": "string"
                  },
                  "assetId": {
                    "type": "string"
                  },
                  "position": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2,
                    "items": false
                  },
                  "size": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2,
                    "items": false
                  },
                  "surfaceOffset": {
                    "type": "number"
                  },
                  "preserveAspectRatio": {
                    "anyOf": [
                      {
                        "const": false,
                        "type": "boolean"
                      },
                      {
                        "const": true,
                        "type": "boolean"
                      }
                    ]
                  },
                  "surface": {
                    "anyOf": [
                      {
                        "const": "floor",
                        "type": "string"
                      },
                      {
                        "const": "wall",
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "wallInstanceId",
                  "assetId",
                  "position",
                  "size",
                  "surfaceOffset",
                  "preserveAspectRatio"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "instanceId",
              "assetId",
              "name",
              "transform",
              "visible",
              "castShadow",
              "receiveShadow",
              "locked",
              "placement",
              "tags"
            ],
            "additionalProperties": false
          }
        },
        "relations": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "relationId": {
                "type": "string"
              },
              "type": {
                "anyOf": [
                  {
                    "const": "ON",
                    "type": "string"
                  },
                  {
                    "const": "NEAR",
                    "type": "string"
                  },
                  {
                    "const": "LEFT_OF",
                    "type": "string"
                  },
                  {
                    "const": "RIGHT_OF",
                    "type": "string"
                  },
                  {
                    "const": "IN_FRONT_OF",
                    "type": "string"
                  },
                  {
                    "const": "BEHIND",
                    "type": "string"
                  },
                  {
                    "const": "FACING",
                    "type": "string"
                  },
                  {
                    "const": "CENTERED_ON",
                    "type": "string"
                  },
                  {
                    "const": "ALIGNED_WITH",
                    "type": "string"
                  },
                  {
                    "const": "AGAINST_WALL",
                    "type": "string"
                  },
                  {
                    "const": "KEEP_CLEAR_OF",
                    "type": "string"
                  }
                ]
              },
              "subjectInstanceId": {
                "type": "string"
              },
              "targetInstanceId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "strength": {
                "anyOf": [
                  {
                    "const": "hard",
                    "type": "string"
                  },
                  {
                    "const": "soft",
                    "type": "string"
                  }
                ]
              },
              "status": {
                "anyOf": [
                  {
                    "const": "satisfied",
                    "type": "string"
                  },
                  {
                    "const": "unresolved",
                    "type": "string"
                  },
                  {
                    "const": "degraded",
                    "type": "string"
                  }
                ]
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "relationId",
              "type",
              "subjectInstanceId",
              "targetInstanceId",
              "strength",
              "status",
              "message"
            ],
            "additionalProperties": false
          }
        },
        "diagnostics": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "severity": {
                "anyOf": [
                  {
                    "const": "error",
                    "type": "string"
                  },
                  {
                    "const": "warning",
                    "type": "string"
                  },
                  {
                    "const": "info",
                    "type": "string"
                  }
                ]
              },
              "message": {
                "type": "string"
              },
              "instanceIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "relationId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "measurements": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": {
                  "type": "number"
                }
              }
            },
            "required": [
              "code",
              "severity",
              "message",
              "instanceIds",
              "relationId"
            ],
            "additionalProperties": false
          }
        },
        "unplacedInstanceIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "camera": {
          "type": "object",
          "properties": {
            "type": {
              "const": "perspective",
              "type": "string"
            },
            "position": {
              "type": "array",
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "minItems": 3,
              "maxItems": 3,
              "items": false
            },
            "target": {
              "type": "array",
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "minItems": 3,
              "maxItems": 3,
              "items": false
            },
            "up": {
              "type": "array",
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "minItems": 3,
              "maxItems": 3,
              "items": false
            },
            "fovDegrees": {
              "type": "number"
            },
            "near": {
              "type": "number"
            },
            "far": {
              "type": "number"
            }
          },
          "required": [
            "type",
            "position",
            "target",
            "up",
            "fovDegrees",
            "near",
            "far"
          ],
          "additionalProperties": false
        },
        "provenance": {
          "type": "object",
          "properties": {
            "createdBy": {
              "anyOf": [
                {
                  "const": "quay",
                  "type": "string"
                },
                {
                  "const": "import",
                  "type": "string"
                }
              ]
            },
            "planner": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "anyOf": [
                        {
                          "const": "openai",
                          "type": "string"
                        },
                        {
                          "const": "fake",
                          "type": "string"
                        }
                      ]
                    },
                    "model": {
                      "type": "string"
                    },
                    "promptTemplateVersion": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "provider",
                    "model",
                    "promptTemplateVersion",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "layoutEngineVersion": {
              "type": "string"
            },
            "threeVersion": {
              "type": "string"
            },
            "sourcePrompt": {
              "type": "string"
            }
          },
          "required": [
            "createdBy",
            "planner",
            "layoutEngineVersion",
            "threeVersion",
            "sourcePrompt"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "schema",
        "schemaVersion",
        "sceneId",
        "revision",
        "name",
        "createdAt",
        "updatedAt",
        "units",
        "coordinateSystem",
        "seed",
        "environment",
        "assets",
        "instances",
        "relations",
        "diagnostics",
        "unplacedInstanceIds",
        "camera",
        "provenance"
      ],
      "additionalProperties": false
    },
    "evaluations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "identity": {
            "type": "string"
          },
          "status": {
            "anyOf": [
              {
                "const": "unsupported",
                "type": "string"
              },
              {
                "const": "satisfied",
                "type": "string"
              },
              {
                "const": "failed",
                "type": "string"
              },
              {
                "const": "unknown",
                "type": "string"
              }
            ]
          },
          "message": {
            "type": "string"
          },
          "residuals": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": {
              "type": "number"
            }
          }
        },
        "required": ["identity", "status", "message", "residuals"],
        "additionalProperties": false
      }
    },
    "diagnostics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "severity": {
            "anyOf": [
              {
                "const": "error",
                "type": "string"
              },
              {
                "const": "warning",
                "type": "string"
              },
              {
                "const": "info",
                "type": "string"
              }
            ]
          },
          "message": {
            "type": "string"
          },
          "span": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "number"
                  },
                  "end": {
                    "type": "number"
                  },
                  "line": {
                    "type": "number"
                  },
                  "column": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "line", "column"],
                "additionalProperties": false
              }
            ]
          },
          "identity": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["code", "severity", "message", "span", "identity"],
        "additionalProperties": false
      }
    },
    "provenance": {
      "type": "object",
      "properties": {
        "sourceHash": {
          "type": "string"
        },
        "versions": {
          "type": "object",
          "properties": {
            "compiler": {
              "const": "quay.compiler/1",
              "type": "string"
            },
            "layout": {
              "anyOf": [
                {
                  "const": "quay.legacy-layout-adapter/1",
                  "type": "string"
                },
                {
                  "const": "quay.semantic-layout/1",
                  "type": "string"
                },
                {
                  "const": "quay.semantic-layout/2",
                  "type": "string"
                }
              ]
            },
            "policy": {
              "anyOf": [
                {
                  "const": "quay.static-policy/1",
                  "type": "string"
                },
                {
                  "const": "quay.physical-policy/1",
                  "type": "string"
                }
              ]
            }
          },
          "required": ["compiler", "layout", "policy"],
          "additionalProperties": false
        },
        "dependencies": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "assetId": {
                "type": "string"
              },
              "manifestId": {
                "type": "string"
              },
              "analysisRevision": {
                "type": "string"
              },
              "contentHash": {
                "type": "string"
              }
            },
            "required": [
              "assetId",
              "manifestId",
              "analysisRevision",
              "contentHash"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": ["sourceHash", "versions", "dependencies"],
      "additionalProperties": false
    },
    "readiness": {
      "const": "static-preview",
      "type": "string"
    },
    "physics": {
      "type": "object",
      "properties": {
        "version": {
          "const": "quay.physics-preparation/1",
          "type": "string"
        },
        "ready": {
          "anyOf": [
            {
              "const": false,
              "type": "boolean"
            },
            {
              "const": true,
              "type": "boolean"
            }
          ]
        },
        "gravity": {
          "type": "array",
          "prefixItems": [
            {
              "type": "number"
            },
            {
              "type": "number"
            },
            {
              "type": "number"
            }
          ],
          "minItems": 3,
          "maxItems": 3,
          "items": false
        },
        "stepSeconds": {
          "type": "number"
        },
        "maxCatchUpSteps": {
          "type": "number"
        },
        "bodies": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "instanceId": {
                "type": "string"
              },
              "motion": {
                "anyOf": [
                  {
                    "const": "static",
                    "type": "string"
                  },
                  {
                    "const": "dynamic",
                    "type": "string"
                  },
                  {
                    "const": "kinematic",
                    "type": "string"
                  }
                ]
              },
              "collision": {
                "anyOf": [
                  {
                    "const": "none",
                    "type": "string"
                  },
                  {
                    "const": "solid",
                    "type": "string"
                  },
                  {
                    "const": "sensor",
                    "type": "string"
                  }
                ]
              },
              "controller": {
                "anyOf": [
                  {
                    "const": "none",
                    "type": "string"
                  },
                  {
                    "const": "character",
                    "type": "string"
                  }
                ]
              },
              "role": {
                "type": "string"
              },
              "canGrab": {
                "anyOf": [
                  {
                    "const": false,
                    "type": "boolean"
                  },
                  {
                    "const": true,
                    "type": "boolean"
                  }
                ]
              },
              "massKg": {
                "type": "number"
              },
              "friction": {
                "type": "number"
              },
              "restitution": {
                "type": "number"
              },
              "colliders": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "shape": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "const": "box",
                              "type": "string"
                            },
                            "center": {
                              "type": "array",
                              "prefixItems": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "minItems": 3,
                              "maxItems": 3,
                              "items": false
                            },
                            "halfExtents": {
                              "type": "array",
                              "prefixItems": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "minItems": 3,
                              "maxItems": 3,
                              "items": false
                            }
                          },
                          "required": ["kind", "center", "halfExtents"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "const": "convex",
                              "type": "string"
                            },
                            "vertices": {
                              "type": "array",
                              "items": {
                                "type": "number"
                              }
                            }
                          },
                          "required": ["kind", "vertices"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "const": "triangle-mesh",
                              "type": "string"
                            },
                            "vertices": {
                              "type": "array",
                              "items": {
                                "type": "number"
                              }
                            },
                            "indices": {
                              "type": "array",
                              "items": {
                                "type": "number"
                              }
                            }
                          },
                          "required": ["kind", "vertices", "indices"],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "volumeM3": {
                      "type": "number"
                    },
                    "evidence": {
                      "type": "string"
                    },
                    "approximate": {
                      "anyOf": [
                        {
                          "const": false,
                          "type": "boolean"
                        },
                        {
                          "const": true,
                          "type": "boolean"
                        }
                      ]
                    }
                  },
                  "required": ["shape", "volumeM3", "evidence", "approximate"],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "instanceId",
              "motion",
              "collision",
              "controller",
              "role",
              "canGrab",
              "massKg",
              "friction",
              "restitution",
              "colliders"
            ],
            "additionalProperties": false
          }
        },
        "diagnostics": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "severity": {
                "anyOf": [
                  {
                    "const": "error",
                    "type": "string"
                  },
                  {
                    "const": "warning",
                    "type": "string"
                  }
                ]
              },
              "instanceId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "message": {
                "type": "string"
              }
            },
            "required": ["code", "severity", "instanceId", "message"],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "version",
        "ready",
        "gravity",
        "stepSeconds",
        "maxCatchUpSteps",
        "bodies",
        "diagnostics"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "schema",
    "schemaVersion",
    "semantic",
    "projection",
    "evaluations",
    "diagnostics",
    "provenance",
    "readiness"
  ],
  "additionalProperties": false
}
