{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/colourmemory-com/json-schema/colourmemory-com-house-specify-request-schema.json",
  "title": "HouseSpecifyRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/colourmemory-com-openapi.yml#/components/schemas/HouseSpecifyRequest",
  "properties": {
    "concept": {
      "type": "string",
      "title": "Concept"
    },
    "output_format": {
      "type": "string",
      "enum": [
        "standard",
        "scene_brief"
      ],
      "title": "Output Format",
      "default": "standard"
    },
    "archive": {
      "type": "string",
      "title": "Archive"
    },
    "rooms": {
      "items": {
        "$ref": "#/$defs/HouseRoomSpec"
      },
      "type": "array",
      "title": "Rooms"
    },
    "colours_per_room": {
      "type": "integer",
      "title": "Colours Per Room",
      "default": 5
    },
    "shared_house_colours": {
      "type": "integer",
      "title": "Shared House Colours",
      "default": 2
    },
    "minimum_claim_strength": {
      "type": "string",
      "title": "Minimum Claim Strength",
      "default": "B"
    },
    "guidance_level": {
      "type": "string",
      "enum": [
        "client",
        "decorator"
      ],
      "title": "Guidance Level",
      "default": "client"
    },
    "avoid": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Avoid",
      "default": []
    },
    "narrative_mode": {
      "type": "string",
      "title": "Narrative Mode",
      "default": "evidence_only"
    },
    "strict_semantic_colour": {
      "type": "boolean",
      "title": "Strict Semantic Colour",
      "default": true
    },
    "colour_direction": {
      "type": "string",
      "enum": [
        "balanced",
        "distinctive"
      ],
      "title": "Colour Direction",
      "description": "Experimental -- opt-in only, not part of the stable API surface. Colour direction for this scheme. balanced (default) preserves the existing evidence-led specification. distinctive pushes this scheme toward a clearer, more committed colour identity where the documented archive supports it. How far it can go depends on the surviving evidence; the response reports what was achieved.",
      "default": "balanced"
    },
    "save": {
      "type": "boolean",
      "title": "Save",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "concept",
    "archive",
    "rooms"
  ],
  "$defs": {
    "HouseRoomSpec": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label"
        },
        "room_type": {
          "type": "string",
          "title": "Room Type",
          "default": "living"
        },
        "orientation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Orientation",
          "default": ""
        },
        "function": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Function",
          "default": ""
        },
        "requested_character": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Requested Character",
          "default": ""
        },
        "surface_targets": {
          "items": {
            "$ref": "#/$defs/HouseSurfaceTarget"
          },
          "type": "array",
          "title": "Surface Targets",
          "default": []
        },
        "surfaces": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "title": "Surfaces",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label"
      ],
      "title": "HouseRoomSpec"
    },
    "HouseSurfaceTarget": {
      "properties": {
        "surface_role": {
          "type": "string",
          "title": "Surface Role"
        },
        "target_hex": {
          "type": "string",
          "title": "Target Hex",
          "default": ""
        },
        "intent": {
          "type": "string",
          "title": "Intent",
          "default": ""
        },
        "allow_contrast": {
          "type": "boolean",
          "title": "Allow Contrast",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "surface_role"
      ],
      "title": "HouseSurfaceTarget",
      "description": "The colour the MODEL is aiming at for one surface in one room.\n\nA house draws its colours from one provenance-grouped pool and hands them\nout by list position -- dominant, secondary, joinery, textile, accent -- so\nnothing ever asked whether the colour landing on the walls was the colour\nthe room was described as needing. A warm sitting room kept a lilac textile\nbecause no part of the pipeline knew what warm meant here.\n\ntarget_hex is a DESIGN TARGET, not a claim. It is not a measured historical\ncolour, not an archive source and not evidence; it never appears as\nprovenance, and it never relaxes an evidence floor or a guidance hold. It\nexists so retrieval can be held to the colour family the model actually\nmeant, and the colour that ends up on the wall is still a real, sourced\narchive record carrying its own provenance."
    }
  }
}