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.

feat(local-ai): adopt current local model presets

rubenluetke10-beep217e124bef1b
diff --git a/AGENTS.md b/AGENTS.md
index 46d1e0c8bf..f3d3408686 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -34,6 +34,11 @@ OS incl. headless `python:3.11-slim` (base stays torch-free; GPU deps in
macOS/Linux ship in the SAME change behind one capability probe or degrade
honestly (+ `docs/os-parity.md`). Done = the four non-maintainer paths (§3).
Device triage: version lag → setup divergence → OS gap.
+Ollama/llama.cpp defaults, recommendations, and examples must be verified
+against the official live catalog when changed and use a current,
+hardware-fitting generation/quantization; an artifact shown as one year old
+or older must never be a default or recommendation. A measured compatibility
+pin may remain only as a documented non-general exception with a removal test.
## 4. Naming (BINDING)
Internal: **Jarvis-Agents**. User-visible brand is DYNAMIC from the wake word
diff --git a/CLAUDE.md b/CLAUDE.md
index 46d1e0c8bf..f3d3408686 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -34,6 +34,11 @@ OS incl. headless `python:3.11-slim` (base stays torch-free; GPU deps in
macOS/Linux ship in the SAME change behind one capability probe or degrade
honestly (+ `docs/os-parity.md`). Done = the four non-maintainer paths (§3).
Device triage: version lag → setup divergence → OS gap.
+Ollama/llama.cpp defaults, recommendations, and examples must be verified
+against the official live catalog when changed and use a current,
+hardware-fitting generation/quantization; an artifact shown as one year old
+or older must never be a default or recommendation. A measured compatibility
+pin may remain only as a documented non-general exception with a removal test.
## 4. Naming (BINDING)
Internal: **Jarvis-Agents**. User-visible brand is DYNAMIC from the wake word
diff --git a/CLOUD.md b/CLOUD.md
index 82a571a72d..8956219df2 100644
--- a/CLOUD.md
+++ b/CLOUD.md
@@ -58,6 +58,7 @@ Concretely, Rule #1 means:
- **All five provider classes (Brain, STT, TTS, Vision, Wake) have a fully cloud-reachable default path** — no required local GPU, model, microphone, speaker, or OS API.
- **Headless VPS + browser UI is a first-class runtime.** Browser `getUserMedia` → WebSocket, or a channel adapter (Telegram, Discord, SMS, webhook), reaches the full Router-Brain → Worker-Critic → Mission-Manager experience with zero native installs.
- **Defaults in `jarvis.toml` cannot assume CUDA, local audio, or Windows paths.** STT/TTS default to cloud providers; wake defaults to a server-side gate (browser PTT / channel / webhook).
+- **Local-model recommendations stay current.** Every Ollama/llama.cpp default, recommendation, managed profile, and current setup example must be verified against the official live catalog when changed and use a hardware-fitting current generation/quantization. An artifact shown as one year old or older is forbidden as a default or recommendation; a measured compatibility pin is allowed only as a documented non-general exception with a removal test.
- **Docs, defaults, install instructions, and onboarding lead with the cloud + cross-platform path.** Windows-desktop instructions are a footnote in an "Optional power-user extras" section.
- **Maintainer dev tooling under `scripts/` may stay Windows-PowerShell-only.** The line is the boundary between `scripts/` (developer tools — may stay Windows-only) and the importable `jarvis/` package (runtime — must run on Linux, macOS, and Windows).
diff --git a/UltraWiki/04-configuration-and-ui.md b/UltraWiki/04-configuration-and-ui.md
index 2801f93cfc..b1dd328801 100644
--- a/UltraWiki/04-configuration-and-ui.md
+++ b/UltraWiki/04-configuration-and-ui.md
@@ -12,7 +12,7 @@ local and one cloud option**:
| Slot | Local option | Cloud option | Switch cost |
|---|---|---|---|
| **Storage** | SQLite file (created automatically under the data dir) | PostgreSQL connection string — any host the user has (own server, Supabase, Neon, RDS, …) | export/import migration, guided |
-| **Embedding model** | multilingual local model via Ollama (bge-m3 class; one-time download) | any configured embedding-capable provider key (e.g. Gemini Embedding, OpenAI, Voyage, Mistral) | **background rebuild** — deliberate, confirmed; search stays up throughout (D-3) |
+| **Embedding model** | current multilingual local model via Ollama (`qwen3-embedding:4b`; one-time download) | any configured embedding-capable provider key (e.g. Gemini Embedding, OpenAI, Voyage, Mistral) | **background rebuild** — deliberate, confirmed; search stays up throughout (D-3) |
| **Distillation model** | local model via Ollama | any configured chat-capable provider key | none (applies to new work; re-enrichment optional) |
| **Rerank (optional)** | local cross-encoder | rerank-capable provider | none |
diff --git a/docs/agent-contract.md b/docs/agent-contract.md
index a5ee8ae23a..177e98fb97 100644
--- a/docs/agent-contract.md
+++ b/docs/agent-contract.md
@@ -195,6 +195,19 @@ paths (test or honest manual trace):
the install base. Doctrine: [`CLOUD.md`](../CLOUD.md) +
[`docs/PHILOSOPHY.md`](PHILOSOPHY.md) (doctrine wins). See AP-21/22/23.
+### Local-model currency (BINDING)
+
+Every Ollama or llama.cpp model used as a default, recommendation, managed
+profile, or current setup example must be checked against the official live
+catalog when it is added or changed. Select the newest capable generation and
+the strongest quantization that fits the target hardware honestly; never keep
+an older id merely because it was once tested on the maintainer's machine. An
+artifact whose official catalog entry is shown as one year old or older is
+forbidden in those surfaces. A benchmark-specific compatibility pin may remain
+only outside the general defaults, with its measured reason and the test or
+condition that removes it. The live Ollama catalog guard is
+`tests/integration/test_ollama_catalog_is_current.py`.
+
### Device-parity triage ritual (BINDING)
"Works on the dev box, broken on device X" has THREE independent causes —
diff --git a/docs/local-realtime-runtime-deep-dive.md b/docs/local-realtime-runtime-deep-dive.md
index 92abb585fd..783c800836 100644
--- a/docs/local-realtime-runtime-deep-dive.md
+++ b/docs/local-realtime-runtime-deep-dive.md
@@ -18,7 +18,8 @@ cascade exposed through an OpenAI-Realtime-shaped WebSocket:
1. Silero VAD and turn detection;
2. Parakeet TDT STT on CPU;
-3. `qwen2.5:7b` through Ollama on GPU;
+3. a local Ollama brain on GPU — now `qwen3.5:4b`; the measurements below
+ used the retired `qwen2.5:7b` baseline;
4. Qwen3-TTS on GPU;
5. a one-slot threaded pipeline in `speech-to-speech==0.2.12`.
diff --git a/jarvis.toml.example b/jarvis.toml.example
index 2a626865ec..d9414d67a3 100644
--- a/jarvis.toml.example
+++ b/jarvis.toml.example
@@ -118,6 +118,15 @@ deep_model = "grok-4.3"
model = "anthropic/claude-opus-4.8"
base_url = "https://openrouter.ai/api/v1"
+# Optional current local preset. Keep the cloud-first [brain] defaults above
+# unless you intentionally run this server. Start llama.cpp with the matching
+# stable alias (cross-platform commands are in the local-AI guide), then make
+# "local-openai" the active Brain in-app. Keep a ready provider from another
+# family in the fallback chain (AP-22).
+[brain.providers.local-openai]
+model = "gemma-4-12b-it-qat-q4_0"
+base_url = "http://127.0.0.1:8080"
+
# ── Safety: anti-confirmation-fatigue whitelist + hard blacklist ──
[safety]
default_tier = "safe"
diff --git a/jarvis/brain/ack_brain/config.py b/jarvis/brain/ack_brain/config.py
index 8264ede355..0f3bbaa170 100644
--- a/jarvis/brain/ack_brain/config.py
+++ b/jarvis/brain/ack_brain/config.py
@@ -89,7 +89,7 @@ class _ProvidersBundle(BaseModel):
default_factory=lambda: OpenAIAckProviderConfig(model="gpt-5-mini")
)
ollama: OllamaAckProviderConfig = Field(
- default_factory=lambda: OllamaAckProviderConfig(model="llama3.1:8b")
+ default_factory=lambda: OllamaAckProviderConfig(model="qwen3.5:4b")
)
diff --git a/jarvis/brain/ollama_pull.py b/jarvis/brain/ollama_pull.py
index c2b53f4f73..ceddb0d6d3 100644
--- a/jarvis/brain/ollama_pull.py
+++ b/jarvis/brain/ollama_pull.py
@@ -122,31 +122,16 @@ RECOMMENDED_MODELS: tuple[RecommendedModel, ...] = (
purpose="The balanced default: chat, voice, and reliable tool calling.",
),
RecommendedModel(
- id="qwen2.5:7b",
- label="Qwen 2.5 7B",
- size_gb=4.7,
- # The measured brain of the local realtime voice stack (tiers.py
- # t0/t1): the managed install's brain-setup pulls THIS tag, so the
- # panel must list it too — two curated lists must not drift apart.
- purpose="The local realtime voice stack's measured brain model.",
+ id="gemma4:12b-it-qat",
+ label="Gemma 4 12B QAT",
+ size_gb=7.2,
+ purpose="Current quantized 12B chat, tools, and vision for one GPU.",
),
RecommendedModel(
- id="gpt-oss:20b",
- label="GPT-OSS 20B",
- size_gb=13.8,
- purpose="Noticeably stronger reasoning; wants a GPU or plenty of memory.",
- ),
- RecommendedModel(
- id="gemma3:27b",
- label="Gemma 3 27B",
- size_gb=17.4,
- purpose="A second strong option at this size, with a different style.",
- ),
- RecommendedModel(
- id="gpt-oss:120b",
- label="GPT-OSS 120B",
- size_gb=65.4,
- purpose="Frontier-class answers, for a workstation-sized accelerator.",
+ id="gemma4:26b-a4b-it-qat",
+ label="Gemma 4 26B A4B QAT",
+ size_gb=16.0,
+ purpose="Current sparse Gemma with stronger reasoning where memory allows.",
),
# ── vision (Screen Context / Computer-Use) ──────────────────────────────
RecommendedModel(
@@ -183,17 +168,17 @@ RECOMMENDED_MODELS: tuple[RecommendedModel, ...] = (
),
# ── coding worker (the Agents tab's heavy-task model) ───────────────────
RecommendedModel(
- id="devstral",
- label="Devstral",
- size_gb=14.3,
- purpose="Built for agentic coding work — a local heavy-task worker.",
+ id="qwen3.6:27b",
+ label="Qwen 3.6 27B",
+ size_gb=17.0,
+ purpose="Current dense Qwen for agentic coding and repository work.",
role="coder",
),
RecommendedModel(
- id="qwen3-coder",
- label="Qwen 3 Coder",
- size_gb=18.6,
- purpose="The stronger local coding worker where memory allows.",
+ id="qwen3.6:35b-a3b",
+ label="Qwen 3.6 35B A3B",
+ size_gb=24.0,
+ purpose="Current sparse Qwen coding worker; 3B parameters activate per token.",
role="coder",
),
# ── embeddings (UltraWiki search) ───────────────────────────────────────
@@ -206,10 +191,10 @@ RECOMMENDED_MODELS: tuple[RecommendedModel, ...] = (
tools=False,
),
RecommendedModel(
- id="bge-m3",
- label="BGE-M3",
- size_gb=1.2,
- purpose="Multilingual embeddings for UltraWiki. Not a chat model.",
+ id="qwen3-embedding:4b",
+ label="Qwen 3 Embedding 4B",
+ size_gb=2.5,
+ purpose="Higher-capacity current multilingual embeddings for retrieval.",
role="embedding",
tools=False,
),
@@ -506,9 +491,12 @@ async def _run_pull(model: str) -> None:
run = _run_for(model)
root = server_root()
try:
- async with httpx.AsyncClient(timeout=_PULL_TIMEOUT) as client, client.stream(
- "POST", f"{root}/api/pull", json={"model": model, "stream": True}
- ) as resp:
+ async with (
+ httpx.AsyncClient(timeout=_PULL_TIMEOUT) as client,
+ client.stream(
+ "POST", f"{root}/api/pull", json={"model": model, "stream": True}
+ ) as resp,
+ ):
if resp.status_code == 404:
run.state = "error"
run.message = (
diff --git a/jarvis/core/config.py b/jarvis/core/config.py
index b271755a19..5e3113c2a0 100644
--- a/jarvis/core/config.py
+++ b/jarvis/core/config.py
@@ -1307,7 +1307,7 @@ class MemoryConfig(BaseModel):
# jarvis/memory/. Default to the sqlite store so a fresh install does not
# point the archival tier at a backend that no longer exists.
archival_store: str = "sqlite"
- embedding_model: str = "bge-m3"
+ embedding_model: str = "qwen3-embedding:4b"
retention_days_recall: int = 90
data_dir: str = "./data"
wiki: WikiMemoryConfig = Field(default_factory=WikiMemoryConfig)
diff --git a/jarvis/dictation/polish_client.py b/jarvis/dictation/polish_client.py
index d4066348a1..921e02ae03 100644
--- a/jarvis/dictation/polish_client.py
+++ b/jarvis/dictation/polish_client.py
@@ -271,7 +271,7 @@ POLISH_FAMILIES: Final[tuple[PolishFamily, ...]] = (
# Ollama card, so a server moved to another machine keeps working.
base_url="http://localhost:11434/v1",
secret_candidates=(),
- default_model="llama3.1:8b",
+ default_model="qwen3.5:4b",
default_timeout_ms=3000,
endpoint_provider="ollama",
),
diff --git a/jarvis/realtime/local_server/tiers.py b/jarvis/realtime/local_server/tiers.py
index 5f061150e4..b22bb26b8e 100644
--- a/jarvis/realtime/local_server/tiers.py
+++ b/jarvis/realtime/local_server/tiers.py
@@ -5,13 +5,12 @@ HARD floor at 12 GB: below it the managed install is refused with an honest
blocker instead of shipping a degraded experience (maintainer mandate
2026-08-07).
-Bake-off honesty: a tier may only pin a model stack that has been MEASURED
-(recorded audio + numbers), never datasheet-picked. Today only the bottom
-stack is measured (the dev-box configuration: Parakeet TDT CPU STT +
-qwen2.5:7b via Ollama + Qwen3-TTS CustomVoice on GPU, speech-end → first
-audio ~2.4 s warm). Higher tiers therefore install the SAME measured stack
-and say so; their target classes are documented here and flip to pinned
-only when the Chunk-6 bake-off records a winner.
+Model currency and bake-off honesty are independent gates. The current
+interim baseline uses qwen3.5:4b via Ollama: generation and structured tool
+calling were verified on the 16 GB reference machine on 2026-08-09, while a
+new recorded end-to-end voice bake-off is still pending. No tier therefore
+claims measured latency. Higher tiers install this same compatibility-probed
+stack until the Chunk-6 bake-off records a current winner.
"""
from __future__ import annotations
@@ -55,51 +54,51 @@ TIERS: tuple[Tier, ...] = (
key="t0-12gb",
label="12 GB — baseline",
min_usable_gb=12.0,
- brain_model="qwen2.5:7b",
- target_class="measured dev-box stack (the only recorded configuration)",
- measured=True,
- download_gb=14.0,
- expected_latency="~2-3 s",
+ brain_model="qwen3.5:4b",
+ target_class="current 4B brain baseline (pending bake-off for full voice)",
+ measured=False,
+ download_gb=13.0,
+ expected_latency="pending bake-off",
),
Tier(
key="t1-16gb",
label="16 GB",
min_usable_gb=15.5,
- brain_model="qwen2.5:7b",
+ brain_model="qwen3.5:4b",
target_class="~30B-class brain (pending bake-off)",
measured=False,
- download_gb=14.0,
- expected_latency="~2-3 s",
+ download_gb=13.0,
+ expected_latency="pending bake-off",
),
Tier(
key="t2-32gb",
label="32 GB",
min_usable_gb=31.0,
- brain_model="qwen2.5:7b",
+ brain_model="qwen3.5:4b",
target_class="~70B-class brain, quantized (pending bake-off)",
measured=False,
- download_gb=14.0,
- expected_latency="~2-3 s",
+ download_gb=13.0,
+ expected_latency="pending bake-off",
),
Tier(
key="t3-64gb",
label="64 GB",
min_usable_gb=62.0,
- brain_model="qwen2.5:7b",
+ brain_model="qwen3.5:4b",
target_class="~70B-class brain, full precision / large MoE (pending bake-off)",
measured=False,
- download_gb=14.0,
- expected_latency="~2-3 s",
+ download_gb=13.0,
+ expected_latency="pending bake-off",
),
Tier(
key="t4-128gb",
label="128 GB+",
min_usable_gb=124.0,
- brain_model="qwen2.5:7b",
+ brain_model="qwen3.5:4b",
target_class="frontier open-weights class, ~120B+ MoE (pending bake-off)",
measured=False,
- download_gb=14.0,
- expected_latency="~2-3 s",
+ download_gb=13.0,
+ expected_latency="pending bake-off",
),
)
@@ -124,7 +123,7 @@ def describe_stack(tier: Tier) -> str:
f"Installs the measured baseline stack (brain {tier.brain_model}, local STT + GPU TTS)."
)
return (
- f"Installs the measured baseline stack (brain {tier.brain_model}) for "
- f"now; this tier targets a {tier.target_class} and upgrades once the "
+ f"Installs the current compatibility-probed baseline (brain {tier.brain_model}); "
+ f"this tier targets a {tier.target_class} and upgrades once the "
"bake-off has recorded a winner."
)
diff --git a/jarvis/ultrawiki/embedding_models.py b/jarvis/ultrawiki/embedding_models.py
index ce5d66f010..2cf18860b4 100644
--- a/jarvis/ultrawiki/embedding_models.py
+++ b/jarvis/ultrawiki/embedding_models.py
@@ -85,11 +85,10 @@ class EmbeddingModelList:
#: placeholder still comes from provider_catalog.DEFAULT_MODELS.
CURATED_EMBEDDING_MODELS: dict[str, tuple[tuple[str, str], ...]] = {
"ollama": (
- ("bge-m3", "bge-m3 — multilingual, strong all-rounder"),
- ("nomic-embed-text", "nomic-embed-text — fast, English-first"),
- ("mxbai-embed-large", "mxbai-embed-large — larger, higher quality"),
- ("snowflake-arctic-embed2", "snowflake-arctic-embed2 — multilingual"),
- ("all-minilm", "all-minilm — tiny and quick"),
+ (
+ "qwen3-embedding:4b",
+ "qwen3-embedding:4b — current multilingual default",
+ ),
),
"gemini": (
("gemini-embedding-001", "gemini-embedding-001"),
@@ -167,7 +166,7 @@ async def _ollama(cfg: Any, transport: Any) -> EmbeddingModelList:
return _curated(
"ollama",
"Ollama is running but has no models pulled yet — "
- "'ollama pull bge-m3' installs a good default.",
+ "'ollama pull qwen3-embedding:4b' installs the current default.",
)
return _live(models)
diff --git a/jarvis/ultrawiki/embeddings.py b/jarvis/ultrawiki/embeddings.py
index 8be2ae8611..39b4f26481 100644
--- a/jarvis/ultrawiki/embeddings.py
+++ b/jarvis/ultrawiki/embeddings.py
@@ -452,7 +452,7 @@ EMBEDDING_BACKENDS: dict[str, Callable[[Any], Any]] = {
#: Sensible current default model per backend, surfaced by the settings UI.
DEFAULT_MODELS: dict[str, str] = {
- "ollama": "bge-m3",
+ "ollama": "qwen3-embedding:4b",
"gemini": "gemini-embedding-001",
"openai": "text-embedding-3-small",
"voyage": "voyage-3.5",
diff --git a/jarvis/ultrawiki/provider_catalog.py b/jarvis/ultrawiki/provider_catalog.py
index d46d9398c8..962582f962 100644
--- a/jarvis/ultrawiki/provider_catalog.py
+++ b/jarvis/ultrawiki/provider_catalog.py
@@ -210,7 +210,7 @@ EMBEDDING_PROVIDERS: tuple[UltraWikiProviderSpec, ...] = (
auth_mode="none",
secret_keys=(),
dashboard_url=None,
- default_model="bge-m3",
+ default_model="qwen3-embedding:4b",
supports_base_url=True,
default_base_url="http://localhost:11434",
recommended=True,
diff --git a/scripts/config-soll.json b/scripts/config-soll.json
index 59e920ab03..ead4cc4dd5 100644
--- a/scripts/config-soll.json
+++ b/scripts/config-soll.json
@@ -33,7 +33,7 @@
"allow_sapi5_fallback": false
},
"brain": {
- "primary": "openrouter",
+ "primary": "local-openai",
"fallback": "openrouter",
"deep_brain": "claude-cli",
"routing_provider": "grok",
@@ -119,9 +119,9 @@
"voice": "lux"
},
"brain.providers.ollama": {
- "tool_model": "deepseek-r1:14b",
- "cu_model": "deepseek-r1:14b",
- "model": "qwen3-coder:30b"
+ "tool_model": "qwen3.5:4b",
+ "cu_model": "qwen3.5:4b",
+ "model": "qwen3.5:4b"
},
"brain.providers.codex-subscription-realtime": {
"voice": "cove"
@@ -133,5 +133,9 @@
"brain.providers.local-realtime": {
"voice": "auto",
"base_url": "http://localhost:8765"
+ },
+ "brain.providers.local-openai": {
+ "base_url": "http://127.0.0.1:8080",
+ "model": "gemma-4-12b-it-qat-q4_0"
}
}
diff --git a/tests/integration/test_ollama_catalog_is_current.py b/tests/integration/test_ollama_catalog_is_current.py
index 3437b8f962..15a1770818 100644
--- a/tests/integration/test_ollama_catalog_is_current.py
+++ b/tests/integration/test_ollama_catalog_is_current.py
@@ -22,13 +22,34 @@ from __future__ import annotations
import httpx
import pytest
+from jarvis.brain.ack_brain.config import AckBrainConfig
+from jarvis.brain.ollama_library import parse_tags_html
from jarvis.brain.ollama_pull import RECOMMENDED_MODELS, ROLE_ORDER
+from jarvis.core.config import MemoryConfig
+from jarvis.dictation.polish_client import POLISH_FAMILIES
+from jarvis.realtime.local_server import brain_link, tiers
+from jarvis.ultrawiki.embedding_models import CURATED_EMBEDDING_MODELS
+from jarvis.ultrawiki.embeddings import DEFAULT_MODELS
pytestmark = pytest.mark.integration
_REGISTRY = "https://registry.ollama.ai/v2/library"
_ACCEPT = {"Accept": "application/vnd.docker.distribution.manifest.v2+json"}
+_RUNTIME_OLLAMA_MODELS = tuple(
+ sorted(
+ {
+ AckBrainConfig().providers.ollama.model,
+ MemoryConfig().embedding_model,
+ DEFAULT_MODELS["ollama"],
+ next(f.default_model for f in POLISH_FAMILIES if f.id == "ollama"),
+ *(model for model, _label in CURATED_EMBEDDING_MODELS["ollama"]),
+ *(tier.brain_model for tier in tiers.TIERS),
+ *brain_link._PREFERRED_MODELS,
+ }
+ )
+)
+
def _manifest(client: httpx.Client, model: str) -> httpx.Response:
name, _, tag = model.partition(":")
@@ -39,7 +60,7 @@ def _manifest(client: httpx.Client, model: str) -> httpx.Response:
def registry() -> httpx.Client:
with httpx.Client(timeout=15.0) as client:
try:
- probe = _manifest(client, "bge-m3")
+ probe = _manifest(client, "qwen3-embedding:4b")
except Exception as exc: # noqa: BLE001 — offline is a skip, not a failure
pytest.skip(f"Ollama registry unreachable: {type(exc).__name__} {exc}")
if probe.status_code != 200:
@@ -77,6 +98,33 @@ def test_the_fallback_size_is_in_the_right_ballpark(entry, registry) -> None:
)
[email protected]("entry", RECOMMENDED_MODELS, ids=lambda e: e.id)
+def test_curated_model_is_not_a_year_old(entry, registry) -> None:
+ """General recommendations must stay on a current official artifact."""
+ _assert_model_is_current(entry.id, registry)
+
+
[email protected]("model_id", _RUNTIME_OLLAMA_MODELS)
+def test_runtime_default_is_not_a_year_old(model_id, registry) -> None:
+ """Hidden defaults must obey the same currency rule as the visible list."""
+ _assert_model_is_current(model_id, registry)
+
+
+def _assert_model_is_current(model_id: str, registry: httpx.Client) -> None:
+ name, _, requested_tag = model_id.partition(":")
+ response = registry.get(f"https://ollama.com/library/{name}/tags")
+ assert response.status_code == 200
+ tags = parse_tags_html(response.text, name)
+ tag = requested_tag or "latest"
+ selected = next((item for item in tags if item["tag"] == tag), None)
+ assert selected is not None, f"'{model_id}' is absent from the public tag page"
+ updated = selected["updated"]
+ assert updated and "year" not in updated, (
+ f"'{model_id}' is shown as '{updated}' in the official library. Replace "
+ "year-old general recommendations with a current hardware-fitting model."
+ )
+
+
def test_every_role_still_offers_something() -> None:
"""A role whose last entry is removed would silently stop being recommended
— the panel would just have one fewer group, which reads as "not needed"."""
diff --git a/tests/unit/brain/test_ollama_pull.py b/tests/unit/brain/test_ollama_pull.py
index 78ec49d072..1bdd9de41e 100644
--- a/tests/unit/brain/test_ollama_pull.py
+++ b/tests/unit/brain/test_ollama_pull.py
@@ -377,9 +377,7 @@ async def test_a_big_machine_is_recommended_a_big_model(fake_tags, monkeypatch)
assert picked[0]["size_gb"] == max(m["size_gb"] for m in chat)
-async def test_a_small_machine_is_recommended_a_small_model(
- fake_tags, monkeypatch
-) -> None:
+async def test_a_small_machine_is_recommended_a_small_model(fake_tags, monkeypatch) -> None:
_machine(monkeypatch, ram=8.0, accel=0.0)
result = await pull.recommendations()
chat = [m for m in result["models"] if m["role"] == "chat"]
@@ -409,9 +407,7 @@ async def test_every_role_gets_its_own_pick(fake_tags, monkeypatch) -> None:
assert picked_roles == set(result["roles"])
-async def test_an_installed_role_stops_being_recommended(
- fake_tags, monkeypatch
-) -> None:
+async def test_an_installed_role_stops_being_recommended(fake_tags, monkeypatch) -> None:
"""Re-recommending a different size over a choice the user already made is
how a panel starts nagging."""
_machine(monkeypatch, ram=64.0, accel=24.0)
@@ -433,7 +429,7 @@ async def test_real_registry_sizes_replace_the_estimates(fake_tags, monkeypatch)
assert by_id["qwen3.5"]["size_gb"] == 9.0
# A model the registry did not answer for keeps its curated estimate rather
# than vanishing or reporting zero.
- assert by_id["bge-m3"]["size_gb"] > 0
+ assert by_id["qwen3-embedding:4b"]["size_gb"] > 0
async def test_an_offline_registry_leaves_a_usable_panel(fake_tags, monkeypatch) -> None:
@@ -443,9 +439,7 @@ async def test_an_offline_registry_leaves_a_usable_panel(fake_tags, monkeypatch)
assert any(m["recommended"] for m in result["models"])
-async def test_the_payload_names_the_hardware_it_judged_against(
- fake_tags, monkeypatch
-) -> None:
+async def test_the_payload_names_the_hardware_it_judged_against(fake_tags, monkeypatch) -> None:
"""A verdict the user cannot check against their own machine is a verdict
they have to take on faith."""
_machine(monkeypatch, ram=32.0, accel=16.0)
diff --git a/tests/unit/ultrawiki/test_embedding_models.py b/tests/unit/ultrawiki/test_embedding_models.py
index a1c3bd8a9c..7f6c3dcc86 100644
--- a/tests/unit/ultrawiki/test_embedding_models.py
+++ b/tests/unit/ultrawiki/test_embedding_models.py
@@ -74,7 +74,7 @@ async def test_an_offline_ollama_falls_back_with_a_reason(cfg):
)
assert result.source == "curated"
assert "unreachable" in result.reason
- assert any(m.id == "bge-m3" for m in result.models)
+ assert any(m.id == "qwen3-embedding:4b" for m in result.models)
async def test_gemini_keeps_only_models_that_serve_embeddings(cfg, monkeypatch):