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(skills): take the relevance layer out of shadow mode

rubenluetke10-beep9d1547862e21
diff --git a/jarvis/brain/manager.py b/jarvis/brain/manager.py
index 361ca208f6..5d1225e36a 100644
--- a/jarvis/brain/manager.py
+++ b/jarvis/brain/manager.py
@@ -5039,7 +5039,9 @@ class BrainManager:
)
return None
- if bool(getattr(cfg, "relevance_shadow", True)):
+ # Fallback mirrors the SkillsConfig default (False since
+ # 2026-08-12) so a duck-typed config cannot silently re-shadow.
+ if bool(getattr(cfg, "relevance_shadow", False)):
# Shadow mode: record what WOULD have happened, change nothing.
# The narrowed candidate hint still ships, so the model keeps
# the benefit while the maintainer reviews real decisions.
@@ -6216,9 +6218,16 @@ class BrainManager:
# Two agents told to "split the work between you" must get DIFFERENT
# briefs — the same sentence twice is two agents racing on one file.
# Only an explicit request plans a split: it costs a provider call, and
- # "both of you run the tests" is one order for two agents.
+ # "both of you run the tests" is one order for two agents. A division
+ # the user enumerated THEMSELVES ("one fixes the macOS bug, one the
+ # Linux bug") is exactly as explicit and takes the same path — without
+ # it, both panes received the whole enumeration and raced on the first
+ # slice (maintainer report 2026-08-12).
assignments: dict[str, str] | None = None
- if len(names) > 1 and ide_intent.wants_split(user_text):
+ if len(names) > 1 and (
+ ide_intent.wants_split(user_text)
+ or ide_intent.distributes_tasks(found.instruction or user_text)
+ ):
try:
from jarvis.agentic_ide import work_split as ide_split
@@ -6609,7 +6618,41 @@ class BrainManager:
# turn, and the history it reads keeps moving underneath it.
spoken_before = self._agentic_ide_conversation(user_text)
assignments: dict[str, str] | None = None
- if len(names) > 1 and ide_intent.wants_split(user_text):
+
+ # A brief BY KIND names its own panes ("prompt the claudes to fix the
+ # tests, the codex should update the docs"), so it outranks both the
+ # shared brief and a planned split: the user has already divided the
+ # work, and every pane of a kind the brief does not name stays blank —
+ # that silence is what was asked for. Without this, all panes of a
+ # mixed fleet received the ENTIRE enumeration as their own task
+ # (maintainer report 2026-08-12).
+ try:
+ group_tasks = ide_intent.spawn_group_tasks(user_text)
+ except Exception: # noqa: BLE001 - the shared brief is still usable
+ log.warning("Agentic IDE spawned-fleet group parse failed", exc_info=True)
+ group_tasks = {}
+ if group_tasks:
+ per_pane: dict[str, str] = {}
+ for name in names:
+ term = session.find(name)
+ kind = str(getattr(term, "agent", "") or "") if term is not None else ""
+ task = group_tasks.get(kind)
+ if task:
+ per_pane[name] = task
+ if per_pane:
+ assignments = per_pane
+ names = [name for name in names if name in per_pane]
+ log.info(
+ "Agentic IDE spawned-fleet briefing: per-kind tasks for %s",
+ ", ".join(names),
+ )
+
+ # ``distributes_tasks`` reads the extracted TASK, never the utterance:
+ # the fleet description counts panes with the same words ("one Codex").
+ if assignments is None and len(names) > 1 and (
+ ide_intent.wants_split(user_text)
+ or ide_intent.distributes_tasks(instruction)
+ ):
try:
from jarvis.agentic_ide import work_split as ide_split
diff --git a/jarvis/core/config.py b/jarvis/core/config.py
index cc5ed534c8..b1a5933d6a 100644
--- a/jarvis/core/config.py
+++ b/jarvis/core/config.py
@@ -1347,12 +1347,16 @@ class SkillsConfig(BaseModel):
relevance_enabled: bool = True
#: While true, a FIRE-band relevance match is RECORDED but does not capture
- #: the turn — the narrowed candidate hint still ships. Default true for the
- #: first release: the maintainer reviews a day of real decisions via
- #: ``GET /api/skills/match-log`` and flips this off on measured numbers,
- #: rather than on a hunch about a layer that can rewrite a turn's
- #: instructions.
- relevance_shadow: bool = True
+ #: the turn — the narrowed candidate hint still ships. Shipped true for the
+ #: first release so real decisions could be reviewed via
+ #: ``GET /api/skills/match-log`` before the layer was allowed to act.
+ #: Flipped to false on 2026-08-12 after that review ran its course: 14 days
+ #: of live telemetry showed zero FIRE-band relevance events (nothing to
+ #: capture, nothing miscaptured) while every paraphrase fell through to a
+ #: model that never called run-skill on its own. The guards that made the
+ #: shadow default safe (dispatching-class veto, clear-winner margin,
+ #: definitional-question guard, min-band floor) all remain armed.
+ relevance_shadow: bool = False
#: Weakest band allowed to capture a turn. Anything below stays a
#: suggestion the model may ignore.
diff --git a/jarvis/ui/web/skills_routes.py b/jarvis/ui/web/skills_routes.py
index cf4aed065b..661718e9ae 100644
--- a/jarvis/ui/web/skills_routes.py
+++ b/jarvis/ui/web/skills_routes.py
@@ -612,7 +612,8 @@ async def match_test(request: Request, body: MatchTestRequest) -> dict[str, Any]
config = getattr(request.app.state, "config", None)
skills_cfg = getattr(config, "skills", None)
min_band = str(getattr(skills_cfg, "auto_fire_min_band", "fire"))
- shadow = bool(getattr(skills_cfg, "relevance_shadow", True))
+ # Fallback mirrors the SkillsConfig default (False since 2026-08-12).
+ shadow = bool(getattr(skills_cfg, "relevance_shadow", False))
enabled = bool(getattr(skills_cfg, "relevance_enabled", True))
decision = evaluate_match(
@@ -1197,6 +1198,22 @@ async def search_catalog(
brain = getattr(request.app.state, "brain", None)
finder = SkillFinder(brain=brain)
+ # Warm the community index cache (TTL-gated, short timeouts) so
+ # marketplace skills appear in the pool even when the Plugins view never
+ # ran a fetch this session. Offline: get_index degrades to cache/empty and
+ # the finder reads only the cache — search itself never blocks on this
+ # beyond the bounded fetch.
+ try:
+ from jarvis.marketplace.community_source import get_index
+
+ await get_index()
+ except Exception: # noqa: BLE001 - community feed is optional for search
+ import logging
+
+ logging.getLogger(__name__).warning(
+ "community index warm-up failed", exc_info=True
+ )
+
# Type conversion: Pydantic doesn't allow a Literal union directly as a query param
trust_val: Any = body.trust if body.trust in ("any", "official", "verified", "community", "experimental") else "any"