Blocked-way commands (try again / go around / back up / go back), any map names in every reader, seeing round 2, blind test sets r1 + r2 and their scorer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 20:29:40 +09:00
co-authored by Claude Opus 5.5
parent 3fbe1d2928
commit df79b162bd
137 changed files with 121170 additions and 203 deletions
+4
View File
@@ -1069,6 +1069,10 @@ def task_parse(body: ParseBody):
kind, data = lumi.route(fixed, markers, brain.Brain(), held, seen=seen)
if kind == "stop":
return {"action": "command", "text": fixed, "sentence": "Stop.", "problems": [], "read_by": "rules"}
if kind == "detour": # after a blocked drive (assistant/detour.py): the assistant does it
from assistant import detour
return {"action": "command", "text": fixed, "sentence": detour.SAY[data][0], "problems": [], "read_by": "rules",
"base": True}
if kind == "chain":
base = any(k == "steps" and _drives(x) or k == "quick" and x[0] in lumi.BASE_ACTIONS for k, _, x in data)
return {"action": "command", "text": fixed, "parts": [[k, w] for k, w, _ in data], "problems": [], "read_by": "rules",