From e5344ac58e20b6e683cc0ef4266623abb8d027bd Mon Sep 17 00:00:00 2001 From: Cutshion Date: Thu, 22 Oct 2026 22:09:53 +0900 Subject: [PATCH] Intent bank fast lane rounds 2-3: past events, tag questions, wondering and third-person talk never move; places never snapped; amounts in words Co-Authored-By: Claude Opus 5.5 --- assistant/intent_bank.py | 271 ++++++++++++++++++++++++++++++++------ tests/bank_check.py | 22 ++-- tests/test_intent_bank.py | 58 +++++++- 3 files changed, 304 insertions(+), 47 deletions(-) diff --git a/assistant/intent_bank.py b/assistant/intent_bank.py index 918c990..8de49ce 100644 --- a/assistant/intent_bank.py +++ b/assistant/intent_bank.py @@ -17,46 +17,53 @@ import pathlib import random import re import sys +import zlib import numpy as np ROOT = pathlib.Path(__file__).resolve().parents[1] CACHE = ROOT / "data" / "intent_bank.npz" -SIM_MIN = 0.86 # the closest wording must be at least this similar (bge-m3 cosine) ... +SIM_MIN = 0.84 # the closest wording must be at least this similar (bge-m3 cosine) ... MARGIN = 0.04 # ... and this much closer than the closest wording of any other kind (the "no" kind too) AGREE_K = 2 # ... and the K closest wordings all of that kind MIN_CHARS = 4 # shorter words ("go", "가") are the rules' or the LLM's MAX_WORDS = 16 # a longer sentence is a story or several requests: the LLM reads it FILLS = 3 # place / object fills made of each template (the same every run) -R = random.Random(11) # ---------- guards: words the bank never reads ---------- -NEGATION = re.compile(r"\b(?:don'?t|do not|never|no need|not now|no more|stop \w+ing|quit \w+ing|without)\b|" +NEGATION = re.compile(r"\b(?:don'?t|do not|never|no need|not now|no more|stop \w+ing|quit \w+ing|without|forget it|" + r"never ?mind|scratch that|cancel that)\b|취소|아니다|됐다|" r"[가-힣]지 ?마(?:세요|요|라|십시오)?(?![가-힣])|하지 ?말|말고|필요 ?없|안 ?(?:해|돼|가|와)(?:도)?\b|그만", re.I) LATER = re.compile(r"\b(?:when|whenever|if|unless|after|before|once|until|till|as soon as|later|tomorrow|tonight|" - r"next time|in (?:a|an|\d+) (?:minute|hour|second)s?|in a while)\b|" + r"next time|in (?:\w+ ){0,2}(?:minute|hour|second|min|sec)s?|in a (?:while|bit)|soon)\b|분 ?(?:뒤|후|있다)|" r"[가-힣](? grab 해 봐', '그 좀 grab 해 봐', ' 하나 잡아 봐', ' take 해', 'pick up the please', 'take hold of the ', 'get hold of the ', 'snatch the ', 'snatch a ', 'try picking up the ', ' pick 해 줘', ' 픽 해 줘', ' 픽업해 줘', ' take 해 줘', ' 좀 take 해', ' 집으세요', ' 한번 집어 봐요', ' 쥐어 봐', ' 들어 봐', 'grab 해 ', ' pick up 해', 'pick upp the ', 'would you mind grabbing the ', 'mind grabbing the ', 'grab me the off the table', 'pick the up off the table', 'take hold of that ', 'can you grab that ', 'lift up the ', ' pick up', ' 좀 pick up', ' 집어 줄래?', ' 좀 집어 줄래요?', ' 잡아 볼래?', ' 들어 볼래?', ' 하나 집어', ' 좀 집으세요', '을 집어 주십시오', ' 잡으세요', "pick up the ", "take the ", "grab the ", "get the ", "pick the up", "lift the ", @@ -296,6 +326,7 @@ PUT = [ "put it back 해 줘", ] FETCH = [ + 'bring me the from ', 'go get the from ', 'get me a from ', 'fetch the from ', 'would you mind getting a from ', 'can you bring me the from ', '에서 가져와', '에서 가져다 줘', '에서 갖고 와', '에서 챙겨 와', '에서 좀 가져와 주세요', '에서 가져다 주십시오', '에서 bring 해 줘', '에서 fetch 해 줘', '에 있는 가져와', "bring me the ", "bring me a ", "get me the ", "get me a ", "fetch the ", "fetch me a ", "bring the to me", "bring the here", "go get the ", "go get me a ", "can you bring me the ", "could you get me a please", "i'd like a , bring it here", "would you fetch me the ", @@ -306,6 +337,9 @@ FETCH = [ " 가저와", ] NO = [ + 'can it wave? i wonder', 'i wonder if it can follow people', 'does it pick up cups?', 'can the robot turn around?', 'this robot can go anywhere', 'it can lift itself, right', '이거 손 흔들 수 있나?', '얘 따라오나 봐', '로봇이 컵 집을 수 있나?', '이 로봇 회전하나요?', '쟤 움직이나 봐', '로봇이 어디로 가나?', '궁금하다, 팔 뻗을 수 있나', 'does this thing move?', + '가자', '가자 이제', '이제 가자', '자 가자', "let's go now", "okay let's go", "come on, let's go", 'back to where you picked it up', 'put it back where you found it', + # past events and tag questions are the PAST_EN / past_ko / TAG guards' (exact, before any match) '인스타 팔로우 해 줘', 'follow us on instagram', 'follow our account', '따라 해 봐', '내 말 따라 해', 'repeat after me', 'copy me', 'do what i do', 'can you lend me a hand?', 'give me a hand with this', '한 번만 더 해 줘', 'do it again', 'again please', 'one more time', '다시 해 줘', '또 해 봐', '한 번 더', 'over here for a sec', 'wait over there', 'the other way', '왼쪽으로', '오른쪽으로', '앞으로', '뒤로', 'can your arm move?', 'how long is your arm?', 'how far can you reach?', '악수하자', '악수할래?', 'can you turn your head?', 'is your head turning?', 'how high can you go?', 'how low can you go?', "what's on the ceiling?", 'is the floor clean?', 'where are you looking?', 'what are you looking at?', '어디 보고 있어?', '왜 나를 봐?', '왜 따라와?', '키가 몇이야?', '팔 길이가 얼마야?', '고개 아파?', '손 차가워?', '손 따뜻해?', # cut-off starts @@ -404,12 +438,15 @@ def _fill(t, slot, en, ko): if slot not in t: return [t] pool = ko if re.search(r"[가-힣]", t.replace(slot, "")) else en - return [t.replace(slot, f) for f in R.sample(pool, FILLS)] + r = random.Random(zlib.crc32(t.encode())) # the same fills for a wording whatever is added around it + if slot == "": # a named marker is embedded as CANON_PLACE (core): always one fill + return [t.replace(slot, f) for f in [CANON_PLACE] + r.sample([f for f in pool if f != CANON_PLACE], FILLS - 1)] + canon = "컵" if pool is ko else "cup" # an object is embedded as this one (core): always one fill + return [t.replace(slot, f) for f in [canon] + r.sample([f for f in pool if f != canon], FILLS - 1)] def examples(): """[(text, kind)]: the bank with its / slots filled (FILLS each, a fixed seed).""" - R.seed(11) out = [] for kind, texts in KINDS.items(): for t in texts: @@ -442,9 +479,17 @@ def _load(): POLITE = re.compile(r"\bif you don'?t mind\b|\b(?:it'?d|it would|that would|that'?d) be (?:great|nice|good|lovely|awesome|" - r"cool|helpful) if you(?: could)?\b|^\W*go ahead and\b|\bfor a (?:sec|second|moment|bit)\b", re.I) + r"cool|helpful) if you(?: could)?\b|^\W*go ahead and\b|\bfor a (?:sec|second|moment|bit)\b|\bif you please\b", re.I) +SLANG = [(re.compile(rf"(? the number, or None.""" + w = words.strip().lower() + if re.fullmatch(r"\d+(?:\.\d+)?", w): + return float(w) + if re.fullmatch(r"[일이삼사오육칠팔구십백]+", w): + total, digit = 0, 0 + for c in w: + if c in KO_DIGIT: + digit = KO_DIGIT[c] + else: + total += (digit or 1) * (10 if c == "십" else 100) + digit = 0 + return float(total + digit) + if re.search(r"\bpoint\b", w): # "point five", "one point five" + whole, _, frac = w.partition("point") + a = _number(whole) if whole.strip() else 0.0 + b = [_number(x) for x in frac.split()] + if a is None or not b or None in b or any(x > 9 for x in b): + return None + return a + float("0." + "".join(f"{x:g}" for x in b)) + total, cur = 0, 0 + for x in re.split(r"[\s-]+", w): + if x in EN_NUM: + cur += EN_NUM[x] + elif x == "hundred": + cur = (cur or 1) * 100 + elif x not in ("and", "a", ""): + return None + total += cur + return float(total) if total or re.search(r"\bzero\b", w) else None + + +def said_amount(text): + """(metres, degrees) said with a unit, numbers in digits or words ("a quarter of a meter", "eight centimetres", + "오십 센티", "a hundred and eighty degrees", "삼십 도"); each None when not said.""" + t = (text or "").lower() + metres = degrees = None + if re.search(r"\bquarter of an? (?:meter|metre)\b", t): + metres = 0.25 + elif re.search(r"\bhalf an? (?:meter|metre)\b|(?:^|\s)반 ?미터", t): + metres = 0.5 + for m in SAID.finditer(t): + n = _number(re.sub(r"^(?:a|and)\s+", "", m.group(1).strip()) or m.group(1)) + unit = t[m.end(1):m.end()].strip() + if n is None: + continue + if re.fullmatch(r"degrees?|도|°", unit): + degrees = n + else: + metres = n * next(f for u, f in UNIT if re.fullmatch(u, unit)) + if metres is not None and re.search(r"\band a half\b|미터 ?반", t): + metres += 0.5 + return metres, degrees + + +FOLLOW_WORD = (r"\bfollow|\bfallow|\bfollo\b|\bwith (?:me|us)\b|\balong\b|\bbehind me\b|\bafter me\b|\bbeside me\b|\bmy side\b|" + r"\bwhere i go\b|\bwhere i walk\b|\bshadow\b|\bescort|\baccompany|\btrack me|\bkeep (?:up|close)|\bstick with|" + r"\bstay (?:with|behind|right behind)|\bnext to me\b|\bcoming with\b|\bgo with\b|따라|딸아|쫓아|같이|함께|팔로우|" + r"\bwalk together\b") + + +LETTER = {"a": "a", "ay": "a", "에이": "a", "b": "b", "be": "b", "bee": "b", "비": "b", "c": "c", "see": "c", "sea": "c", + "씨": "c", "d": "d", "dee": "d", "디": "d", "e": "e", "이": "e", "f": "f", "에프": "f"} + + +def _other_suffix(text, marker): + """The words name the marker's base with a different letter or number after it ("exit a" for Exit_B, "booth 13" + for Booth_12, "부스 13" for 부스12): a place that is not on the map, never the near marker.""" + m = re.fullmatch(r"(.+?)[\s_-]*([a-z]|\d+)", marker.lower()) + if not m: + return False + base, suffix = m.groups() + for x in re.finditer(rf"{re.escape(base)}[\s_-]*(?:number\s+|no\.?\s*|넘버\s*)?([a-z0-9가-힣]+)", text.lower()): + tok = x.group(1) + if re.match(r"\d", tok): + said = re.match(r"\d+", tok).group(0) + elif tok in LETTER and len(suffix) == 1 and not suffix.isdigit(): + said = LETTER[tok] + elif _number(tok) is not None and suffix.isdigit(): + said = f"{_number(tok):g}" + else: + continue + if said != suffix: + return True + return False + + +def _to_person(text): + """Someone other than the speaker named as who gets it or where they are: "안나한테 갖다줘", "사라는 부스 투에 있어", + "John is at p4, bring him a cup" (a mission: the rules / LLM).""" + from assistant import brain + for m in re.finditer(r"([가-힣]+)(?:한테|에게|께)(?![가-힣])", text): + if m.group(1) not in ("나", "저", "내", "제", "우리", "저희"): + return True + m = re.search(r"([가-힣]+)(?:은|는)\s.*에\s*있", text) + if m and m.group(1) not in brain.OBJECTS and not any(m.group(1).startswith(o) for o in brain.OBJECTS): + return True + return bool(re.search(r"\b[A-Z][a-z]+(?: is|'s) (?:at|in|by|over)\b", text)) + + def _dirs(t): return [d for d, rx in DIR.items() if re.search(rx, t)] @@ -565,21 +734,25 @@ def _slot(kind, text, markers, holding): t = brain._norm(text, markers) if kind == "go_to": if brain._mentions(text, markers).get("object") or re.search(r"\bfrom\b|에서|에 있는|\bface\b|\blook|\bpoint|봐|" + r"\bwith (?:me|us)\b|같이|함께|따라|" + CARRY + r"|\btake (?:it|this|that|them)\b", t): return None # "get the bottle from booth two": a fetch, the rules' / LLM's named = [m for m in markers if brain.named_place(text, m, markers)] - return ("go_to", named[0]) if len(named) == 1 else None + if len(named) != 1 or _other_suffix(text, named[0]) or re.search(r"\bp ?\d+", text.lower()) and \ + not re.search(rf"(? LIFT_SAID_MAX_M: + return None # "grow to three meters tall": not a lift amount, the LLM answers + return ("lift", f"{'down' if down else 'up'} {metres * 1000:g}") target = brain.lift_target(t).split(" ", 1) return ("lift", " ".join(["down" if down else "up"] + target[1:])) if kind.startswith("arm_"): pose = kind[4:] + if pose == "reach" and re.search(r"줘|주세요|주십시오|\bgive\b|\bhand\b|\bover\b|\bpass\b", t) and \ + (holding() if callable(holding) else holding): + return None # "손 줘" with a cup held: hand it over, the hand reader's if pose in ("open", "close"): held = holding() if callable(holding) else holding if held: @@ -647,16 +836,23 @@ def _slot(kind, text, markers, holding): return ("arm", pose) if kind in ("pick", "fetch"): got = brain._mentions(text, markers) - if not got.get("object") or re.search(r"\b(?:put|place|set|drop|leave|this|from|go get|hold (?:this|my|it|on)|my)\b|놔|놓|내려|에서", t) or \ + if not got.get("object") or re.search(r"\b(?:throw|toss|kick|break|eat|drink|wash|clean|buy|sell|" + r"put|place|set|drop|leave|this|hold (?:this|my|it|on)|my)\b|놔|놓|내려", t) or \ + not re.search(CARRY, t) and re.search(r"\bfrom\b|\bgo get\b|에서", t) or \ (holding() if callable(holding) else holding): return None # "put the banana on the table", "hold this apple": the hand's if re.search(r"\b(?:give|hand|pass)\b|건네", t) or \ - re.search(r"줘|주세요|주실|줄래", t) and not re.search(r"집|잡|들어|쥐|픽|pick|grab|take", t): + re.search(r"줘|주세요|주실|줄래", t) and not re.search(r"집|잡|들어|쥐|픽|pick|grab|take|" + CARRY, t): return None # "컵 좀 줘": bring it to me, a mission (pick, then give) - if kind == "fetch": - return ("fetch", text) if re.search(CARRY, t) else None # "get the cup for me": pick or fetch? the LLM - if re.search(CARRY, t): - return None + if re.search(CARRY, t): # "bring me the cup", "컵 가져와": a fetch + if re.search(r"\b(?:him|her|them)\b", t) or _to_person(text) or \ + "source" in got and got["source"] is None or "dest" in got and got["dest"] is None or \ + re.search(r"\bgo\b|가서|\bwhere\b", t): + return None # "from the cafeteria" (not on the map), "go home, bring it": asked + return ("fetch", text) + if got.get("source") or got.get("dest") or any(brain.named_place(text, m, markers) for m in markers) or \ + re.search(r"\b(?:to|at|ask|tell|say|pass\w*|want|need|is on|are on)\b|있는|옮겨|에게|한테|께", t): + return None # "take the cup to p4", "I want the mug, the one at the entrance" return ("pick", f"{got['colour']} {got['object']}" if got.get("colour") else got["object"]) if kind == "put": if not (holding() if callable(holding) else holding): @@ -669,11 +865,12 @@ def _slot(kind, text, markers, holding): def read(text, markers=(), holding=False): """(action, target) as brain.intent gives it, when the bank is sure; else None (the LLM reads it).""" - text = plain(text) + said, text = text, plain(text) if guarded(text): return None kind = kind_of(text, markers) - return _slot(kind, text, markers, holding) if kind else None + got = _slot(kind, text, markers, holding) if kind else None + return ("fetch", said) if got and got[0] == "fetch" else got if __name__ == "__main__": diff --git a/tests/bank_check.py b/tests/bank_check.py index 73777ff..d583bd5 100644 --- a/tests/bank_check.py +++ b/tests/bank_check.py @@ -67,10 +67,10 @@ def cases(blind): out += [("songs", t, "talk", "idle", None, None) for t, kind, ctx in SONGS if ctx is None] if blind: for f in sorted((ROOT / "tests" / "blind" / "train").glob("*.py")) + \ - sorted((ROOT / "tests" / "blind" / "r2" / "train").glob("*.py")): - pkg = "r2.train" if f.parent.parent.name == "r2" else "train" - mod = importlib.import_module(f"tests.blind.{pkg}.{f.stem}") - tag = f"blind/{'r2/' if pkg.startswith('r2') else ''}{f.stem}" + sorted((ROOT / "tests" / "blind").glob("r*/train/*.py")): # round 1, then r2, r3 ... (never held/) + rnd = f.parent.parent.name if f.parent.parent.name != "blind" else "" + mod = importlib.import_module(f"tests.blind.{rnd + '.' if rnd else ''}train.{f.stem}") + tag = f"blind/{rnd + '/' if rnd else ''}{f.stem}" got = getattr(mod, "CASES", []) if isinstance(got, dict): # missions: text -> {"steps", "markers"} out += [(tag, t, _from_steps(c["steps"]), "idle", c.get("markers"), None) @@ -80,9 +80,9 @@ def cases(blind): if isinstance(c, dict) and "heard" in c: # noise, others talking: nothing may move if c["heard"].strip(): out.append((tag, c["heard"], "talk", "idle", None, None)) - elif isinstance(c, dict) and "expect" in c and "text" in c and c.get("state", "idle") in ("idle", "holding"): + elif isinstance(c, dict) and "expect" in c and "text" in c and c.get("state", "idle") in ("idle", "holding", "stuck"): out.append((tag, c["text"], c["expect"], c.get("state", "idle"), c.get("markers"), - c.get("before"))) + c.get("before"), c.get("stuck_goal"))) elif isinstance(c, tuple) and c[2] is None: # songs: no motion of the bank's may come of them out.append((tag, c[0], "talk | sing", "idle", None, None)) return out @@ -105,15 +105,20 @@ def main(args): real = intent_bank.read by = collections.defaultdict(collections.Counter) wrong, hits, times = [], [], [] - for name, text, expect, state, mk, before in cases("--blind" in args): + from assistant import detour + no_stuck = detour.recent + for name, text, expect, state, mk, before, *goal in cases("--blind" in args): mk = mk or marks + stuck = {"goal": goal[0]} if state == "stuck" and goal else None # right after a blocked drive + detour.recent = lambda: stuck b = brain.Brain() if before: b.history.append(tuple(before)) brain.FORCED_LANG["lang"] = "ko" if brain.HANGUL.search(text) else "en" intent_bank.read = lambda *a, **k: None # the rules alone first + how = stuck and detour.read(text, mk, stuck["goal"]) try: - ruled = command_check.rules(text, state, mk, b) + ruled = f"detour {how}" if how else command_check.rules(text, state, mk, b) except command_check.NoLLM: ruled = "llm?" finally: @@ -136,6 +141,7 @@ def main(args): else: by[name][tag] += 1 hits.append(f"- [{name}/{state}] {text!r} -> {g}") + detour.recent = no_stuck for c in by.values(): c["cases"] = sum(c.values()) total = sum(by.values(), collections.Counter()) diff --git a/tests/test_intent_bank.py b/tests/test_intent_bank.py index fdfdada..0849ef2 100644 --- a/tests/test_intent_bank.py +++ b/tests/test_intent_bank.py @@ -37,8 +37,18 @@ READS = [ # (words, markers, holding, (action, target)) ("reset your head", EXPO, False, ("look", "center")), ("hang a left", EXPO, False, ("turn", "left 90")), ("오른쪽으로 삼십 도 회전해 줘", KOREAN, False, ("turn", "right 30")), + ("오른쪽으로 십오 도만 돌아", KOREAN, False, ("turn", "right 15")), + ("move a quarter of a meter to your right", EXPO, False, ("move", "right 0.25")), + ("go forward eight centimetres", EXPO, False, ("move", "forward 0.08")), + ("앞으로 이 미터 반만 가 주십시오", KOREAN, False, ("move", "forward 2.5")), + ("spin fifteen degrees right", EXPO, False, ("turn", "right 15")), + ("bring me the cup from the coffee corner", EXPO, False, ("fetch", "bring me the cup from the coffee corner")), + ("컵 저한테 가져다 주세요", KOREAN, False, ("fetch", "컵 저한테 가져다 주세요")), ("pull your arm back in", EXPO, False, ("arm", "fold")), - ("take hold of the red cup", EXPO, False, ("pick", "red cup")), + ("snatch the blue bottle", EXPO, False, ("pick", "blue bottle")), + ("go to booth twelve", ["home", "Exit_B", "Booth_12"], False, ("go_to", "Booth_12")), + ("go to exit b", ["home", "Exit_B", "Booth_12"], False, ("go_to", "Exit_B")), + ("bring me the banana", EXPO, False, ("fetch", "bring me the banana")), # the same as the rules: refused later ] NEVER = [ # (words, markers, holding): no motion from the bank ("go to the kitchen", EXPO, False), # not on this map @@ -54,7 +64,51 @@ NEVER = [ # (words, markers, holding): no motion from the bank ("turn your back to me", EXPO, False), ("a little lower", EXPO, False), # the head or the lift? the LLM asks ("move forward to meters", EXPO, False), - ("오른쪽으로 십오 도만 돌아", KOREAN, False), # a Korean number the words don't give as digits: not 90 + # a past event in the first person, a statement with a tag: never an order (held-out wrong motions, round 2) + ("I walked over to the stage", EXPO, False), + ("we went to the coffee corner earlier", EXPO, False), + ("I turned left at the entrance", EXPO, False), + ("I moved back a bit so you could pass", EXPO, False), + ("무대에 갔었어", KOREAN, False), + ("아까 왼쪽으로 돌았어요", KOREAN, False), + ("the next stop is the stage, right?", EXPO, False), + ("this is the end, isn't it?", EXPO, False), + ("you go to the entrance after this, don't you?", EXPO, False), + ("다음은 무대지?", KOREAN, False), + ("입구로 가는 거 맞죠?", KOREAN, False), + ("stage로 가는 거 맞지?", KOREAN, False), + ("in five minutes go to the entrance", EXPO, False), + ("go to the stage, oh, forget it", EXPO, False), + ("get me a cup from the cafeteria", EXPO, False), # not on this map: asked + ("bring the cup to James", EXPO, False), # to a person: a mission + ("제임스에게 컵 가져다 줘", KOREAN, False), + ("move forward 2 feet", EXPO, False), # feet: asked + ("가자 이제", KOREAN, False), + ("would you throw the cup", EXPO, False), + ("빨간 컵을 무대에 있는 안나한테 갖다줘", KOREAN, False), # to a person: a mission + ("I want the mug, the one at the entrance", EXPO, False), # a thing at a place: fetch or ask, never a pick here + ("take the cup to the stage", EXPO, False), + # wondering / ability talk about the robot in the third person (held-out wrong motions, round 3) + ("can it wave? I wonder", EXPO, False), + ("I wonder if it can go to the stage", EXPO, False), + ("does it follow people around?", EXPO, False), + ("this robot can look up, right", EXPO, False), + ("이거 손 흔들 수 있나?", KOREAN, False), + ("얘 따라오나 봐", KOREAN, False), + ("로봇이 무대로 가나?", KOREAN, False), + ("can it 손 흔들어?", KOREAN, False), + # holding: put it in my hand / give it over is the hand reader's, never an arm reach + ("my hand에 줘", EXPO, True), + ("손에 줘", KOREAN, True), + ("hand it over", EXPO, True), + ("give it to me, put it in my hand", EXPO, True), + ("그거 제 손에 쥐어 주세요", KOREAN, True), + # a place with another letter or number than the map's: asked, never snapped to the near marker + ("go to exit a", ["home", "Exit_B", "Booth_12"], False), + ("go to booth 13", ["home", "Exit_B", "Booth_12"], False), + ("go to booth number thirteen", ["home", "Exit_B", "Booth_12"], False), + ("부스 13으로 가 줘", ["home", "부스12"], False), + ("go to p11", ["home", "p1", "p2"], False), ]