"""Multi-turn dialogues about what Lumi sees, where the scene CHANGES between turns (written blind, 2026-10-22, from docs/14 "What Lumi sees" and docs/WORK_PLAN.md "Big night test" fault 1). Every seeing answer, follow-up ("and now?", "really?", "are you sure?", "look again", "지금은?") and correction must come from a fresh look at the scene of THAT turn, never from what was said before; a wrong correction ("it's white, not blue" while the camera still sees blue) is checked against the camera, not agreed with. DIALOGUES = [{"who", "topic", "lang": "en" | "ko" | "mix", "turns": [turn, ...]}] turn = {"say", "scene", "route", "expect_action", "must", "must_not", "check"} - scene: what the cameras see at that moment (every turn carries the full scene): {"people": [{"id", "dist_m", "side": "front" | "left" | "right" (as Lumi sees it), "top", "bottom" (colour or None), "left_hand", "right_hand" (object or None; the PERSON's own left / right hand), "hands_visible", "raised": None | "left" | "right" (the person's own hand)}], "objects": [{"name", "colour", "side", "dist_m"}]}. Person "A" is the one talking to Lumi; "B" is someone else. - route: "seeing" (answered from the cameras), "llm" (talk: thanks, a remark), "end" (goodbye), "act" (a motion). - expect_action: "none" or the motion asked ("look me"). - must / must_not: case-insensitive regexes on the spoken reply (every must matches, no must_not does). must_not names only the stale or wrong claim (written so "not in your left hand any more" does not trip it). - check: one line on what a right answer does (for a judge). train: fixes may be made from these. """ DIALOGUES = [{'who': 'visitor', 'topic': 'table/people/switch/held', 'lang': 'ko', 'turns': [{'say': '탁자 위에 뭐가 보여요?', 'scene': {'people': [{'id': 'A', 'dist_m': 1.6, 'side': 'front', 'top': 'white', 'bottom': 'blue', 'left_hand': None, 'right_hand': None, 'hands_visible': True, 'raised': None}], 'objects': [{'name': 'apple', 'colour': 'red', 'side': 'left', 'dist_m': 1.0}, {'name': 'banana', 'colour': 'yellow', 'side': 'front', 'dist_m': 1.4}, {'name': 'cup', 'colour': 'black', 'side': 'right', 'dist_m': 0.7}]}, 'route': 'seeing', 'expect_action': 'none', 'must': ['apple|사과', 'banana|바나나', 'cup|mug|컵'], 'must_not': [], 'check': 'names what is on the table now: apple, banana, cup'}, {'say': '사과 아직 보여요?', 'scene': {'people': [{'id': 'A', 'dist_m': 1.6, 'side': 'front', 'top': 'white', 'bottom': 'blue', 'left_hand': None, 'right_hand': None, 'hands_visible': True, 'raised': None}], 'objects': [{'name': 'banana', 'colour': 'yellow', 'side': 'front', 'dist_m': 1.4}, {'name': 'cup', 'colour': 'black', 'side': 'right', 'dist_m': 0.7}]}, 'route': 'seeing', 'expect_action': 'none', 'must': ["\\bno\\b|\\bnot\\b|gone|don'?t see|isn'?t|아니|없|안 보|사라"], 'must_not': ['^\\W*(?:yes|yeah|yep|네|응|예)\\b'], 'check': 'the apple was taken away: no, it is gone'}, {'say': '지금은 테이블에 뭐가 있어요?', 'scene': {'people': [{'id': 'A', 'dist_m': 1.6, 'side': 'front', 'top': 'white', 'bottom': 'blue', 'left_hand': None, 'right_hand': None, 'hands_visible': True, 'raised': None}], 'objects': [{'name': 'banana', 'colour': 'yellow', 'side': 'front', 'dist_m': 1.4}, {'name': 'cup', 'colour': 'black', 'side': 'right', 'dist_m': 0.7}]}, 'route': 'seeing', 'expect_action': 'none', 'must': ['\\w'], 'must_not': [], 'check': 'names what is left (banana, cup); never the apple as there'}, {'say': '사람이 몇 명 보여요?', 'scene': {'people': [{'id': 'A', 'dist_m': 1.6, 'side': 'front', 'top': 'white', 'bottom': 'blue', 'left_hand': None, 'right_hand': None, 'hands_visible': True, 'raised': None}], 'objects': [{'name': 'banana', 'colour': 'yellow', 'side': 'front', 'dist_m': 1.4}, {'name': 'cup', 'colour': 'black', 'side': 'right', 'dist_m': 0.7}]}, 'route': 'seeing', 'expect_action': 'none', 'must': ['\\b(?:1|one|just you|only you)\\b|한 ?명|1 ?명|한 분|혼자|한 사람|한 명만'], 'must_not': [], 'check': 'one person (the speaker)'}, {'say': '지금은 몇 명이에요?', 'scene': {'people': [{'id': 'A', 'dist_m': 1.6, 'side': 'front', 'top': 'white', 'bottom': 'blue', 'left_hand': None, 'right_hand': None, 'hands_visible': True, 'raised': None}, {'id': 'B', 'dist_m': 2.0, 'side': 'right', 'top': 'blue', 'bottom': 'black', 'left_hand': None, 'right_hand': None, 'hands_visible': True, 'raised': None}], 'objects': [{'name': 'banana', 'colour': 'yellow', 'side': 'front', 'dist_m': 1.4}, {'name': 'cup', 'colour': 'black', 'side': 'right', 'dist_m': 0.7}]}, 'route': 'seeing', 'expect_action': 'none', 'must': ['\\b(?:2|two)\\b|두 ?명|2 ?명|두 분|두 사람'], 'must_not': [], 'check': 'a second person stepped in: two people now'}, {'say': '옆 사람 셔츠는 무슨 색이에요?', 'scene': {'people': [{'id': 'A', 'dist_m': 1.6, 'side': 'front', 'top': 'white', 'bottom': 'blue', 'left_hand': None, 'right_hand': None, 'hands_visible': True, 'raised': None}, {'id': 'B', 'dist_m': 2.0, 'side': 'right', 'top': 'blue', 'bottom': 'black', 'left_hand': None, 'right_hand': None, 'hands_visible': True, 'raised': None}], 'objects': [{'name': 'banana', 'colour': 'yellow', 'side': 'front', 'dist_m': 1.4}, {'name': 'cup', 'colour': 'black', 'side': 'right', 'dist_m': 0.7}]}, 'route': 'seeing', 'expect_action': 'none', 'must': ['blue|파란|파랑|블루'], 'must_not': [], 'check': "the other person (B) wears blue on top, not the speaker's colour"}, {'say': '지금은 몇 명이에요?', 'scene': {'people': [{'id': 'A', 'dist_m': 1.6, 'side': 'front', 'top': 'white', 'bottom': 'blue', 'left_hand': None, 'right_hand': None, 'hands_visible': True, 'raised': None}, {'id': 'B', 'dist_m': 2.0, 'side': 'right', 'top': 'blue', 'bottom': 'black', 'left_hand': None, 'right_hand': None, 'hands_visible': True, 'raised': None}, {'id': 'C', 'dist_m': 2.6, 'side': 'left', 'top': 'brown', 'bottom': 'blue', 'left_hand': None, 'right_hand': None, 'hands_visible': True, 'raised': None}], 'objects': [{'name': 'banana', 'colour': 'yellow', 'side': 'front', 'dist_m': 1.4}, {'name': 'cup', 'colour': 'black', 'side': 'right', 'dist_m': 0.7}]}, 'route': 'seeing', 'expect_action': 'none', 'must': ['\\b(?:3|three)\\b|세 ?명|3 ?명|세 분|세 사람'], 'must_not': [], 'check': 'a third person came: three'}, {'say': '지금은 몇 명이에요?', 'scene': {'people': [{'id': 'A', 'dist_m': 1.6, 'side': 'front', 'top': 'white', 'bottom': 'blue', 'left_hand': None, 'right_hand': None, 'hands_visible': True, 'raised': None}], 'objects': [{'name': 'banana', 'colour': 'yellow', 'side': 'front', 'dist_m': 1.4}, {'name': 'cup', 'colour': 'black', 'side': 'right', 'dist_m': 0.7}]}, 'route': 'seeing', 'expect_action': 'none', 'must': ['\\b(?:1|one|just you|only you)\\b|한 ?명|1 ?명|한 분|혼자|한 사람|한 명만'], 'must_not': [], 'check': 'the friend left: one person now'}, {'say': '제가 뭘 들고 있어요?', 'scene': {'people': [{'id': 'A', 'dist_m': 1.6, 'side': 'front', 'top': 'white', 'bottom': 'blue', 'left_hand': None, 'right_hand': 'cup', 'hands_visible': True, 'raised': None}], 'objects': [{'name': 'banana', 'colour': 'yellow', 'side': 'front', 'dist_m': 1.4}, {'name': 'cup', 'colour': 'black', 'side': 'right', 'dist_m': 0.7}]}, 'route': 'seeing', 'expect_action': 'none', 'must': ['cup|mug|컵'], 'must_not': [], 'check': 'says the person holds a cup'}, {'say': '왼손이에요, 오른손이에요?', 'scene': {'people': [{'id': 'A', 'dist_m': 1.6, 'side': 'front', 'top': 'white', 'bottom': 'blue', 'left_hand': None, 'right_hand': 'cup', 'hands_visible': True, 'raised': None}], 'objects': [{'name': 'banana', 'colour': 'yellow', 'side': 'front', 'dist_m': 1.4}, {'name': 'cup', 'colour': 'black', 'side': 'right', 'dist_m': 0.7}]}, 'route': 'seeing', 'expect_action': 'none', 'must': ['right|오른'], 'must_not': ["(?