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(workflows): the briefing never picks a weather city on its own (BUG-212)

rubenluetke10-beepba26d76b3dd3
diff --git a/jarvis/workflows/seed.py b/jarvis/workflows/seed.py
index be5e6b0ac9..0350942554 100644
--- a/jarvis/workflows/seed.py
+++ b/jarvis/workflows/seed.py
@@ -128,9 +128,11 @@ and move on. Never invent an event, a mail, a headline or a city.
sender and subject in one clause. Never read a mail body out.
3. Memory (wiki-recall): anything the user noted as due or planned for today.
4. World (search_web): the two or three headlines that matter most for the
- user's interests, each with its source named. If the user's city is known
- from memory, one clause of weather from search_web ("weather <city> today":
- current conditions, high and low). If no city is known, no weather.
+ user's interests, each with its source named. Weather ONLY if a tool result
+ in this turn explicitly names the user's home city: then one clause from
+ search_web ("weather <city> today": current conditions, high and low).
+ Never choose a city yourself, never take one from a headline or a mail; if
+ no home city came back from a tool, say nothing about the weather at all.
Then write the briefing: 5 to 8 short sentences, most important first, plain
prose for speech — no bullets, no headings, no emojis, no markdown, no URLs.
diff --git a/tests/unit/workflows/test_seed_scheduled.py b/tests/unit/workflows/test_seed_scheduled.py
index 53bc5a3864..886cf6d352 100644
--- a/tests/unit/workflows/test_seed_scheduled.py
+++ b/tests/unit/workflows/test_seed_scheduled.py
@@ -118,6 +118,9 @@ def test_the_briefing_prompt_grounds_itself_and_greets_by_time_of_day() -> None:
assert "Never invent" in prompt
assert "time of day" in prompt
assert "not connected" in prompt, "a disconnected area is skipped, not faked"
+ # Live dev run 2026-09-02 11:43: with "if the user's city is known from
+ # memory" the model reported San Francisco weather to a user in Germany.
+ assert "Never choose a city yourself" in prompt
assert "Compose a short, friendly morning announcement" not in prompt