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.

fix(wiki): accept noop on graph-visible candidate without topic page

Ruben Lütke3dfeb83a0855
diff --git a/jarvis/memory/wiki/consolidator.py b/jarvis/memory/wiki/consolidator.py
index 8ab0072c54..50617c3f67 100644
--- a/jarvis/memory/wiki/consolidator.py
+++ b/jarvis/memory/wiki/consolidator.py
@@ -1000,6 +1000,13 @@ class Consolidator:
return "decision array does not cover every candidate"
for cid, row in by_id.items():
+ if primary_decisions.get(cid) == "noop":
+ # A noop primary may not carry secondary writes (enforced
+ # above), so demanding a companion page or link repair here
+ # would make every legitimate noop on a graph-visible
+ # candidate structurally unanswerable — ALL providers fail
+ # the same check and the row wedges the chain forever.
+ continue
graph_target = self._graph_target(row)
if graph_target is None:
continue
diff --git a/tests/unit/memory/wiki/test_consolidator.py b/tests/unit/memory/wiki/test_consolidator.py
index 00c5cc0ca4..af2df007a4 100644
--- a/tests/unit/memory/wiki/test_consolidator.py
+++ b/tests/unit/memory/wiki/test_consolidator.py
@@ -1417,6 +1417,36 @@ async def test_noop_marks_row_without_writing(stack) -> None:
assert (vault_root / "entities" / "lena.md").read_text(encoding="utf-8") == before
+async def test_noop_on_graph_visible_fact_without_topic_page_is_accepted(stack) -> None:
+ """A noop primary may not carry secondary writes, so the graph-visibility
+ check must not demand a companion page for a nooped candidate — otherwise
+ a legitimate noop on a graph-visible kind whose topic page is missing is
+ structurally unanswerable and every provider fails the same validation."""
+ vault_root, _curator, journal = stack
+ journal.append(
+ [CandidateFact(
+ fact="The user has a personal user profile in their Wiki system.",
+ kind="asset", subjects=("user", "wiki-system"),
+ )],
+ source_label="realtime-session-sweep:meta", turn_hash="h-meta",
+ )
+ cid = journal.pending()[0].id
+ assert not (vault_root / "entities" / "wiki-system.md").exists()
+
+ brain = FakeBrain([_judge_json([{
+ "candidate_id": cid, "decision": "noop",
+ "reason": "meta chatter about the wiki itself, not durable knowledge",
+ }])])
+ consolidator = _consolidator(stack, brain)
+
+ label = await consolidator.run_once()
+
+ assert label == "journal-batch:1"
+ assert journal.pending() == []
+ assert not (vault_root / "entities" / "wiki-system.md").exists()
+
+
@pytest.mark.asyncio
async def test_topic_question_candidate_is_presented_to_stage2_as_noop(stack) -> None:
vault_root, _curator, journal = stack