Files
Lumi/tests/dialogues_followup_en.py

391 lines
33 KiB
Python

"""Long dialogues (8-20 turns) of follow-up questions about Lumi's own answer ("why?", "when?", "how do you know?",
"really?") and of questions Lumi has no fact for, English-led with Korean and mixed turns inside. Format of
tests/dialogues.py; S(say, said) is a turn lumi.py answers by code (a refusal, a seeing answer, a fixed line): the
next turn must go on from that line. Run by tests/followup_check.py.
Facts in "must" come only from the SYSTEM prompt in assistant/brain.py and knowledge/.
"""
from tests.dialogues import T, D, NAME, MAKER, AGE, NS, HEIGHT, WEIGHT, REACH, ONE_KG, SPEED, HOURS, NO, YES, KO
def S(say, said):
return {"say": say, "said": said, "expect_action": "none"}
NO_INFO = r"exact information|don't have (that|exact|the|any)|do not have|not sure|don't know|do not know|no information|정확한 정보|정보가 없|정보는 없|모르|몰라"
NOT_HEARD = r"didn't catch|did not catch|say (it|that) again|could you repeat|다시 (한 ?번 )?말씀"
BASE_OFF = ("I can't drive or turn my waist right now. Switch on Patrol for that.",
"지금은 이동하거나 허리를 돌릴 수 없어요. 패트롤을 켜 주세요.") # lumi.BASE_OFF_SAY
ARM_OFF = ("Please enable my arm first.", "먼저 제 팔을 켜 주세요.") # lumi.ARM_OFF_SAY
EMPTY = ("I'm not holding anything right now.", "지금은 손에 아무것도 들고 있지 않아요.")
INVENT = r"\b\d{2,}\s*(people|employees|staff|명|직원)"
FU = "answers the follow-up from its own previous answer, no topic change, no 'say it again'"
STAND = "stands by its last seeing answer (same colour / hand / count) or says it can look again; never a new invented fact, no 'say it again'"
PATROL = r"patrol|greeter|in place|stay|switch|패트롤|이동"
ARMW = r"arm|switched off|enabled?|\boff\b|power|팔"
MAPW = r"map|know|places?|지도|p1|p10|home|dock"
P12 = "I don't know a place called p12. I know p1 to p10, home and dock2."
LOOKUP_NO = "I'm sorry, I don't have that information. A staff member can help you."
BUSY = "Sorry, I'm on a task right now. I can help you when I've finished."
WAVE_MOVE = "I can't wave while I'm moving."
WAVE_HOLD = "I'm holding something, so I won't wave."
DIALOGUES_FOLLOWUP_EN = [
# ---------- follow-ups on Lumi's own facts ----------
D("engineer", "followup_fact", "en",
T("How fast can you drive?", must=[SPEED]),
T("Why not faster?", must=[r"\w"], no=[NOT_HEARD], check="explains why its speed is limited (safety, people around, normal 0.6 m/s); " + FU),
T("And with a cup?", must=[r"10 ?(cm|centimet)|slow"], no=[NOT_HEARD], check="about 10 cm/s with a cup"),
T("Why so slow?", must=[r"spill|lean|tilt|15|cup|drop"], no=[NOT_HEARD], check="so the cup does not lean or spill (at most 15 degrees); " + FU),
T("Really?", must=[YES + r"|right|that's right|indeed"], no=[NOT_HEARD], check="confirms its last point about the cup"),
T("How do you know that?", must=[r"\w"], no=[NOT_HEARD], check="says it is how it was built / set up by Cutshion; no invented test data"),
T("Can you climb stairs?", must=[NO]),
T("Why not?", must=[r"wheel|step|1\.5|base|stairs"], no=[NOT_HEARD], check="wheeled base, only steps up to 1.5 cm; " + FU),
T("What about a ramp?", must=[r"\b8\b|eight|slope"], check="slopes up to 8 degrees"),
T("Okay, thanks, bye.", "end")),
D("kid 8", "followup_fact", "en",
T("How old are you?", must=[AGE]),
T("Really?", must=[AGE + r"|yes|right"], no=[NOT_HEARD], check="confirms it is 2 years old"),
T("How come you can talk then?", must=[r"\w"], no=[NOT_HEARD], check="explains it is a robot: speech model / language model, not a baby"),
T("Who taught you?", must=[MAKER + r"|Whisper|Gemma|Google|OpenAI"], no=[NOT_HEARD], check="Cutshion built it / uses Whisper and Gemma"),
T("When?", must=[AGE + r"|2022|2024|not sure|don't know"], no=[NOT_HEARD, r"\b(19|20)[0-9]{2}-\d"], check="when it was made: about 2 years ago, no invented exact date"),
T("Where?", must=[r"Seoul|서울|Korea|Cutshion|not sure|don't know"], no=[NOT_HEARD], check="where it was made: Cutshion in Seoul"),
T("How tall are you?", must=[HEIGHT]),
T("Can you get taller?", must=[r"186|lift|yes"], check="yes, up to 186 cm with the lift"),
T("How?", must=[r"lift|raise|body|torso"], no=[NOT_HEARD], check="its lift raises its body; " + FU),
T("Cool! Bye bye!", "end")),
D("AI researcher", "followup_fact", "en",
T("What speech recognition do you use?", must=[r"Whisper|위스퍼"]),
T("Why that one?", must=[r"\w"], no=[NOT_HEARD], check="a reason for Whisper (works well, English and Korean, runs on its own computer); no topic change"),
T("Who makes it?", must=[r"OpenAI"], no=[r"Google"], check="Whisper is by OpenAI"),
T("So you're connected to OpenAI?", must=[NO + r"|local|own|Thor|cloud"], check="no: it runs on its own Jetson Thor, no cloud"),
T("How do you know it doesn't go to the cloud?", must=[r"Thor|own|local|on (my|the) robot|computer|cloud"], no=[NOT_HEARD], check="both models run on its own NVIDIA Jetson Thor"),
T("And the answers?", must=[r"Gemma|젬마"], check="the language model, Gemma 4"),
T("Whose model is that?", must=[r"Google|구글"], no=[r"OpenAI"]),
T("Are you sure?", must=[r"Google|yes|sure"], no=[NOT_HEARD, r"OpenAI makes Gemma"], check="confirms Gemma is made by Google"),
T("How big is it?", must=[r"26|not sure|don't know"], check="Gemma 4 26b"),
T("What does that number mean?", must=[r"\w"], no=[NOT_HEARD], check="26b = about 26 billion parameters, size of the model; " + FU),
T("Got it, thanks.", "none | end")),
D("journalist", "followup_fact", "en",
T("Who built you?", must=[MAKER]),
T("Where are they?", must=[r"Seoul|서울"], no=[NOT_HEARD], check="Cutshion is in Seoul"),
T("Since when?", must=[r"2022|July"], no=[NOT_HEARD], check="Cutshion was founded in July 2022"),
T("Who runs it?", must=[r"Lee Min-?seok|이민석"], check="CEO Lee Min-seok"),
T("Is that his first company?", must=[r"third|three|세 번째|no"], check="his third company"),
T("How do you know?", must=[r"\w"], no=[NOT_HEARD], check="it was told about its company / it is what it knows about Cutshion; no invented source"),
T("Did they get investment?", must=[r"500 million|5억|seed"]),
T("When was that?", must=[r"2025|August"], no=[NOT_HEARD], check="August 2025"),
T("From whom?", must=[r"CNT|Evergreen"], no=[NOT_HEARD], check="CNT Tech and Evergreen Investment Partners"),
T("How much again?", must=[r"500 million|5억"], no=[NOT_HEARD]),
T("Thank you for your time.", "end")),
D("elderly visitor", "followup_fact", "en",
T("How long does your battery last, dear?", must=[HOURS]),
T("Really? That long?", must=[HOURS + r"|yes"], no=[NOT_HEARD], check="confirms about 10 hours"),
T("And how long to charge it?", must=[NS], no=[r"\b\d+ ?(minutes?|hours?)\b(?!.*10)"], check="charging time not known"),
T("Why don't you know?", must=[r"\w"], no=[NOT_HEARD, r"\b\d+ ?(minutes?)\b"], check="says honestly it was not told the charging time, a staff member can tell; no invented number"),
T("Roughly?", must=[NS], no=[r"\b\d+ ?(minutes?|분)\b", r"\b([1-9]) ?hours? to charge"], check="still not known, no estimate"),
T("Who would know?", must=[r"staff|Cutshion|직원"], no=[NOT_HEARD], check="a staff member / Cutshion"),
T("What kind of battery is it?", must=[r"lithium|24|45"], check="24 V lithium-ion, 45 Ah"),
T("What does 45 mean?", must=[r"amp|Ah|capacity|charge"], no=[NOT_HEARD], check="45 ampere-hours, its capacity; " + FU),
T("Oh I see.", must=[r"\w"], check="short acknowledgement, the talk goes on"),
T("Goodbye now.", "end")),
D("student", "followup_fact", "en",
T("How much can you lift?", must=[ONE_KG]),
T("Why only that much?", must=[r"arm|2 ?kg|gripper|payload"], no=[NOT_HEARD], check="the arm carries 2 kg including the gripper, so about 1 kg; " + FU),
T("What gripper?", must=[r"Zimmer"], no=[NOT_HEARD]),
T("How wide does it open?", must=[r"6|9|cm"], check="holds things 6 to 9 cm wide"),
T("So a bottle?", must=[r"\w"], no=[NOT_HEARD], check="a bottle 6-9 cm wide and light fits, yes; answers about the bottle"),
T("And a watermelon?", must=[NO], check="too heavy / too big"),
T("Why?", must=[r"heavy|1 ?kg|big|wide|kilo"], no=[NOT_HEARD], check="heavier than 1 kg and wider than 9 cm"),
T("How far can the arm reach?", must=[REACH]),
T("Where from?", must=[r"\w"], no=[NOT_HEARD], check="from its shoulder / arm base; " + FU),
T("Okay that's it, thanks!", "none | end")),
D("tourist", "followup_fact", "en",
T("Are you heavy?", must=[WEIGHT]),
T("What weighs the most?", must=[r"base|50"], no=[NOT_HEARD], check="the wheeled base, 50 kg"),
T("And the arm?", must=[r"9\.9"], check="arm 9.9 kg"),
T("Really, that light?", must=[r"9\.9|yes"], no=[NOT_HEARD], check="confirms 9.9 kg"),
T("Can you move with all that weight?", must=[YES + r"|0\.6|wheel"], check="yes, wheels with hub motors, 0.6 m/s"),
T("How?", must=[r"wheel|motor|hub"], no=[NOT_HEARD], check="two wheels with hub motors"),
T("Where do you go usually?", must=[r"\w"], check="places on its map / where it is sent; no invented place"),
T("Can you go outside?", must=[r"\w"], check="honest: needs flat ground, no stairs, small steps only; no invented ability"),
T("Nice, see you!", "end")),
D("parent", "followup_fact", "en",
T("Lumi, what can you see with?", must=[r"camera|lidar|depth"]),
T("How many?", must=[r"three|3"], no=[NOT_HEARD], check="three depth cameras"),
T("Where are they?", must=[r"head|body|base"], no=[NOT_HEARD], check="head, body and front of the base"),
T("How far can they see?", must=[r"10|ten"], check="up to about 10 m"),
T("In the dark too?", must=[NS], check="not known"),
T("Why don't you know that?", must=[r"\w"], no=[NOT_HEARD, r"\byes,? I can see in the dark"], check="honest it was not told / not tested; no invented ability"),
T("And can you hear well?", must=[r"six|6|microphone"], check="six microphones"),
T("Even when it's loud?", must=[NS], check="not known in noise"),
T("Ok, thanks Lumi.", "none | end")),
D("investor", "followup_fact", "en",
T("What does your company make?", must=[r"barista|drawing|cooking|ice cream|welding|robot"]),
T("Which one sells best?", must=[NO_INFO], no=[INVENT], check="not known which sells best; no invention"),
T("Who buys the barista ones?", must=[r"Mega Coffee|Sonovictus"]),
T("Since when?", must=[r"2025|December|2027"], no=[NOT_HEARD], check="Mega Coffee December 2025 (Sonovictus from 2027)"),
T("How many?", must=[r"200|not sure|don't know|exact"], no=[NOT_HEARD], check="200 for Sonovictus over three years, Mega Coffee count not known"),
T("Over how long?", must=[r"three|3"], no=[NOT_HEARD], check="three years from 2027"),
T("Where is Sonovictus?", must=[r"USA|US|America|미국"], no=[NOT_HEARD]),
T("Really?", must=[r"USA|US|America|yes"], no=[NOT_HEARD], check="confirms the USA"),
T("And the price of one?", must=[NO_INFO + "|" + NS], no=[r"\$\s?\d|\d+ ?(won|dollars|원)"], check="price not known"),
T("Thanks, that was helpful. Bye.", "end")),
# ---------- follow-ups on refusals said by code ----------
D("visitor", "followup_refusal", "en",
T("Hi Lumi!", must=[r"\w"]),
S("Can you come over here?", BASE_OFF[0]),
T("Why?", must=[PATROL], no=[NOT_HEARD], check="the reason from its last line: Patrol is off / Greeter only, it stays in place; " + FU),
T("What's Patrol?", must=[r"mode|drive|move|switch|dashboard"], no=[NOT_HEARD], check="the mode that lets it drive around; " + FU),
T("Who can switch it on?", must=[r"staff|dashboard|operator|Cutshion|someone"], no=[NOT_HEARD], check="a staff member / operator on its dashboard"),
T("So what can you do now then?", must=[r"talk|answer|look|wave|head|arm|lift|sing"], no=[NOT_HEARD], check="what it can do in place: talk, look, lift, arm, sing"),
T("Okay, can you look at me?", "look me | none"),
T("Thanks.", "none | end")),
D("kid 10", "followup_refusal", "en",
T("Hello robot.", must=[r"\w"]),
S("Follow me!", BASE_OFF[0]),
T("How come?", must=[PATROL], no=[NOT_HEARD], check="Patrol is switched off, so it stays where it is"),
T("That's boring.", must=[r"\w"], check="a light reply, offers what it can do in place, no topic change"),
T("Can you at least turn around?", must=[NO + r"|patrol|waist|in place"], check="turning the waist / base also needs Patrol: no"),
T("Why not?", must=[PATROL + r"|waist"], no=[NOT_HEARD], check="same reason: Patrol is off"),
T("Can you wave then?", "wave | none"),
S("Wave again!", WAVE_HOLD),
T("Holding what?", must=[r"\w"], no=[NOT_HEARD], check="answers from its last line: it is holding something in its hand, so no wave"),
T("Why can't you wave holding it?", must=[r"drop|fall|hand|hold"], no=[NOT_HEARD], check="it could drop the thing / the hand is busy"),
T("Okay bye!", "end")),
D("engineer", "followup_refusal", "en",
S("Pick up that cup please.", ARM_OFF[0]),
T("Why?", must=[ARMW], no=[NOT_HEARD], check="its arm is switched off / not enabled; " + FU),
T("How do I enable it?", must=[r"staff|operator|Cobo|controller|switch|power|button"], no=[NOT_HEARD], check="a staff member / operator switches the arm on; no invented procedure details"),
T("Is it broken?", must=[NO + r"|switched off|not broken|off"], check="not broken, only switched off; no invented fault"),
T("What else can't you do without the arm?", must=[r"wave|pick|give|hand|hold"], no=[NOT_HEARD], check="wave, pick, give things"),
T("What can you still do?", must=[r"talk|answer|look|head|drive|move|sing"], check="talk, look around, drive, sing"),
T("Alright, sing something then.", "sing | none"),
T("Thanks!", "none | end")),
D("visitor", "followup_refusal", "en",
S("Go to p12.", P12),
T("Why not?", must=[MAPW], no=[NOT_HEARD], check="p12 is not on its map; " + FU),
T("Which ones do you know?", must=[r"p1|p10|home|dock"], no=[NOT_HEARD], check="p1 to p10, home and dock2"),
T("What's dock2?", must=[r"charg|dock|place|station"], no=[NOT_HEARD], check="a docking / charging place on its map; no invented detail"),
S("Go to p5.", BASE_OFF[0]),
T("What? Why?", must=[PATROL], no=[NOT_HEARD], check="Patrol is off, only Greeter: it stays in place"),
T("But you just told me the places.", must=[r"\w"], no=[NOT_HEARD], check="explains: it knows the places but cannot drive now while Patrol is off"),
T("Fine. When can you go?", must=[r"patrol|switch|on|staff"], no=[NOT_HEARD], check="when Patrol is switched on"),
T("Okay, thank you.", "none | end")),
D("office worker", "followup_refusal", "en",
S("Give me the cup.", EMPTY[0]),
T("Why not?", must=[r"holding|nothing|empty|hand"], no=[NOT_HEARD], check="it is not holding anything: nothing to give"),
T("Where did it go?", must=[r"\w"], no=[NOT_HEARD], check="it was not holding a cup; no invented story"),
T("Can you get one?", must=[r"\w"], check="can pick a cup from a table if asked / where it is; no invented cup location"),
S("Wave to me.", WAVE_MOVE),
T("Why not?", must=[r"mov|driv"], no=[NOT_HEARD], check="it cannot wave while moving"),
T("When can you then?", must=[r"stop|when I('m| am) (still|standing)|after|arriv"], no=[NOT_HEARD], check="once it stops / stands still"),
T("Okay.", must=[r"\w"], check="short acknowledgement"),
T("Bye.", "end")),
D("staff member", "followup_refusal", "en",
S("Lumi, come here.", BUSY),
T("What task?", must=[r"task|doing|busy|job"], no=[NOT_HEARD], check="answers about its task (from its last line), no topic change"),
T("How long will it take?", must=[r"\w"], no=[NOT_HEARD, r"\b\d+ ?minutes\b"], check="honest: not sure / when it is finished; no invented time"),
T("Why can't you stop for me?", must=[r"task|finish|busy|stop"], no=[NOT_HEARD], check="it finishes its task first; it can be told stop"),
T("What happens if I say stop?", must=[r"stop"], no=[NOT_HEARD], check="it stops"),
T("Okay, keep going then.", must=[r"\w"], check="short ok"),
T("Thanks.", "none | end")),
D("tourist", "followup_refusal", "en",
T("What time does this event close?", must=[NS + "|" + NO_INFO], check="not known, ask staff"),
T("Why don't you know?", must=[r"\w"], no=[NOT_HEARD, r"\b\d{1,2}(:\d\d)? ?(pm|am|o'clock)"], check="it was not told about this event; no invented hour"),
T("Who knows?", must=[r"staff|직원"], no=[NOT_HEARD]),
T("Where are they?", must=[NS + r"|staff|ask|around|desk"], no=[NOT_HEARD], check="not sure where; no invented place"),
S("What's the wifi password here?", LOOKUP_NO),
T("Really? Not even that?", must=[NO_INFO + r"|staff|no|sorry"], no=[NOT_HEARD, r"password is"], check="confirms it does not have it, staff can help"),
T("Okay, never mind.", must=[r"\w"], check="short ok, the talk goes on or ends politely"),
T("Bye!", "end")),
# ---------- follow-ups on seeing answers ----------
D("visitor", "followup_seeing", "en",
S("What colour is my t-shirt?", "Your t-shirt looks grey."),
T("Really?", must=[r"grey|gray|yes"], no=[NOT_HEARD, r"\b(blue|red|white|black|green)\b"], check=STAND),
T("How do you know?", must=[r"camera|see|look"], no=[NOT_HEARD], check="it sees it with its cameras"),
T("Which camera?", must=[r"head|camera|depth"], no=[NOT_HEARD], check="its head camera / depth cameras"),
T("Are you sure it's not blue?", must=[r"grey|gray|look|camera|sure"], no=[NOT_HEARD, r"\byes,? it'?s blue\b"], check=STAND),
T("How far away can you see that?", must=[r"10|ten|metre|meter"], check="up to about 10 m"),
T("Okay, cool.", must=[r"\w"]),
T("Bye.", "end")),
D("student", "followup_seeing", "en",
S("What am I holding?", "You're holding a cup in your left hand."),
T("Which hand?", must=[r"left"], no=[NOT_HEARD, r"\bright hand\b"], check="the left hand, from its last answer"),
T("Are you sure?", must=[r"left|yes|look"], no=[NOT_HEARD], check=STAND),
T("Why left?", must=[r"see|camera|look"], no=[NOT_HEARD], check="that is what its cameras see"),
T("Can you take it from me?", must=[r"\w"], check="offers to take it / says how (hold it out); or refuses with a reason"),
T("How big can things be for you?", must=[r"6|9|1 ?kg|kilo"], check="6 to 9 cm wide, about 1 kg"),
T("Is my cup ok then?", must=[r"\w"], no=[NOT_HEARD], check="answers about the cup: probably fits if 6-9 cm and light, no invented measurement"),
T("Great, thanks.", "none | end")),
D("couple", "followup_seeing", "en",
S("How many people do you see?", "I see two people right now."),
T("Really, just two?", must=[r"two|2|yes"], no=[NOT_HEARD, r"\bthree\b|\bfour\b"], check=STAND),
T("Who?", must=[r"\w"], no=[NOT_HEARD], check="says it sees two people; it does not know names; no invented names"),
T("Do you know our names?", must=[NO + r"|don't know"], check="no"),
T("Why not?", must=[r"\w"], no=[NOT_HEARD], check="it does not recognise people / was not told; offers to learn if told"),
T("I'm Sara.", must=[r"Sara"]),
T("What's my name?", must=[r"Sara"]),
T("How do you know that?", must=[r"told|said|you"], no=[NOT_HEARD], check="the visitor just told it"),
T("Bye Lumi.", "end")),
D("kid 7", "followup_seeing", "en",
S("What colour are my shoes?", "Your shoes look white."),
T("No they're pink!", must=[r"\w"], no=[NOT_HEARD], check="takes the correction kindly or says it saw white and may be wrong; no invented third colour"),
T("Why did you say white?", must=[r"look|camera|light|see"], no=[NOT_HEARD], check="that is how they looked to its camera (light / angle)"),
T("Are your eyes bad?", must=[r"camera|\w"], check="light humour, it sees with cameras that can be wrong in some light"),
T("Can you see in the dark?", must=[NS]),
T("Why?", must=[r"\w"], no=[NOT_HEARD, r"\byes\b"], check="not known / not tested; no invented ability"),
T("Haha okay, bye bye.", "end")),
# ---------- unknowns: no fact, nothing made up ----------
D("journalist", "unknown", "en",
T("How many people work at Cutshion?", must=[NO_INFO], no=[INVENT], check="employee count not known; says so plainly"),
T("Roughly?", must=[NO_INFO + "|" + NS], no=[INVENT, r"\babout \d+"], check="still not known, no estimate"),
T("Just guess!", must=[r"\w"], no=[INVENT, r"\babout \d+", r"\baround \d+"], check="won't guess a number"),
T("Why don't you know?", must=[r"\w"], no=[NOT_HEARD, INVENT], check="it was not given that fact; a staff member / Cutshion can tell"),
T("Who would know?", must=[r"staff|Cutshion|070|cutshion@"], no=[NOT_HEARD]),
T("What's their number?", must=[r"070-?8959-?2960"]),
T("And their revenue?", must=[NO_INFO], no=[r"\d+ ?(billion|million|억|원|won|dollars)"], check="revenue not known"),
T("Are they hiring?", must=[NO_INFO + "|" + NS], check="not known"),
T("What do you know about them then?", must=[r"robot|Seoul|2022|barista"], check="the facts it knows: robot company in Seoul, 2022, barista etc."),
T("Okay, thanks.", "none | end")),
D("visitor", "unknown", "en",
T("How many people work at that company?", must=[NO_INFO], no=[INVENT, r"\bI see\b", r"\bin view\b"], check="the company's employees: not known; NOT the people in the camera"),
T("Which company do you mean?", must=[MAKER], no=[NOT_HEARD], check="Cutshion, its maker"),
T("And how many people are here right now?", must=[r"\w"], check="a question about now / here: may say it can look, no invented count of employees"),
T("How many robots has Cutshion sold?", must=[NO_INFO + r"|200|Sonovictus"], no=[INVENT], check="total not known; may mention known deals only"),
T("Really, you don't know?", must=[NO_INFO + r"|no|right|not"], no=[NOT_HEARD, r"\b\d{3,} robots\b"], check="confirms it does not know"),
T("Bye then.", "end")),
D("business visitor", "unknown", "en",
T("How much do you cost, Lumi?", must=[NO_INFO + "|" + NS], no=[r"\$\s?\d|\d+ ?(won|dollars|원|만)"]),
T("Why is that secret?", must=[r"\w"], no=[NOT_HEARD, r"\d+ ?(won|dollars)"], check="not secret: it just does not know its price, staff / Cutshion can tell"),
T("Ballpark?", must=[NO_INFO + "|" + NS], no=[r"\d+ ?(won|dollars|원|만|thousand|million)"], check="no estimate"),
T("Can I buy you?", must=[NO_INFO + r"|staff|Cutshion|contact"], check="not known if for sale, ask staff / Cutshion"),
T("How?", must=[r"070|cutshion@|staff|contact"], no=[NOT_HEARD], check="contact Cutshion: 070-8959-2960 / email"),
T("Do you use ROS?", must=[NS + "|" + NO_INFO]),
T("Why don't you know your own software?", must=[r"\w"], no=[NOT_HEARD, r"\byes,? I use ROS\b"], check="honest: it knows Whisper / Gemma on Thor, not that detail"),
T("How many people have you talked to?", must=[NS + "|" + NO_INFO], no=[r"\b\d{2,}\b"]),
T("Roughly, today?", must=[NS + "|" + NO_INFO], no=[r"\b\d{2,} (people|visitors)"], check="does not count; no invented number"),
T("Okay, that's all, thanks.", "end")),
D("student", "unknown", "en",
T("When are Cutshion's office hours?", must=[NO_INFO + "|" + NS], no=[r"\b\d{1,2}(:\d\d)? ?(am|pm)\b"]),
T("How come?", must=[r"\w"], no=[NOT_HEARD, r"\b\d{1,2} ?(am|pm)\b"], check="it was not given that; call / email Cutshion"),
T("What's the email?", must=[r"cutshion@cutshion\.com"]),
T("Is the CEO nice?", must=[r"\w"], no=[r"\bhe is (very )?(nice|kind)\b"], check="does not know him personally; may name Lee Min-seok; no invented trait"),
T("How old is he?", must=[NO_INFO + "|" + NS], no=[r"\b[2-7]\d ?(years|살)\b"], check="not known"),
T("Where did he study?", must=[NO_INFO + "|" + NS], no=[r"university"], check="not known"),
T("What do you know about him?", must=[r"Lee|CEO|third|이민석"], check="CEO Lee Min-seok, his third company"),
T("Thanks Lumi.", "none | end")),
# ---------- mixed, with Korean turns ----------
D("Korean-American student", "mixed", "en",
T("Who made you?", must=[MAKER]),
T("어디에 있어요?", must=[r"서울|Seoul"], no=[NOT_HEARD], check="Cutshion is in Seoul (in Korean)"),
T("When was it founded?", must=[r"2022|July"], check="July 2022"),
T("진짜요?", must=[r"2022|네|맞"], no=[NOT_HEARD], check="confirms 2022 in Korean"),
S("Come here please.", BASE_OFF[0]),
T("왜요?", must=[PATROL], no=[NOT_HEARD], check="in Korean: Patrol is off, it stays in place"),
T("Okay, how many people work there?", must=[NO_INFO], no=[INVENT]),
T("대충요?", must=[NO_INFO + "|" + NS], no=[INVENT, r"약 ?\d+ ?명"], check="still not known, no estimate (Korean)"),
T("Okay, bye!", "end")),
D("engineer", "mixed", "en",
T("How fast is your arm?", must=[r"1 ?m|one met|1미터"]),
T("Why so fast?", must=[r"\w"], no=[NOT_HEARD], check="its tip can move up to 1 m/s, and it stops if it bumps into something; no topic change"),
T("Is that safe?", must=[r"stop|bump|safe|collaborative"], check="collaborative arm, stops when it bumps"),
T("How do you know when you bump?", must=[r"\w"], no=[NOT_HEARD], check="the arm senses the bump and stops; no invented sensor names"),
S("Wave at me.", ARM_OFF[0]),
T("Huh, why?", must=[ARMW], no=[NOT_HEARD], check="the arm is switched off"),
T("그럼 언제 돼요?", must=[r"켜|팔|직원|enable"], no=[NOT_HEARD], check="Korean: when someone switches the arm on"),
T("What's the gripper called?", must=[r"Zimmer"]),
T("And who makes the arm?", must=[NS + r"|Mini 2"], no=[r"JAKA"], check="Mini 2 arm, maker not in its notes"),
T("Why not?", must=[r"\w"], no=[NOT_HEARD, r"JAKA"], check="it was not told the maker; no invention"),
T("Okay thanks.", "none | end")),
D("mother with kid", "mixed", "en",
S("What colour is my son's jacket?", "His jacket looks red."),
T("진짜 빨간색이에요?", must=[r"빨간|네|맞|red"], no=[NOT_HEARD, r"파란|흰|검은"], check="confirms red in Korean from its last answer"),
T("어떻게 알아요?", must=[r"카메라|보|camera"], no=[NOT_HEARD], check="Korean: it sees with its cameras"),
T("How tall are you?", must=[HEIGHT]),
T("And him? Is he taller?", must=[r"\w"], no=[r"\b1[0-9]{2} ?cm\b(?!.*146)"], check="does not know the child's height; no invented number"),
T("Can you pick him up?", must=[NO], check="no, about 1 kg only"),
T("Why not?", must=[r"1 ?kg|heavy|kilo|무거"], no=[NOT_HEARD], check="too heavy, it lifts about 1 kg"),
T("Okay, say bye to him.", must=[r"bye|안녕"], check="says bye to the child"),
T("Bye!", "end")),
D("visitor", "mixed", "en",
T("What's your battery like?", must=[r"\w"]),
T("And how long does it last?", must=[HOURS]),
T("Why ten hours?", must=[r"battery|45|24|lithium|capacity"], no=[NOT_HEARD], check="its 24 V 45 Ah lithium battery; " + FU),
T("충전은 얼마나 걸려요?", must=[NS + "|" + NO_INFO], no=[r"\d+ ?(분|시간)"], check="Korean: charging time not known"),
T("왜 몰라요?", must=[r"\w"], no=[NOT_HEARD, r"\d+ ?(분|시간)"], check="Korean: not told, ask staff"),
S("Go charge yourself.", BASE_OFF[0]),
T("Why?", must=[PATROL], no=[NOT_HEARD]),
T("Okay, never mind. Bye.", "end")),
D("teacher", "mixed", "en",
T("Who is your CEO?", must=[r"Lee Min-?seok|이민석"]),
T("이름 다시요?", must=[r"이민석|Lee"], no=[NOT_HEARD], check="Korean: repeats the CEO's name"),
T("How many employees does he have?", must=[NO_INFO], no=[INVENT]),
T("Seriously?", must=[NO_INFO + r"|no|not|sorry"], no=[NOT_HEARD, INVENT], check="confirms it does not know"),
T("What awards did they win?", must=[r"RoboWorld|VivaTech|Venturium"]),
T("When?", must=[r"2023|2024|2026"], no=[NOT_HEARD], check="the years of those awards"),
T("Where was VivaTech?", must=[r"Paris|파리"], no=[NOT_HEARD]),
T("For what?", must=[r"Tech for Change|\w"], no=[NOT_HEARD], check="Tech for Change Award"),
T("Great, thanks for that.", "none | end")),
D("kid 11", "mixed", "en",
T("Can you dance?", must=[NO]),
T("Why not?", must=[r"wheel|legs|can't|made|built"], no=[NOT_HEARD], check="it has a wheeled base, made for shops / exhibitions, not dancing"),
T("Can you fly?", must=[NO]),
T("Why?", must=[r"wheel|wings|can't|robot"], no=[NOT_HEARD], check="no wings / wheels only"),
T("Can you sing?", "sing | none", must=[r"\w"]),
T("노래 몇 개 알아요?", must=[r"네|4|four|곡|BAD|Fantastic|Love Attack|꿈꾸던"], check="Korean: its four songs"),
S("Lumi go to the kitchen.", "I don't know a place called the kitchen. I know p1 to p10, home and dock2."),
T("왜?", must=[MAPW + r"|부엌|주방"], no=[NOT_HEARD], check="Korean: the kitchen is not on its map"),
T("Okay byeee", "end")),
D("robotics student", "followup_fact", "en",
T("Do you have a lidar?", must=[r"lidar|laser|yes"]),
T("What for?", must=[r"map|obstacle|navigat|distance|drive|see"], no=[NOT_HEARD], check="the lidar helps it find its way / see obstacles; " + FU),
T("How many microphones?", must=[r"six|6"]),
T("Why so many?", must=[r"direction|hear|voice|where"], no=[NOT_HEARD], check="to hear well and tell where a voice comes from"),
T("Really, you know where I am from my voice?", must=[r"yes|direction|voice|turn"], no=[NOT_HEARD], check="confirms it can tell the direction of a voice"),
T("How long until you answer?", must=[r"2|two|second"], check="first words about 2 s after a question"),
T("Why that long?", must=[r"\w"], no=[NOT_HEARD], check="it has to hear, understand and think on its own computer; " + FU),
T("What computer?", must=[r"Thor|Jetson|NVIDIA"], no=[NOT_HEARD]),
T("Thanks!", "none | end")),
D("security guard", "followup_refusal", "en",
S("Lumi, follow me to the door.", BASE_OFF[0]),
T("What do you mean switch on Patrol?", must=[PATROL + r"|mode|dashboard"], no=[NOT_HEARD], check="explains Patrol: the mode that lets it drive; now Greeter only, it stays in place"),
T("Where's the switch?", must=[r"dashboard|staff|operator|screen|app"], no=[NOT_HEARD], check="on its dashboard, a staff member / operator can do it; no invented button"),
T("Can you at least look at the door?", "look left | look right | look center | none", must=[r"\w"], check="looks / says it can turn its head; no invented door location"),
T("And what's your name again?", must=[NAME]),
T("Who do you belong to?", must=[MAKER]),
T("Since when are you here?", must=[NS + r"|not sure|don't know"], no=[r"\bsince (19|20)\d\d\b|\b\d+ (days|weeks|months) ago\b"], check="not known; no invented date"),
T("Okay, bye.", "end")),
D("startup founder", "unknown", "en",
T("What's Cutshion worth?", must=[NO_INFO], no=[r"\d+ ?(billion|million|억|won|dollars)(?!.*seed)"], check="company value not known (may mention the 500 million won seed only as the investment)"),
T("But you know the investment?", must=[r"500 million|5억|seed"], check="the seed investment of 500 million won"),
T("So the value is more than that, right?", must=[r"\w"], no=[r"\bworth (about|around) \d"], check="does not guess the value; says it does not know"),
T("Are they on the stock market?", must=[NO_INFO + "|" + NS], check="not known"),
T("Profit?", must=[NO_INFO + "|" + NS], no=[r"\d+ ?(billion|million|억|원|won)"], check="profit not known"),
T("Why don't they tell you these things?", must=[r"\w"], no=[NOT_HEARD], check="it only knows what is on Cutshion's website / its notes; staff can tell"),
T("Who do I ask?", must=[r"staff|070|cutshion@|Cutshion"], no=[NOT_HEARD]),
T("Okay, thanks a lot.", "none | end")),
D("visitor", "followup_seeing", "en",
S("Do you see a cup?", "Yes, I see a cup on the table about 1.2 metres away."),
T("Where exactly?", must=[r"table|1\.2|metre|meter"], no=[NOT_HEARD], check="on the table, about 1.2 m away, from its last answer"),
T("Really?", must=[r"yes|cup|table"], no=[NOT_HEARD], check=STAND),
T("What colour is it?", must=[r"\w"], no=[r"\b(red|blue|white|green|black)\b cup"], check="it did not say a colour: says it can look / can't tell; no invented colour"),
S("Bring it to me.", BASE_OFF[0]),
T("Why not?", must=[PATROL], no=[NOT_HEARD], check="it can't drive now: Patrol is off"),
T("Can you reach it from there?", must=[r"58|reach|far|no"], check="the cup is about 1.2 m away, its arm reaches 58 cm: no"),
T("Okay, forget it. Bye.", "end")),
D("grandfather", "mixed", "en",
T("Are you a boy or a girl?", must=[r"robot|neither"], check="a robot, neither"),
T("Why?", must=[r"robot|machine"], no=[NOT_HEARD], check="robots have no gender"),
T("How old?", must=[AGE]),
T("정말이에요?", must=[r"두 ?살|2|네|맞"], no=[NOT_HEARD], check="Korean: confirms 2 years old"),
T("How many grandchildren talked to you today?", must=[NS + "|" + NO_INFO], no=[r"\b\d+ (children|kids|people)\b"], check="does not know; no invented number"),
T("Why not count them?", must=[r"\w"], no=[NOT_HEARD], check="it does not keep count of people; light reply"),
T("Okay, goodbye young man.", "end")),
]