{
  "type": "object",
  "properties": {
    "scenes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "scene_index": {"type": "integer"},
          "primary_location": {"type": "string"},
          "scene_type": {"type": "string", "description": "normal | montage | flashback | dream | voiceover | transition | other"},
          "present_entity_ids": {
            "type": "array",
            "items": {"type": "string"},
            "description": "이 씬에 물리적으로 존재하는 엔티티의 id 목록 (인물, 배경, 소품 모두 포함). 엔티티 목록에서 제공된 id를 그대로 사용."
          },
          "not_present": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {"type": "string"},
                "reason": {"type": "string"}
              },
              "required": ["id", "reason"],
              "additionalProperties": false
            },
            "description": "씬 텍스트에 언급되지만 물리적으로 없는 엔티티 (인물만). LLM 추론 근거용."
          }
        },
        "required": ["scene_index", "primary_location", "scene_type", "present_entity_ids", "not_present"],
        "additionalProperties": false
      }
    }
  },
  "required": ["scenes"],
  "additionalProperties": false
}
