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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(brain): make strict-mode force-spawn explicit-only — no implicit agent spawns
Personal Jarvis Maintainer5ab0418551a9
diff --git a/jarvis/brain/manager.py b/jarvis/brain/manager.pyindex 839018f608..30e0b83c0a 100644--- a/jarvis/brain/manager.py+++ b/jarvis/brain/manager.py@@ -3941,10 +3941,12 @@ class BrainManager:marker, OR >= ``heavy_research_min_verbs_multiclause`` verb matches(multi-clause), OR length >= ``heavy_research_min_chars`` with a verb.Length alone never spawns, so a quick "recherchier das mal kurz" stays- inline. Pure regex (AP-11 safe, cross-platform). The caller- (``_should_force_spawn``, strict mode) runs this AFTER every stand-down- guard, so skills / open-app / instructional / nav / pointer keep- precedence.+ inline. Pure regex (AP-11 safe, cross-platform).++ RETIRED from the spawn decision 2026-07-21 (strict mode is+ explicit-only — ``_should_force_spawn`` no longer consults this+ detector). Kept as a classifier for telemetry/tests and a possible+ future opt-in."""cfg = self._config.brain.routingif not getattr(cfg, "heavy_research_enabled", True):@@ -5127,9 +5129,10 @@ class BrainManager:opinion/advice question; conversational coaching(``_is_conversational_coaching``); pointer; navigation; smalltalk;open-app; installed skill; connected-CLI capability; PC control.- 5. Strict mode (default): heavy research → artifact gate; else- generic sub-agent work (``has_action_intent`` & no capability) →- True. Permissive mode: action verb / external marker → True.+ 5. Strict mode (default): explicit-only — the explicit trigger+ already returned True in step 3, so everything else → False+ (maintainer mandate 2026-07-21). Permissive mode: action verb /+ external marker → True.6. Otherwise → False."""# A drag-dropped mission recap is a CONVERSATION about a FINISHED job,@@ -5372,69 +5375,31 @@ class BrainManager:# `brain.routing.force_spawn_mode = "permissive"`.mode = (self._config.brain.routing.force_spawn_mode or "strict").lower()if mode == "strict":- # Explicit trigger phrases already returned True above (AD-S9- # moved that check ahead of the skill guard for every mode).- # 2026-06-01: the sub-agent is the universal capability for generic- # work. The capability gate no longer refuses such tasks, so spawn- # them natively here — the user must NOT have to say "Subagent". A- # request the registry recognises as an action that no capability- # resolves AND that needs no SPECIFIC external integration- # (mail/calendar/Spotify/social/delivery) is generic sub-agent work.- # Live forensic 2026-06-01: a sub-agent task was refused, then only- # spawned once the user said "Subagent" explicitly.- # Heavy research routing (Option A, 2026-06-15): a research request- # whose deliverable is an ANSWER (comparison / overview /- # recommendation / summary) is answered INLINE via the router's- # search_web tool — fast, and it avoids the empty-diff critic veto the- # Worker->Critic pipeline applies to answer-only research (it grades- # built artifacts via git diff and cannot verify a spoken answer or a- # web citation → critic_loop_exhausted, live mission 019ecb56).- # Offload to a mission ONLY when the request asks for a BUILT ARTIFACT- # (a file / report) the critic can verify. The inline brain is- # protected from the no-first-frame TTS ceiling by- # _brain_thinking_heartbeat, so inline research no longer beheads the- # voice turn — the reason this offload existed (the long-haul- # trip-research turn) is separately fixed. An EXPLICIT mission phrase ("sub-agent"/"deep- # dive"/"umfassende"/...) already returned True above (AD-S9 trigger).- if self._is_heavy_research(t):- return self._research_wants_artifact(t)- # A request to BUILD a deliverable (an HTML file / website / app /- # report / document / visualization) is a sub-agent MISSION even- # without a research verb — the Worker->Critic pipeline verifies the- # built artefact via git diff. This fires PROVIDER-INDEPENDENTLY: a- # tool-incapable talker (Codex/Antigravity subscription CLI) cannot- # spawn via an LLM tool_call, so the deterministic gate is its only- # spawn path. Live bug 2026-06-21: "build me an HTML file for my- # vacation" fell to the Antigravity deep brain, which (no- # tools) only asked permission instead of building. NOT a Computer-Use- # trigger: a build verb is not a screen action — "open/show the file"- # stays Computer-Use via match_local_action; a bare question is caught- # by the instructional guard above. _research_wants_artifact requires- # a build verb, so a pure answer ("write a short summary") stays inline.- if self._research_wants_artifact(t):- return True- # A turn in QUESTION form is conversation: the user asks, Jarvis- # answers inline (search_web stays available). The generic-work- # path rests on has_action_intent, whose verb catalogue collides- # with everyday nouns ("Frage" -> "frag", "Buch" -> "buch"), so a- # plain knowledge question could still be classified as generic- # sub-agent work and force-spawn a full worker (live bug- # 2026-07-16, voice session 11:49: "…ganz generelle Frage, wie- # viel Geld hat Elon Musk gerade aktuell?" dispatched an Opus- # mission for a one-search answer; user mandate: a Jarvis-Agent- # needs a command or an explicitly named vehicle, never a- # question). Explicit triggers returned True above (AD-S9) and- # artifact builds returned just before this, so a question that- # genuinely commissions heavy work still spawns; a working- # question ("Kannst du X fixen?") keeps LLM discretion — the- # spawn tools stay in its surface on action-intent turns.- if _is_plain_knowledge_question(t):- log.info(- "force-spawn skipped: question-form turn — generic-work "- "path needs a command, answering inline"- )- return False- return self._is_generic_subagent_work(t)+ # Maintainer mandate 2026-07-21 (voice session 07:46): a background+ # agent starts ONLY on an explicit request — the user names the+ # vehicle or a delegation/depth trigger (``force_spawn_phrases``;+ # the AD-S9 hoist above already returned True for those). Every+ # IMPLICIT strict-mode spawn path is retired:+ # - generic sub-agent work (``_is_generic_subagent_work``,+ # 2026-06-01): its ``has_action_intent`` verb catalogue collides+ # with everyday nouns — the live trigger for this mandate was+ # "…wann die beste Zeit ist, um … bei Hacker News und Post+ # abzusetzen", where the noun "Post" matched the action verb+ # "post" and dispatched a full mission for an info question;+ # - heavy research with an artifact deliverable (Option A,+ # 2026-06-15) and the build-a-deliverable gate (2026-06-21):+ # a build command without delegation wording no longer spawns+ # silently — the router LLM answers inline or OFFERS a+ # background agent (``jarvis.brain.spawn_gate``), and the+ # user's confirming yes unlocks exactly one spawn.+ # The legacy verb/marker heuristic stays available via+ # ``force_spawn_mode = "permissive"``.+ log.info(+ "force-spawn skipped: strict mode is explicit-only — no "+ "delegation trigger in %r",+ t[:80],+ )+ return Falseif verb_re.search(t):return Trueif marker_re.search(t):@@ -5445,12 +5410,17 @@ class BrainManager:"""True iff the utterance is generic, sub-agent-fulfillable work.Mirrors the capability gate's class exactly — an action the registry- recognises that no capability resolves — but FLIPS the verdict from- "refuse" to "spawn". A specific external integration the worker cannot- satisfy (mail/calendar/Spotify/social/delivery) is excluded so it keeps- the honest refusal. Defensive: an unavailable/empty registry returns- False so the explicit-trigger path stays the sole strict-mode spawn- signal (mirrors the empty-registry guard in _check_unsupported_intent).+ recognises that no capability resolves. A specific external integration+ the worker cannot satisfy (mail/calendar/Spotify/social/delivery) is+ excluded so it keeps the honest refusal. Defensive: an unavailable/empty+ registry returns False (mirrors the empty-registry guard in+ _check_unsupported_intent).++ RETIRED from the spawn decision 2026-07-21 (strict mode is+ explicit-only): ``has_action_intent``'s verb catalogue collides with+ everyday nouns ("Post" → verb "post"), which dispatched a full mission+ for a plain info question. Kept as a classifier for the refusal gate's+ mirror logic and tests."""if requires_external_integration(t):return False@@ -6636,8 +6606,8 @@ class BrainManager:tid = trace_id or uuid4()context_hints: list[str] = [- "Deterministically delegated (persona mandate phase 3): "- "verb/marker heuristic triggered, smalltalk allowlist did not.",+ "Deterministically delegated: the user's turn matched an explicit "+ "delegation trigger (or the opt-in permissive verb heuristic).",]# Bug fix 2026-04-30: pass conversation history to the worker so# follow-up questions ("erklaer das genauer") do not spawn into adiff --git a/jarvis/core/config.py b/jarvis/core/config.pyindex d05934035d..f33b613143 100644--- a/jarvis/core/config.py+++ b/jarvis/core/config.py@@ -653,7 +653,13 @@ class BrainRoutingConfig(BaseModel):# Force-Spawn-Mode: "strict" honours only `force_spawn_phrases`,# "permissive" falls back to the legacy spawn_verbs + external markers- # heuristic. Default is "strict" per user mandate 2026-05-14.+ # heuristic. Default is "strict" per user mandate 2026-05-14; since the+ # 2026-07-21 mandate strict is EXPLICIT-ONLY — a background agent starts+ # only when the user names the vehicle or a delegation/depth trigger from+ # `force_spawn_phrases`. The former implicit strict-mode spawns (generic+ # sub-agent work, heavy-research artifacts, build-a-deliverable) are+ # retired; non-explicit heavy tasks are answered inline or OFFERED as a+ # delegation the user confirms (jarvis/brain/spawn_gate.py).force_spawn_mode: str = "strict"# Intelligent router (2026-06-21 user mandate "Jarvis must choose wisely among@@ -686,16 +692,14 @@ class BrainRoutingConfig(BaseModel):# jarvis.missions.init._assemble_worker_mcp_servers.worker_mcp_relevance_filter: bool = True- # Heavy-research force-spawn (live bug 2026-06-14, a long-haul trip-research- # turn): a multi-step research/analysis request must be OFFLOADED to a- # background mission, not run inline on the deep brain where it blows the- # ~20 s voice budget and gets beheaded. Conjunctive gate (precision over- # recall): a research/analysis VERB must be present AND a heaviness signal —- # a horizon/multi-step marker, OR >= heavy_research_min_verbs_multiclause- # verb matches (multi-clause), OR length >= heavy_research_min_chars with a- # verb. Length alone never spawns; a quick "recherchier das mal kurz" stays- # inline. Strict-mode only, evaluated after every stand-down guard (skills /- # open-app / instructional / nav / pointer still win). See ADR-0011.+ # Heavy-research classifier (live bug 2026-06-14, a long-haul trip-research+ # turn). Conjunctive gate (precision over recall): a research/analysis VERB+ # must be present AND a heaviness signal — a horizon/multi-step marker, OR+ # >= heavy_research_min_verbs_multiclause verb matches (multi-clause), OR+ # length >= heavy_research_min_chars with a verb. RETIRED from the spawn+ # decision 2026-07-21 (strict mode is explicit-only; see force_spawn_mode+ # above) — the fields stay for config compatibility and the classifier+ # remains available for telemetry/tests. See ADR-0011.heavy_research_enabled: bool = Trueheavy_research_verbs: list[str] = Field(default_factory=lambda: ["recherchier", "analysier", "untersuch", # i18n-allow: DE routing verb stemsdiff --git a/tests/unit/brain/test_artifact_build_routing.py b/tests/unit/brain/test_artifact_build_routing.pyindex 1e76512647..2822b278d9 100644--- a/tests/unit/brain/test_artifact_build_routing.py+++ b/tests/unit/brain/test_artifact_build_routing.py@@ -1,18 +1,18 @@-"""Build-a-deliverable requests must route to a sub-agent MISSION, not the brain.--Live bug 2026-06-21 (voice session 19:13): "I would like you to build me an HTML-file ... visualize ... how I can prepare my vacation to Melbourne" fell through to-the deep brain (Antigravity, a tool-incapable CLI) which — unable to call any tool-— just asked permission ("should I create the file on your disk?") instead of-building anything. A build-a-deliverable request (HTML/website/app/report/-document/visualization/file) is a sub-agent mission: the Worker->Critic pipeline-verifies the built artifact via git diff.--The fix must be PROVIDER-INDEPENDENT (the deterministic force-spawn gate), because-a tool-incapable talker (Codex/Antigravity over a subscription CLI) cannot spawn-via an LLM tool_call at all — the gate is the only spawn path for it. It must NOT-over-trigger: a build verb is not a screen action, so "open/show the file" stays-Computer-Use and pure questions/answers stay inline.+"""Build-a-deliverable requests without an explicit delegation trigger stay inline.++History: the 2026-06-21 fix (voice session 19:13, "build me an HTML file ...")+made build-a-deliverable requests force-spawn a mission deterministically,+because a tool-incapable talker could not spawn via an LLM tool_call. The+maintainer mandate 2026-07-21 SUPERSEDES that implicit spawn: a background+agent starts ONLY on an explicit ask (``force_spawn_phrases``: "spawn",+"Subagent", "deep dive", the depth markers, …). A build command without+delegation wording is handled by the router LLM, which answers inline or+OFFERS a background agent (jarvis.brain.spawn_gate) — the user's confirming+yes unlocks exactly one spawn.++The artifact DISCRIMINATOR (``_research_wants_artifact``) stays intact — it+still powers the spawn-tool visibility gates — and an explicit trigger wrapped+around a build request still force-spawns.Deterministic — no LLM, no real brain."""@@ -57,14 +57,16 @@ FAILING = ()-def test_build_an_html_file_routes_to_a_mission() -> None:- assert _manager()._should_force_spawn(FAILING) is True, (- "a build-an-HTML-file request must force-spawn a sub-agent mission, not "- "fall through to the (tool-incapable) talker that just asks permission"+def test_build_an_html_file_no_longer_force_spawns_implicitly() -> None:+ assert _manager()._should_force_spawn(FAILING) is False, (+ "a build request without an explicit delegation trigger must not "+ "force-spawn (mandate 2026-07-21) — the router LLM answers inline or "+ "offers delegation")-# A build-a-deliverable request is a mission — DE + EN, even without a research verb.+# A build-a-deliverable request WITHOUT delegation wording — DE + EN. Since+# 2026-07-21 these stay inline (explicit-only strict mode)._BUILD_DELIVERABLE = ["Build me a website about my startup","Create a PDF report about the AI market",@@ -76,9 +78,23 @@ _BUILD_DELIVERABLE = [@pytest.mark.parametrize("utterance", _BUILD_DELIVERABLE)-def test_build_deliverable_force_spawns(utterance: str) -> None:+def test_build_deliverable_stays_inline_without_trigger(utterance: str) -> None:+ assert _manager()._should_force_spawn(utterance) is False, (+ f"build request {utterance!r} must not force-spawn without an "+ "explicit delegation trigger (mandate 2026-07-21)"+ )+++ "utterance",+ [+ "Spawne einen Agenten, der mir eine Website über mein Startup baut", # i18n-allow+ "Do a deep dive and build me a website about my startup",+ ],+)+def test_build_with_explicit_trigger_still_force_spawns(utterance: str) -> None:assert _manager()._should_force_spawn(utterance) is True, (- f"build-a-deliverable request {utterance!r} should route to a mission"+ f"explicit delegation wording in {utterance!r} must still force-spawn")diff --git a/tests/unit/brain/test_on_screen_routing.py b/tests/unit/brain/test_on_screen_routing.pyindex 063221b323..a3ba64d797 100644--- a/tests/unit/brain/test_on_screen_routing.py+++ b/tests/unit/brain/test_on_screen_routing.py@@ -84,12 +84,13 @@ def test_explicit_screen_never_force_spawns(utterance: str) -> None:)-def test_build_and_show_on_screen_still_spawns_a_mission() -> None:- """A build-a-deliverable request that ALSO mentions the screen must still- spawn the mission — the build wins over the pc-control stand-down."""+def test_build_and_show_on_screen_stays_inline_without_trigger() -> None:+ """A build-a-deliverable request that mentions the screen no longer+ force-spawns implicitly (mandate 2026-07-21: strict mode is explicit-only)+ — the router LLM handles it inline or offers delegation."""assert _manager()._should_force_spawn("Bau mir eine Website und zeig sie mir am Bildschirm" # i18n-allow- ) is True+ ) is Falsedef test_screen_knowledge_question_does_not_force_spawn() -> None:diff --git a/tests/unit/brain/test_routing.py b/tests/unit/brain/test_routing.pyindex f1b7835c54..2e2dccea4f 100644--- a/tests/unit/brain/test_routing.py+++ b/tests/unit/brain/test_routing.py@@ -1319,6 +1319,44 @@ def test_question_form_never_reaches_generic_work_spawn(utterance: str) -> None:reg._caps.update(snapshot) # noqa: SLF001+def test_declarative_info_request_never_force_spawns() -> None:+ """Live bug 2026-07-21 (voice session 07:46): "Ich will wissen, was heute+ alles Wichtiges ansteht und wann die beste Zeit ist, um von Deutschland bei+ Hacker News und Post abzusetzen." dispatched a full background mission —+ the noun "Post" matched the universal action verb "post", the declarative+ opener ("Ich will wissen") dodged the question-form stand-down, and the+ generic-work path spawned. Maintainer mandate from the same day: agents+ start ONLY on an explicit ask. Strict mode is now explicit-only, so this+ turn must stay inline; adding an explicit trigger must still spawn."""+ from jarvis.core.capabilities import get_registry+ from jarvis.core.capabilities_seed import seed_registry++ reg = get_registry()+ snapshot = dict(reg._caps) # noqa: SLF001 — test fixture state restore+ seed_registry(reg)+ try:+ manager, _executor = _manager_with_spawn(force_spawn_mode="strict")+ utterance = (+ "Ich will wissen, was heute alles Wichtiges ansteht und wann die "+ "beste Zeit ist, um von Deutschland bei Hacker News und Post "+ "abzusetzen."+ ) # i18n-allow: German voice fixture (the live utterance under test)+ assert manager._should_force_spawn(utterance) is False, (+ "a declarative info request must never force-spawn a mission "+ "(mandate 2026-07-21: explicit ask only)"+ )+ explicit = (+ "Mach mal einen Deep Dive mit einem Agenten zu den heutigen "+ "Schlagzeilen."+ ) # i18n-allow: German voice fixture (explicit delegation phrasing)+ assert manager._should_force_spawn(explicit) is True, (+ "an explicit 'Deep Dive mit einem Agenten' ask must still spawn"+ )+ finally:+ reg._caps.clear() # noqa: SLF001+ reg._caps.update(snapshot) # noqa: SLF001++def test_explicit_trigger_question_still_spawns() -> None:"""Naming the vehicle stays unambiguous even in question form — the AD-S9hoist runs BEFORE the question-form stand-down (user mandate 2026-06-15)."""@@ -2342,10 +2380,14 @@ def _strict_manager_with_mock_registry(return manager-def test_generic_work_spawns_natively_in_strict_mode() -> None:- """A generic work task (build/analyse/fix) with no capability and no- external integration must spawn a sub-agent natively in STRICT mode —- without the user uttering an explicit 'Subagent'/'spawn' trigger."""+def test_generic_work_stays_inline_in_strict_mode() -> None:+ """A generic work task (build/analyse/fix) WITHOUT an explicit delegation+ trigger must NOT force-spawn in STRICT mode (maintainer mandate 2026-07-21:+ agents start only on an explicit ask — the router LLM answers inline or+ OFFERS delegation via jarvis.brain.spawn_gate). Reverses the 2026-06-01+ native-spawn contract; note "analysier"/"fix"/"implementier" still spawn+ the moment the user adds a vehicle/trigger word ("spawn", "Subagent",+ "deep dive", the depth markers, …)."""original = __import__("sys").modules.get("jarvis.core.capabilities")try:manager = _strict_manager_with_mock_registry()@@ -2354,8 +2396,9 @@ def test_generic_work_spawns_natively_in_strict_mode() -> None:"fix den Bug in der Authentifizierung","implementier eine Funktion die CSV nach JSON konvertiert",):- assert manager._should_force_spawn(utterance), (- f"generic work {utterance!r} must spawn natively in strict mode"+ assert not manager._should_force_spawn(utterance), (+ f"generic work {utterance!r} must NOT spawn without an "+ "explicit delegation trigger (mandate 2026-07-21)")finally:if original is not None:@@ -2411,9 +2454,11 @@ def test_external_integration_without_capability_stays_unsupported() -> None:def test_coding_task_mentioning_integration_is_not_refused() -> None:"""A coding task that merely MENTIONS an integration name as a topic /data-type (email validator, calendar parser, Spotify-like player) is generic- sub-agent work — NOT a real dispatch. It must spawn, never be refused. The+ sub-agent work — NOT a real dispatch. It must never be refused. Theintegration name alone is not enough; a real dispatch verb must be present- (code-review MAJOR, 2026-06-01)."""+ (code-review MAJOR, 2026-06-01). Since 2026-07-21 it no longer FORCE-spawns+ either (strict mode is explicit-only) — the router LLM handles it inline or+ offers delegation."""original = __import__("sys").modules.get("jarvis.core.capabilities")try:manager = _strict_manager_with_mock_registry()@@ -2426,8 +2471,9 @@ def test_coding_task_mentioning_integration_is_not_refused() -> None:f"coding task {utterance!r} must not be refused (mentions an ""integration name only as data, not a dispatch target)")- assert manager._should_force_spawn(utterance), (- f"coding task {utterance!r} must spawn a sub-agent"+ assert not manager._should_force_spawn(utterance), (+ f"coding task {utterance!r} must not force-spawn without an "+ "explicit delegation trigger (mandate 2026-07-21)")finally:if original is not None:@@ -2455,13 +2501,15 @@ def test_is_generic_subagent_work_false_on_empty_registry() -> None:def test_github_work_is_not_treated_as_external_integration() -> None:"""git/GitHub work is sub-agent-fulfillable (the worker has git + gh), so a- 'commit and push' / 'open a PR' task must spawn, never be refused."""+ 'commit and push' / 'open a PR' task must never be refused. Since+ 2026-07-21 it no longer FORCE-spawns without an explicit delegation trigger+ (strict mode is explicit-only)."""original = __import__("sys").modules.get("jarvis.core.capabilities")try:manager = _strict_manager_with_mock_registry()utterance = "committe die Aenderungen und mach einen GitHub Pull Request"assert manager._check_unsupported_intent(utterance) is None- assert manager._should_force_spawn(utterance)+ assert not manager._should_force_spawn(utterance)finally:if original is not None:__import__("sys").modules["jarvis.core.capabilities"] = original@@ -2938,35 +2986,41 @@ async def test_external_task_without_trigger_still_refuses() -> None:assert reply, "expected an honest refusal reply, got empty"-def test_heavy_research_force_spawns_only_when_it_builds_an_artifact() -> None:- """Option A (2026-06-15): heavy research force-spawns a mission ONLY when it- asks for a BUILT ARTIFACT (a file/report the Worker->Critic pipeline can- verify via git diff). Answer-only research routes INLINE via the router's- search_web tool.-- Reverses the WS3a contract (2026-06-14): that offloaded the answer-only- long-haul trip-research prompt to a mission to dodge the ~20s no-first-frame voice- ceiling. That ceiling is now re-armed from `_brain_thinking_heartbeat`, so- inline research no longer beheads the turn — and the Worker->Critic pipeline- can't grade an answer-only research turn anyway (empty-diff veto ->- critic_loop_exhausted, live mission 019ecb56)."""+def test_heavy_research_never_force_spawns_without_explicit_trigger() -> None:+ """Maintainer mandate 2026-07-21 (strict mode is explicit-only): heavy+ research does NOT force-spawn a mission — not even when it asks for a+ BUILT ARTIFACT — unless the turn carries an explicit delegation trigger+ (``force_spawn_phrases``: "spawn", "Subagent", "deep dive", the DE depth+ markers, …). Supersedes Option A (2026-06-15), which offloaded+ artifact-building research implicitly. The classifiers themselves stay+ intact (pinned here) — the router LLM uses the inline path or OFFERS+ delegation via jarvis.brain.spawn_gate."""manager, _ = _manager_with_spawn(force_spawn_mode="strict")- # Answer-only heavy research -> INLINE (the reversal).+ # Answer-only heavy research -> INLINE (unchanged since Option A).answer_only = _HEAVY_RESEARCH_SHOULD_SPAWN[0]assert manager._is_heavy_research(answer_only) is Trueassert manager._should_force_spawn(answer_only) is False, (- "answer-only heavy research must route inline (Option A)"+ "answer-only heavy research must route inline")- # Heavy research that BUILDS a file/report -> still a mission (no explicit- # phrase; spawns purely via the heavy-research + artefact path).+ # Heavy research that BUILDS a file/report: classifiers still fire, but the+ # spawn now requires an explicit delegation trigger.artifact = ("Research and compare the top five vector databases, then write a ""detailed comparison report into a file named compare.md")assert manager._is_heavy_research(artifact) is Trueassert manager._research_wants_artifact(artifact) is True- assert manager._should_force_spawn(artifact) is True, (- "research that builds a verifiable artefact must still force-spawn"+ assert manager._should_force_spawn(artifact) is False, (+ "artifact research without an explicit delegation trigger must not "+ "force-spawn (mandate 2026-07-21)"+ )+ # The same request WITH an explicit depth trigger still spawns.+ explicit = (+ "Mach einen Deep Dive: research the top five vector databases and "+ "write a comparison report into compare.md"+ )+ assert manager._should_force_spawn(explicit) is True, (+ "an explicit delegation/depth trigger must still force-spawn")