Repository navigation
Open
13 / 5813 of 58 issues completedOpen
13 / 5813 of 58 issues completed
Copy link
Labels
phase:M1.4Wizard and SLM: choose a mode, apply it, default models workWizard and SLM: choose a mode, apply it, default models workpriority: highumbrellaEpic/umbrella tracking issue grouping member issuesEpic/umbrella tracking issue grouping member issues
Description
Goal
Maintainer requirement (2026-10-26): "we need to pack everything perfectly to work out of box with default install."
A default install, and every builtin update, ends with a system where every basic function works, with no manual model or config fixes. "Works" is proved by a live self-check that exercises each function for real; a service being up is not enough. A failure fails the install loudly and names the function.
Why
A local install updated to c1312f2eec on 2026-10-26 was green on every service check, yet the following were broken:
- embeddings pointed at a chat model, and 245 of 514 facts failed vectorising (bug(kb): embedding model resolves to a chat model (phi3:mini) — vectorization fails with 'server does not support embeddings', facts stored unsearchable #18834);
- three agent model roles pointed at models that were never pulled (bug(install): GPU detection misses WSL2 (bare nvidia-smi), so mistral and dolphin are never pulled and six agent roles point at absent models #19731);
- uploads over 1 MiB were refused (bug(kb): every knowledge upload over 1 MiB gets 413 — the app-wide validation middleware's JSON cap applies to multipart uploads, and the 10 MB limit is hardcoded in 3 more places #19712);
- a new web source never synced (bug(kb): creating a web-crawler connector never runs its first sync — the new web source stays empty until a manual Sync #19714);
- chat never reached the knowledge base or the code index (blocker(kb): 6,741 documentation chunks and 11,241 code chunks are vectorised and chat's retrieval path queries neither #17625, bug(chat): inline tool results never reach the next iteration — the agent repeats the same tool call until the cap and ends with no answer #19715);
- the graph page was blank (bug(kb-ui): the knowledge graph page is blank — the existing KnowledgeGraph.vue renderer is never routed; mount it (M1 slice of #17569) #19727);
- backups could not be deleted (bug(kb-ui): knowledge backups can't be deleted or restored — the UI reads backup.name, the API returns filename/filepath, so both send an empty body (422) #19721).
No check caught any of these, because every check verified presence, never function or kind.
Parts
- Self-check (child to file): a post-install and post-update self-check with one probe per function. Chat answers; the embedding model returns a vector of the expected size; a 5 MB upload is retrievable by search; a web connector's first sync ingests pages; chat retrieves from the KB and the code index; the graph renders; backup delete and restore work; a short transcription and a TTS line succeed; an idle backend issues no fact sweep. CI runs it on a fresh default install.
- Default model set: feat(llm): a default local model set that works out of the box, a recommended model list with hardware fit, and bring-your-own model per tier #19242 (one default per role, defined once, pulled and kind-checked on every install type, CPU-only included).
- Knowledge-base basics: Umbrella: knowledge base intake is built but two legs are severed — upload has no UI, transcriber output cannot land #17527.
Model audit, 2026-10-26: gaps and their homes
| Gap | Issue |
|---|---|
| Embedding role resolves to a chat model; the deployed value is preserved forever | #18834, #19736 |
| GPU detection misses WSL2; instruction, system and failsafe models never pulled | #19731 |
| Failsafe: three defaults, primary equals secondary | #19733 |
| TTS model setting never reaches the loader | #19734 |
| NPU worker has no default model | #19735 |
| Code-embedding model never provisioned | #19738 |
| Pulls check the name, never the kind | #19736 |
| Model-name guards skip templates and accept agreeing copies | #19737 |
| Default chat model is only in the GPU pull list (a CPU-only install has no chat model) | #19242 |
| Two whisper defaults | #17778, #18014 |
| Reranker setting never read | #19355 |
| Generation-parameter defaults defined twice (temperature 0.7 at ssot_constants.py:191 and :646; max_tokens = 2048 and 100 under one name) | #19730 |
gemma3:4b (3.4 GB) installed but referenced only in a comment |
recorded here |
Where it went wrong
These findings come from the audit, which read the commits and code.
- PR fix(provisioning): startup_validation.py checks non-existent env vars (#9084) #9085 (2026-05-30) rendered
AUTOBOT_EMBEDDING_MODEL={{ backend_light_model | default('phi3:mini') }}, putting a chat model in the embedding slot. Nothing checked kind. - PR refactor(config): one model tier map — frontend reads models from the API, templates and provisioning pinned to it, /llm/current slimmed (#15502) #18274 (2026-10-11) fixed that template line, and in the same PR added the "keep the deployed value" step without calling the existing
is_embedding_model_id. So the fix could never reach an existing host. PR fix(kb): an embedding model that cannot embed is reported -- health probe and deploy warning (#18834) #19382 then added only a warning and a "degraded" probe. - GPU detection uses a bare
nvidia-smi, which misses WSL2. The post-pull check verifies the node's own list, not the models the env references. - The guards were scoped away from the copies: templates and env files unscanned, 40 grandfathered findings, "equals" accepted as "derives", drift only warned.
- Config: reconcile three divergent model maps to the canonical tier map #15502's ticked "exactly one definition" holds for Python constant names only. Its two unticked criteria are exactly today's live failures.
Acceptance criteria
- Every child here is closed with its own evidence.
- The self-check passes on a fresh default install in CI, for both a CPU-only and a GPU profile.
- Host: after the builtin update, the self-check passes on the maintainer's local install, with the output pasted.
Metadata
Metadata
Assignees
Labels
phase:M1.4Wizard and SLM: choose a mode, apply it, default models workWizard and SLM: choose a mode, apply it, default models workpriority: highumbrellaEpic/umbrella tracking issue grouping member issuesEpic/umbrella tracking issue grouping member issues
Activity
mrveiss commentedon Oct 26, 2026
Part 1, the self-check, is #19740. #19242 and #17527 already have native parents (#15494 and #17537), so they are linked here as blockers.
50 remaining items
servicesas a MagicMock, which is not a package #20746