okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge f-clean-3 (321794636): docs and history (cleanup step 3, items 3.0-3.10); release manifest and capability table with checks, history/ with pointers, link check, tools/ split, bench index; owner OK'd the wording 11-082b36e8a02

main
4.5 KiB72 linesraw

T01 · One model, one name

Phase 1 · 11 findings (6 high, 2 medium, 3 low) · Depends on: nothing, can start now

Goal

The loaded model is shown under six different names, and the UI still offers model pickers. Create one source of truth and one formatter, and remove every model picker. The only remaining choice is the version (quantisation), which moves to the Model page in T09.

Files to change

These are the likely files. Read them before editing, and change others only if the fix needs it.

  • src/lib/format.ts (add formatModelName)
  • src/lib/store.ts / src/lib/types.ts (single loaded-model record)
  • src/components/ComposerControls.tsx
  • src/components/ChatToolbar.tsx
  • src/components/ModelCatalog.tsx
  • src/app/Sidebar.tsx
  • src/screens/Chat.tsx
  • src/screens/Tuning.tsx
  • src/screens/Monitor.tsx
  • src/screens/Serving.tsx
  • src/screens/Setup.tsx
  • src/components/TaskEditor.tsx
  • server/catalog.mjs, server/models.mjs (names returned by the host)

Findings to fix (high and medium)

#SeverityStateIssueSuggested fix
1Highchat-emptyComposer says "Qwen2.5 0.5B", sidebar says "Qwen3.8-Flash-Next UD-Q4_K_M"one formatter from store.loaded
2Highchat-model-picker"Choose a model" dialog + "Browse all models" — product serves one model; shows Qwen2.5-0.5B-Instructremove; replace with read-only version chip → Model page
3Highchat-response-completeReply says "Running on Starter · 0.5B Q4_K_M" — a fifth name for the modelsame single formatter
4Highmodels-*Page is a multi-model library (Recommended profiles, Model library, Discover, families, Compare) for a product that serves one model; running model shows "Qwen2.5-0.5B-Instruct"replace with single-model version ladder (Model.dc.html)
5Highengine-*Header "Qwen2.5-0.5B-Instruct · Q4_K_M" + "Change model" buttonversion chip linking to Model page
6Mediumengine-adapter-detailsSidebar says "No model loaded" while the Engine header still names Qwen2.5-0.5Bheader reflects store.loaded; empty state when none
7Mediummonitor-*Header subtitle shows "Starter · 0.5B Q4_K_M"; sidebar card switches between "Qwen3.8-Flash-Next UD-Q4_K_M" and "Qwen2.5-0.5B-Instruct Q4_K_M" depending on statesingle formatter
8Highsetup-modelStep 2 is a multi-model flow: profile cards (Agentic/Balanced/Performance), "Your choice Qwen2.5 0.5B", "Change model" opening the full library modalsingle model: "Pick a version" with the recommended one pre-selected (reuse Model page ladder)

Optional polish (low)

Do these only if the task is otherwise done and the budget allows.

#SeverityStateIssueSuggested fix
1Lowmodels-file-detailsMono file source wraps mid-token ("0.5B-\nInstruct-GGUF")ellipsis + copy button, or break at "/"
2Lowserving-requests-allModel ID "qwen2.5-0.5b-q4km" (yet another model name)from single formatter / real served id
3Lowtasks-new-menu"Create with Qwen2.5" names a model in a menu label"Create with AI" / "Describe it"

How to check

Run these and fix anything that fails:

  • npm run typecheck
  • node --test tests/ (all existing tests stay green)
  • npm run check (typecheck, UI audit, contrast, measure, luminance)
  • npm run build

Task-specific checks:

  • Every place that shows the model uses formatModelName() and renders "Qwen3.8-Flash-Next · <Version> (<QUANT>)", e.g. "Qwen3.8-Flash-Next · Balanced (Q4_K_M)".
  • grep -rniE "qwen2\.5|0\.5b|starter ·" src server returns nothing outside test fixtures.
  • No "Choose a model", "Change model" or "Browse all models" control remains anywhere.
  • Add a unit test for formatModelName in tests/.
  • Each finding above is resolved, or marked "already fixed by Txx" or "not reproducible" with a one-line reason.

Screens to re-capture and compare with the audit screenshots in docs/evidence/audit-2026-10-07/:

  • chat-empty-light.png
  • chat-model-picker-light.png
  • chat-response-complete-light.png
  • models-file-details-light.png
  • engine-adapter-details-light.png
  • serving-requests-all-light.png
  • tasks-new-menu-light.png
  • setup-model-light.png

Done when

  • All checks pass.
  • Commit on branch fix/t01-one-model-name with message T01: One model, one name.
  • Append a short entry to audit-fixes/PROGRESS.md: what changed, which findings were fixed, skipped or not reproducible, and anything the reviewer should look at.
1# T01 · One model, one name
2
3**Phase 1** · 11 findings (6 high, 2 medium, 3 low) · Depends on: nothing, can start now
4
5## Goal
6The loaded model is shown under six different names, and the UI still offers model pickers. Create one source of truth and one formatter, and remove every model picker. The only remaining choice is the version (quantisation), which moves to the Model page in T09.
7
8## Files to change
9These are the likely files. Read them before editing, and change others only if the fix needs it.
10- `src/lib/format.ts` (add formatModelName)
11- `src/lib/store.ts / src/lib/types.ts` (single loaded-model record)
12- `src/components/ComposerControls.tsx`
13- `src/components/ChatToolbar.tsx`
14- `src/components/ModelCatalog.tsx`
15- `src/app/Sidebar.tsx`
16- `src/screens/Chat.tsx`
17- `src/screens/Tuning.tsx`
18- `src/screens/Monitor.tsx`
19- `src/screens/Serving.tsx`
20- `src/screens/Setup.tsx`
21- `src/components/TaskEditor.tsx`
22- `server/catalog.mjs, server/models.mjs` (names returned by the host)
23
24## Findings to fix (high and medium)
25| # | Severity | State | Issue | Suggested fix |
26|---|---|---|---|---|
27| 1 | High | `chat-empty` | Composer says "Qwen2.5 0.5B", sidebar says "Qwen3.8-Flash-Next UD-Q4_K_M" | one formatter from store.loaded |
28| 2 | High | `chat-model-picker` | "Choose a model" dialog + "Browse all models" — product serves one model; shows Qwen2.5-0.5B-Instruct | remove; replace with read-only version chip → Model page |
29| 3 | High | `chat-response-complete` | Reply says "Running on Starter · 0.5B Q4_K_M" — a fifth name for the model | same single formatter |
30| 4 | High | `models-*` | Page is a multi-model library (Recommended profiles, Model library, Discover, families, Compare) for a product that serves one model; running model shows "Qwen2.5-0.5B-Instruct" | replace with single-model version ladder (Model.dc.html) |
31| 5 | High | `engine-*` | Header "Qwen2.5-0.5B-Instruct · Q4_K_M" + "Change model" button | version chip linking to Model page |
32| 6 | Medium | `engine-adapter-details` | Sidebar says "No model loaded" while the Engine header still names Qwen2.5-0.5B | header reflects store.loaded; empty state when none |
33| 7 | Medium | `monitor-*` | Header subtitle shows "Starter · 0.5B Q4_K_M"; sidebar card switches between "Qwen3.8-Flash-Next UD-Q4_K_M" and "Qwen2.5-0.5B-Instruct Q4_K_M" depending on state | single formatter |
34| 8 | High | `setup-model` | Step 2 is a multi-model flow: profile cards (Agentic/Balanced/Performance), "Your choice Qwen2.5 0.5B", "Change model" opening the full library modal | single model: "Pick a version" with the recommended one pre-selected (reuse Model page ladder) |
35
36## Optional polish (low)
37Do these only if the task is otherwise done and the budget allows.
38
39| # | Severity | State | Issue | Suggested fix |
40|---|---|---|---|---|
41| 1 | Low | `models-file-details` | Mono file source wraps mid-token ("0.5B-\nInstruct-GGUF") | ellipsis + copy button, or break at "/" |
42| 2 | Low | `serving-requests-all` | Model ID "qwen2.5-0.5b-q4km" (yet another model name) | from single formatter / real served id |
43| 3 | Low | `tasks-new-menu` | "Create with Qwen2.5" names a model in a menu label | "Create with AI" / "Describe it" |
44
45## How to check
46Run these and fix anything that fails:
47- `npm run typecheck`
48- `node --test tests/` (all existing tests stay green)
49- `npm run check` (typecheck, UI audit, contrast, measure, luminance)
50- `npm run build`
51
52Task-specific checks:
53- [ ] Every place that shows the model uses formatModelName() and renders "Qwen3.8-Flash-Next · <Version> (<QUANT>)", e.g. "Qwen3.8-Flash-Next · Balanced (Q4_K_M)".
54- [ ] `grep -rniE "qwen2\.5|0\.5b|starter ·" src server` returns nothing outside test fixtures.
55- [ ] No "Choose a model", "Change model" or "Browse all models" control remains anywhere.
56- [ ] Add a unit test for formatModelName in tests/.
57- [ ] Each finding above is resolved, or marked "already fixed by Txx" or "not reproducible" with a one-line reason.
58
59Screens to re-capture and compare with the audit screenshots in `docs/evidence/audit-2026-10-07/`:
60- `chat-empty-light.png`
61- `chat-model-picker-light.png`
62- `chat-response-complete-light.png`
63- `models-file-details-light.png`
64- `engine-adapter-details-light.png`
65- `serving-requests-all-light.png`
66- `tasks-new-menu-light.png`
67- `setup-model-light.png`
68
69## Done when
70- All checks pass.
71- Commit on branch `fix/t01-one-model-name` with message `T01: One model, one name`.
72- Append a short entry to `audit-fixes/PROGRESS.md`: what changed, which findings were fixed, skipped or not reproducible, and anything the reviewer should look at.