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.

test: preserve synthetic fixture semantics

rubenluetke10-beep13c5fd47775b
diff --git a/jarvis/memory/curator/prompts.py b/jarvis/memory/curator/prompts.py
index b03c141f40..e5561045e9 100644
--- a/jarvis/memory/curator/prompts.py
+++ b/jarvis/memory/curator/prompts.py
@@ -3,7 +3,7 @@
Key design decisions in the prompt:
1. **Subject disambiguation is at the very top** — the LLM sees it before
- thinking about anything else. Includes a concrete fictional-contact example that
+ thinking about anything else. Includes a concrete synthetic-contact example that
explicitly rules out the "naive-mem0" anti-pattern.
2. **Do-Not-Record list** is enforced as a hard negative in the prompt —
@@ -63,7 +63,7 @@ the subject is `user`. If the user mentions a name, that name is a
## Examples — this must NOT be confused:
-**Input:** User says "My fictional partner ExampleContact works at X."
+**Input:** User says "My partner ExampleContact works at ExampleOrg."
**Output:**
- `{"subject": "person:ExampleContact", "cluster": "identity",
"field": "name", "value": "ExampleContact", "relationship": "partner",
@@ -143,7 +143,7 @@ def build_extraction_prompt(user_text: str, assistant_text: str,
We provide the LLM with context about already-known entities so that it
can disambiguate more reliably. If it already knows, e.g., "The user is
- called ExampleUser, ExampleContact is their fictional partner", it will
+ called ExampleUser, ExampleContact is their partner", it will
not make the mistake shown in the Golden-Rule example.
"""
ctx_lines = []
diff --git a/tests/integration/memory/wiki/test_realtime_to_vault_e2e.py b/tests/integration/memory/wiki/test_realtime_to_vault_e2e.py
index 4579ea8049..43ca95e1be 100644
--- a/tests/integration/memory/wiki/test_realtime_to_vault_e2e.py
+++ b/tests/integration/memory/wiki/test_realtime_to_vault_e2e.py
@@ -188,7 +188,7 @@ async def test_consecutive_realtime_reviews_write_to_selected_vault(
(vault_root / "index.md").write_text("# Index\n", encoding="utf-8")
(vault_root / "log.md").write_text("# Wiki Log\n", encoding="utf-8")
(vault_root / "entities" / "example-user.md").write_text(
- _entity_page("example-user", "Example User is a fictional test identity."),
+ _entity_page("example-user", "Example User is the test user."),
encoding="utf-8",
)
@@ -208,11 +208,11 @@ async def test_consecutive_realtime_reviews_write_to_selected_vault(
assert config.wiki_scheduler.consolidate_after_candidates == 1
facts = [
- "Fictional contact Example Friend moved to Example City last month.",
- "Fictional contact Example Colleague works at the sample library.",
- "The fictional test user owns a demo vessel named Sample One.",
- "The fictional test user needs a short break right now.",
- "The fictional test user owns a demo glider.",
+ "Example Friend moved to Example City last month.",
+ "Example Colleague works at the sample library.",
+ "Example User owns a vessel named Sample One.",
+ "Example User needs a short break right now.",
+ "Example User owns a demo glider.",
]
extractions = [
json.dumps(
@@ -385,7 +385,10 @@ async def test_consecutive_realtime_reviews_write_to_selected_vault(
_turn(
turn_id="openai-turn",
provider="openai-realtime",
- text="Fictional contact Example Friend moved to Example City last month.",
+ text=(
+ "My friend Example Friend moved to Example City last month "
+ "and lives there now."
+ ),
session_id="call-1",
)
)
@@ -394,7 +397,10 @@ async def test_consecutive_realtime_reviews_write_to_selected_vault(
_turn(
turn_id="gemini-turn",
provider="gemini-live",
- text="Fictional contact Example Colleague works at the sample library.",
+ text=(
+ "My colleague Example Colleague works at the sample library "
+ "during the week."
+ ),
session_id="call-2",
)
)
@@ -403,7 +409,7 @@ async def test_consecutive_realtime_reviews_write_to_selected_vault(
_turn(
turn_id="short-asset-turn",
provider="openai-realtime",
- text="The fictional test user owns a demo vessel named Sample One.",
+ text="I own a vessel named Sample One.",
session_id="call-3",
)
)
@@ -412,7 +418,7 @@ async def test_consecutive_realtime_reviews_write_to_selected_vault(
_turn(
turn_id="transient-turn",
provider="gemini-live",
- text="The fictional test user needs a short break right now.",
+ text="I need a short break right now.",
session_id="call-4",
)
)
diff --git a/tests/unit/brain/test_wiki_fast_path.py b/tests/unit/brain/test_wiki_fast_path.py
index b2ff3de4d5..ecaef65ff0 100644
--- a/tests/unit/brain/test_wiki_fast_path.py
+++ b/tests/unit/brain/test_wiki_fast_path.py
@@ -388,15 +388,15 @@ async def test_reported_obsidian_follow_up_ingests_inline_facts(manager_factory)
)
reply = await mgr._run_wiki_ingest_fast_path(
- "Kannst du bitte einen Eintrag da eintragen, dass ich im fiktiven " # i18n-allow
- "Testszenario ruhig bin und dass ich in Beispielstadt wohne?" # i18n-allow
+ "Kannst du bitte einen Eintrag da eintragen, dass ich ziemlich " # i18n-allow
+ "genervt bin und dass ich in Beispielstadt wohne?" # i18n-allow
)
assert reply is not None
await asyncio.sleep(0.05)
assert len(tool.calls) == 1
saved = tool.calls[0]["text"].lower()
- assert "testszenario" in saved
+ assert "genervt" in saved
assert "beispielstadt" in saved
assert "was steht" not in saved
@@ -420,8 +420,8 @@ async def test_live_polite_travel_fact_reaches_wiki_before_local_action(
fail_if_local_action_runs,
)
reply = await mgr.generate(
- "Kannst du bitte mein Wiki-System eintragen, dass ich eine fiktive " # i18n-allow
- "Reise nach Beispielstadt plane?" # i18n-allow
+ "Kannst du bitte mein Wiki-System eintragen, dass ich morgen nach " # i18n-allow
+ "Beispielstadt reisen will?" # i18n-allow
)
assert reply
diff --git a/tests/unit/core/test_capabilities.py b/tests/unit/core/test_capabilities.py
index e3c733d16e..7a9ba6e96c 100644
--- a/tests/unit/core/test_capabilities.py
+++ b/tests/unit/core/test_capabilities.py
@@ -338,8 +338,8 @@ class TestSeedRegistry:
def test_polite_wiki_system_write_resolves_to_ingest(self) -> None:
"""Wiki destination wins even when the fact mentions travel."""
cap = self.reg.resolve_intent(
- "Kannst du bitte mein Wiki-System eintragen, dass ich eine fiktive " # i18n-allow
- "Reise nach Beispielstadt plane?" # i18n-allow
+ "Kannst du bitte mein Wiki-System eintragen, dass ich morgen nach " # i18n-allow
+ "Beispielstadt reisen will?" # i18n-allow
)
assert cap is not None
diff --git a/tests/unit/memory/test_people_store.py b/tests/unit/memory/test_people_store.py
index 1668ec5b60..1487a559c0 100644
--- a/tests/unit/memory/test_people_store.py
+++ b/tests/unit/memory/test_people_store.py
@@ -57,7 +57,7 @@ class TestFindByAlias:
assert person.add_alias("DemoAlias") is True
person.save()
- # Frischer Store — liest vom Disk
+ # A fresh store reads the record from disk.
fresh_store = PersonStore(workspace=person_store.workspace)
found = fresh_store.find_by_alias("DemoAlias")
assert found is not None
diff --git a/tests/unit/memory/wiki/test_curator_llm.py b/tests/unit/memory/wiki/test_curator_llm.py
index 587d89fafc..38210ebf9b 100644
--- a/tests/unit/memory/wiki/test_curator_llm.py
+++ b/tests/unit/memory/wiki/test_curator_llm.py
@@ -380,15 +380,15 @@ async def test_direct_residence_falls_back_until_graph_is_bidirectional(
"""A profile-only residence response cannot complete explicit ingest."""
profile_without_link = (
"---\ntype: entity\nentity_kind: person\nslug: owner-profile\n---\n\n"
- "# Owner Profile\n\n## Facts\n\n- Lives in Example City.\n"
+ "# Owner Profile\n\n## Facts\n\n- Lives in Beispielstadt.\n"
)
profile_with_link = profile_without_link.replace(
- "- Lives in Example City.",
- "- Lives in [[entities/example-city|Example City]].",
+ "- Lives in Beispielstadt.",
+ "- Lives in [[entities/beispielstadt|Beispielstadt]].",
)
place_with_link = (
- "---\ntype: entity\nentity_kind: place\nslug: example-city\n---\n\n"
- "# Example City\n\n## Relationships\n\n"
+ "---\ntype: entity\nentity_kind: place\nslug: beispielstadt\n---\n\n"
+ "# Beispielstadt\n\n## Relationships\n\n"
"- Residence of [[entities/owner-profile|Owner Profile]].\n"
)
profile_only = json.dumps(
@@ -410,7 +410,7 @@ async def test_direct_residence_falls_back_until_graph_is_bidirectional(
"reason": "link residence from profile",
},
{
- "target": "entities/example-city.md",
+ "target": "entities/beispielstadt.md",
"operation": "create",
"new_body": place_with_link,
"reason": "create visible residence page",
@@ -427,7 +427,7 @@ async def test_direct_residence_falls_back_until_graph_is_bidirectional(
)
updates = await llm.propose_updates(
- "In this fictional test, I live in Example City.",
+ "Ich wohne in Beispielstadt.", # i18n-allow: synthetic residence fixture
"tool:wiki-ingest",
repo=FakeRepo(),
vault=FakeVault(),
@@ -437,7 +437,7 @@ async def test_direct_residence_falls_back_until_graph_is_bidirectional(
assert llm.provider_name == "openrouter"
assert {update.target_path.as_posix() for update in updates} == {
"entities/owner-profile.md",
- "entities/example-city.md",
+ "entities/beispielstadt.md",
}
diff --git a/tests/unit/memory/wiki/test_extractor.py b/tests/unit/memory/wiki/test_extractor.py
index 58b05edb52..b9ccc600c0 100644
--- a/tests/unit/memory/wiki/test_extractor.py
+++ b/tests/unit/memory/wiki/test_extractor.py
@@ -202,8 +202,8 @@ async def test_happy_path_appends_parsed_facts(journal: CandidateJournal) -> Non
("incomplete_kind", "incomplete_subjects"),
[
("place", ["user"]),
- ("place", ["example-city"]),
- ("other", ["user", "example-city"]),
+ ("place", ["beispielstadt"]),
+ ("other", ["user", "beispielstadt"]),
],
)
@pytest.mark.asyncio
@@ -215,7 +215,7 @@ async def test_residence_requires_named_place_subject_and_falls_back(
incomplete = json.dumps(
[
{
- "fact": "The fictional user lives in Example City.",
+ "fact": "The user lives in Beispielstadt.",
"kind": incomplete_kind,
"subjects": incomplete_subjects,
"evidence_turn_id": "residence-turn",
@@ -225,9 +225,9 @@ async def test_residence_requires_named_place_subject_and_falls_back(
complete = json.dumps(
[
{
- "fact": "The fictional user lives in Example City.",
+ "fact": "The user lives in Beispielstadt.",
"kind": "place",
- "subjects": ["user", "example-city"],
+ "subjects": ["user", "beispielstadt"],
"evidence_turn_id": "residence-turn",
}
]
@@ -240,7 +240,7 @@ async def test_residence_requires_named_place_subject_and_falls_back(
)
count = await extractor.extract_and_journal(
- "The fictional user lives in Example City.",
+ "Ich wohne in Beispielstadt.", # i18n-allow: synthetic residence fixture
"Noted.",
source_label="realtime:residence",
turn_hash="residence-turn",
@@ -250,7 +250,7 @@ async def test_residence_requires_named_place_subject_and_falls_back(
assert registry.tried == ["gemini", "openrouter"]
row = journal.pending()[0]
assert row.kind == "place"
- assert row.subjects == ("user", "example-city")
+ assert row.subjects == ("user", "beispielstadt")
@pytest.mark.asyncio
diff --git a/tests/unit/memory/wiki/test_wiki_intent.py b/tests/unit/memory/wiki/test_wiki_intent.py
index a6d7c1efc7..f362c2009e 100644
--- a/tests/unit/memory/wiki/test_wiki_intent.py
+++ b/tests/unit/memory/wiki/test_wiki_intent.py
@@ -42,8 +42,8 @@ def test_inline_content_is_extracted(text, expected_fragment):
@pytest.mark.parametrize(("text", "expected_fragment"), [
(
- "Kannst du bitte mein Wiki-System eintragen, dass ich eine fiktive " # i18n-allow
- "Reise nach Beispielstadt plane?", # i18n-allow
+ "Kannst du bitte mein Wiki-System eintragen, dass ich morgen nach " # i18n-allow
+ "Beispielstadt reisen will?", # i18n-allow
"beispielstadt",
),
(
@@ -100,27 +100,27 @@ def test_reported_obsidian_follow_up_resolves_locative_wiki_target() -> None:
prior = "Was steht in meiner Obsidian-Wiki drin?" # i18n-allow
match = match_wiki_intent(
(
- "Kannst du bitte einen Eintrag da eintragen, dass ich im fiktiven " # i18n-allow
- "Testszenario ruhig bin und dass ich in Beispielstadt wohne?" # i18n-allow
+ "Kannst du bitte einen Eintrag da eintragen, dass ich ziemlich " # i18n-allow
+ "genervt bin und dass ich in Beispielstadt wohne?" # i18n-allow
),
prior_text=prior,
)
assert match is not None
assert match.content is not None
- assert "testszenario" in match.content
+ assert "genervt" in match.content
assert "beispielstadt" in match.content
def test_entry_noun_before_explicit_wiki_target_is_control_syntax() -> None:
match = match_wiki_intent(
- "Kannst du bitte einen Eintrag in mein Wiki eintragen, dass ich im " # i18n-allow
- "fiktiven Testszenario in Beispielstadt wohne?" # i18n-allow
+ "Kannst du bitte einen Eintrag in mein Wiki eintragen, dass ich " # i18n-allow
+ "in Beispielstadt wohne?" # i18n-allow
)
assert match is not None
assert match.content is not None
- assert match.content.startswith("ich im fiktiven testszenario")
+ assert match.content.startswith("ich in beispielstadt")
def test_locative_write_requires_immediate_wiki_context() -> None: