{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.invalid/cto-configurator/curtain-wall-slab/reference-package.schema.v0.1.0.json",
  "title": "Curtain-wall to floor-edge non-normative reference package",
  "description": "Application-owned discussion schema for testing an end-to-end CTO/CIS workflow. It is not part of the CTO or CIS specifications and is not an engineering calculation, approval, or construction document.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "package_format_version",
    "schema_ref",
    "package_id",
    "title",
    "status",
    "normative",
    "engineering_approval",
    "disclaimer",
    "classification_legend",
    "governance_boundary",
    "units",
    "variable_definitions",
    "product_declarations",
    "interface_family",
    "connector_catalog",
    "evaluator",
    "scenarios",
    "evaluation_results",
    "evaluation_receipts",
    "evidence_index",
    "output_manifest"
  ],
  "properties": {
    "package_format_version": {
      "const": "0.1.0"
    },
    "schema_ref": {
      "const": "./reference-package.schema.v0.1.0.json"
    },
    "package_id": {
      "type": "string",
      "pattern": "^CWSE-RP-[A-Z0-9-]+$"
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "status": {
      "const": "illustrative_working_group_fixture"
    },
    "normative": {
      "const": false
    },
    "engineering_approval": {
      "const": false
    },
    "disclaimer": {
      "type": "string",
      "minLength": 80
    },
    "classification_legend": {
      "$ref": "#/$defs/classificationLegend"
    },
    "governance_boundary": {
      "$ref": "#/$defs/governanceBoundary"
    },
    "units": {
      "$ref": "#/$defs/units"
    },
    "variable_definitions": {
      "type": "array",
      "minItems": 20,
      "items": {
        "$ref": "#/$defs/variableDefinition"
      }
    },
    "product_declarations": {
      "type": "array",
      "minItems": 4,
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/productDeclaration"
          },
          {
            "$ref": "#/$defs/artifactReference"
          }
        ]
      }
    },
    "interface_family": {
      "oneOf": [
        {
          "$ref": "#/$defs/interfaceFamily"
        },
        {
          "$ref": "#/$defs/artifactReference"
        }
      ]
    },
    "connector_catalog": {
      "oneOf": [
        {
          "$ref": "#/$defs/connectorCatalog"
        },
        {
          "$ref": "#/$defs/artifactReference"
        }
      ]
    },
    "evaluator": {
      "oneOf": [
        {
          "$ref": "#/$defs/evaluator"
        },
        {
          "$ref": "#/$defs/artifactReference"
        }
      ]
    },
    "scenarios": {
      "oneOf": [
        {
          "type": "array",
          "minItems": 9,
          "items": {
            "$ref": "#/$defs/scenario"
          }
        },
        {
          "$ref": "#/$defs/artifactReference"
        }
      ]
    },
    "evaluation_results": {
      "oneOf": [
        {
          "type": "array",
          "minItems": 9,
          "items": {
            "$ref": "#/$defs/evaluationResult"
          }
        },
        {
          "$ref": "#/$defs/artifactReference"
        }
      ]
    },
    "evaluation_receipts": {
      "oneOf": [
        {
          "type": "array",
          "minItems": 27,
          "items": {
            "$ref": "#/$defs/receipt"
          }
        },
        {
          "$ref": "#/$defs/artifactReference"
        }
      ]
    },
    "evidence_index": {
      "oneOf": [
        {
          "type": "array",
          "minItems": 8,
          "items": {
            "$ref": "#/$defs/evidence"
          }
        },
        {
          "$ref": "#/$defs/artifactReference"
        }
      ]
    },
    "output_manifest": {
      "oneOf": [
        {
          "$ref": "#/$defs/outputManifest"
        },
        {
          "$ref": "#/$defs/artifactReference"
        }
      ]
    }
  },
  "$defs": {
    "artifactReference": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "artifact_ref",
        "content_selector",
        "classification",
        "description"
      ],
      "properties": {
        "artifact_ref": {
          "type": "string",
          "minLength": 1
        },
        "content_selector": {
          "type": "string",
          "minLength": 1
        },
        "classification": {
          "$ref": "#/$defs/classification"
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "ctoElementArtifact": {
      "type": "object",
      "additionalProperties": true,
      "required": [
        "cto_version",
        "cto_type",
        "element_meta",
        "declares_interface",
        "catalog_reference",
        "geometry",
        "connectivity",
        "structural_performance",
        "constraints"
      ],
      "properties": {
        "cto_version": {
          "const": "0.2.0"
        },
        "cto_type": {
          "const": "element"
        },
        "element_meta": {
          "type": "object",
          "required": [
            "id",
            "name",
            "status",
            "description"
          ],
          "properties": {
            "id": {
              "type": "string",
              "pattern": "^CWSE-[A-Z0-9-]+$"
            },
            "name": {
              "type": "string",
              "minLength": 1
            },
            "status": {
              "const": "draft"
            },
            "description": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "declares_interface": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/ctoInterfaceDeclaration"
          }
        },
        "catalog_reference": {
          "type": "object"
        },
        "geometry": {
          "type": "object"
        },
        "connectivity": {
          "type": "object",
          "required": [
            "connection_points",
            "interface_roles"
          ],
          "properties": {
            "connection_points": {
              "type": "array",
              "minItems": 3,
              "items": {
                "type": "object",
                "required": [
                  "id",
                  "face",
                  "cis_id_ref",
                  "cis_version_ref",
                  "cis_port_id_ref"
                ]
              }
            },
            "interface_roles": {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/ctoInterfaceRole"
              }
            }
          }
        },
        "structural_performance": {
          "type": "object"
        },
        "constraints": {
          "type": "object"
        }
      }
    },
    "ctoInterfaceDeclaration": {
      "type": "object",
      "required": [
        "cis_id",
        "cis_version",
        "scope",
        "registry_scope",
        "description"
      ],
      "properties": {
        "cis_id": {
          "const": "WG-CW-SLAB-EDGE-001"
        },
        "cis_version": {
          "const": "0.1.0"
        },
        "scope": {
          "type": "string",
          "minLength": 1
        },
        "registry_scope": {
          "const": "catalog_internal"
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "ctoInterfaceRole": {
      "type": "object",
      "required": [
        "cis_id",
        "cis_version",
        "face",
        "side_addressed",
        "description"
      ],
      "properties": {
        "cis_id": {
          "const": "WG-CW-SLAB-EDGE-001"
        },
        "cis_version": {
          "const": "0.1.0"
        },
        "face": {
          "enum": [
            "front",
            "back",
            "left",
            "right",
            "top",
            "bottom"
          ]
        },
        "side_addressed": {
          "enum": [
            "panel_side",
            "substrate_side"
          ]
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "cisArtifact": {
      "type": "object",
      "additionalProperties": true,
      "required": [
        "cis_format_version",
        "id",
        "standard_version",
        "name",
        "description",
        "status",
        "registry_scope",
        "compatibility",
        "sides",
        "ports",
        "structural_connections"
      ],
      "properties": {
        "cis_format_version": {
          "const": "0.1.3"
        },
        "id": {
          "const": "WG-CW-SLAB-EDGE-001"
        },
        "standard_version": {
          "const": "0.1.0"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "status": {
          "const": "draft"
        },
        "registry_scope": {
          "const": "catalog_internal"
        },
        "compatibility": {
          "type": "object"
        },
        "sides": {
          "type": "object",
          "required": [
            "panel_side",
            "substrate_side"
          ],
          "properties": {
            "panel_side": {
              "$ref": "#/$defs/cisSideArtifact"
            },
            "substrate_side": {
              "$ref": "#/$defs/cisSideArtifact"
            }
          }
        },
        "ports": {
          "type": "array",
          "minItems": 3,
          "items": {
            "$ref": "#/$defs/cisPortArtifact"
          }
        },
        "structural_connections": {
          "type": "array",
          "minItems": 3,
          "items": {
            "$ref": "#/$defs/structuralConnection"
          }
        }
      }
    },
    "cisSideArtifact": {
      "type": "object",
      "required": [
        "description",
        "envelope"
      ],
      "properties": {
        "description": {
          "type": "string",
          "minLength": 1
        },
        "envelope": {
          "type": "object",
          "required": [
            "nominal_width_in",
            "nominal_height_in",
            "clearance_depth_in"
          ],
          "properties": {
            "nominal_width_in": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "nominal_height_in": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "clearance_depth_in": {
              "type": "number",
              "exclusiveMinimum": 0
            }
          }
        }
      }
    },
    "cisPortArtifact": {
      "type": "object",
      "required": [
        "port_id",
        "side",
        "position_in",
        "tolerance_in",
        "category",
        "connection_signature",
        "required",
        "structural_connection_ref",
        "description"
      ],
      "properties": {
        "port_id": {
          "type": "string",
          "minLength": 1
        },
        "side": {
          "const": "panel_side"
        },
        "position_in": {
          "$ref": "#/$defs/xyCoordinates"
        },
        "tolerance_in": {
          "$ref": "#/$defs/xyNonnegative"
        },
        "category": {
          "enum": [
            "structural",
            "alignment"
          ]
        },
        "connection_signature": {
          "enum": [
            "flange",
            "bearing_surface",
            "alignment_pin_M"
          ]
        },
        "required": {
          "const": true
        },
        "structural_connection_ref": {
          "type": "string",
          "minLength": 1
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "xyCoordinates": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "x",
        "y"
      ],
      "properties": {
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      }
    },
    "xyNonnegative": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "x",
        "y"
      ],
      "properties": {
        "x": {
          "type": "number",
          "minimum": 0
        },
        "y": {
          "type": "number",
          "minimum": 0
        }
      }
    },
    "evaluatorSidecarArtifact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "sidecar_type",
        "sidecar_version",
        "classification",
        "normative",
        "engineering_approval",
        "evaluator"
      ],
      "properties": {
        "sidecar_type": {
          "const": "evaluation_contract"
        },
        "sidecar_version": {
          "const": "0.1.0"
        },
        "classification": {
          "const": "working_proposal"
        },
        "normative": {
          "const": false
        },
        "engineering_approval": {
          "const": false
        },
        "evaluator": {
          "$ref": "#/$defs/evaluator"
        }
      }
    },
    "projectContextSetArtifact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "sidecar_type",
        "sidecar_version",
        "classification",
        "scenario_data_classification",
        "normative",
        "engineering_approval",
        "description",
        "scenarios"
      ],
      "properties": {
        "sidecar_type": {
          "const": "project_context_set"
        },
        "sidecar_version": {
          "const": "0.1.0"
        },
        "classification": {
          "const": "working_proposal"
        },
        "scenario_data_classification": {
          "const": "illustrative_value"
        },
        "normative": {
          "const": false
        },
        "engineering_approval": {
          "const": false
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "scenarios": {
          "type": "array",
          "minItems": 9,
          "maxItems": 9,
          "items": {
            "$ref": "#/$defs/scenario"
          }
        }
      }
    },
    "evaluationResultSetArtifact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "result_set_id",
        "version",
        "classification",
        "normative",
        "engineering_approval",
        "scope",
        "evaluation_results"
      ],
      "properties": {
        "result_set_id": {
          "const": "CWSE-EVALUATION-RESULTS"
        },
        "version": {
          "const": "0.1.0"
        },
        "classification": {
          "const": "illustrative_value"
        },
        "normative": {
          "const": false
        },
        "engineering_approval": {
          "const": false
        },
        "scope": {
          "type": "string",
          "minLength": 1
        },
        "evaluation_results": {
          "type": "array",
          "minItems": 9,
          "maxItems": 9,
          "items": {
            "$ref": "#/$defs/evaluationResult"
          }
        }
      }
    },
    "evaluationReceiptSetArtifact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "receipt_set_id",
        "version",
        "classification",
        "normative",
        "engineering_approval",
        "status_note",
        "evaluation_receipts"
      ],
      "properties": {
        "receipt_set_id": {
          "const": "CWSE-EVALUATION-RECEIPTS"
        },
        "version": {
          "const": "0.1.0"
        },
        "classification": {
          "const": "illustrative_value"
        },
        "normative": {
          "const": false
        },
        "engineering_approval": {
          "const": false
        },
        "status_note": {
          "type": "string",
          "minLength": 1
        },
        "evaluation_receipts": {
          "type": "array",
          "minItems": 63,
          "maxItems": 63,
          "items": {
            "$ref": "#/$defs/receipt"
          }
        }
      }
    },
    "evidenceIndexArtifact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "evidence_set_id",
        "version",
        "classification",
        "normative",
        "engineering_approval",
        "evidence_index"
      ],
      "properties": {
        "evidence_set_id": {
          "const": "CWSE-EVIDENCE-INDEX"
        },
        "version": {
          "const": "0.1.0"
        },
        "classification": {
          "const": "illustrative_value"
        },
        "normative": {
          "const": false
        },
        "engineering_approval": {
          "const": false
        },
        "evidence_index": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/evidence"
          }
        }
      }
    },
    "classification": {
      "enum": [
        "current_spec",
        "working_proposal",
        "illustrative_value",
        "open_decision"
      ]
    },
    "primitive": {
      "type": [
        "string",
        "number",
        "integer",
        "boolean",
        "null"
      ]
    },
    "classificationLegend": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "current_spec",
        "working_proposal",
        "illustrative_value",
        "open_decision"
      ],
      "properties": {
        "current_spec": {
          "type": "string",
          "minLength": 1
        },
        "working_proposal": {
          "type": "string",
          "minLength": 1
        },
        "illustrative_value": {
          "type": "string",
          "minLength": 1
        },
        "open_decision": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "classifiedStatement": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "classification",
        "statement",
        "source_ref"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "classification": {
          "$ref": "#/$defs/classification"
        },
        "statement": {
          "type": "string",
          "minLength": 1
        },
        "source_ref": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "governanceBoundary": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "current_spec_basis",
        "working_proposals",
        "illustrative_values",
        "open_decisions"
      ],
      "properties": {
        "current_spec_basis": {
          "type": "array",
          "minItems": 5,
          "items": {
            "$ref": "#/$defs/classifiedStatement"
          }
        },
        "working_proposals": {
          "type": "array",
          "minItems": 5,
          "items": {
            "$ref": "#/$defs/classifiedStatement"
          }
        },
        "illustrative_values": {
          "type": "array",
          "minItems": 3,
          "items": {
            "$ref": "#/$defs/classifiedStatement"
          }
        },
        "open_decisions": {
          "type": "array",
          "minItems": 5,
          "items": {
            "$ref": "#/$defs/classifiedStatement"
          }
        }
      }
    },
    "units": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "length",
        "angle",
        "pressure",
        "force",
        "ratio",
        "score"
      ],
      "properties": {
        "length": {
          "const": "mm"
        },
        "angle": {
          "const": "deg"
        },
        "pressure": {
          "const": "kPa"
        },
        "force": {
          "const": "kN"
        },
        "ratio": {
          "const": "decimal"
        },
        "score": {
          "const": "0_to_100"
        }
      }
    },
    "variableDefinition": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "fact_id",
        "label",
        "data_type",
        "unit",
        "owner_layer",
        "required_by_stage",
        "classification",
        "description"
      ],
      "properties": {
        "fact_id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_.-]+$"
        },
        "label": {
          "type": "string",
          "minLength": 1
        },
        "data_type": {
          "enum": [
            "string",
            "number",
            "boolean",
            "string_array"
          ]
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "owner_layer": {
          "enum": [
            "cto_product",
            "cis_interface",
            "project_context",
            "evaluator",
            "receipt"
          ]
        },
        "required_by_stage": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "classification": {
          "$ref": "#/$defs/classification"
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "vector3": {
      "type": "array",
      "prefixItems": [
        {
          "type": "number"
        },
        {
          "type": "number"
        },
        {
          "type": "number"
        }
      ],
      "items": false,
      "minItems": 3,
      "maxItems": 3
    },
    "frame": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "frame_id",
        "origin_mm",
        "x_axis",
        "y_axis",
        "normal",
        "attachment_zone"
      ],
      "properties": {
        "frame_id": {
          "type": "string",
          "minLength": 1
        },
        "origin_mm": {
          "$ref": "#/$defs/vector3"
        },
        "x_axis": {
          "$ref": "#/$defs/vector3"
        },
        "y_axis": {
          "$ref": "#/$defs/vector3"
        },
        "normal": {
          "$ref": "#/$defs/vector3"
        },
        "attachment_zone": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "width_mm",
            "height_mm",
            "depth_mm"
          ],
          "properties": {
            "width_mm": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "height_mm": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "depth_mm": {
              "type": "number",
              "exclusiveMinimum": 0
            }
          }
        }
      }
    },
    "declaresInterface": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "cis_id",
        "cis_version",
        "registry_scope",
        "scope",
        "description"
      ],
      "properties": {
        "cis_id": {
          "type": "string",
          "minLength": 1
        },
        "cis_version": {
          "type": "string",
          "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
        },
        "registry_scope": {
          "enum": [
            "open_standard",
            "catalog_internal"
          ]
        },
        "scope": {
          "type": "string",
          "minLength": 1
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "interfaceRole": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "cis_id",
        "cis_version",
        "face",
        "side_addressed",
        "frame_id",
        "description"
      ],
      "properties": {
        "cis_id": {
          "type": "string",
          "minLength": 1
        },
        "cis_version": {
          "type": "string",
          "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
        },
        "face": {
          "enum": [
            "front",
            "back",
            "left",
            "right",
            "top",
            "bottom"
          ]
        },
        "side_addressed": {
          "enum": [
            "panel_side",
            "substrate_side"
          ]
        },
        "frame_id": {
          "type": "string",
          "minLength": 1
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "productDeclaration": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "product_id",
        "name",
        "branch_id",
        "source_kind",
        "classification",
        "normative",
        "projection_completeness",
        "cto_projection"
      ],
      "properties": {
        "product_id": {
          "type": "string",
          "pattern": "^CWSE-[A-Z0-9-]+$"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "branch_id": {
          "enum": [
            "shared_panel",
            "concrete_slab_edge",
            "clt_floor_edge",
            "steel_frame_slab_support"
          ]
        },
        "source_kind": {
          "const": "illustrative_cto_projection"
        },
        "classification": {
          "const": "illustrative_value"
        },
        "normative": {
          "const": false
        },
        "projection_completeness": {
          "const": "discussion_projection_not_validated_cto"
        },
        "cto_projection": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "cto_version",
            "cto_type",
            "product_role",
            "material_system",
            "dimensions_mm",
            "declares_interface",
            "interface_roles",
            "interface_frames",
            "declared_capabilities",
            "private_detail_boundary"
          ],
          "properties": {
            "cto_version": {
              "const": "0.2.0"
            },
            "cto_type": {
              "const": "element"
            },
            "product_role": {
              "type": "string",
              "minLength": 1
            },
            "material_system": {
              "type": "string",
              "minLength": 1
            },
            "dimensions_mm": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "x",
                "y",
                "z"
              ],
              "properties": {
                "x": {
                  "type": "number",
                  "exclusiveMinimum": 0
                },
                "y": {
                  "type": "number",
                  "exclusiveMinimum": 0
                },
                "z": {
                  "type": "number",
                  "exclusiveMinimum": 0
                }
              }
            },
            "declares_interface": {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/declaresInterface"
              }
            },
            "interface_roles": {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/interfaceRole"
              }
            },
            "interface_frames": {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/frame"
              }
            },
            "declared_capabilities": {
              "type": "object",
              "minProperties": 2
            },
            "private_detail_boundary": {
              "type": "string",
              "minLength": 1
            }
          }
        }
      }
    },
    "port": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "port_id",
        "side",
        "position_mm",
        "tolerance_mm",
        "category",
        "connection_signature",
        "required",
        "structural_connection_ref",
        "description"
      ],
      "properties": {
        "port_id": {
          "type": "string",
          "minLength": 1
        },
        "side": {
          "enum": [
            "panel_side",
            "substrate_side"
          ]
        },
        "position_mm": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "x",
            "y"
          ],
          "properties": {
            "x": {
              "type": "number"
            },
            "y": {
              "type": "number"
            }
          }
        },
        "tolerance_mm": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "x",
            "y"
          ],
          "properties": {
            "x": {
              "type": "number",
              "minimum": 0
            },
            "y": {
              "type": "number",
              "minimum": 0
            }
          }
        },
        "category": {
          "enum": [
            "structural",
            "alignment"
          ]
        },
        "connection_signature": {
          "enum": [
            "flange",
            "bearing_surface",
            "alignment_pin_M",
            "alignment_pin_F"
          ]
        },
        "required": {
          "type": "boolean"
        },
        "structural_connection_ref": {
          "type": "string",
          "minLength": 1
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "interfaceFamily": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "family_id",
        "name",
        "source_kind",
        "classification",
        "normative",
        "cis_projection",
        "family_dimensions",
        "material_branches",
        "geometry_mating_contract",
        "explicit_exclusions"
      ],
      "properties": {
        "family_id": {
          "const": "WG-CW-SLAB-EDGE-001"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "source_kind": {
          "const": "illustrative_cis_projection"
        },
        "classification": {
          "const": "working_proposal"
        },
        "normative": {
          "const": false
        },
        "cis_projection": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "cis_format_version",
            "standard_version",
            "registry_scope",
            "status",
            "sides",
            "ports",
            "structural_connections"
          ],
          "properties": {
            "cis_format_version": {
              "const": "0.1.3"
            },
            "standard_version": {
              "const": "0.1.0"
            },
            "registry_scope": {
              "const": "catalog_internal"
            },
            "status": {
              "const": "illustrative"
            },
            "sides": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "panel_side",
                "substrate_side"
              ],
              "properties": {
                "panel_side": {
                  "$ref": "#/$defs/side"
                },
                "substrate_side": {
                  "$ref": "#/$defs/side"
                }
              }
            },
            "ports": {
              "type": "array",
              "minItems": 6,
              "items": {
                "$ref": "#/$defs/port"
              }
            },
            "structural_connections": {
              "type": "array",
              "minItems": 3,
              "items": {
                "$ref": "#/$defs/structuralConnection"
              }
            }
          }
        },
        "family_dimensions": {
          "type": "array",
          "minItems": 6,
          "items": {
            "$ref": "#/$defs/familyDimension"
          }
        },
        "material_branches": {
          "type": "array",
          "minItems": 3,
          "items": {
            "$ref": "#/$defs/materialBranch"
          }
        },
        "geometry_mating_contract": {
          "$ref": "#/$defs/geometryMatingContract"
        },
        "explicit_exclusions": {
          "type": "array",
          "minItems": 4,
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    },
    "side": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "description",
        "envelope_mm"
      ],
      "properties": {
        "description": {
          "type": "string",
          "minLength": 1
        },
        "envelope_mm": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "width",
            "height",
            "clearance_depth"
          ],
          "properties": {
            "width": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "height": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "clearance_depth": {
              "type": "number",
              "exclusiveMinimum": 0
            }
          }
        }
      }
    },
    "structuralConnection": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "structural_id",
        "type",
        "transfer_components",
        "scope_note"
      ],
      "properties": {
        "structural_id": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "enum": [
            "bearing_surface",
            "alignment_feature",
            "custom"
          ]
        },
        "transfer_components": {
          "type": "array",
          "minItems": 1,
          "items": {
            "enum": [
              "vertical_dead_load",
              "out_of_plane_wind",
              "in_plane_drift_accommodation"
            ]
          }
        },
        "scope_note": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "familyDimension": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "dimension_id",
        "allowed_values",
        "classification",
        "description"
      ],
      "properties": {
        "dimension_id": {
          "type": "string",
          "minLength": 1
        },
        "allowed_values": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/primitive"
          }
        },
        "classification": {
          "$ref": "#/$defs/classification"
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "materialBranch": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "branch_id",
        "label",
        "classification",
        "substrate_material",
        "product_ref",
        "required_fact_ids",
        "candidate_ids",
        "engineering_handoff"
      ],
      "properties": {
        "branch_id": {
          "enum": [
            "concrete_slab_edge",
            "clt_floor_edge",
            "steel_frame_slab_support"
          ]
        },
        "label": {
          "type": "string",
          "minLength": 1
        },
        "classification": {
          "const": "working_proposal"
        },
        "substrate_material": {
          "type": "string",
          "minLength": 1
        },
        "product_ref": {
          "type": "string",
          "minLength": 1
        },
        "required_fact_ids": {
          "type": "array",
          "minItems": 5,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "candidate_ids": {
          "type": "array",
          "minItems": 2,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "engineering_handoff": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "geometryMatingContract": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "coordinate_rule",
        "checks"
      ],
      "properties": {
        "coordinate_rule": {
          "type": "string",
          "minLength": 1
        },
        "checks": {
          "type": "array",
          "minItems": 4,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "check_id",
              "observed_fact_id",
              "operator",
              "requirement",
              "unit",
              "status_if_missing"
            ],
            "properties": {
              "check_id": {
                "type": "string",
                "minLength": 1
              },
              "observed_fact_id": {
                "type": "string",
                "minLength": 1
              },
              "operator": {
                "enum": [
                  "less_or_equal",
                  "greater_or_equal"
                ]
              },
              "requirement": {
                "type": "number"
              },
              "unit": {
                "type": "string",
                "minLength": 1
              },
              "status_if_missing": {
                "const": "indeterminate"
              }
            }
          }
        }
      }
    },
    "conditionLeaf": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "fact",
        "operator",
        "on_missing"
      ],
      "properties": {
        "fact": {
          "type": "string",
          "minLength": 1
        },
        "operator": {
          "enum": [
            "equals",
            "not_equals",
            "greater_or_equal",
            "less_or_equal",
            "greater_than",
            "less_than",
            "in",
            "not_in",
            "contains",
            "contains_all",
            "present",
            "absent",
            "less_or_equal_fact",
            "greater_or_equal_fact"
          ]
        },
        "value": {
          "oneOf": [
            {
              "$ref": "#/$defs/primitive"
            },
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/primitive"
              }
            }
          ]
        },
        "value_fact": {
          "type": "string",
          "minLength": 1
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "on_missing": {
          "enum": [
            "indeterminate",
            "fail"
          ]
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      },
      "oneOf": [
        {
          "required": [
            "value"
          ]
        },
        {
          "required": [
            "value_fact"
          ]
        },
        {
          "properties": {
            "operator": {
              "enum": [
                "present",
                "absent"
              ]
            }
          }
        }
      ]
    },
    "conditionNode": {
      "oneOf": [
        {
          "$ref": "#/$defs/conditionLeaf"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "all"
          ],
          "properties": {
            "all": {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/conditionNode"
              }
            }
          }
        },
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "any"
          ],
          "properties": {
            "any": {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/conditionNode"
              }
            }
          }
        },
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "not"
          ],
          "properties": {
            "not": {
              "$ref": "#/$defs/conditionNode"
            }
          }
        }
      ]
    },
    "connectorCandidate": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "candidate_id",
        "name",
        "branch_id",
        "catalog_status",
        "classification",
        "rule_classification",
        "description",
        "satisfies_port_pairs",
        "geometry_solution",
        "applicability",
        "hard_gates",
        "score_inputs",
        "evidence_refs",
        "explicit_exclusions"
      ],
      "properties": {
        "candidate_id": {
          "type": "string",
          "pattern": "^CONN-[A-Z0-9-]+$"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "branch_id": {
          "enum": [
            "concrete_slab_edge",
            "clt_floor_edge",
            "steel_frame_slab_support"
          ]
        },
        "catalog_status": {
          "const": "simulated_not_for_procurement"
        },
        "classification": {
          "$ref": "#/$defs/classification"
        },
        "rule_classification": {
          "const": "working_proposal"
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "satisfies_port_pairs": {
          "type": "array",
          "minItems": 2,
          "items": {
            "type": "array",
            "prefixItems": [
              {
                "type": "string"
              },
              {
                "type": "string"
              }
            ],
            "items": false,
            "minItems": 2,
            "maxItems": 2
          }
        },
        "geometry_solution": {
          "$ref": "#/$defs/candidateGeometrySolution"
        },
        "applicability": {
          "$ref": "#/$defs/conditionNode"
        },
        "hard_gates": {
          "type": "array",
          "minItems": 3,
          "items": {
            "$ref": "#/$defs/hardGate"
          }
        },
        "score_inputs": {
          "type": "object",
          "additionalProperties": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "minProperties": 5
        },
        "evidence_refs": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "explicit_exclusions": {
          "type": "array",
          "minItems": 2,
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    },
    "dimensionsMm": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "width",
        "height",
        "depth"
      ],
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "depth": {
          "type": "number",
          "exclusiveMinimum": 0
        }
      }
    },
    "candidateGeometrySolution": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "classification",
        "physical_description",
        "panel_side_footprint_origin_mm",
        "panel_side_footprint_mm",
        "substrate_side_footprint_origin_mm",
        "substrate_side_footprint_mm",
        "nominal_offset_mm",
        "adjustment_range_mm",
        "required_access_zone_mm",
        "keep_out_zones",
        "penetration_zones"
      ],
      "properties": {
        "classification": {
          "const": "illustrative_value"
        },
        "physical_description": {
          "type": "string",
          "minLength": 1
        },
        "panel_side_footprint_origin_mm": {
          "$ref": "#/$defs/vector3"
        },
        "panel_side_footprint_mm": {
          "$ref": "#/$defs/dimensionsMm"
        },
        "substrate_side_footprint_origin_mm": {
          "$ref": "#/$defs/vector3"
        },
        "substrate_side_footprint_mm": {
          "$ref": "#/$defs/dimensionsMm"
        },
        "nominal_offset_mm": {
          "$ref": "#/$defs/vector3"
        },
        "adjustment_range_mm": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "x_plus_minus",
            "y_plus_minus",
            "z_plus_minus"
          ],
          "properties": {
            "x_plus_minus": {
              "type": "number",
              "minimum": 0
            },
            "y_plus_minus": {
              "type": "number",
              "minimum": 0
            },
            "z_plus_minus": {
              "type": "number",
              "minimum": 0
            }
          }
        },
        "required_access_zone_mm": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "side",
            "origin_mm",
            "width",
            "height",
            "depth"
          ],
          "properties": {
            "side": {
              "type": "string",
              "minLength": 1
            },
            "origin_mm": {
              "$ref": "#/$defs/vector3"
            },
            "width": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "height": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "depth": {
              "type": "number",
              "exclusiveMinimum": 0
            }
          }
        },
        "keep_out_zones": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/geometryZone"
          }
        },
        "penetration_zones": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/geometryZone"
          }
        }
      }
    },
    "geometryZone": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "zone_id",
        "purpose",
        "side",
        "origin_mm",
        "dimensions_mm",
        "description"
      ],
      "properties": {
        "zone_id": {
          "type": "string",
          "minLength": 1
        },
        "purpose": {
          "type": "string",
          "minLength": 1
        },
        "side": {
          "enum": [
            "panel_side",
            "substrate_side",
            "between_sides"
          ]
        },
        "origin_mm": {
          "$ref": "#/$defs/vector3"
        },
        "dimensions_mm": {
          "$ref": "#/$defs/dimensionsMm"
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "box3": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "origin_mm",
        "dimensions_mm"
      ],
      "properties": {
        "origin_mm": {
          "$ref": "#/$defs/vector3"
        },
        "dimensions_mm": {
          "$ref": "#/$defs/dimensionsMm"
        }
      }
    },
    "observedBox": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "observation_id",
        "origin_mm",
        "dimensions_mm",
        "description"
      ],
      "properties": {
        "observation_id": {
          "type": "string",
          "minLength": 1
        },
        "origin_mm": {
          "$ref": "#/$defs/vector3"
        },
        "dimensions_mm": {
          "$ref": "#/$defs/dimensionsMm"
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "hardGate": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "gate_id",
        "condition",
        "failure_message",
        "missing_message"
      ],
      "properties": {
        "gate_id": {
          "type": "string",
          "minLength": 1
        },
        "condition": {
          "$ref": "#/$defs/conditionNode"
        },
        "failure_message": {
          "type": "string",
          "minLength": 1
        },
        "missing_message": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "scoringCriterion": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "criterion_id",
        "weight",
        "description"
      ],
      "properties": {
        "criterion_id": {
          "type": "string",
          "minLength": 1
        },
        "weight": {
          "type": "number",
          "exclusiveMinimum": 0,
          "maximum": 1
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "connectorCatalog": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "catalog_id",
        "version",
        "status",
        "classification",
        "catalog_data_classification",
        "connector_family_placement",
        "ranking_policy",
        "criteria",
        "candidates"
      ],
      "properties": {
        "catalog_id": {
          "const": "CWSE-CONNECTOR-CATALOG"
        },
        "version": {
          "const": "0.1.0"
        },
        "status": {
          "const": "simulated"
        },
        "classification": {
          "const": "working_proposal"
        },
        "catalog_data_classification": {
          "const": "illustrative_value"
        },
        "connector_family_placement": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "classification",
            "status",
            "question",
            "fixture_choice"
          ],
          "properties": {
            "classification": {
              "const": "open_decision"
            },
            "status": {
              "const": "unresolved"
            },
            "question": {
              "type": "string",
              "minLength": 1
            },
            "fixture_choice": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "ranking_policy": {
          "type": "string",
          "minLength": 1
        },
        "criteria": {
          "type": "array",
          "minItems": 5,
          "items": {
            "$ref": "#/$defs/scoringCriterion"
          }
        },
        "candidates": {
          "type": "array",
          "minItems": 6,
          "items": {
            "$ref": "#/$defs/connectorCandidate"
          }
        }
      }
    },
    "evaluatorStage": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "sequence",
        "stage_id",
        "name",
        "stage_class",
        "input_layers",
        "output",
        "blocking_statuses"
      ],
      "properties": {
        "sequence": {
          "type": "integer",
          "minimum": 1
        },
        "stage_id": {
          "type": "string",
          "minLength": 1
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "stage_class": {
          "enum": [
            "schema_integrity",
            "interface_compatibility",
            "geometry_mating",
            "candidate_applicability",
            "deterministic_hard_gate",
            "scored_ranking",
            "qualified_handoff"
          ]
        },
        "input_layers": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "output": {
          "type": "string",
          "minLength": 1
        },
        "blocking_statuses": {
          "type": "array",
          "items": {
            "enum": [
              "fail",
              "indeterminate"
            ]
          }
        }
      }
    },
    "evaluator": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "evaluator_id",
        "version",
        "classification",
        "qualified_engineering_service",
        "evaluation_scope",
        "outcome_precedence",
        "interface_mating_rule",
        "stages",
        "status_semantics",
        "staleness_policy"
      ],
      "properties": {
        "evaluator_id": {
          "const": "cwse-reference-evaluator"
        },
        "version": {
          "const": "0.1.0"
        },
        "classification": {
          "const": "working_proposal"
        },
        "qualified_engineering_service": {
          "const": false
        },
        "evaluation_scope": {
          "type": "string",
          "minLength": 1
        },
        "outcome_precedence": {
          "type": "array",
          "prefixItems": [
            {
              "const": "invalid"
            },
            {
              "const": "indeterminate"
            },
            {
              "const": "valid"
            }
          ],
          "items": false,
          "minItems": 3,
          "maxItems": 3
        },
        "interface_mating_rule": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "classification",
            "description",
            "source_refs"
          ],
          "properties": {
            "classification": {
              "const": "current_spec"
            },
            "description": {
              "type": "string",
              "minLength": 1
            },
            "source_refs": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "minLength": 1
              }
            }
          }
        },
        "stages": {
          "type": "array",
          "minItems": 7,
          "items": {
            "$ref": "#/$defs/evaluatorStage"
          }
        },
        "status_semantics": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "valid",
            "invalid",
            "indeterminate",
            "not_applicable",
            "not_evaluated"
          ],
          "properties": {
            "valid": {
              "type": "string",
              "minLength": 1
            },
            "invalid": {
              "type": "string",
              "minLength": 1
            },
            "indeterminate": {
              "type": "string",
              "minLength": 1
            },
            "not_applicable": {
              "type": "string",
              "minLength": 1
            },
            "not_evaluated": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "staleness_policy": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "classification",
            "description"
          ],
          "properties": {
            "classification": {
              "const": "working_proposal"
            },
            "description": {
              "type": "string",
              "minLength": 1
            }
          }
        }
      }
    },
    "scenario": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "scenario_id",
        "branch_id",
        "variant",
        "classification",
        "label",
        "expected_outcome",
        "panel_product_ref",
        "substrate_product_ref",
        "interface_family_ref",
        "candidate_ids",
        "lifecycle_stage",
        "facts",
        "evidence_refs",
        "missing_fact_ids",
        "plain_language_intent"
      ],
      "properties": {
        "scenario_id": {
          "type": "string",
          "pattern": "^CWSE-(CONCRETE|CLT|STEEL)-(VALID|INVALID|INDETERMINATE)$"
        },
        "branch_id": {
          "enum": [
            "concrete_slab_edge",
            "clt_floor_edge",
            "steel_frame_slab_support"
          ]
        },
        "variant": {
          "enum": [
            "valid",
            "invalid",
            "indeterminate"
          ]
        },
        "classification": {
          "const": "illustrative_value"
        },
        "label": {
          "type": "string",
          "minLength": 1
        },
        "expected_outcome": {
          "enum": [
            "valid",
            "invalid",
            "indeterminate"
          ]
        },
        "panel_product_ref": {
          "type": "string",
          "minLength": 1
        },
        "substrate_product_ref": {
          "type": "string",
          "minLength": 1
        },
        "interface_family_ref": {
          "const": "WG-CW-SLAB-EDGE-001"
        },
        "candidate_ids": {
          "type": "array",
          "minItems": 2,
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "lifecycle_stage": {
          "enum": [
            "design_development_coordination",
            "construction_document_coordination"
          ]
        },
        "facts": {
          "type": "object",
          "minProperties": 10,
          "additionalProperties": {
            "oneOf": [
              {
                "$ref": "#/$defs/primitive"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/primitive"
                }
              }
            ]
          }
        },
        "evidence_refs": {
          "type": "array",
          "minItems": 2,
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "missing_fact_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "plain_language_intent": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "candidateEvaluation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "candidate_id",
        "applicability_status",
        "hard_gate_status",
        "ranking_eligible",
        "score",
        "rank",
        "receipt_refs"
      ],
      "properties": {
        "candidate_id": {
          "type": "string",
          "minLength": 1
        },
        "applicability_status": {
          "enum": [
            "applicable",
            "not_applicable",
            "indeterminate"
          ]
        },
        "hard_gate_status": {
          "enum": [
            "pass",
            "fail",
            "indeterminate",
            "not_evaluated"
          ]
        },
        "ranking_eligible": {
          "type": "boolean"
        },
        "score": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0,
          "maximum": 100
        },
        "rank": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1
        },
        "receipt_refs": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    },
    "stageResult": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "stage_id",
        "status",
        "receipt_refs"
      ],
      "properties": {
        "stage_id": {
          "type": "string",
          "minLength": 1
        },
        "status": {
          "enum": [
            "pass",
            "fail",
            "indeterminate",
            "not_applicable",
            "not_evaluated"
          ]
        },
        "receipt_refs": {
          "type": "array",
          "minItems": 1,
          "maxItems": 1,
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    },
    "evaluationResult": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "evaluation_id",
        "scenario_id",
        "classification",
        "evaluator_ref",
        "overall_outcome",
        "engineering_approval",
        "selected_candidate_id",
        "selected_geometric_solution",
        "stage_results",
        "candidate_results",
        "receipt_refs",
        "next_action",
        "plain_language_summary"
      ],
      "properties": {
        "evaluation_id": {
          "type": "string",
          "pattern": "^EVAL-CWSE-[A-Z0-9-]+$"
        },
        "scenario_id": {
          "type": "string",
          "minLength": 1
        },
        "classification": {
          "const": "illustrative_value"
        },
        "evaluator_ref": {
          "const": "cwse-reference-evaluator@0.1.0"
        },
        "overall_outcome": {
          "enum": [
            "valid",
            "invalid",
            "indeterminate"
          ]
        },
        "engineering_approval": {
          "const": false
        },
        "selected_candidate_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "selected_geometric_solution": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "candidate_id",
                "classification",
                "placed_offset_mm",
                "panel_side_footprint_mm",
                "substrate_side_footprint_mm",
                "panel_attachment_zone",
                "substrate_attachment_zone",
                "available_access_zone",
                "observed_obstructions",
                "observed_unapproved_penetrations",
                "access_zone_clear",
                "keep_out_zones_clear",
                "fit_summary",
                "geometry_evidence_refs"
              ],
              "properties": {
                "candidate_id": {
                  "type": "string",
                  "minLength": 1
                },
                "classification": {
                  "const": "illustrative_value"
                },
                "placed_offset_mm": {
                  "$ref": "#/$defs/vector3"
                },
                "panel_side_footprint_mm": {
                  "$ref": "#/$defs/dimensionsMm"
                },
                "substrate_side_footprint_mm": {
                  "$ref": "#/$defs/dimensionsMm"
                },
                "panel_attachment_zone": {
                  "$ref": "#/$defs/box3"
                },
                "substrate_attachment_zone": {
                  "$ref": "#/$defs/box3"
                },
                "available_access_zone": {
                  "$ref": "#/$defs/box3"
                },
                "observed_obstructions": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/observedBox"
                  }
                },
                "observed_unapproved_penetrations": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/observedBox"
                  }
                },
                "access_zone_clear": {
                  "type": "boolean"
                },
                "keep_out_zones_clear": {
                  "type": "boolean"
                },
                "fit_summary": {
                  "type": "string",
                  "minLength": 1
                },
                "geometry_evidence_refs": {
                  "type": "array",
                  "minItems": 1,
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              }
            }
          ]
        },
        "stage_results": {
          "type": "array",
          "minItems": 7,
          "maxItems": 7,
          "items": {
            "$ref": "#/$defs/stageResult"
          }
        },
        "candidate_results": {
          "type": "array",
          "minItems": 2,
          "items": {
            "$ref": "#/$defs/candidateEvaluation"
          }
        },
        "receipt_refs": {
          "type": "array",
          "minItems": 7,
          "maxItems": 7,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "next_action": {
          "type": "string",
          "minLength": 1
        },
        "plain_language_summary": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "receipt": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "receipt_id",
        "scenario_id",
        "classification",
        "stage_id",
        "check_id",
        "status",
        "engineering_approval",
        "subject_refs",
        "input_fact_refs",
        "method",
        "observed",
        "requirement",
        "finding",
        "evidence_refs"
      ],
      "properties": {
        "receipt_id": {
          "type": "string",
          "pattern": "^R-CWSE-[A-Z0-9-]+$"
        },
        "scenario_id": {
          "type": "string",
          "minLength": 1
        },
        "classification": {
          "const": "illustrative_value"
        },
        "stage_id": {
          "type": "string",
          "minLength": 1
        },
        "check_id": {
          "type": "string",
          "minLength": 1
        },
        "status": {
          "enum": [
            "pass",
            "fail",
            "indeterminate",
            "not_applicable",
            "not_evaluated"
          ]
        },
        "engineering_approval": {
          "const": false
        },
        "subject_refs": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "input_fact_refs": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "method": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "name",
            "version",
            "kind"
          ],
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1
            },
            "version": {
              "type": "string",
              "minLength": 1
            },
            "kind": {
              "enum": [
                "deterministic_precheck",
                "information_completeness",
                "weighted_ranking",
                "qualified_handoff"
              ]
            }
          }
        },
        "observed": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "description",
            "value",
            "unit"
          ],
          "properties": {
            "description": {
              "type": "string",
              "minLength": 1
            },
            "value": {},
            "unit": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "requirement": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "description",
            "source_ref"
          ],
          "properties": {
            "description": {
              "type": "string",
              "minLength": 1
            },
            "source_ref": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "finding": {
          "type": "string",
          "minLength": 1
        },
        "evidence_refs": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    },
    "evidence": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "evidence_id",
        "evidence_type",
        "classification",
        "status",
        "authority",
        "revision",
        "content_ref",
        "scope_note"
      ],
      "properties": {
        "evidence_id": {
          "type": "string",
          "pattern": "^EV-[A-Z0-9-]+$"
        },
        "evidence_type": {
          "enum": [
            "application_design_note",
            "manufacturer_declaration",
            "project_input",
            "geometry_snapshot",
            "material_record",
            "catalog_record",
            "working_group_source"
          ]
        },
        "classification": {
          "$ref": "#/$defs/classification"
        },
        "status": {
          "enum": [
            "simulated",
            "missing",
            "referenced_not_evaluated"
          ]
        },
        "authority": {
          "type": "string",
          "minLength": 1
        },
        "revision": {
          "type": "string",
          "minLength": 1
        },
        "content_ref": {
          "type": [
            "string",
            "null"
          ]
        },
        "scope_note": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "manifestArtifactType": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "artifact_type",
        "path_template",
        "media_type",
        "source_layer",
        "required",
        "description"
      ],
      "properties": {
        "artifact_type": {
          "type": "string",
          "minLength": 1
        },
        "path_template": {
          "type": "string",
          "minLength": 1
        },
        "media_type": {
          "type": "string",
          "minLength": 1
        },
        "source_layer": {
          "type": "string",
          "minLength": 1
        },
        "required": {
          "type": "boolean"
        },
        "description": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "manifestArtifact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "artifact_id",
        "path",
        "artifact_type",
        "media_type",
        "source_layer",
        "classification",
        "required",
        "actual_file",
        "content_scope",
        "sha256"
      ],
      "properties": {
        "artifact_id": {
          "type": "string",
          "minLength": 1
        },
        "path": {
          "type": "string",
          "minLength": 1
        },
        "artifact_type": {
          "type": "string",
          "minLength": 1
        },
        "media_type": {
          "type": "string",
          "minLength": 1
        },
        "source_layer": {
          "type": "string",
          "minLength": 1
        },
        "classification": {
          "$ref": "#/$defs/classification"
        },
        "required": {
          "type": "boolean"
        },
        "actual_file": {
          "const": true
        },
        "content_scope": {
          "type": "string",
          "minLength": 1
        },
        "sha256": {
          "type": "null"
        }
      }
    },
    "scenarioBundle": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "scenario_id",
        "root_path",
        "input_artifacts",
        "output_artifacts",
        "evaluation_ref",
        "receipt_refs",
        "integrity"
      ],
      "properties": {
        "scenario_id": {
          "type": "string",
          "minLength": 1
        },
        "root_path": {
          "type": "string",
          "minLength": 1
        },
        "input_artifacts": {
          "type": "array",
          "minItems": 5,
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "output_artifacts": {
          "type": "array",
          "minItems": 5,
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "evaluation_ref": {
          "type": "string",
          "minLength": 1
        },
        "receipt_refs": {
          "type": "array",
          "minItems": 7,
          "maxItems": 7,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "integrity": {
          "const": "digests_omitted_in_illustrative_monolith"
        }
      }
    },
    "outputManifest": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "manifest_version",
        "classification",
        "package_root",
        "packaging_model",
        "integrity_policy",
        "artifact_types",
        "artifacts",
        "scenario_bundles"
      ],
      "properties": {
        "manifest_version": {
          "const": "0.1.0"
        },
        "classification": {
          "const": "working_proposal"
        },
        "package_root": {
          "const": "CWSE-RP-001/"
        },
        "packaging_model": {
          "const": "monolithic_fixture_with_projected_file_tree"
        },
        "integrity_policy": {
          "type": "string",
          "minLength": 1
        },
        "artifact_types": {
          "type": "array",
          "minItems": 10,
          "items": {
            "$ref": "#/$defs/manifestArtifactType"
          }
        },
        "artifacts": {
          "type": "array",
          "minItems": 16,
          "items": {
            "$ref": "#/$defs/manifestArtifact"
          }
        },
        "scenario_bundles": {
          "type": "array",
          "minItems": 9,
          "maxItems": 9,
          "items": {
            "$ref": "#/$defs/scenarioBundle"
          }
        }
      }
    }
  }
}
