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.

feat(voice): speak and display the wake-word-derived agent brand everywhere

Ruben Lütke1e85ede22153
diff --git a/jarvis/agents/registry.py b/jarvis/agents/registry.py
index 823624fb2d..12b7ad7aa1 100644
--- a/jarvis/agents/registry.py
+++ b/jarvis/agents/registry.py
@@ -63,6 +63,24 @@ def _tid(uuid_or_str: UUID | str | None) -> str | None:
return str(uuid_or_str).replace("-", "")
+def _agent_display_name() -> str:
+ """Public display name for an agent node — the wake-word-derived brand.
+
+ "Ruben" -> "Ruben-Agent", for ANY configured wake word (2026-07-17
+ rebrand); resolution failures fall back to the neutral "Assistant-Agent".
+ Read per node creation so a wake-word change applies without a restart.
+ """
+ try:
+ from jarvis.brain.assistant_name import agent_brand
+ from jarvis.core.config import load_config
+
+ return agent_brand(load_config())
+ except Exception: # noqa: BLE001 — a config hiccup must not drop the node
+ from jarvis.brain.assistant_name import agent_brand_from_name
+
+ return agent_brand_from_name("")
+
+
@dataclass
class AgentNode:
"""A node in the sub-agent tree (delivered 1:1 as JSON to the UI)."""
@@ -179,11 +197,12 @@ class JarvisAgentRegistry:
if tid is None:
return
parent_tid = _tid(e.parent_trace_id)
- # User-facing name is the neutral role only. provider/model are kept as
- # structured fields (below) for internal aggregation, but never baked
- # into the display name — the Jarvis-Agent board must not surface the
- # underlying engine or model. `kind` stays the internal routing tag.
- name = "Jarvis-Agent"
+ # User-facing name is the role only, branded with the wake-word-derived
+ # assistant name. provider/model are kept as structured fields (below)
+ # for internal aggregation, but never baked into the display name — the
+ # agent board must not surface the underlying engine or model. `kind`
+ # stays the internal routing tag.
+ name = _agent_display_name()
self._nodes[tid] = AgentNode(
trace_id=tid, kind="jarvis_agent", name=name, status="running",
parent_trace_id=parent_tid,
@@ -367,9 +386,10 @@ class JarvisAgentRegistry:
self._nodes[tid] = AgentNode(
trace_id=tid,
kind="jarvis_agent",
- # Neutral role label only — no engine/provider/model/language in
- # the name. The prompt (what it is doing) rides `utterance`.
- name="Jarvis-Agent",
+ # Role label branded with the wake-word-derived assistant name —
+ # no engine/provider/model/language in the name. The prompt
+ # (what it is doing) rides `utterance`.
+ name=_agent_display_name(),
status="running",
started_ns=ts_ns,
utterance=payload.prompt,
diff --git a/jarvis/board/achievements.py b/jarvis/board/achievements.py
index e08ba9cd6c..753e85ab13 100644
--- a/jarvis/board/achievements.py
+++ b/jarvis/board/achievements.py
@@ -195,8 +195,10 @@ ACHIEVEMENTS: list[AchievementSpec] = [
),
AchievementSpec(
id="openclaw_summoner",
- title="Jarvis-Agent Summoner",
- description="First successful Jarvis-Agent spawn.",
+ # Name-free wording on purpose: unlocked titles are persisted, so they
+ # must not freeze a wake-word-derived brand (2026-07-17 rebrand).
+ title="Agent Summoner",
+ description="First successful background-agent spawn.",
tier="mastery",
evaluator=_eval_openclaw_summoner,
),
@@ -231,7 +233,7 @@ ACHIEVEMENTS: list[AchievementSpec] = [
AchievementSpec(
id="ten_x_engineer",
title="10x Engineer",
- description="Over 10 Jarvis-Agent hours in the last 7 days.",
+ description="Over 10 background-agent hours in the last 7 days.",
tier="mastery",
evaluator=_eval_ten_x_engineer,
),
diff --git a/jarvis/brain/ack_brain/spawn_announcement.py b/jarvis/brain/ack_brain/spawn_announcement.py
index 49f03a2f13..53733b31ae 100644
--- a/jarvis/brain/ack_brain/spawn_announcement.py
+++ b/jarvis/brain/ack_brain/spawn_announcement.py
@@ -24,7 +24,9 @@ as robotic and repetitive. Strategy, in preference order:
Validation chain for any candidate (brain or LLM): keep the longest
leading sentence run within :data:`_MAX_WORDS`; require the public
-``Jarvis-Agent`` label; the language must match the user's turn;
+agent brand (the wake-word-derived assistant name + "-Agent", see
+``jarvis.brain.assistant_name.agent_brand``); the language must match
+the user's turn;
``scrub_for_voice`` in ack mode; no completion claims ("ist erledigt" /
"is done" — the worker has not even started, AD-OE1 promises only the
handover); no internal component names (the voice scrubber would shred
@@ -50,6 +52,7 @@ import random
import re
from collections import deque
from collections.abc import Callable
+from functools import lru_cache
from typing import TYPE_CHECKING
from jarvis.brain.ack_brain.generator import (
@@ -58,6 +61,7 @@ from jarvis.brain.ack_brain.generator import (
_detect_language,
_emit_counter,
)
+from jarvis.brain.assistant_name import agent_brand_from_name
from jarvis.brain.output_filter import scrub_for_voice
from jarvis.core.turn_language import DEFAULT_LOCALE
@@ -91,14 +95,14 @@ _DEFAULT_TIMEOUT_MS = 1500
SPAWN_PERSONA_DE = """Du bist der persönliche Assistent des Nutzers. Die Anfrage des
-Nutzers wurde SOEBEN an einen Jarvis-Agent übergeben, das ist
+Nutzers wurde SOEBEN an einen {agent} übergeben, das ist
bereits geschehen, du sagst es nur noch natürlich an.
DEINE AUFGABE, genau EINE kurze gesprochene Ansage (1-2 Sätze,
zusammen maximal 20 Wörter), die:
1. das KONKRETE Thema der Anfrage nennt (App, Datenobjekt, Ort,
Person, z.B. "dein Gmail", "der Kalender", "die Flüge"),
-2. das exakte Produktwort "Jarvis-Agent" genau einmal enthält und
+2. das exakte Produktwort "{agent}" genau einmal enthält und
natürlich klarmacht, dass dieser Agent jetzt für die Aufgabe gestartet
oder hinzugezogen wurde,
3. vermittelt, dass das eine GRÖSSERE Sache ist, jetzt im Hintergrund
@@ -122,11 +126,11 @@ VERBOTEN:
die Arbeit beginnt gerade erst.
- Interne Bauteil-Namen: "OpenClaw", "Sub-Agent", "Subagent",
"Mission", "Provider", "Subprocess", "Harness", "API". Der öffentliche
- Produktname "Jarvis-Agent" ist dagegen PFLICHT.
+ Produktname "{agent}" ist dagegen PFLICHT.
- Anreden wie "Sir", "Jawohl", "Sehr wohl", "Boss".
- Rückfragen, Markdown, Anführungszeichen, mehr als zwei Sätze.
-Variiere frei, WO und WIE du "Jarvis-Agent" einbaust: starten,
+Variiere frei, WO und WIE du "{agent}" einbaust: starten,
hinzuziehen, übernehmen lassen, mit der Recherche losschicken oder an die
Aufgabe setzen. Verwende keine dieser Varianten als wiederkehrende Schablone.
@@ -137,14 +141,14 @@ Output: NUR die Ansage, nichts anderes."""
SPAWN_PERSONA_EN = """You are the user's personal assistant. The user's request has
-JUST been handed to a Jarvis-Agent, that already happened; you
+JUST been handed to a {agent}, that already happened; you
only announce it naturally.
YOUR JOB, exactly ONE short spoken announcement (1-2 sentences,
20 words max in total) that:
1. names the CONCRETE topic of the request (app, data object, place,
person, e.g. "your Gmail", "the calendar", "the flights"),
-2. contains the exact public product term "Jarvis-Agent" exactly once and
+2. contains the exact public product term "{agent}" exactly once and
naturally makes clear that this agent was just started or brought in,
3. conveys that this is a BIGGER task, now runs in the background and
therefore takes a moment,
@@ -166,12 +170,12 @@ FORBIDDEN:
only starting now.
- Internal component names: "OpenClaw", "sub-agent", "subagent",
"mission", "provider", "subprocess", "harness", "API". The public
- product term "Jarvis-Agent" is REQUIRED.
+ product term "{agent}" is REQUIRED.
- Honorifics like "Sir", "Boss", "Very well".
- Counter-questions, markdown, quotation marks, more than two
sentences.
-Freely vary WHERE and HOW you use "Jarvis-Agent": start one, bring one in,
+Freely vary WHERE and HOW you use "{agent}": start one, bring one in,
have one take over, send one researching, or put one on the task. Never use
any of those variants as a recurring template.
@@ -190,9 +194,15 @@ Output: ONLY the announcement, nothing else."""
_PERSONA_LANGS: frozenset[str] = frozenset({"de", "en"})
-def get_spawn_persona(language: str) -> str:
- """Return the spawn persona prompt for ``language`` ('de'/'en')."""
- return SPAWN_PERSONA_EN if language == "en" else SPAWN_PERSONA_DE
+def get_spawn_persona(language: str, agent_brand: str | None = None) -> str:
+ """Return the spawn persona prompt for ``language`` ('de'/'en').
+
+ The persona's ``{agent}`` placeholder is resolved to ``agent_brand`` (the
+ wake-word-derived assistant name + "-Agent"); ``None`` keeps the neutral
+ fallback brand so the prompt never ships a literal placeholder.
+ """
+ persona = SPAWN_PERSONA_EN if language == "en" else SPAWN_PERSONA_DE
+ return persona.replace("{agent}", agent_brand or agent_brand_from_name(""))
# ---------------------------------------------------------------------------
@@ -205,58 +215,58 @@ def get_spawn_persona(language: str) -> str:
_FALLBACK_SPAWN: dict[str, tuple[str, ...]] = {
"de": (
- "Mach ich. Dafür habe ich einen Jarvis-Agent gestartet; die grössere "
+ "Mach ich. Dafür habe ich einen {agent} gestartet; die grössere "
"Sache läuft jetzt im Hintergrund.",
- "Alles klar, ein Jarvis-Agent schaut sich das in Ruhe an. Das dauert einen Moment.",
- "Okay, da geht jetzt ein Jarvis-Agent gründlich ran und sagt dir danach Bescheid.",
- "Ein Jarvis-Agent übernimmt das. Es braucht etwas, bis ein belastbares Ergebnis da ist.",
- "Geht klar. Das grössere Stück Arbeit liegt jetzt bei einem Jarvis-Agent.",
- "Schon angestossen: Ein Jarvis-Agent kümmert sich darum und braucht dafür einen Moment.",
- "Hab ich. Ein Jarvis-Agent bearbeitet das umfangreichere Thema und "
+ "Alles klar, ein {agent} schaut sich das in Ruhe an. Das dauert einen Moment.",
+ "Okay, da geht jetzt ein {agent} gründlich ran und sagt dir danach Bescheid.",
+ "Ein {agent} übernimmt das. Es braucht etwas, bis ein belastbares Ergebnis da ist.",
+ "Geht klar. Das grössere Stück Arbeit liegt jetzt bei einem {agent}.",
+ "Schon angestossen: Ein {agent} kümmert sich darum und braucht dafür einen Moment.",
+ "Hab ich. Ein {agent} bearbeitet das umfangreichere Thema und "
"meldet sich mit Substanz.",
- "Ein Jarvis-Agent ist jetzt dran. Gib ihm einen Moment, da steckt etwas mehr dahinter.",
+ "Ein {agent} ist jetzt dran. Gib ihm einen Moment, da steckt etwas mehr dahinter.",
),
"en": (
- "On it. I've started a Jarvis-Agent for this bigger task; it'll report back when ready.",
- "Got it. A Jarvis-Agent is taking a proper look, which may take a moment.",
- "Okay, this needs real digging. A Jarvis-Agent is handling it in the background now.",
- "A Jarvis-Agent is taking this on. It's a meatier task, so give it a moment.",
- "Consider it picked up. A Jarvis-Agent now has this more involved piece of work.",
- "Sure. A Jarvis-Agent is digging in now; getting it right will take a little time.",
- "I've put a Jarvis-Agent on the bigger job. It'll return with something solid.",
- "A Jarvis-Agent is working on it now. There's more to this, so it'll take a short moment.",
+ "On it. I've started a {agent} for this bigger task; it'll report back when ready.",
+ "Got it. A {agent} is taking a proper look, which may take a moment.",
+ "Okay, this needs real digging. A {agent} is handling it in the background now.",
+ "A {agent} is taking this on. It's a meatier task, so give it a moment.",
+ "Consider it picked up. A {agent} now has this more involved piece of work.",
+ "Sure. A {agent} is digging in now; getting it right will take a little time.",
+ "I've put a {agent} on the bigger job. It'll return with something solid.",
+ "A {agent} is working on it now. There's more to this, so it'll take a short moment.",
),
"es": (
- "Voy con ello. He iniciado un Jarvis-Agent para esta tarea más grande; "
+ "Voy con ello. He iniciado un {agent} para esta tarea más grande; "
"te avisará al terminar.",
- "Entendido. Un Jarvis-Agent le está echando un buen vistazo; puede tardar un momento.",
- "Vale, esto necesita mirarse a fondo. Un Jarvis-Agent ya trabaja en segundo plano.",
- "Un Jarvis-Agent se encarga. Es una tarea con más chicha, así que necesita un momento.",
- "Lo tengo. Un Jarvis-Agent ha asumido este trabajo algo más amplio.",
- "Claro. Un Jarvis-Agent ya está profundizando; hacerlo bien necesita un poco de tiempo.",
- "He puesto un Jarvis-Agent con este tema más grande; volverá con algo sólido.",
- "Un Jarvis-Agent ya trabaja en ello. Hay más detrás, así que tardará un momentito.",
+ "Entendido. Un {agent} le está echando un buen vistazo; puede tardar un momento.",
+ "Vale, esto necesita mirarse a fondo. Un {agent} ya trabaja en segundo plano.",
+ "Un {agent} se encarga. Es una tarea con más chicha, así que necesita un momento.",
+ "Lo tengo. Un {agent} ha asumido este trabajo algo más amplio.",
+ "Claro. Un {agent} ya está profundizando; hacerlo bien necesita un poco de tiempo.",
+ "He puesto un {agent} con este tema más grande; volverá con algo sólido.",
+ "Un {agent} ya trabaja en ello. Hay más detrás, así que tardará un momentito.",
),
}
_FALLBACK_ALREADY_RUNNING: dict[str, tuple[str, ...]] = {
"de": (
- "Ein Jarvis-Agent ist schon dran, das läuft noch.",
- "Der Jarvis-Agent arbeitet bereits. Einen Moment noch, bitte.",
- "Schon beim Jarvis-Agent in Arbeit, gleich gibt es etwas.",
- "Geduld, der Jarvis-Agent bearbeitet den Auftrag bereits.",
+ "Ein {agent} ist schon dran, das läuft noch.",
+ "Der {agent} arbeitet bereits. Einen Moment noch, bitte.",
+ "Schon beim {agent} in Arbeit, gleich gibt es etwas.",
+ "Geduld, der {agent} bearbeitet den Auftrag bereits.",
),
"en": (
- "A Jarvis-Agent is already on it; that work is still running.",
- "The Jarvis-Agent already has that job, one moment.",
- "A Jarvis-Agent is still working on that one, almost there.",
- "Patience, that task is already with a Jarvis-Agent.",
+ "A {agent} is already on it; that work is still running.",
+ "The {agent} already has that job, one moment.",
+ "A {agent} is still working on that one, almost there.",
+ "Patience, that task is already with a {agent}.",
),
"es": (
- "Un Jarvis-Agent ya está con eso; sigue en marcha.",
- "El Jarvis-Agent ya tiene esa tarea, un momento.",
- "Un Jarvis-Agent sigue trabajando en ello, casi está.",
- "Paciencia, esa tarea ya está con un Jarvis-Agent.",
+ "Un {agent} ya está con eso; sigue en marcha.",
+ "El {agent} ya tiene esa tarea, un momento.",
+ "Un {agent} sigue trabajando en ello, casi está.",
+ "Paciencia, esa tarea ya está con un {agent}.",
),
}
@@ -322,14 +332,29 @@ _FORBIDDEN_VOCAB_RE = re.compile(
re.IGNORECASE,
)
-# Every fresh spawn announcement must name the public product surface so the
-# user can distinguish a delegated background task from ordinary thinking.
-# The old generic "sub-agent" spellings stay forbidden by
-# ``_FORBIDDEN_VOCAB_RE``; the repository's canonical singular name is exact.
-_JARVIS_AGENT_RE = re.compile(r"\bJarvis-Agent\b", re.IGNORECASE)
+# Every fresh spawn announcement must name the public agent brand (the
+# wake-word-derived assistant name + "-Agent") so the user can distinguish a
+# delegated background task from ordinary thinking. The old generic
+# "sub-agent" spellings stay forbidden by ``_FORBIDDEN_VOCAB_RE``. The regex
+# is built per brand because the wake word — and with it the brand — can
+# change at runtime; the small cache avoids recompiling on every candidate.
+@lru_cache(maxsize=8)
+def _brand_re(agent_brand: str) -> re.Pattern[str]:
+ return re.compile(rf"\b{re.escape(agent_brand)}\b", re.IGNORECASE)
_SENTENCE_SPLIT_RE = re.compile(r"(?<=[.!?])\s+")
+# English indefinite-article agreement for the rendered brand: "a Athena-Agent"
+# -> "an Athena-Agent". Only capitalized vowels are matched — the brand is
+# title-cased, so ordinary lowercase words are never touched.
+_EN_ARTICLE_RE = re.compile(r"\b([Aa]) (?=[AEIOU])")
+
+
+def _fix_en_article(text: str) -> str:
+ return _EN_ARTICLE_RE.sub(
+ lambda m: "an " if m.group(1) == "a" else "An ", text
+ )
+
def _resolve_language(explicit: str | None, utterance: str) -> str:
"""Resolve the announcement language: explicit hint > utterance heuristic.
@@ -394,6 +419,7 @@ class SpawnAnnouncementComposer:
fallback_provider: AbstractAckProvider | None = None,
fallback_breaker: CircuitBreaker | None = None,
preferences_provider: Callable[[], str] | None = None,
+ brand_provider: Callable[[], str] | None = None,
) -> None:
self._provider = provider
self._config = config
@@ -413,11 +439,29 @@ class SpawnAnnouncementComposer:
# fresh per call so an edit applies without a restart. Only the LLM path
# consumes it; the curated fallback pool is fixed strings by design.
self._preferences_provider = preferences_provider
+ # Returns the CURRENT public agent brand (wake-word-derived assistant
+ # name + "-Agent"), read fresh per call so a wake-word change applies
+ # without a restart. None / a failure resolves to the neutral
+ # "Assistant-Agent" — never a hardcoded product name.
+ self._brand_provider = brand_provider
# No-repeat memory across BOTH pools — back-to-back spawns must not
# sound identical even when the LLM path is down. maxlen 3 still
# leaves at least one pickable phrase in the smallest (4-item) pool.
+ # Stores the raw {agent} templates, so a brand change cannot defeat
+ # the no-repeat bookkeeping.
self._recent: deque[str] = deque(maxlen=3)
+ def _brand(self) -> str:
+ """Resolve the current agent brand; never raises (AD-OE6)."""
+ if self._brand_provider is not None:
+ try:
+ brand = (self._brand_provider() or "").strip()
+ if brand:
+ return brand
+ except Exception: # noqa: BLE001 — a config hiccup must not mute the spawn
+ log.debug("Agent-brand provider failed; using the neutral brand.")
+ return agent_brand_from_name("")
+
async def compose(
self,
*,
@@ -442,13 +486,14 @@ class SpawnAnnouncementComposer:
cooldown-suppress path (deterministic, no LLM — speed).
"""
lang = _resolve_language(language, utterance)
+ brand = self._brand()
if kind == "already_running":
# Cooldown suppress is a fast-path duplicate rejection; an LLM
# round-trip would delay exactly the turns that are already noisy.
- return self._pick_fallback(_FALLBACK_ALREADY_RUNNING[lang])
+ return self._pick_fallback(_FALLBACK_ALREADY_RUNNING[lang], brand, lang)
- validated = self._validate(candidate or "", lang)
+ validated = self._validate(candidate or "", lang, brand)
if validated:
_emit_counter("spawn_ack_candidate_used_total")
return validated
@@ -458,19 +503,21 @@ class SpawnAnnouncementComposer:
# DE/EN-persona call would only yield text the language-match check
# rejects, costing one wasted timeout.
if lang in _PERSONA_LANGS:
- composed = await self._compose_via_llm(utterance, lang, action, target)
+ composed = await self._compose_via_llm(
+ utterance, lang, action, target, brand
+ )
if composed:
_emit_counter("spawn_ack_llm_used_total")
return composed
_emit_counter("spawn_ack_fallback_total")
- return self._pick_fallback(_FALLBACK_SPAWN[lang])
+ return self._pick_fallback(_FALLBACK_SPAWN[lang], brand, lang)
# ------------------------------------------------------------------
# internals
# ------------------------------------------------------------------
- def _validate(self, text: str, lang: str) -> str | None:
+ def _validate(self, text: str, lang: str, brand: str) -> str | None:
"""Validation chain for a candidate announcement; None = rejected."""
text = (text or "").strip()
if not text:
@@ -480,7 +527,7 @@ class SpawnAnnouncementComposer:
trimmed = _trim_to_sentences(text, _MAX_WORDS)
if trimmed is None:
return None
- if len(_JARVIS_AGENT_RE.findall(trimmed)) != 1:
+ if len(_brand_re(brand).findall(trimmed)) != 1:
return None
if _COMPLETION_CLAIM_RE.search(trimmed):
return None
@@ -498,7 +545,7 @@ class SpawnAnnouncementComposer:
return scrubbed
async def _compose_via_llm(
- self, utterance: str, lang: str, action: str, target: str
+ self, utterance: str, lang: str, action: str, target: str, brand: str
) -> str | None:
"""Try the primary flash provider, then the failover; ``None`` if both fail.
@@ -517,7 +564,9 @@ class SpawnAnnouncementComposer:
):
if provider is None:
continue
- validated = await self._try_provider(provider, breaker, content, lang)
+ validated = await self._try_provider(
+ provider, breaker, content, lang, brand
+ )
if validated:
return validated
return None
@@ -540,6 +589,7 @@ class SpawnAnnouncementComposer:
breaker: CircuitBreaker | None,
content: str,
lang: str,
+ brand: str,
) -> str | None:
"""One bounded flash-LLM attempt against a single provider/breaker."""
try:
@@ -559,7 +609,8 @@ class SpawnAnnouncementComposer:
content,
lang,
persona_prompt=_augment_with_preferences(
- get_spawn_persona(lang), self._preferences_provider
+ get_spawn_persona(lang, brand),
+ self._preferences_provider,
),
),
timeout=timeout_ms / 1000.0,
@@ -580,7 +631,7 @@ class SpawnAnnouncementComposer:
# The provider answered — it is healthy even if we reject the
# text below (same bookkeeping as AckGenerator.run).
await breaker.record_success()
- validated = self._validate(raw or "", lang)
+ validated = self._validate(raw or "", lang, brand)
if validated is None and raw and raw.strip():
_emit_counter("spawn_ack_rejected_total")
return validated
@@ -588,10 +639,16 @@ class SpawnAnnouncementComposer:
log.warning("Spawn-announcement LLM path crashed: %s", exc)
return None
- def _pick_fallback(self, pool: tuple[str, ...]) -> str:
- """Pick a pool phrase, avoiding the most recent picks."""
+ def _pick_fallback(self, pool: tuple[str, ...], brand: str, lang: str) -> str:
+ """Pick a pool phrase, avoiding the most recent picks.
+
+ The pools store raw ``{agent}`` templates; the live brand is resolved
+ here so every spoken phrase names the wake-word-derived agent brand.
+ English gets article agreement ("an Athena-Agent").
+ """
candidates = [p for p in pool if p not in self._recent] or list(pool)
# Phrase variety, not cryptography — S311 does not apply here.
choice = random.choice(candidates) # noqa: S311
self._recent.append(choice)
- return choice
+ rendered = choice.replace("{agent}", brand)
+ return _fix_en_article(rendered) if lang == "en" else rendered
diff --git a/jarvis/brain/app_control.py b/jarvis/brain/app_control.py
index 14923437aa..e672986936 100644
--- a/jarvis/brain/app_control.py
+++ b/jarvis/brain/app_control.py
@@ -569,6 +569,10 @@ def _switch_stt(provider: str, *, cfg: Any, persist: bool, old: str | None) -> d
async def _switch_subagent(
provider: str, *, cfg: Any, persist: bool, old: str | None
) -> dict[str, Any]:
+ from jarvis.brain.assistant_name import agent_brand
+
+ # Spoken/displayed brand follows the wake-word-derived assistant name.
+ brand = agent_brand(cfg)
try:
from jarvis.missions.worker_runtime.provider_map import (
ANTIGRAVITY_SUBAGENT_CANONICAL,
@@ -611,7 +615,7 @@ async def _switch_subagent(
"error_kind": "subagent_unavailable",
"error": (
"Codex CLI is not installed. Install it or select the OpenAI "
- "Jarvis-Agent provider for key-only execution."
+ f"{brand} provider for key-only execution."
),
}
if not (codex_connected or has_key):
@@ -660,7 +664,7 @@ async def _switch_subagent(
"error": (
"Antigravity is not connected — sign in with Google "
"(install agy or the Gemini CLI and log in) or save a "
- "Jarvis-Agent Gemini key, then switch the Agent."
+ f"{brand} Gemini key, then switch the Agent."
),
}
persisted = (
@@ -712,8 +716,8 @@ async def _switch_subagent(
"ok": False,
"error_kind": "missing_credential",
"error": (
- f"{canon} has no Jarvis-Agent credential. Save a key on its "
- "Jarvis-Agent card first, then switch the Agent."
+ f"{canon} has no {brand} credential. Save a key on its "
+ f"{brand} card first, then switch the Agent."
),
}
diff --git a/jarvis/brain/assistant_name.py b/jarvis/brain/assistant_name.py
index 0b4cccf70c..1d9397012d 100644
--- a/jarvis/brain/assistant_name.py
+++ b/jarvis/brain/assistant_name.py
@@ -27,6 +27,25 @@ DEFAULT_ASSISTANT_NAME = "Assistant"
# special-case or contradict.
+def agent_brand_from_name(assistant_name: str) -> str:
+ """Return the public agent-system display brand for ``assistant_name``.
+
+ 2026-07-17 rebrand: the user-visible name of the agent system follows the
+ wake-word-derived assistant name — "Ruben" -> "Ruben-Agent", "Athena" ->
+ "Athena-Agent" — for ANY configured wake word, never a hardcoded product
+ name. Internal identifiers keep the "Jarvis-Agents" system name; only
+ display/spoken surfaces use this brand. TS mirror:
+ ``jarvis/ui/web/frontend/src/lib/agentBrand.ts``.
+ """
+ name = (assistant_name or "").strip() or DEFAULT_ASSISTANT_NAME
+ return f"{name}-Agent"
+
+
+def agent_brand(config: Any) -> str:
+ """Return the agent-system display brand resolved from ``config``."""
+ return agent_brand_from_name(resolve_assistant_name(config))
+
+
def resolve_assistant_name(config: Any) -> str:
"""Return the assistant's display name from ``config`` (see module docstring)."""
# 1. Derive from the wake phrase (prefix stripped, title-cased).
diff --git a/jarvis/brain/factory.py b/jarvis/brain/factory.py
index 3782d93f49..0365425b1c 100644
--- a/jarvis/brain/factory.py
+++ b/jarvis/brain/factory.py
@@ -1911,6 +1911,15 @@ def build_spawn_announcer(jcfg: Any | None = None) -> Any:
SpawnAnnouncementComposer,
)
+ def _live_agent_brand() -> str:
+ # Read fresh per spawn so a wake-word change re-brands the spoken
+ # announcement without a restart; resolution never raises upstream
+ # (the composer falls back to the neutral brand on any failure).
+ from jarvis.brain.assistant_name import agent_brand
+ from jarvis.core.config import load_config
+
+ return agent_brand(load_config())
+
try:
if jcfg is None:
from jarvis.core.config import load_config
@@ -1924,13 +1933,13 @@ def build_spawn_announcer(jcfg: Any | None = None) -> Any:
log.info(
"Spawn-Announcer: flash path disabled — fallback pool only."
)
- return SpawnAnnouncementComposer()
+ return SpawnAnnouncementComposer(brand_provider=_live_agent_brand)
from jarvis.brain.ack_brain import CircuitBreaker
provider = _build_flash_provider(jcfg, ack_cfg)
if provider is None:
- return SpawnAnnouncementComposer()
+ return SpawnAnnouncementComposer(brand_provider=_live_agent_brand)
breaker = CircuitBreaker(
threshold=ack_cfg.circuit_breaker_threshold,
cooldown_s=ack_cfg.circuit_breaker_cooldown_s,
@@ -1950,12 +1959,13 @@ def build_spawn_announcer(jcfg: Any | None = None) -> Any:
fallback_provider=fb_provider,
fallback_breaker=fb_breaker,
preferences_provider=_flash_preferences_provider(jcfg),
+ brand_provider=_live_agent_brand,
)
except Exception as exc: # noqa: BLE001
log.warning(
"build_spawn_announcer() failed: %s — fallback pool only.", exc
)
- return SpawnAnnouncementComposer()
+ return SpawnAnnouncementComposer(brand_provider=_live_agent_brand)
def build_readback_composer(jcfg: Any | None = None) -> Any:
diff --git a/jarvis/brain/manager.py b/jarvis/brain/manager.py
index b9f88c21f8..261b3f286a 100644
--- a/jarvis/brain/manager.py
+++ b/jarvis/brain/manager.py
@@ -6362,11 +6362,22 @@ class BrainManager:
outcome_text = getattr(event, "text", "") or ""
context_label = "on-screen-action"
elif kind == "subagent":
+ # Label with the wake-word-derived brand: the model quotes this
+ # context in spoken answers, so a fixed product name would leak.
+ try:
+ from jarvis.brain.assistant_name import agent_brand
+ from jarvis.core.config import load_config
+
+ brand = agent_brand(load_config())
+ except Exception: # noqa: BLE001 — labeling must not break the mirror
+ from jarvis.brain.assistant_name import agent_brand_from_name
+
+ brand = agent_brand_from_name("")
outcome_text = (
- "Jarvis-Agent mission result: "
+ f"{brand} mission result: "
f"{getattr(event, 'text', '') or ''}"
)
- context_label = "Jarvis-Agent mission"
+ context_label = f"{brand} mission"
else:
return
self._append_cu_outcome_to_history(
diff --git a/jarvis/missions/voice/announcer.py b/jarvis/missions/voice/announcer.py
index 6327ec288f..0b5701c8fb 100644
--- a/jarvis/missions/voice/announcer.py
+++ b/jarvis/missions/voice/announcer.py
@@ -37,7 +37,11 @@ from typing import TYPE_CHECKING, Literal
from jarvis.brain.output_filter import scrub_for_voice
from jarvis.core.bus import EventBus
from jarvis.core.events import AnnouncementRequested
-from jarvis.missions.voice.readback import FAILURE_REASON_PHRASES, failure_phrase_key
+from jarvis.missions.voice.readback import (
+ FAILURE_REASON_PHRASES,
+ failure_phrase_key,
+ render_agent_brand,
+)
from jarvis.voice.contextual_readback import render_readback
if TYPE_CHECKING:
@@ -289,10 +293,10 @@ class MissionAnnouncer:
en_map = FAILURE_REASON_PHRASES["en"]
if lang == "de":
tail = de_map.get(short_reason, f"Grund: {reason}" if reason else "") # i18n-allow
- text = f"Die Mission ist fehlgeschlagen. {tail}".rstrip() # i18n-allow: real German TTS voice output
+ text = f"Die Mission ist fehlgeschlagen. {render_agent_brand(tail)}".rstrip() # i18n-allow: real German TTS voice output
else:
tail = en_map.get(short_reason, f"Reason: {reason}" if reason else "")
- text = f"The mission failed. {tail}".rstrip()
+ text = f"The mission failed. {render_agent_brand(tail)}".rstrip()
# AD-OE5 (2026-05-29): "speak ONLY at the next turn-boundary, never
# interrupt mid-utterance". A failed background mission must NOT
# barge in over current speech — combined with the silent spawn-ACK
diff --git a/jarvis/missions/voice/readback.py b/jarvis/missions/voice/readback.py
index c7bde96f80..d13ee0ffa9 100644
--- a/jarvis/missions/voice/readback.py
+++ b/jarvis/missions/voice/readback.py
@@ -193,13 +193,13 @@ FAILURE_REASON_PHRASES: Final[dict[str, dict[str, str]]] = {
"empty_diff": "Es wurden keine Dateien geschrieben.", # i18n-allow
"critic_unavailable": "Der Prüfer ist abgestürzt, die Arbeit liegt im Worktree.", # i18n-allow
"worktree_setup_failed": "Ich konnte keinen Arbeitsbereich anlegen.", # i18n-allow
- "git_missing": "Jarvis-Agents brauchen eine Git-Installation im PATH.", # i18n-allow
+ "git_missing": "{agents} brauchen eine Git-Installation im PATH.", # i18n-allow
"git_not_a_repository": (
- "Jarvis-Agents brauchen einen Git-Checkout, bitte über den " # i18n-allow
+ "{agents} brauchen einen Git-Checkout, bitte über den " # i18n-allow
"Git-Installer installieren, nicht als ZIP." # i18n-allow
),
"source_checkout_unavailable": (
- "Diese Jarvis-Agent-Aufgabe braucht den " # i18n-allow: German TTS
+ "Diese {agent}-Aufgabe braucht den " # i18n-allow: German TTS
"Quellcode-Checkout, der in dieser " # i18n-allow: German TTS
"Installation nicht verfügbar ist." # i18n-allow: German TTS
),
@@ -227,13 +227,13 @@ FAILURE_REASON_PHRASES: Final[dict[str, dict[str, str]]] = {
"The reviewer crashed; the work is preserved in the worktree."
),
"worktree_setup_failed": "I could not create a workspace.",
- "git_missing": "Jarvis-Agents require git to be installed and on PATH.",
+ "git_missing": "{agents} require git to be installed and on PATH.",
"git_not_a_repository": (
- "Jarvis-Agents require a git checkout (install via the "
+ "{agents} require a git checkout (install via the "
"git-based installer, not a ZIP download)."
),
"source_checkout_unavailable": (
- "This Jarvis-Agent task requires the source checkout, which is "
+ "This {agent} task requires the source checkout, which is "
"not available in this installation."
),
"provider_auth": "The AI provider sign-in is invalid or expired.",
@@ -246,13 +246,13 @@ FAILURE_REASON_PHRASES: Final[dict[str, dict[str, str]]] = {
# rest of the table is de/en pending a broader translation pass; a missing
# key here falls back via ``.get(language, {})``.
"es": {
- "git_missing": "Jarvis-Agents necesitan que git esté instalado y en el PATH.", # i18n-allow: Spanish TTS product-surface phrase
+ "git_missing": "{agents} necesitan que git esté instalado y en el PATH.", # i18n-allow: Spanish TTS product-surface phrase
"git_not_a_repository": (
- "Jarvis-Agents necesitan una copia de git (instala con el " # i18n-allow: Spanish TTS product-surface phrase
+ "{agents} necesitan una copia de git (instala con el " # i18n-allow: Spanish TTS product-surface phrase
"instalador de git, no con una descarga ZIP)." # i18n-allow: Spanish TTS product-surface phrase
),
"source_checkout_unavailable": (
- "Esta tarea de Jarvis-Agent necesita el " # i18n-allow: Spanish TTS
+ "Esta tarea de {agent} necesita el " # i18n-allow: Spanish TTS
"repositorio del código fuente, que no está " # i18n-allow: Spanish TTS
"disponible en esta instalación." # i18n-allow: Spanish TTS
),
@@ -260,6 +260,29 @@ FAILURE_REASON_PHRASES: Final[dict[str, dict[str, str]]] = {
}
+def render_agent_brand(phrase: str) -> str:
+ """Resolve the ``{agent}``/``{agents}`` placeholders to the live brand.
+
+ The public agent-system name follows the wake-word-derived assistant name
+ ("Ruben" -> "Ruben-Agent") for ANY configured wake word (2026-07-17
+ rebrand). Read fresh per call so a wake-word change applies without a
+ restart; any resolution failure falls back to the neutral
+ "Assistant-Agent" — a spoken phrase must never carry a raw placeholder.
+ """
+ if "{agent" not in phrase:
+ return phrase
+ try:
+ from jarvis.brain.assistant_name import agent_brand
+ from jarvis.core.config import load_config
+
+ brand = agent_brand(load_config())
+ except Exception: # noqa: BLE001 — never break a voice readback on config trouble
+ from jarvis.brain.assistant_name import agent_brand_from_name
+
+ brand = agent_brand_from_name("")
+ return phrase.replace("{agents}", f"{brand}s").replace("{agent}", brand)
+
+
def failure_phrase_key(reason: str, error_class: str | None) -> str:
"""Pick the phrase-table key for a failed mission.
@@ -377,7 +400,9 @@ class MissionReadback:
return self.render_crash_recovery(language=language)
if short_reason == "interrupted":
phrase = FAILURE_REASON_PHRASES.get(language, {}).get("interrupted", "")
- return _truncate(phrase) if phrase else self.render_crash_recovery(language=language)
+ if phrase:
+ return _truncate(render_agent_brand(phrase))
+ return self.render_crash_recovery(language=language)
template = self._pick("failed", language)
if not template:
return ""
@@ -385,6 +410,8 @@ class MissionReadback:
# raw snake_case token is never spoken. Shared with the announcer via
# FAILURE_REASON_PHRASES. Unmapped reasons fall back to the raw text.
mapped = FAILURE_REASON_PHRASES.get(language, {}).get(short_reason)
+ if mapped:
+ mapped = render_agent_brand(mapped)
safe_reason = mapped if mapped else (reason or "unbekannter Fehler").strip() # i18n-allow: German TTS fallback phrase
max_insert = MAX_VOICE_CHARS - len(template) + len("{reason}")
if len(safe_reason) > max_insert:
diff --git a/jarvis/missions/workers/api_agent_worker.py b/jarvis/missions/workers/api_agent_worker.py
index 884a4fbd3a..cb616c35d9 100644
--- a/jarvis/missions/workers/api_agent_worker.py
+++ b/jarvis/missions/workers/api_agent_worker.py
@@ -202,7 +202,7 @@ def _tool_incapable_message(model: str, provider: str, *, detail: str = "") -> s
msg = (
f"worker model {model!r} (provider {provider!r}) cannot call tools, "
"and missions deliver work exclusively through tool calls. Pick a "
- "tool-capable model under Settings -> Jarvis-Agents (brain.worker), "
+ "tool-capable model under Settings -> Agents (brain.worker), "
"then retry the mission."
)
if detail:
diff --git a/jarvis/plugins/tool/spawn_worker.py b/jarvis/plugins/tool/spawn_worker.py
index f6d4b76b40..76ed9dae6f 100644
--- a/jarvis/plugins/tool/spawn_worker.py
+++ b/jarvis/plugins/tool/spawn_worker.py
@@ -30,6 +30,7 @@ UI/Telemetrie erhalten — der Mission-Decomposer nutzt sie nicht direkt
from __future__ import annotations
import asyncio
+import copy
import logging
import re
import time
@@ -364,7 +365,7 @@ class SpawnWorkerTool:
"exact request: name the concrete topic and naturally "
"convey that it runs on the side and may take a moment. "
"It MUST contain the exact public product term "
- "'Jarvis-Agent' exactly once and make clear that one was "
+ "'{agent}' exactly once and make clear that one was "
"just started or brought in. Vary how and where that fact "
"is expressed; do not use a fixed sentence template. "
"NEVER a generic stock phrase, never claim the task is "
@@ -391,6 +392,7 @@ class SpawnWorkerTool:
kontrollierer: Any | None = None,
kontrollierer_resolver: KontrollierersResolver | None = None,
announcer: Any | None = None,
+ agent_brand: str | None = None,
) -> None:
"""Wires the tool to a MissionManager directly or via lazy resolver.
@@ -409,6 +411,11 @@ class SpawnWorkerTool:
``jarvis.brain.factory.build_spawn_announcer``). When omitted, a
fallback-only :class:`SpawnAnnouncementComposer` is used so the
spoken confirmation is guaranteed even without the flash-LLM.
+
+ ``agent_brand`` is the public agent-system display brand rendered
+ into the ``spoken_ack`` schema contract (wake-word-derived assistant
+ name + "-Agent"). ``None`` resolves it from the live config; tests
+ pass an explicit brand so they never depend on the host's config.
"""
if manager is None and manager_resolver is None:
raise ValueError(
@@ -422,6 +429,29 @@ class SpawnWorkerTool:
self._announcer = (
announcer if announcer is not None else SpawnAnnouncementComposer()
)
+ # Render the agent brand (wake-word-derived assistant name + "-Agent")
+ # into the spoken_ack contract, per instance so the class attribute
+ # stays a template. Rendered once per brain build; the composer
+ # validates against the LIVE brand per call, so a mid-session
+ # wake-word change degrades gracefully (stale candidate rejected ->
+ # the flash-LLM/pool recomposes with the fresh brand).
+ brand = agent_brand
+ if not brand:
+ try:
+ from jarvis.brain.assistant_name import agent_brand as _resolve_brand
+ from jarvis.core.config import load_config
+
+ brand = _resolve_brand(load_config())
+ except Exception: # noqa: BLE001 — schema rendering must not break wiring
+ from jarvis.brain.assistant_name import agent_brand_from_name
+
+ brand = agent_brand_from_name("")
+ schema = copy.deepcopy(type(self).schema)
+ spoken_ack = schema["properties"]["spoken_ack"]
+ spoken_ack["description"] = spoken_ack["description"].replace(
+ "{agent}", brand
+ )
+ self.schema = schema
# Cooldown LIVENESS gate (2026-05-27 hardening audit). Two pieces of
# state, both reset on tool instantiation so a brain rebuild starts
# clean:
diff --git a/jarvis/ui/web/provider_routes.py b/jarvis/ui/web/provider_routes.py
index f0983c4b0e..3a4777fba1 100644
--- a/jarvis/ui/web/provider_routes.py
+++ b/jarvis/ui/web/provider_routes.py
@@ -888,12 +888,16 @@ def _jarvis_agent_section_health(cfg: Any) -> SectionHealth:
2026-07-07 it distinguishes degraded (fallback carries) from error
(nothing reachable).
"""
+ from jarvis.brain.assistant_name import agent_brand
+
+ # Display brand follows the wake-word-derived assistant name (2026-07-17).
+ brand = agent_brand(cfg)
provider = _selected_jarvis_agent_provider(cfg)
if provider is None:
return SectionHealth(
status=_section_health.NEEDS_SETUP,
reason="no_active",
- detail="No Jarvis-Agent worker selected",
+ detail=f"No {brand} worker selected",
subject_id=None,
)
spec = get_spec(provider)
@@ -904,7 +908,7 @@ def _jarvis_agent_section_health(cfg: Any) -> SectionHealth:
return SectionHealth(
status=_section_health.OK,
reason="ok",
- detail=f"Jarvis-Agent worker: {label}",
+ detail=f"{brand} worker: {label}",
subject_id=provider,
)
# The selected worker cannot run right now. Distinguish "a fallback
@@ -921,7 +925,7 @@ def _jarvis_agent_section_health(cfg: Any) -> SectionHealth:
status=_section_health.NEEDS_SETUP,
reason="degraded",
detail=(
- f"Jarvis-Agent worker '{label}' is unavailable — missions run on "
+ f"{brand} worker '{label}' is unavailable — missions run on "
f"{families[0]} until it is reconnected"
),
subject_id=provider,
@@ -930,7 +934,7 @@ def _jarvis_agent_section_health(cfg: Any) -> SectionHealth:
status=_section_health.ERROR,
reason="no_provider",
detail=(
- f"No Jarvis-Agent provider is reachable — missions will fail. "
+ f"No {brand} provider is reachable — missions will fail. "
f"Reconnect '{label}' or add an API key."
),
subject_id=provider,
diff --git a/tests/unit/agents/test_registry.py b/tests/unit/agents/test_registry.py
index 00df83e313..940b157fd9 100644
--- a/tests/unit/agents/test_registry.py
+++ b/tests/unit/agents/test_registry.py
@@ -49,8 +49,17 @@ def registry(bus: EventBus) -> JarvisAgentRegistry:
@pytest.mark.asyncio
async def test_openclaw_task_started_creates_running_node(
- bus: EventBus, registry: JarvisAgentRegistry
+ bus: EventBus,
+ registry: JarvisAgentRegistry,
+ monkeypatch: pytest.MonkeyPatch,
) -> None:
+ # Deterministic brand: the node name follows the wake-word-derived
+ # assistant name for ANY configured value — never the host's live config
+ # (a test keyed to the maintainer's own wake word would be the exact
+ # anti-pattern this feature exists to prevent).
+ monkeypatch.setattr(
+ "jarvis.agents.registry._agent_display_name", lambda: "Nova-Agent"
+ )
tid = uuid4()
await bus.publish(
JarvisAgentTaskStarted(
@@ -71,10 +80,10 @@ async def test_openclaw_task_started_creates_running_node(
assert node.context_hints == ["Port 8000", "single file"]
assert node.provider == "gemini"
assert node.model == "opus"
- # The display name is the neutral role only — engine/provider/model must
- # never leak into it (Sub-Agents board hygiene). provider/model stay as
+ # The display name is the branded role only — engine/provider/model must
+ # never leak into it (agents-board hygiene). provider/model stay as
# structured fields above for internal aggregation.
- assert node.name == "Jarvis-Agent"
+ assert node.name == "Nova-Agent"
assert "opus" not in node.name
assert "OpenClaw" not in node.name
diff --git a/tests/unit/brain/test_assistant_name.py b/tests/unit/brain/test_assistant_name.py
index c11a99dbb6..843d662bac 100644
--- a/tests/unit/brain/test_assistant_name.py
+++ b/tests/unit/brain/test_assistant_name.py
@@ -76,3 +76,23 @@ def test_falls_back_on_none_config():
def test_whitespace_only_phrase_falls_back():
assert resolve_assistant_name(_cfg(wake_phrase=" ")) == DEFAULT_ASSISTANT_NAME
+
+
+# ----------------------------------------------------------------------
+# Agent brand (2026-07-17 rebrand) — "<AssistantName>-Agent", any wake word
+# ----------------------------------------------------------------------
+
+def test_agent_brand_follows_any_wake_word():
+ from jarvis.brain.assistant_name import agent_brand
+
+ assert agent_brand(_cfg(wake_phrase="Hey Ruben")) == "Ruben-Agent"
+ assert agent_brand(_cfg(wake_phrase="Harald")) == "Harald-Agent"
+ assert agent_brand(_cfg(wake_phrase="ok athena")) == "Athena-Agent"
+
+
+def test_agent_brand_neutral_fallback_is_never_a_product_name():
+ from jarvis.brain.assistant_name import agent_brand, agent_brand_from_name
+
+ assert agent_brand(None) == f"{DEFAULT_ASSISTANT_NAME}-Agent"
+ assert agent_brand_from_name("") == f"{DEFAULT_ASSISTANT_NAME}-Agent"
+ assert "Jarvis" not in agent_brand_from_name(" ")
diff --git a/tests/unit/brain/test_computer_use_offload.py b/tests/unit/brain/test_computer_use_offload.py
index 28f10399bb..696ec31a0b 100644
--- a/tests/unit/brain/test_computer_use_offload.py
+++ b/tests/unit/brain/test_computer_use_offload.py
@@ -396,9 +396,16 @@ async def test_manager_ignores_non_cu_tool_completion() -> None:
@pytest.mark.asyncio
-async def test_manager_retains_signed_mission_result_for_follow_up() -> None:
+async def test_manager_retains_signed_mission_result_for_follow_up(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
from jarvis.core.events import AnnouncementRequested
+ # Deterministic brand: the history label follows the wake-word-derived
+ # assistant name for ANY configured value — never the host's live config.
+ monkeypatch.setattr(
+ "jarvis.brain.assistant_name.agent_brand", lambda _cfg: "Nova-Agent"
+ )
mgr = _make_manager(_SlowHarnessExecutor(), _FakeBus())
await mgr._on_cu_tool_completion(AnnouncementRequested(
text="The research report is ready.",
@@ -412,7 +419,7 @@ async def test_manager_retains_signed_mission_result_for_follow_up() -> None:
assert mgr._history
content = str(mgr._history[-1].content)
- assert "Jarvis-Agent mission result" in content
+ assert "Nova-Agent mission result" in content
assert "019f5ca2-e30f" in content
assert "result_uri" in content
diff --git a/tests/unit/brain/test_spawn_announcement.py b/tests/unit/brain/test_spawn_announcement.py
index 1cfafe7f2c..35ebea667a 100644
--- a/tests/unit/brain/test_spawn_announcement.py
+++ b/tests/unit/brain/test_spawn_announcement.py
@@ -9,10 +9,14 @@ bilingual no-repeat pool. Guarantees under test:
* never raises, never returns an empty string (AD-OE6 zero silent drops)
* candidate/LLM output is validated: short, right language, the public
- ``Jarvis-Agent`` label is explicit, no completion claims, no internal
- component names, voice-scrubbed
+ agent brand (wake-word-derived assistant name + "-Agent") is explicit,
+ no completion claims, no internal component names, voice-scrubbed
* de + en both work; the language follows the user's turn
* the fallback pool never repeats the same phrase back-to-back
+
+The tests run with the arbitrary brand "Nova-Agent" wired through
+``brand_provider`` — the brand must follow ANY configured wake word,
+never one blessed product name.
"""
from __future__ import annotations
@@ -26,10 +30,9 @@ from jarvis.brain.ack_brain.config import AckBrainConfig
from jarvis.brain.ack_brain.spawn_announcement import (
_FALLBACK_ALREADY_RUNNING,
_FALLBACK_SPAWN,
- SPAWN_PERSONA_DE,
- SPAWN_PERSONA_EN,
STILL_RUNNING_PHRASES,
SpawnAnnouncementComposer,
+ get_spawn_persona,
)
@@ -63,16 +66,31 @@ class _FakeProvider:
return self.reply
+# The arbitrary test brand — deliberately NOT a real product name (the brand
+# is a pure function of the user's wake word).
+BRAND = "Nova-Agent"
+
+
+def _rendered(pool: tuple[str, ...]) -> set[str]:
+ """The pool templates as they are actually spoken (brand resolved)."""
+ return {p.replace("{agent}", BRAND) for p in pool}
+
+
def _composer(
provider: _FakeProvider | None = None,
*,
timeout_ms: int = 1500,
) -> SpawnAnnouncementComposer:
if provider is None:
- return SpawnAnnouncementComposer()
+ return SpawnAnnouncementComposer(brand_provider=lambda: BRAND)
cfg = AckBrainConfig(timeout_ms=timeout_ms)
breaker = CircuitBreaker(threshold=3, cooldown_s=60)
- return SpawnAnnouncementComposer(provider=provider, config=cfg, breaker=breaker)
+ return SpawnAnnouncementComposer(
+ provider=provider,
+ config=cfg,
+ breaker=breaker,
+ brand_provider=lambda: BRAND,
+ )
# --------------------------------------------------------------------------- #
@@ -86,7 +104,7 @@ async def test_fallback_only_returns_de_pool_phrase() -> None:
out = await composer.compose(
utterance="Schau bitte in meine Mails, ich warte auf eine Rechnung."
)
- assert out in _FALLBACK_SPAWN["de"]
+ assert out in _rendered(_FALLBACK_SPAWN["de"])
@pytest.mark.asyncio
@@ -95,7 +113,7 @@ async def test_fallback_only_detects_english_turn() -> None:
out = await composer.compose(
utterance="Please check my Gmail inbox for new invoices."
)
- assert out in _FALLBACK_SPAWN["en"]
+ assert out in _rendered(_FALLBACK_SPAWN["en"])
@pytest.mark.asyncio
@@ -104,7 +122,7 @@ async def test_explicit_language_overrides_heuristic() -> None:
out = await composer.compose(
utterance="Schau bitte in mein Gmail rein.", language="en"
)
- assert out in _FALLBACK_SPAWN["en"]
+ assert out in _rendered(_FALLBACK_SPAWN["en"])
@pytest.mark.asyncio
@@ -144,9 +162,9 @@ async def test_already_running_kind_uses_its_own_pool() -> None:
language="es",
kind="already_running",
)
- assert out_de in _FALLBACK_ALREADY_RUNNING["de"]
- assert out_en in _FALLBACK_ALREADY_RUNNING["en"]
- assert out_es in _FALLBACK_ALREADY_RUNNING["es"]
+ assert out_de in _rendered(_FALLBACK_ALREADY_RUNNING["de"])
+ assert out_en in _rendered(_FALLBACK_ALREADY_RUNNING["en"])
+ assert out_es in _rendered(_FALLBACK_ALREADY_RUNNING["es"])
@pytest.mark.asyncio
@@ -159,7 +177,7 @@ async def test_spanish_turn_uses_pool_and_skips_llm() -> None:
utterance="Por favor, revisa mi correo en busca de facturas.",
language="es",
)
- assert out in _FALLBACK_SPAWN["es"]
+ assert out in _rendered(_FALLBACK_SPAWN["es"])
assert provider.calls == [], "es turn must skip the de/en-persona LLM path"
@@ -174,25 +192,28 @@ def test_pool_phrases_pass_own_validation_and_ban_old_template() -> None:
("en", _FALLBACK_ALREADY_RUNNING["en"]),
):
for phrase in pool:
- assert composer._validate(phrase, lang), (
- f"pool phrase fails own validation ({lang}): {phrase!r}"
+ spoken = phrase.replace("{agent}", BRAND)
+ assert composer._validate(spoken, lang, BRAND), (
+ f"pool phrase fails own validation ({lang}): {spoken!r}"
)
- assert len(phrase) <= 120, f"pool phrase too long: {phrase!r}"
+ assert len(spoken) <= 120, f"pool phrase too long: {spoken!r}"
assert "im Hintergrund darum" not in phrase
assert "komplexe Aufgabe" not in phrase
assert "vom User beschriebenen Workflow" not in phrase
-def test_agent_status_pools_name_jarvis_agent_exactly_once() -> None:
+def test_agent_status_pools_name_the_agent_brand_exactly_once() -> None:
"""Spawn and duplicate-status fallbacks must identify the delegated actor.
The phrasing may rotate freely, but it must never leave the user guessing
- whether Jarvis is merely thinking or has started a background agent.
+ whether the assistant is merely thinking or has started a background
+ agent. The pools carry the ``{agent}`` template exactly once so the
+ rendered phrase names the brand exactly once, for ANY wake word.
"""
for pool_by_language in (_FALLBACK_SPAWN, _FALLBACK_ALREADY_RUNNING):
for pool in pool_by_language.values():
for phrase in pool:
- assert phrase.lower().count("jarvis-agent") == 1, phrase
+ assert phrase.lower().count("{agent}") == 1, phrase
def test_es_pools_survive_voice_scrubbing() -> None:
@@ -280,44 +301,46 @@ def test_still_running_phrases_cover_all_languages() -> None:
@pytest.mark.asyncio
async def test_provider_text_is_used_when_valid() -> None:
provider = _FakeProvider(
- reply="Ein Jarvis-Agent schaut gleich in dein Gmail und sagt dir Bescheid."
+ reply="Ein Nova-Agent schaut gleich in dein Gmail und sagt dir Bescheid."
)
composer = _composer(provider)
out = await composer.compose(
utterance="Schau bitte in mein Gmail rein.", language="de"
)
assert "Gmail" in out
- assert out not in _FALLBACK_SPAWN["de"]
+ assert out not in _rendered(_FALLBACK_SPAWN["de"])
assert len(provider.calls) == 1
@pytest.mark.asyncio
async def test_provider_gets_de_persona_for_german_turn() -> None:
"""Language unset → composer detects German from the utterance."""
- provider = _FakeProvider(reply="Ein Jarvis-Agent schaut gleich in dein Gmail rein.")
+ provider = _FakeProvider(reply="Ein Nova-Agent schaut gleich in dein Gmail rein.")
composer = _composer(provider)
await composer.compose(
utterance="Schau bitte nach, ob die Rechnung schon da ist und was drinsteht."
)
- assert provider.calls[0]["persona_prompt"] == SPAWN_PERSONA_DE
+ assert provider.calls[0]["persona_prompt"] == get_spawn_persona("de", BRAND)
+ assert BRAND in provider.calls[0]["persona_prompt"]
+ assert "{agent}" not in provider.calls[0]["persona_prompt"]
@pytest.mark.asyncio
async def test_provider_gets_en_persona_for_english_turn() -> None:
provider = _FakeProvider(
- reply="A Jarvis-Agent is checking your Gmail in the background now."
+ reply="A Nova-Agent is checking your Gmail in the background now."
)
composer = _composer(provider)
await composer.compose(
utterance="Check my Gmail for new mail.", language="en"
)
- assert provider.calls[0]["persona_prompt"] == SPAWN_PERSONA_EN
+ assert provider.calls[0]["persona_prompt"] == get_spawn_persona("en", BRAND)
@pytest.mark.asyncio
async def test_provider_content_includes_interpreted_action() -> None:
provider = _FakeProvider(
- reply="Ein Jarvis-Agent prüft gleich deine Gmail-Inbox."
+ reply="Ein Nova-Agent prüft gleich deine Gmail-Inbox."
)
composer = _composer(provider)
await composer.compose(
@@ -340,7 +363,7 @@ async def test_provider_timeout_falls_back() -> None:
out = await composer.compose(
utterance="Schau in mein Gmail.", language="de"
)
- assert out in _FALLBACK_SPAWN["de"]
+ assert out in _rendered(_FALLBACK_SPAWN["de"])
@pytest.mark.asyncio
@@ -349,7 +372,7 @@ async def test_provider_error_falls_back() -> None:
out = await composer.compose(
utterance="Schau in mein Gmail.", language="de"
)
- assert out in _FALLBACK_SPAWN["de"]
+ assert out in _rendered(_FALLBACK_SPAWN["de"])
@pytest.mark.asyncio
@@ -358,7 +381,7 @@ async def test_provider_empty_reply_falls_back() -> None:
out = await composer.compose(
utterance="Schau in mein Gmail.", language="de"
)
- assert out in _FALLBACK_SPAWN["de"]
+ assert out in _rendered(_FALLBACK_SPAWN["de"])
@pytest.mark.asyncio
@@ -366,13 +389,13 @@ async def test_overlong_reply_is_trimmed_to_leading_sentences() -> None:
"""Two sentences, the second pushing past the word cap: keep sentence 1."""
long_tail = " ".join(["und"] * 30)
provider = _FakeProvider(
- reply=f"Ein Jarvis-Agent schaut kurz in dein Gmail. Danach {long_tail}."
+ reply=f"Ein Nova-Agent schaut kurz in dein Gmail. Danach {long_tail}."
)
composer = _composer(provider)
out = await composer.compose(
utterance="Schau in mein Gmail.", language="de"
)
- assert out == "Ein Jarvis-Agent schaut kurz in dein Gmail."
+ assert out == "Ein Nova-Agent schaut kurz in dein Gmail."
@pytest.mark.asyncio
@@ -387,7 +410,7 @@ async def test_monologue_without_fitting_sentence_falls_back() -> None:
out = await composer.compose(
utterance="Schau in mein Gmail.", language="de"
)
- assert out in _FALLBACK_SPAWN["de"]
+ assert out in _rendered(_FALLBACK_SPAWN["de"])
@pytest.mark.asyncio
@@ -397,7 +420,7 @@ async def test_language_mismatch_falls_back() -> None:
out = await composer.compose(
utterance="Schau in mein Gmail.", language="de"
)
- assert out in _FALLBACK_SPAWN["de"]
+ assert out in _rendered(_FALLBACK_SPAWN["de"])
@pytest.mark.asyncio
@@ -408,7 +431,7 @@ async def test_completion_claim_is_rejected() -> None:
out = await composer.compose(
utterance="Schau in mein Gmail.", language="de"
)
- assert out in _FALLBACK_SPAWN["de"]
+ assert out in _rendered(_FALLBACK_SPAWN["de"])
@pytest.mark.asyncio
@@ -420,7 +443,7 @@ async def test_internal_component_names_are_rejected() -> None:
out = await composer.compose(
utterance="Schau in mein Gmail.", language="de"
)
- assert out in _FALLBACK_SPAWN["de"]
+ assert out in _rendered(_FALLBACK_SPAWN["de"])
@pytest.mark.asyncio
@@ -430,13 +453,14 @@ async def test_open_breaker_skips_provider() -> None:
breaker = CircuitBreaker(threshold=1, cooldown_s=60)
await breaker.record_failure() # opens immediately at threshold=1
composer = SpawnAnnouncementComposer(
- provider=provider, config=cfg, breaker=breaker
+ provider=provider, config=cfg, breaker=breaker,
+ brand_provider=lambda: BRAND,
)
out = await composer.compose(
utterance="Schau in mein Gmail.", language="de"
)
assert provider.calls == []
- assert out in _FALLBACK_SPAWN["de"]
+ assert out in _rendered(_FALLBACK_SPAWN["de"])
# --------------------------------------------------------------------------- #
@@ -463,6 +487,7 @@ def _composer_with_fallback(
breaker=primary_breaker or CircuitBreaker(threshold=3, cooldown_s=60),
fallback_provider=fallback,
fallback_breaker=CircuitBreaker(threshold=3, cooldown_s=60),
+ brand_provider=lambda: BRAND,
)
@@ -474,14 +499,14 @@ async def test_fallback_provider_used_when_primary_exhausted() -> None:
announcement to a generic stock line."""
primary = _FakeProvider(reply=None)
fallback = _FakeProvider(
- reply="Ein Jarvis-Agent übernimmt gerade das Thema Gmail."
+ reply="Ein Nova-Agent übernimmt gerade das Thema Gmail."
)
composer = _composer_with_fallback(primary, fallback)
out = await composer.compose(
utterance="Schau bitte in mein Gmail rein.", language="de"
)
assert "Gmail" in out
- assert out not in _FALLBACK_SPAWN["de"]
+ assert out not in _rendered(_FALLBACK_SPAWN["de"])
assert len(primary.calls) == 1
assert len(fallback.calls) == 1
@@ -490,13 +515,13 @@ async def test_fallback_provider_used_when_primary_exhausted() -> None:
async def test_fallback_provider_used_when_primary_errors() -> None:
primary = _FakeProvider(raises=True)
fallback = _FakeProvider(
- reply="Ein Jarvis-Agent kümmert sich gleich um dein Gmail."
+ reply="Ein Nova-Agent kümmert sich gleich um dein Gmail."
)
composer = _composer_with_fallback(primary, fallback)
out = await composer.compose(
utterance="Schau in mein Gmail.", language="de"
)
- assert out == "Ein Jarvis-Agent kümmert sich gleich um dein Gmail."
+ assert out == "Ein Nova-Agent kümmert sich gleich um dein Gmail."
assert len(fallback.calls) == 1
@@ -504,26 +529,26 @@ async def test_fallback_provider_used_when_primary_errors() -> None:
async def test_fallback_provider_used_when_primary_times_out() -> None:
primary = _FakeProvider(reply="Ich schaue in dein Gmail.", delay_s=0.5)
fallback = _FakeProvider(
- reply="Ein Jarvis-Agent nimmt sich dein Gmail gleich vor."
+ reply="Ein Nova-Agent nimmt sich dein Gmail gleich vor."
)
composer = _composer_with_fallback(primary, fallback, timeout_ms=100)
out = await composer.compose(
utterance="Schau in mein Gmail.", language="de"
)
- assert out == "Ein Jarvis-Agent nimmt sich dein Gmail gleich vor."
+ assert out == "Ein Nova-Agent nimmt sich dein Gmail gleich vor."
@pytest.mark.asyncio
async def test_primary_success_skips_fallback() -> None:
primary = _FakeProvider(
- reply="Ein Jarvis-Agent schaut gleich in dein Gmail."
+ reply="Ein Nova-Agent schaut gleich in dein Gmail."
)
fallback = _FakeProvider(reply="should never be reached")
composer = _composer_with_fallback(primary, fallback)
out = await composer.compose(
utterance="Schau in mein Gmail.", language="de"
)
- assert out == "Ein Jarvis-Agent schaut gleich in dein Gmail."
+ assert out == "Ein Nova-Agent schaut gleich in dein Gmail."
assert fallback.calls == []
@@ -535,7 +560,7 @@ async def test_both_providers_dead_falls_back_to_pool() -> None:
out = await composer.compose(
utterance="Schau in mein Gmail.", language="de"
)
- assert out in _FALLBACK_SPAWN["de"]
+ assert out in _rendered(_FALLBACK_SPAWN["de"])
assert len(primary.calls) == 1
assert len(fallback.calls) == 1
@@ -546,7 +571,7 @@ async def test_open_primary_breaker_still_consults_fallback() -> None:
the context-aware path — the failover is still consulted before the pool."""
primary = _FakeProvider(reply="primary text")
fallback = _FakeProvider(
- reply="Ein Jarvis-Agent nimmt sich dein Gmail gleich vor."
+ reply="Ein Nova-Agent nimmt sich dein Gmail gleich vor."
)
primary_breaker = CircuitBreaker(threshold=1, cooldown_s=60)
await primary_breaker.record_failure() # opens immediately at threshold=1
@@ -557,7 +582,7 @@ async def test_open_primary_breaker_still_consults_fallback() -> None:
utterance="Schau in mein Gmail.", language="de"
)
assert primary.calls == [] # primary skipped (breaker open)
- assert out == "Ein Jarvis-Agent nimmt sich dein Gmail gleich vor."
+ assert out == "Ein Nova-Agent nimmt sich dein Gmail gleich vor."
assert len(fallback.calls) == 1
@@ -573,7 +598,7 @@ async def test_valid_candidate_short_circuits_llm() -> None:
out = await composer.compose(
utterance="Schau in mein Gmail.",
language="de",
- candidate="Ein Jarvis-Agent geht gleich durch dein Gmail und meldet sich.",
+ candidate="Ein Nova-Agent geht gleich durch dein Gmail und meldet sich.",
)
assert "Gmail" in out
assert provider.calls == []
@@ -582,7 +607,7 @@ async def test_valid_candidate_short_circuits_llm() -> None:
@pytest.mark.asyncio
async def test_invalid_candidate_falls_through_to_llm() -> None:
provider = _FakeProvider(
- reply="Ein Jarvis-Agent schaut gleich in dein Gmail rein."
+ reply="Ein Nova-Agent schaut gleich in dein Gmail rein."
)
composer = _composer(provider)
out = await composer.compose(
@@ -590,7 +615,7 @@ async def test_invalid_candidate_falls_through_to_llm() -> None:
language="de",
candidate="Erledigt.", # completion claim — must be rejected
)
- assert out == "Ein Jarvis-Agent schaut gleich in dein Gmail rein."
+ assert out == "Ein Nova-Agent schaut gleich in dein Gmail rein."
assert len(provider.calls) == 1
@@ -598,7 +623,7 @@ async def test_invalid_candidate_falls_through_to_llm() -> None:
async def test_candidate_without_public_agent_label_is_rejected() -> None:
"""Natural but ambiguous background wording must not bypass the contract."""
provider = _FakeProvider(
- reply="Ein Jarvis-Agent schaut gründlich in dein Gmail."
+ reply="Ein Nova-Agent schaut gründlich in dein Gmail."
)
composer = _composer(provider)
@@ -608,7 +633,7 @@ async def test_candidate_without_public_agent_label_is_rejected() -> None:
candidate="Ich kümmere mich im Hintergrund darum und melde mich.",
)
- assert out == "Ein Jarvis-Agent schaut gründlich in dein Gmail."
+ assert out == "Ein Nova-Agent schaut gründlich in dein Gmail."
assert len(provider.calls) == 1
@@ -622,3 +647,58 @@ async def test_never_raises_and_never_empty_under_pathology() -> None:
composer = _composer(_FakeProvider(raises=True))
out = await composer.compose(utterance="", language=None, candidate=None)
assert isinstance(out, str) and out.strip()
+
+
+# --------------------------------------------------------------------------- #
+# Wake-word-derived brand (2026-07-17 rebrand) #
+# --------------------------------------------------------------------------- #
+
+
[email protected]("brand", ["Ruben-Agent", "Harald-Agent", "Athena-Agent"])
+async def test_brand_follows_any_wake_word_name(brand: str) -> None:
+ """The spoken brand is a pure function of the configured wake word: a
+ candidate naming the CURRENT brand passes, and every fallback phrase
+ speaks that brand — for ANY name, never one blessed value."""
+ composer = SpawnAnnouncementComposer(brand_provider=lambda: brand)
+ out = await composer.compose(
+ utterance="Schau in mein Gmail.",
+ language="de",
+ candidate=f"Ein {brand} geht gleich durch dein Gmail und meldet sich.",
+ )
+ assert brand in out
+
+ pooled = await composer.compose(
+ utterance="Check my Gmail please.", language="en"
+ )
+ assert brand in pooled
+ assert "{agent}" not in pooled
+
+
+async def test_candidate_with_stale_brand_is_rejected() -> None:
+ """A candidate naming a DIFFERENT (e.g. stale pre-rename) brand must not
+ pass validation — the announcement re-composes with the live brand."""
+ composer = SpawnAnnouncementComposer(brand_provider=lambda: "Ruben-Agent")
+ out = await composer.compose(
+ utterance="Schau in mein Gmail.",
+ language="de",
+ candidate="Ein Jarvis-Agent geht gleich durch dein Gmail.",
+ )
+ assert out in {p.replace("{agent}", "Ruben-Agent") for p in _FALLBACK_SPAWN["de"]}
+
+
+async def test_missing_brand_provider_uses_neutral_brand() -> None:
+ """No provider wired (or a failing one) -> the neutral 'Assistant-Agent',
+ never a trademarked product name."""
+ composer = SpawnAnnouncementComposer()
+ out = await composer.compose(utterance="Check my Gmail.", language="en")
+ assert "Assistant-Agent" in out
+
+ def _boom() -> str:
+ raise RuntimeError("config unavailable")
+
+ crashing = SpawnAnnouncementComposer(brand_provider=_boom)
+ out2 = await crashing.compose(utterance="Check my Gmail.", language="en")
+ assert "Assistant-Agent" in out2
diff --git a/tests/unit/plugins/tool/test_spawn_worker_ack.py b/tests/unit/plugins/tool/test_spawn_worker_ack.py
index 7f6a256182..f33ffb1d63 100644
--- a/tests/unit/plugins/tool/test_spawn_worker_ack.py
+++ b/tests/unit/plugins/tool/test_spawn_worker_ack.py
@@ -29,12 +29,21 @@ import jarvis.plugins.tool.spawn_worker as spawn_worker_module
from jarvis.brain.ack_brain.spawn_announcement import (
_FALLBACK_ALREADY_RUNNING,
_FALLBACK_SPAWN,
+ _fix_en_article,
)
from jarvis.core.bus import EventBus
from jarvis.core.protocols import ExecutionContext
from jarvis.plugins.tool.spawn_worker import SpawnWorkerTool
+def _rendered(pool: tuple[str, ...]) -> set[str]:
+ """Pool templates as spoken with the NEUTRAL brand (no brand provider is
+ wired on a bare default announcer — never a trademarked product name)."""
+ return {
+ _fix_en_article(p.replace("{agent}", "Assistant-Agent")) for p in pool
+ }
+
+
class _FakeMissionManager:
def __init__(self) -> None:
self.dispatch_calls: list[dict[str, Any]] = []
@@ -177,7 +186,7 @@ async def test_default_announcer_yields_fallback_pool_phrase_de() -> None:
)
await _drain_background_tasks()
- assert result.output in _FALLBACK_SPAWN["de"]
+ assert result.output in _rendered(_FALLBACK_SPAWN["de"])
@pytest.mark.asyncio
@@ -194,7 +203,7 @@ async def test_default_announcer_yields_fallback_pool_phrase_en() -> None:
)
await _drain_background_tasks()
- assert result.output in _FALLBACK_SPAWN["en"]
+ assert result.output in _rendered(_FALLBACK_SPAWN["en"])
@pytest.mark.asyncio
@@ -208,7 +217,7 @@ async def test_default_announcer_cooldown_phrase_is_bilingual() -> None:
_ctx(),
)
- assert result.output in _FALLBACK_ALREADY_RUNNING["en"]
+ assert result.output in _rendered(_FALLBACK_ALREADY_RUNNING["en"])
@pytest.mark.asyncio
@@ -418,6 +427,22 @@ def test_schema_offers_spoken_ack_and_language() -> None:
assert "language" in props
# Optional fields — the force-spawn path calls without them.
assert SpawnWorkerTool.schema["required"] == ["utterance", "action"]
+ # The CLASS attribute is the template; instances render the live brand.
description = props["spoken_ack"]["description"]
assert "stock phrase" in description
- assert "'Jarvis-Agent' exactly once" in description
+ assert "'{agent}' exactly once" in description
+
+
+def test_instance_schema_renders_the_wake_word_brand() -> None:
+ """The rendered spoken_ack contract names the CONFIGURED brand — for ANY
+ wake-word-derived name, never a fixed product name or a raw placeholder."""
+ tool = SpawnWorkerTool(
+ bus=EventBus(), manager=_FakeMissionManager(), agent_brand="Nova-Agent"
+ )
+ description = tool.schema["properties"]["spoken_ack"]["description"]
+ assert "'Nova-Agent' exactly once" in description
+ assert "{agent}" not in description
+ # The class template must stay unrendered (shared across instances).
+ assert "'{agent}' exactly once" in (
+ SpawnWorkerTool.schema["properties"]["spoken_ack"]["description"]
+ )
diff --git a/tests/unit/plugins/tool/test_spawn_worker_cooldown.py b/tests/unit/plugins/tool/test_spawn_worker_cooldown.py
index 2627c934de..780289764f 100644
--- a/tests/unit/plugins/tool/test_spawn_worker_cooldown.py
+++ b/tests/unit/plugins/tool/test_spawn_worker_cooldown.py
@@ -26,7 +26,10 @@ from uuid import uuid4
import pytest
-from jarvis.brain.ack_brain.spawn_announcement import _FALLBACK_ALREADY_RUNNING
+from jarvis.brain.ack_brain.spawn_announcement import (
+ _FALLBACK_ALREADY_RUNNING,
+ _fix_en_article,
+)
from jarvis.core.bus import EventBus
from jarvis.core.protocols import ExecutionContext
from jarvis.plugins.tool.spawn_worker import (
@@ -38,11 +41,16 @@ from jarvis.plugins.tool.spawn_worker import (
# deterministic "already_running" mode — de/en/es pools, no LLM. All three
# supported languages are included so a Spanish suppress ACK never false-fails
# the pool assertions (the composer's _resolve_language can return "es").
-_SUPPRESS_POOL = (
- set(_FALLBACK_ALREADY_RUNNING["de"])
- | set(_FALLBACK_ALREADY_RUNNING["en"])
- | set(_FALLBACK_ALREADY_RUNNING["es"])
-)
+# The pools are {agent} templates; a bare default announcer speaks them with
+# the NEUTRAL brand (no brand provider wired -> "Assistant-Agent").
+_SUPPRESS_POOL = {
+ _fix_en_article(p.replace("{agent}", "Assistant-Agent"))
+ for p in (
+ _FALLBACK_ALREADY_RUNNING["de"]
+ + _FALLBACK_ALREADY_RUNNING["en"]
+ + _FALLBACK_ALREADY_RUNNING["es"]
+ )
+}
class _FakeMissionManager: