Rules act only on a direct order to Lumi, every path gated (hand reader, Command box); final exam round 5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-23 04:11:27 +09:00
co-authored by Claude Opus 5.5
parent 9456a1290f
commit 35dbb053e3
38 changed files with 2207 additions and 57 deletions
+2 -1
View File
@@ -101,7 +101,8 @@ def llm(text, state, marks, b):
head = next(gen)
first = next(gen, "") or ""
gen.close()
if head["action"] == "none" and brain.promised(first) in ("sing", "wave"): # lumi.answer() does what the reply
if head["action"] == "none" and brain.promised(first) in ("sing", "wave") and \
not (brain.not_an_order(text, asked=False) and brain.promised(first) == "wave"): # lumi.answer() does what the reply
head = {"action": brain.promised(first), "target": ""} # promises (a move: it asks)
target = (brain._mentions(text, marks).get("object") or "") if head["action"] == "receive" else head["target"]
return act(head["action"], target, first, state), f"{head['action']} {target}".strip(), first