Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(voice): tell an OpenClaw agent apart from the retired mission worker

rubenluetke10-beep3ffbb2c8d668
diff --git a/jarvis/brain/mission_command_gate.py b/jarvis/brain/mission_command_gate.py
index 6c8acf09c0..d6e0302aa3 100644
--- a/jarvis/brain/mission_command_gate.py
+++ b/jarvis/brain/mission_command_gate.py
@@ -47,6 +47,10 @@ _INTENT_T = Literal["status", "cancel"]
# English with its own verb patterns, German with "laeufst/laeuft" + "Status" # i18n-allow
# + "wie weit". Both typically end with "?" but that is optional (STT does
# not reliably produce punctuation).
+# "openclaw" / "claw" are the retired mission-worker codename and stay a
+# mission trigger ("stop openclaw"). Followed by "agent" they name an
+# OpenClaw society agent (docs/agent-runtimes.md) and must not stop missions:
+# every such token carries ``(?![-\s]*agent)``.
_STATUS_PATTERN_DE = re.compile(
r"""
(
@@ -62,17 +66,17 @@ _STATUS_PATTERN_DE = re.compile(
^\s*+(?:jarvis[,\s]+)?wie\s++weit\s*+\??+\s*+$
|
# 'wie weit' + person/mission qualifier
- \bwie\s+weit\s+(?:bist\s+du|sind\s+wir|sind\s+sie|sind\s+die\s+mission|ist\s+(?:die\s+mission|der\s+sub|claw|openclaw))\b # i18n-allow
+ \bwie\s+weit\s+(?:bist\s+du|sind\s+wir|sind\s+sie|sind\s+die\s+mission|ist\s+(?:die\s+mission|der\s+sub|(?:open)?claw(?![-\s]*agent)))\b # i18n-allow
|
# 'status' alone (at start or after 'jarvis,'); MUST have question/end
# character, otherwise it matches 'Status der Wirtschaft' incorrectly.
^(?:jarvis[,\s]+)?status\s*+[?.!]*+\s*+$
|
# 'status der mission' / 'status vom sub' / 'status von openclaw' # i18n-allow
- \bstatus\s+(?:der\s+mission|vom\s+sub|von\s+(?:openclaw|claw)|bei\s+(?:openclaw|claw))\b # i18n-allow
+ \bstatus\s+(?:der\s+mission|vom\s+sub|von\s+(?:(?:open)?claw(?![-\s]*agent))|bei\s+(?:(?:open)?claw(?![-\s]*agent)))\b # i18n-allow
|
# 'wo stehen wir' / 'wo steht das' / 'wo steht die mission' # i18n-allow
- \bwo\s+steh(?:en|t)\s+(?:wir|das|die\s+mission|der\s+sub|claw|openclaw)\b # i18n-allow
+ \bwo\s+steh(?:en|t)\s+(?:wir|das|die\s+mission|der\s+sub|(?:open)?claw(?![-\s]*agent))\b # i18n-allow
|
# 'noch am laufen' / 'noch dran'
\b(?:noch|immer)\s+(?:am\s+laufen|dran|aktiv|beschäftigt|beschaeftigt)\b # i18n-allow
@@ -85,7 +89,7 @@ _STATUS_PATTERN_EN = re.compile(
r"""
\b(
# 'is it still running' / 'is the mission still running'
- is\s+(?:it|the\s+mission|that|this|claw|openclaw)\s+still\s+running
+ is\s+(?:it|the\s+mission|that|this|(?:open)?claw(?![-\s]*agent))\s+still\s+running
|
# 'are we still running' / 'are you still running'
are\s+(?:we|you|they)\s+still\s+(?:running|working|going)
@@ -126,19 +130,19 @@ _CANCEL_PATTERN_DE = re.compile(
r"""
(
# 'brich (das|die|den|alles) ab' # i18n-allow
- \bbrich\s+(?:das|die\s+mission|den\s+auftrag|alles|openclaw|claw|sub|den)\s*+(?:\w+\s*+)?ab\b # i18n-allow
+ \bbrich\s+(?:das|die\s+mission|den\s+auftrag|alles|(?:open)?claw(?![-\s]*agent)|sub|den)\s*+(?:\w+\s*+)?ab\b # i18n-allow
|
# 'brich ab' — short form
^(?:jarvis[,\s]+)?brich\s+ab\b
|
# 'stop(pe) (die mission|openclaw|claw|den auftrag)' # i18n-allow
- \bstopp?(?:e)?\s+(?:die\s+mission|openclaw|claw|den\s+auftrag|den\s+sub|alles)\b # i18n-allow
+ \bstopp?(?:e)?\s+(?:die\s+mission|(?:open)?claw(?![-\s]*agent)|den\s+auftrag|den\s+sub|alles)\b # i18n-allow
|
# 'mission abbrechen' / 'auftrag abbrechen' # i18n-allow
- \b(?:mission|auftrag|openclaw|claw)\s+(?:bitte\s+)?abbrechen\b # i18n-allow
+ \b(?:mission|auftrag|(?:open)?claw(?![-\s]*agent))\s+(?:bitte\s+)?abbrechen\b # i18n-allow
|
# 'abbruch der mission' / 'abbruch openclaw'
- \babbruch\s+(?:der\s+mission|openclaw|claw|vom\s+sub)\b # i18n-allow
+ \babbruch\s+(?:der\s+mission|(?:open)?claw(?![-\s]*agent)|vom\s+sub)\b # i18n-allow
)
""",
re.IGNORECASE | re.VERBOSE,
@@ -148,16 +152,16 @@ _CANCEL_PATTERN_EN = re.compile(
r"""
(
# 'cancel (the )?(mission|openclaw|claw|task|job|sub|all)'
- \bcancel\s+(?:the\s+)?(?:mission|openclaw|claw|task|job|sub|all)\b
+ \bcancel\s+(?:the\s+)?(?:mission|(?:open)?claw(?![-\s]*agent)|task|job|sub|all)\b
|
# 'stop (the )?(mission|openclaw|claw|task|job|sub)'
- \bstop\s+(?:the\s+)?(?:mission|openclaw|claw|task|job|sub)\b
+ \bstop\s+(?:the\s+)?(?:mission|(?:open)?claw(?![-\s]*agent)|task|job|sub)\b
|
# 'abort (the )?(mission|...)'
- \babort\s+(?:the\s+)?(?:mission|openclaw|claw|task|job|sub)\b
+ \babort\s+(?:the\s+)?(?:mission|(?:open)?claw(?![-\s]*agent)|task|job|sub)\b
|
# 'kill (the )?(mission|...)'
- \bkill\s+(?:the\s+)?(?:mission|openclaw|claw|task|job|sub)\b
+ \bkill\s+(?:the\s+)?(?:mission|(?:open)?claw(?![-\s]*agent)|task|job|sub)\b
)
""",
re.IGNORECASE | re.VERBOSE,
diff --git a/jarvis/brain/output_filter.py b/jarvis/brain/output_filter.py
index d2c33443f2..79976161b3 100644
--- a/jarvis/brain/output_filter.py
+++ b/jarvis/brain/output_filter.py
@@ -565,7 +565,17 @@ _A_BEFORE_AGENT_RE = re.compile(rf"\ba(?=\s+{_JARGON_COMPOUND_BRAND}\b)")
# "OpenClaw-" compound prefix ("OpenClaw-Mission" -> "Mission"; "OpenClaw-
# Subagent" -> "Subagent", which JARGON_COMPOUND_RE then drops) and any
# standalone "OpenClaw"/"OpenClore" (common STT mis-spelling of the brand).
-LEGACY_BRAND_RE = re.compile(r"\bOpenCl(?:aw|ore)-?", re.IGNORECASE)
+#
+# 2026-10-06: OpenClaw is also a society agent runtime now (docs/agent-runtimes.md).
+# The runtime is real, so its name survives where it means the runtime: before
+# "agent" ("your OpenClaw agent") and after "on/as/with/to" or their German
+# forms ("moved to OpenClaw"). The retired worker compounds stay scrubbed.
+LEGACY_BRAND_RE = re.compile(
+ r"(?<!\bon\s)(?<!\bto\s)(?<!\bas\s)(?<!\bwith\s)"
+ r"(?<!\bauf\s)(?<!\bals\s)(?<!\bmit\s)(?<!\bzu\s)" # i18n-allow: German prepositions
+ r"\bOpenCl(?:aw|ore)-?(?![-\s]?agent(?:en|s)?\b)",
+ re.IGNORECASE,
+)
# A1 drift (Mandate A1): remove the "Sir" honorific from the output.
# The pattern matches ``Sir`` as an honorific in three forms:
diff --git a/tests/unit/brain/test_mission_command_gate.py b/tests/unit/brain/test_mission_command_gate.py
index 89f5c62ba5..ac50099d4e 100644
--- a/tests/unit/brain/test_mission_command_gate.py
+++ b/tests/unit/brain/test_mission_command_gate.py
@@ -150,6 +150,12 @@ def test_cancel_en_positive(phrase: str) -> None:
"Open my browser", # generic action
"Schreib eine E-Mail an Anna", # action verb, no status # i18n-allow
"What's the weather?", # status-like, but not 'the status'
+ # An OpenClaw society agent is not the retired mission worker.
+ "Stop the OpenClaw agent",
+ "Stoppe den OpenClaw-Agenten", # i18n-allow
+ "Is the openclaw agent still running?",
+ "Status vom OpenClaw Agent", # i18n-allow
+ "Cancel openclaw-agent",
],
)
def test_negative_no_match(phrase: str) -> None:
diff --git a/tests/unit/brain/test_output_filter.py b/tests/unit/brain/test_output_filter.py
index 3d6f4c1591..91fbc1c6e2 100644
--- a/tests/unit/brain/test_output_filter.py
+++ b/tests/unit/brain/test_output_filter.py
@@ -1213,3 +1213,17 @@ def test_serp_footer_is_still_deleted_whole_not_placeholdered() -> None:
assert "weitere ergebnisse" not in low
assert "website" not in low
assert "removed_source_artifacts" in result.actions
+
+
+ "text",
+ [
+ "Your OpenClaw agent replied.",
+ "Dein OpenClaw-Agent ist bereit.", # i18n-allow
+ "I moved Scout to OpenClaw.",
+ "Scout läuft jetzt auf OpenClaw.", # i18n-allow
+ ],
+)
+def test_the_openclaw_runtime_name_survives(text: str) -> None:
+ """OpenClaw as a society agent runtime is real and may be named (2026-10-06)."""
+ assert "OpenClaw" in scrub_for_voice(text).cleaned