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): report a curator no-op as tool failure so the brain cannot claim a phantom write

Ruben Lütke27dbf7411985
diff --git a/jarvis/plugins/tool/wiki_ingest.py b/jarvis/plugins/tool/wiki_ingest.py
index c01ee7d956..6aada996fc 100644
--- a/jarvis/plugins/tool/wiki_ingest.py
+++ b/jarvis/plugins/tool/wiki_ingest.py
@@ -173,14 +173,18 @@ class WikiIngestTool:
failed = list(getattr(result, "failed_validation", []) or [])
if not applied and not skipped and not failed:
- # Curator legitimately decided this was not salient. Surface
- # that to the brain so it does not claim success.
+ # Curator judged the content not salient. The old success=True here made
+ # the model tell users "stored" when NOTHING was written (fresh-machine
+ # forensics Bug 12/18) -- a no-op is a failure from the caller's intent.
log.info("wiki-ingest: curator returned no updates (salience filter)")
return ToolResult(
- success=True,
- output=(
- "Curator decided the content was not salient enough to "
- "store. No pages were modified."
+ success=False,
+ output="",
+ error=(
+ "nothing was stored: the curator judged the content not salient "
+ "enough for the wiki. Tell the user the wiki was NOT updated; if "
+ "they explicitly asked to store this, apologize and suggest they "
+ "add it via the Wiki view instead."
),
)