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.

test(brain): align suppress-response guard with the explicit-delegation spawn gate

Ruben Lütkece0751ee26bf
diff --git a/tests/integration/test_suppress_response_no_fallback.py b/tests/integration/test_suppress_response_no_fallback.py
index 1edd5bd5a8..9cc114cf5d 100644
--- a/tests/integration/test_suppress_response_no_fallback.py
+++ b/tests/integration/test_suppress_response_no_fallback.py
@@ -105,9 +105,15 @@ async def test_suppress_response_does_not_trigger_fallback():
# we can observe the suppress_response path end-to-end.
manager._hide_action_tools_on_signalless_turn = lambda tools, user_text: tools # type: ignore[method-assign]
- # The utterance contains NO verb from spawn_verbs, so the Force-Spawn
- # heuristic does not kick in and the LLM path is genuinely exercised.
- result = await manager.generate("erkläre mir das mal", use_history=False) # i18n-allow
+ # The utterance explicitly requests delegation ("Agent", "Hintergrund"),
+ # so the explicit-delegation gate (spawn_gate.llm_spawn_allowed,
+ # 2026-07-18) lets the LLM-chosen spawn through — while containing NO
+ # force_spawn_phrases entry, so the strict force-spawn hoist stays quiet
+ # and the LLM path is genuinely exercised.
+ result = await manager.generate(
+ "ein Agent soll das im Hintergrund erledigen", # i18n-allow
+ use_history=False,
+ )
# The spawn tool was called EXACTLY ONCE — not twice (no fallback).
assert len(spawn_tool.calls) == 1, (