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
feat(wiki): batch three candidates per Stage-2 judge run
Ruben Lütke048296144727
diff --git a/jarvis/core/config.py b/jarvis/core/config.pyindex c3e0ea0bc0..61a2ea42e0 100644--- a/jarvis/core/config.py+++ b/jarvis/core/config.py@@ -1110,10 +1110,15 @@ class SchedulerConfig(BaseModel):periodic_interval_minutes: int = 30lock_path: Path = Path("data/wiki_curator.lock")lock_stale_after_seconds: int = 300- # A durable candidate should become visible in the vault without waiting- # for unrelated future conversation. The background consolidator may still- # coalesce candidates that arrive concurrently.- consolidate_after_candidates: int = 1+ # A durable candidate must become visible in the vault promptly, but not+ # necessarily on its own dedicated judge run: each Stage-2 run re-sends an+ # ~11k-char system prompt plus full neighbour page bodies, so firing per+ # candidate multiplied that fixed cost across every fact-yielding turn+ # (2026-07-28 cost audit). Three coalesces an active conversation's burst+ # into one run, and the age flush below still bounds how long a LONE+ # candidate can wait — that pair is what keeps spec A4's visibility+ # promise.+ consolidate_after_candidates: int = 3# Age-based flush (spec A4): even below the count threshold, pending# candidates older than this become a JOURNAL trigger so a quiet fresh# install still produces visible pages. 0 disables the age flush.diff --git a/jarvis/memory/wiki/integration.py b/jarvis/memory/wiki/integration.pyindex 93312a23e1..315c4ff2d2 100644--- a/jarvis/memory/wiki/integration.py+++ b/jarvis/memory/wiki/integration.py@@ -489,11 +489,11 @@ async def bootstrap_wiki_integration(getattr(getattr(root_cfg, "wiki_scheduler", None),"consolidate_after_candidates",- # Fallback must match SchedulerConfig's own default (1).- # A larger fallback could resurrect a delayed- # pre-A4 threshold if the [wiki_scheduler] section were- # ever absent, silently undermining ambient capture.- 1,+ # Fallback must match SchedulerConfig's own default (3+ # since the 2026-07-28 cost audit — one judge run per+ # burst instead of one per candidate; the age flush+ # keeps a lone candidate's visibility bounded).+ 3,))extractor.attach_scheduler(scheduler, consolidate_after=threshold)diff --git a/tests/integration/memory/wiki/test_realtime_to_vault_e2e.py b/tests/integration/memory/wiki/test_realtime_to_vault_e2e.pyindex d70d48e9fa..18f4e8b8a5 100644--- a/tests/integration/memory/wiki/test_realtime_to_vault_e2e.py+++ b/tests/integration/memory/wiki/test_realtime_to_vault_e2e.py@@ -16,6 +16,7 @@ from jarvis.core.config import (BrainProviderConfig,JarvisConfig,MemoryConfig,+ SchedulerConfig,WikiMemoryConfig,)from jarvis.core.events import VoiceSessionEnded, VoiceTurnCompleted@@ -197,6 +198,11 @@ async def test_consecutive_realtime_reviews_write_to_selected_vault(providers={"test-provider": BrainProviderConfig(model="test-model")},),memory=MemoryConfig(wiki=WikiMemoryConfig()),+ # This E2E drives one fact per short call and expects each to land+ # in the vault immediately, so it pins per-candidate consolidation+ # explicitly (the SHIPPED default batches 3 per judge run since the+ # 2026-07-28 cost audit).+ wiki_scheduler=SchedulerConfig(consolidate_after_candidates=1),)assert config.memory.wiki.voice_bridge.rate_limit_seconds == 0assert config.wiki_scheduler.consolidate_after_candidates == 1diff --git a/tests/unit/memory/wiki/test_journal_age_flush.py b/tests/unit/memory/wiki/test_journal_age_flush.pyindex ed8e9cc2b4..f43a2e235c 100644--- a/tests/unit/memory/wiki/test_journal_age_flush.py+++ b/tests/unit/memory/wiki/test_journal_age_flush.py@@ -60,10 +60,14 @@ def test_oldest_pending_ms_ignores_consolidated_rows(tmp_path: Path) -> None:def test_default_consolidation_threshold_is_three() -> None:+ # 3 since the 2026-07-28 cost audit: one Stage-2 judge run per+ # conversation burst instead of one per candidate; the 10-minute age+ # flush below is what keeps a LONE candidate's visibility bounded+ # (spec A4's promise rests on the PAIR, not on the threshold alone).from jarvis.core.config import SchedulerConfigcfg = SchedulerConfig()- assert cfg.consolidate_after_candidates == 1+ assert cfg.consolidate_after_candidates == 3assert cfg.flush_pending_max_age_minutes == 10diff --git a/tests/unit/memory/wiki/test_scheduler_journal_trigger.py b/tests/unit/memory/wiki/test_scheduler_journal_trigger.pyindex 748cc0d531..3e5b5339a3 100644--- a/tests/unit/memory/wiki/test_scheduler_journal_trigger.py+++ b/tests/unit/memory/wiki/test_scheduler_journal_trigger.py@@ -276,7 +276,9 @@ async def test_journal_trigger_without_consolidator_skips(tmp_path: Path) -> Nondef test_scheduler_config_has_journal_pressure_threshold() -> None:- assert SchedulerConfig().consolidate_after_candidates == 1+ # 3 since the 2026-07-28 cost audit — see test_journal_age_flush for+ # why the age flush keeps spec A4's visibility promise at this value.+ assert SchedulerConfig().consolidate_after_candidates == 3# ---------------------------------------------------------------------------