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: sync tier-default guards with the deliberate grok-4.3 pick + make vault-path round-trip platform-honest

Ruben Lütke7436f375426c
diff --git a/tests/unit/core/test_config_writer_wiki.py b/tests/unit/core/test_config_writer_wiki.py
index 0bb9f36717..d391a0d1c3 100644
--- a/tests/unit/core/test_config_writer_wiki.py
+++ b/tests/unit/core/test_config_writer_wiki.py
@@ -32,7 +32,13 @@ def test_selected_vault_survives_config_reload(
set_wiki_vault_root(selected, path=config_path)
parsed = tomllib.loads(config_path.read_text(encoding="utf-8"))
+ # The file must keep the user's path VERBATIM (a Windows rewrite must not
+ # mangle a POSIX vault path or vice versa).
+ assert parsed["wiki_integration"]["vault_root"] == selected
reloaded = JarvisConfig.model_validate(parsed)
- assert str(reloaded.wiki_integration.vault_root) == selected
+ # In memory the value is a Path; compare Path-to-Path so the assertion does
+ # not fail on the host platform's separator rendering of a FOREIGN-style
+ # path (str(WindowsPath("/srv/x")) == r"\srv\x").
+ assert reloaded.wiki_integration.vault_root == Path(selected)
assert reloaded.wiki_integration.enabled is True
assert reloaded.wiki_integration.subscribe_idle is False
diff --git a/tests/unit/test_tier_defaults.py b/tests/unit/test_tier_defaults.py
index 26e074a4cb..a38717ad2e 100644
--- a/tests/unit/test_tier_defaults.py
+++ b/tests/unit/test_tier_defaults.py
@@ -36,6 +36,11 @@ class TestTierDefaultsCatalog:
continue
if provider == "openai" and model in {"gpt-5.5", "gpt-5"}:
continue # frontier main model without -mini suffix
+ if provider == "grok":
+ # xAI retired the -fast variants (grok-4.1-fast 404s); grok-4.3
+ # is the only broadly available tool-capable model and serves
+ # both tiers deliberately (see TIER_DEFAULTS_BY_PROVIDER).
+ continue
assert any(tag in model.lower() for tag in ("haiku", "flash", "mini", "fast", "chat", "small")), \
f"{provider}: {model} does not look like a fast tier"
@@ -43,6 +48,8 @@ class TestTierDefaultsCatalog:
for provider, model in TIER_DEFAULTS_BY_PROVIDER["deep"].items():
if provider == "openrouter":
continue # deliberate free-model default; not a frontier slug
+ if provider == "grok":
+ continue # grok-4.3 serves both tiers — see the router-tier note above
assert any(tag in model.lower() for tag in
("fable", "opus", "pro", "large", "reasoner", "gpt-4", "gpt-5",
"nemotron", "ultra")), \