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(missions): the completion readback files a deliverable "as an artifact", never in a named folder

rubenluetke10-beep1399849301b4
diff --git a/jarvis/missions/kontrollierer/deliverable.py b/jarvis/missions/kontrollierer/deliverable.py
index c11344e4ad..99e5d367a0 100644
--- a/jarvis/missions/kontrollierer/deliverable.py
+++ b/jarvis/missions/kontrollierer/deliverable.py
@@ -90,31 +90,27 @@ _DELIVERABLES_FOLDER_NAME: Final[str] = "Jarvis-Outputs"
#: and ``en`` only — Spanish dispatch falls back to ``de`` at the spawn layer
#: (the ``Literal["de","en"]`` dispatch contract). "Datei" / "File" stay outside
#: the scrub blacklist so they survive ``scrub_for_voice``.
+# What the completion readback SAYS about where a deliverable went. Since
+# 2026-08-23 the answer is always "as an artifact": the Outputs section folded
+# into Artifacts, and the maintainer's rule is that Jarvis never names the
+# Jarvis-Outputs folder aloud again — a person looks in the Artifacts section,
+# not in a directory. Both tables say the same thing; the "delivered" variant
+# exists for the caller that also mirrored the files to disk, and it no longer
+# speaks the folder name either.
_DELIVERABLE_TEMPLATES: Final[dict[str, dict[str, str]]] = {
"de": {
- "one": "Fertig. Datei {name} ist gespeichert.",
- "few": "Fertig. {count} Dateien gespeichert: {joined}.",
- "many": "Fertig. {count} Dateien gespeichert.",
+ "one": "Fertig. {name} habe ich als Artefakt hinterlegt.", # i18n-allow
+ "few": "Fertig. {count} Dateien als Artefakte hinterlegt: {joined}.", # i18n-allow
+ "many": "Fertig. {count} Dateien als Artefakte hinterlegt.", # i18n-allow
},
"en": {
- "one": "Done. File {name} is saved.",
- "few": "Done. {count} files saved: {joined}.",
- "many": "Done. {count} files saved.",
+ "one": "Done. I've filed {name} as an artifact.",
+ "few": "Done. {count} files filed as artifacts: {joined}.",
+ "many": "Done. {count} files filed as artifacts.",
},
}
-_DELIVERED_TEMPLATES: Final[dict[str, dict[str, str]]] = {
- "de": {
- "one": "Fertig. Datei {name} liegt im Ordner {folder}.",
- "few": "Fertig. {count} Dateien im Ordner {folder}: {joined}.",
- "many": "Fertig. {count} Dateien im Ordner {folder} gespeichert.",
- },
- "en": {
- "one": "Done. File {name} is in the folder {folder}.",
- "few": "Done. {count} files in the folder {folder}: {joined}.",
- "many": "Done. {count} files in the folder {folder}.",
- },
-}
+_DELIVERED_TEMPLATES: Final[dict[str, dict[str, str]]] = _DELIVERABLE_TEMPLATES
def _templates(table: dict[str, dict[str, str]], language: str) -> dict[str, str]:
@@ -465,11 +461,12 @@ def deliver_to_user_folder(
def build_delivered_summary(delivered: list[Path], *, language: str = "de") -> str:
- """TTS-safe sentence naming delivered files AND their folder.
+ """TTS-safe sentence naming delivered files as artifacts.
- Unlike :func:`build_deliverable_summary` (which only names the archive
- basenames), this also tells the user WHERE the file landed so they can open
- it. Empty string when nothing was delivered (caller falls back).
+ Until 2026-08-23 this also spoke the mirror folder's name ("liegt im Ordner
+ Jarvis-Outputs"). It no longer does: the place a person looks is the
+ Artifacts section, and the maintainer asked that the folder never be named
+ aloud again. Empty string when nothing was delivered (caller falls back).
Args:
delivered: the on-disk paths the deliverables were mirrored to.
@@ -478,16 +475,15 @@ def build_delivered_summary(delivered: list[Path], *, language: str = "de") -> s
"""
if not delivered:
return ""
- folder = delivered[0].parent
names = [p.name for p in delivered]
tpl = _templates(_DELIVERED_TEMPLATES, language)
count = len(names)
if count == 1:
- return tpl["one"].format(name=names[0], folder=folder.name)
+ return tpl["one"].format(name=names[0])
if count <= _MAX_NAMED_FILES:
joined = ", ".join(names)
- return tpl["few"].format(count=count, folder=folder.name, joined=joined)
- return tpl["many"].format(count=count, folder=folder.name)
+ return tpl["few"].format(count=count, joined=joined)
+ return tpl["many"].format(count=count)
__all__ = [
diff --git a/tests/missions/kontrollierer/test_answer_document.py b/tests/missions/kontrollierer/test_answer_document.py
index 8001a57c93..34efd0fdf1 100644
--- a/tests/missions/kontrollierer/test_answer_document.py
+++ b/tests/missions/kontrollierer/test_answer_document.py
@@ -87,7 +87,7 @@ def test_report_is_found_by_build_deliverable_summary(tmp_path: Path) -> None:
assert out is not None
summary = build_deliverable_summary(tmp_path)
assert out.name in summary
- assert "Datei" in summary
+ assert "Artefakt" in summary # i18n-allow: DE readback
def test_existing_file_deliverable_suppresses_report(tmp_path: Path) -> None:
diff --git a/tests/missions/kontrollierer/test_deliver_to_user_folder.py b/tests/missions/kontrollierer/test_deliver_to_user_folder.py
index b716e8980d..e92669aa06 100644
--- a/tests/missions/kontrollierer/test_deliver_to_user_folder.py
+++ b/tests/missions/kontrollierer/test_deliver_to_user_folder.py
@@ -92,7 +92,9 @@ def test_build_delivered_summary_single(tmp_path: Path) -> None:
f.write_text("x", encoding="utf-8")
out = build_delivered_summary([f])
assert "report.html" in out
- assert "Jarvis-Outputs" in out
+ # The folder is never spoken (maintainer 2026-08-23): the file is "an artifact".
+ assert "Jarvis-Outputs" not in out
+ assert "Artefakt" in out # i18n-allow: asserts the German TTS readback text
assert out.startswith("Fertig.") # i18n-allow: asserts the German TTS readback text
diff --git a/tests/missions/kontrollierer/test_deliverable.py b/tests/missions/kontrollierer/test_deliverable.py
index 4c58d14f88..b059d79f1e 100644
--- a/tests/missions/kontrollierer/test_deliverable.py
+++ b/tests/missions/kontrollierer/test_deliverable.py
@@ -33,14 +33,14 @@ def test_tasks_dir_without_artifacts_returns_empty(tmp_path: Path) -> None:
def test_single_file_is_named(tmp_path: Path) -> None:
- """One archived file → 'Fertig. Datei X ist gespeichert.'""" # i18n-allow: quotes the German TTS readback
+ """One archived file → the German 'filed as an artifact' readback."""
files = tmp_path / "tasks" / "019e63c5-5855" / "artifacts" / "files"
files.mkdir(parents=True)
(files / "landing.html").write_text("<html/>", encoding="utf-8")
s = build_deliverable_summary(tmp_path)
assert "landing.html" in s, f"filename must appear in summary, got {s!r}"
- assert "Datei" in s # i18n-allow: asserts the German TTS readback text
- assert "gespeichert" in s # i18n-allow: asserts the German TTS readback text
+ assert "Artefakt" in s # i18n-allow: asserts the German TTS readback text
+ assert "Artefakt" in s # i18n-allow: asserts the German TTS readback text
def test_two_files_are_named(tmp_path: Path) -> None:
@@ -125,8 +125,8 @@ def test_single_file_summary_in_english(tmp_path: Path) -> None:
(files / "landing.html").write_text("<html/>", encoding="utf-8")
s = build_deliverable_summary(tmp_path, language="en")
assert "landing.html" in s, f"filename must appear, got {s!r}"
- assert "saved" in s
- assert "Datei" not in s and "gespeichert" not in s, ( # i18n-allow: asserts absence of the German TTS words
+ assert "artifact" in s
+ assert "Datei" not in s and "Artefakt" not in s, ( # i18n-allow: asserts absence
f"English summary must not contain German words: {s!r}"
)
@@ -148,31 +148,35 @@ def test_deliverable_summary_defaults_to_german(tmp_path: Path) -> None:
files = tmp_path / "tasks" / "019e63c5-5855" / "artifacts" / "files"
files.mkdir(parents=True)
(files / "landing.html").write_text("<html/>", encoding="utf-8")
- assert "Datei" in build_deliverable_summary(tmp_path)
+ assert "Artefakt" in build_deliverable_summary(tmp_path) # i18n-allow: DE readback
def test_delivered_summary_in_english(tmp_path: Path) -> None:
- """build_delivered_summary names the folder in English when asked."""
+ """build_delivered_summary says "as an artifact" in English when asked —
+ and never names the mirror folder (maintainer 2026-08-23)."""
folder = tmp_path / "Jarvis-Outputs"
folder.mkdir()
f = folder / "report.md"
f.write_text("x", encoding="utf-8")
s = build_delivered_summary([f], language="en")
assert "report.md" in s
- assert "folder" in s and "Jarvis-Outputs" in s
+ assert "artifact" in s
+ assert "Jarvis-Outputs" not in s and "folder" not in s
assert "Datei" not in s and "Ordner" not in s, (
f"English delivered summary must not contain German words: {s!r}"
)
def test_delivered_summary_defaults_to_german(tmp_path: Path) -> None:
- """No language arg keeps the historical German output (back-compat)."""
+ """No language arg keeps the German output (back-compat) — as an artifact,
+ never as a folder."""
folder = tmp_path / "Jarvis-Outputs"
folder.mkdir()
f = folder / "report.md"
f.write_text("x", encoding="utf-8")
s = build_delivered_summary([f])
- assert "Ordner" in s and "Datei" in s
+ assert "Artefakt" in s # i18n-allow: asserts the German TTS readback text
+ assert "Ordner" not in s and "Jarvis-Outputs" not in s # i18n-allow: asserts absence
# --- End-of-chain seam ------------------------------------------------------