mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-04 23:38:47 +00:00
apps/host: the owner's UI and the Node App Host
The UI source from the 14 October handoff (src/, public/, index.html, vite and tsconfig, tests, audit-fixes, design docs) and the App Host (server/*.mjs): model import and monitor routes, API-provider catalog and streaming (OpenAI chat, OpenAI Responses, the Messages API), serving, tunnel, tasks, plus the host routes for Time-skip (server/timeskip.mjs) and the tuning plan/reports. src/lib/time-skip.ts renders a real job's own record. The UI design is unchanged. The rebuild routed #/tuning to a new TunePanel; that is reverted: src/screens/ModelRun.tsx and src/main.tsx are the handoff's again (#/tuning goes where the handoff sends it), and src/components/TunePanel.tsx and src/styles/tuning.css, which only that route used, are not carried over. Left out of git on purpose: dist/ (build output), node_modules, and docs/evidence + docs/checkpoints (170 MB of screenshots, kept in StrataSplit\evidence-archive). From the owner's rebuild branch strata/rebuild-2026-10.
This commit is contained in:
1 parent
a242537838
commit
0b3299a019
398 files changed
+71072
No files matched your search
@@ -0,0 +1,8 @@
|
||||
node_modules/
|
||||
.strata/
|
||||
.strata-ui-preview/
|
||||
.localhost-*/
|
||||
.shots/
|
||||
tmp/
|
||||
.env*
|
||||
.DS_Store
|
||||
@@ -0,0 +1,12 @@
|
||||
# Strata app source
|
||||
|
||||
Start with [the complete developer handoff](../handoff.md) and [the runbook](../docs/RUNBOOK.md).
|
||||
|
||||
```sh
|
||||
npm ci
|
||||
npm run preview:ui
|
||||
```
|
||||
|
||||
The built UI is included. To rebuild after source edits, run `npm run build`. `preview:ui` uses isolated simulated data; `npm run dev` connects the normal host.
|
||||
|
||||
The previous project README is retained in [docs/README-historical.md](docs/README-historical.md). It contains older implementation status and is historical reference.
|
||||
@@ -0,0 +1,183 @@
|
||||
# Finding dispositions — 7 October 2026
|
||||
|
||||
Stable `F001`–`F177` IDs follow the original `findings.json` order. The task reference also gives the number within its required or optional table.
|
||||
|
||||
| ID | Task finding | Priority | State | Disposition | Resolution |
|
||||
|---|---|---|---|---|---|
|
||||
| F001 | T01 required #1 | H | chat-empty | implemented | Formatter reads the actual loaded record; simulated preview uses the design family, real-engine mode retains its verified catalog. |
|
||||
| F002 | T11 required #1 | M | chat-empty | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F003 | T05 required #1 | M | chat-empty | implemented | Hide idle chat statistics; show live estimated speed/tokens until reported usage arrives. Context comes from engine config. Clamp and flag impossible memory readings without asserting unobserved swapping. |
|
||||
| F004 | T11 required #2 | M | chat-empty | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F005 | T11 optional #1 | L | chat-empty | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F006 | T05 required #2 | H | chat-generating | implemented | Hide idle chat statistics; show live estimated speed/tokens until reported usage arrives. Context comes from engine config. Clamp and flag impossible memory readings without asserting unobserved swapping. |
|
||||
| F007 | T11 required #3 | M | chat-generating | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F008 | T05 optional #1 | L | chat-generating | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F009 | T11 optional #2 | L | chat-generating | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F010 | T11 optional #3 | L | chat-generating | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F011 | T01 required #2 | H | chat-model-picker | closed-by-removal | Closed by removal: chat version chip links to Model; no multi-model picker remains. |
|
||||
| F012 | T11 required #4 | M | chat-model-picker | closed-by-removal | Closed by removal of the model-picker surface; running status is a non-action status on Model. |
|
||||
| F013 | T11 required #5 | M | chat-template | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F014 | T11 optional #4 | L | chat-template | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F015 | T11 required #6 | M | chat-session-log | closed-by-removal | Closed by hiding session-log export until it is implemented. |
|
||||
| F016 | T07 optional #1 | L | chat-session-log | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F017 | T11 required #7 | M | chat-slash-commands | implemented | Removed duplicate /clear; /new is the single new-chat command. |
|
||||
| F018 | T11 required #8 | M | chat-slash-commands | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F019 | T11 optional #5 | L | chat-slash-commands | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F020 | T11 optional #6 | L | chat-slash-commands | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F021 | T04 required #1 | M | chat-open-website-invalid | implemented | Shared ErrorNotice sanitizes Fixture prefixes and supports cause, recovery text and retry. Applied to composer/website, models, skills, tasks, setup, Serving and Cloudflare. Request states have semantic colors. |
|
||||
| F022 | T11 optional #7 | L | chat-open-website-invalid | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F023 | T05 required #3 | M | chat-showcase-code | implemented | Hide idle chat statistics; show live estimated speed/tokens until reported usage arrives. Context comes from engine config. Clamp and flag impossible memory readings without asserting unobserved swapping. |
|
||||
| F024 | T11 optional #8 | L | chat-showcase-code | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F025 | T03 required #1 | H | GLOBAL | implemented | Adapted colors to measured contrast: light #10b981 uses dark ink; dark uses #087654 with white ink to meet both text contrast and the app surface-luminance budget. |
|
||||
| F026 | T11 required #9 | M | chat-subagents-statuses | implemented | View log exposes the recorded failure. No unsupported backend retry is implied. |
|
||||
| F027 | T11 optional #9 | L | chat-session-statistics | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F028 | T11 required #10 | M | chat-context-length | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F029 | T11 optional #10 | L | chat-context-length | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F030 | T11 required #11 | M | chat-approval-collapsed | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F031 | T11 optional #11 | L | chat-approval-collapsed | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F032 | T11 required #12 | M | chat-approval-approved | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F033 | T11 optional #12 | L | chat-approval-approved | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F034 | T06 required #1 | H | chat-response-actions | implemented | Response actions use a horizontal row below content and a portaled floating menu, so opening More never reflows or clips the response. |
|
||||
| F035 | T03 required #2 | M | GLOBAL-chat | implemented | Empty textarea is one line and grows to 180px. Three stats chips remain one compact row directly below it, preserving the prior requested separate popovers. |
|
||||
| F036 | T11 optional #13 | L | chat-gif-paused | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F037 | T04 optional #1 | L | chat-markdown-table | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F038 | T11 optional #14 | L | chat-artifact-cards | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F039 | T11 required #13 | M | chat-artifact-cards | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F040 | T11 optional #15 | L | chat-artifact-actions | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F041 | T11 required #14 | M | chat-message-actions | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F042 | T11 optional #16 | L | chat-message-actions | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F043 | T11 required #15 | M | chat-edit-branch | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F044 | T11 optional #17 | L | chat-edit-branch | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F045 | T12 required #1 | M | timeskip-building | implemented | Stable Version A/B labels, readable amber status text, primary Open version B and secondary Compare at completion. The selected example result opens in the preview. |
|
||||
| F046 | T12 optional #1 | L | timeskip-building | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F047 | T12 required #2 | M | timeskip-* | implemented | Stable Version A/B labels, readable amber status text, primary Open version B and secondary Compare at completion. The selected example result opens in the preview. |
|
||||
| F048 | T12 required #3 | M | timeskip-complete | implemented | Stable Version A/B labels, readable amber status text, primary Open version B and secondary Compare at completion. The selected example result opens in the preview. |
|
||||
| F049 | T12 optional #2 | L | timeskip-* | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F050 | T12 optional #3 | L | timeskip-inspect-original | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F051 | T07 required #1 | M | GLOBAL | implemented | Unbuilt controls hidden. Preview badge is shared; estimated/simulated per-value labels remain where removing them would misrepresent data. |
|
||||
| F052 | T11 required #16 | M | chat-add-menu | implemented | Attach text file inserts inspected text/code into the visible prompt. Binary media remains preview-only because the inference endpoint accepts text. Showcase links moved to Settings About. |
|
||||
| F053 | T04 required #2 | M | chat-composer-error | implemented | Shared ErrorNotice sanitizes Fixture prefixes and supports cause, recovery text and retry. Applied to composer/website, models, skills, tasks, setup, Serving and Cloudflare. Request states have semantic colors. |
|
||||
| F054 | T11 optional #18 | L | chat-thinking-menu | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F055 | T11 required #17 | M | chat-tool-access | closed-by-removal | Closed by hiding unbuilt tool-access choices behind a disabled feature flag (T07). |
|
||||
| F056 | T11 required #18 | M | chat-no-conversations | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F057 | T11 required #19 | M | chat-response-complete | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F058 | T11 required #20 | M | chat-response-complete | implemented | Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About. |
|
||||
| F059 | T01 required #3 | H | chat-response-complete | implemented | New demo replies use the loaded identity. Existing saved historical messages are preserved. |
|
||||
| F060 | T01 required #4 | H | models-* | implemented | Loaded-model identity now uses formatModelName. Removed the chat model catalog and multi-model profile flow; Model and Setup share a version ladder. |
|
||||
| F061 | T09 required #1 | M | models-overview | implemented | Single-model hero, seven version rows, detail action, installed list and shared Setup selection. Fit uses detected memory and context, with only the highest-quality fast fit recommended. Repeated profile warnings and compare trays were removed. |
|
||||
| F062 | T09 optional #1 | L | models-overview | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F063 | T09 optional #2 | L | models-overview | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F064 | T09 required #2 | M | models-recommendation-details | implemented | Single-model hero, seven version rows, detail action, installed list and shared Setup selection. Fit uses detected memory and context, with only the highest-quality fast fit recommended. Repeated profile warnings and compare trays were removed. |
|
||||
| F065 | T09 optional #3 | L | models-recommendation-details | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F066 | T09 optional #4 | L | models-filters | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F067 | T09 optional #5 | L | models-filters | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F068 | T01 optional #1 | L | models-file-details | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F069 | T09 optional #6 | L | models-storage | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F070 | T09 required #3 | M | models-context-64k | implemented | One consolidated memory warning and Use shorter context action replace repeated profile dead ends; budgets derive from hardware, not sample 2.1 GB numbers. |
|
||||
| F071 | T09 required #4 | M | models-none-installed | closed-by-removal | Closed by removing the multi-select compare tray and profile filters. |
|
||||
| F072 | T09 required #5 | M | models-hardware-unavailable | implemented | Single-model hero, seven version rows, detail action, installed list and shared Setup selection. Fit uses detected memory and context, with only the highest-quality fast fit recommended. Repeated profile warnings and compare trays were removed. |
|
||||
| F073 | T09 required #6 | M | models-hardware-unavailable-dialog | implemented | Single-model hero, seven version rows, detail action, installed list and shared Setup selection. Fit uses detected memory and context, with only the highest-quality fast fit recommended. Repeated profile warnings and compare trays were removed. |
|
||||
| F074 | T09 required #7 | M | models-load-confirmation | implemented | Plain switch sentence plus a disclosure of saved Engine context. No unmeasured five-second loading promise. |
|
||||
| F075 | T09 optional #7 | L | models-large-catalog | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F076 | T09 required #8 | M | models-load-error | implemented | One retry action in the switch dialog and shared sanitized error. Synthetic failed-load visual capture was unavailable; source path reviewed. |
|
||||
| F077 | T01 required #5 | H | engine-* | implemented | Loaded-model identity now uses formatModelName. Removed the chat model catalog and multi-model profile flow; Model and Setup share a version ladder. |
|
||||
| F078 | T10 required #1 | M | engine-beginner | implemented | Simple workloads/headroom and capability-aware context slider; animated auto-tune recommendation; compact grouped Expert parameters with unsupported inputs hidden/disabled; underline sub-tabs; inline JSON line/column errors; dirty-only action bar. |
|
||||
| F079 | T10 required #2 | M | engine-beginner | implemented | Range is filtered against model capabilities, including 1M for the design preview. |
|
||||
| F080 | T10 required #3 | M | engine-beginner | implemented | Simple workloads/headroom and capability-aware context slider; animated auto-tune recommendation; compact grouped Expert parameters with unsupported inputs hidden/disabled; underline sub-tabs; inline JSON line/column errors; dirty-only action bar. |
|
||||
| F081 | T10 required #4 | M | engine-* | implemented | Simple workloads/headroom and capability-aware context slider; animated auto-tune recommendation; compact grouped Expert parameters with unsupported inputs hidden/disabled; underline sub-tabs; inline JSON line/column errors; dirty-only action bar. |
|
||||
| F082 | T10 required #5 | M | engine-resource-controls | implemented | Simple workloads/headroom and capability-aware context slider; animated auto-tune recommendation; compact grouped Expert parameters with unsupported inputs hidden/disabled; underline sub-tabs; inline JSON line/column errors; dirty-only action bar. |
|
||||
| F083 | T10 optional #1 | L | engine-prompt-batch | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F084 | T10 required #6 | M | engine-expert | implemented | Simple workloads/headroom and capability-aware context slider; animated auto-tune recommendation; compact grouped Expert parameters with unsupported inputs hidden/disabled; underline sub-tabs; inline JSON line/column errors; dirty-only action bar. |
|
||||
| F085 | T10 optional #2 | L | engine-raw-config | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F086 | T10 optional #3 | L | engine-* | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F087 | T10 required #7 | H | engine-config-invalid | implemented | Simple workloads/headroom and capability-aware context slider; animated auto-tune recommendation; compact grouped Expert parameters with unsupported inputs hidden/disabled; underline sub-tabs; inline JSON line/column errors; dirty-only action bar. |
|
||||
| F088 | T10 optional #4 | L | engine-discard-confirmation | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F089 | T10 optional #5 | L | engine-actions | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F090 | T01 required #6 | M | engine-adapter-details | implemented | Header uses the actual loaded record; a real adapter may correctly report the original Qwen2.5 test model. |
|
||||
| F091 | T10 optional #6 | L | engine-adapter-details | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F092 | T10 required #8 | M | engine-expert-advanced | implemented | Simple workloads/headroom and capability-aware context slider; animated auto-tune recommendation; compact grouped Expert parameters with unsupported inputs hidden/disabled; underline sub-tabs; inline JSON line/column errors; dirty-only action bar. |
|
||||
| F093 | T10 required #9 | M | engine-expert-changed-only-empty | implemented | Simple workloads/headroom and capability-aware context slider; animated auto-tune recommendation; compact grouped Expert parameters with unsupported inputs hidden/disabled; underline sub-tabs; inline JSON line/column errors; dirty-only action bar. |
|
||||
| F094 | T03 required #3 | M | GLOBAL | implemented | Enabled primary buttons, neutral disabled controls, bright on toggles, brand checkboxes, a compact growing composer, and labelled task actions/detail chrome. |
|
||||
| F095 | T09 optional #8 | L | models-context-options | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F096 | T10 required #10 | H | engine-expert-* | implemented | Simple workloads/headroom and capability-aware context slider; animated auto-tune recommendation; compact grouped Expert parameters with unsupported inputs hidden/disabled; underline sub-tabs; inline JSON line/column errors; dirty-only action bar. |
|
||||
| F097 | T10 required #11 | M | engine-expert-server | closed-by-removal | Removed the duplicated unsupported Server access editor; Expert links to Serving. |
|
||||
| F098 | T04 required #3 | M | serving-requests-all | implemented | Shared ErrorNotice sanitizes Fixture prefixes and supports cause, recovery text and retry. Applied to composer/website, models, skills, tasks, setup, Serving and Cloudflare. Request states have semantic colors. |
|
||||
| F099 | T13 optional #1 | L | serving-requests-all | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F100 | T13 optional #2 | L | serving-requests-all | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F101 | T01 optional #2 | L | serving-requests-all | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F102 | T04 required #4 | M | serving-request-error | implemented | Shared sanitizer removes Fixture prefix. Synthetic upstream-error visual capture was unavailable. |
|
||||
| F103 | T13 required #1 | M | serving-request-queued | implemented | Queued cancellation, generated key dialog with copy only for a value, explicit local-network status/action and URL copy, and Connect an app in the empty state. |
|
||||
| F104 | T13 optional #3 | L | serving-request-done | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F105 | T03 optional #1 | L | GLOBAL-sidebar | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F106 | T13 optional #4 | L | serving-guide-* | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F107 | T13 optional #5 | L | serving-guide-* | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F108 | T13 required #2 | M | serving-key-empty | implemented | Key is generated in the editor draft on open; copy appears only for non-empty text. No key was saved during this review. |
|
||||
| F109 | T13 optional #6 | L | serving-key-remove-confirmation | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F110 | T13 optional #7 | L | serving-cloudflare-address | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F111 | T04 required #5 | M | serving-cloudflare-error | implemented | Shared ErrorNotice and one retry path; synthetic connector-error visual capture was unavailable. |
|
||||
| F112 | T13 optional #8 | L | serving-cloudflare-review-quick | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F113 | T13 optional #9 | L | serving-cloudflare-connector-missing | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F114 | T13 optional #10 | L | serving-cloudflare-connected | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F115 | T13 optional #11 | L | serving-tunnel-active | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F116 | T13 optional #12 | L | serving-cloudflare-domain-empty | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F117 | T13 required #3 | M | serving-local-sharing-* | implemented | Queued cancellation, generated key dialog with copy only for a value, explicit local-network status/action and URL copy, and Connect an app in the empty state. |
|
||||
| F118 | T13 required #4 | M | serving-local-sharing-manage | implemented | Queued cancellation, generated key dialog with copy only for a value, explicit local-network status/action and URL copy, and Connect an app in the empty state. |
|
||||
| F119 | T13 required #5 | M | serving-local-sharing-active | implemented | Shared local-network state has an amber dot, explicit status and Stop action. Public/local sharing was not enabled for screenshots. |
|
||||
| F120 | T13 optional #13 | L | serving-key-change | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F121 | T05 required #4 | H | monitor-generating | implemented | Used memory is clamped to total with a warning when the source reports an overflow. The UI does not claim swapping without a signal proving it. |
|
||||
| F122 | T14 required #1 | M | monitor-* | implemented | Shared-memory labels explain pool overlap and idle states are clear. Memory validation is shared with T05. |
|
||||
| F123 | T01 required #7 | M | monitor-* | implemented | Loaded-model identity now uses formatModelName. Removed the chat model catalog and multi-model profile flow; Model and Setup share a version ladder. |
|
||||
| F124 | T14 optional #1 | L | monitor-computer | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F125 | T05 optional #2 | L | monitor-* | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F126 | T03 required #4 | M | skills-* | implemented | Enabled primary buttons, neutral disabled controls, bright on toggles, brand checkboxes, a compact growing composer, and labelled task actions/detail chrome. |
|
||||
| F127 | T04 required #6 | M | skills-refresh-error | implemented | Retry ErrorNotice sits under the page header. Synthetic service-outage visual capture was unavailable. |
|
||||
| F128 | T15 optional #1 | L | skills-added | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F129 | T15 optional #2 | L | skills-edit | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F130 | T15 optional #3 | L | skills-overview | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F131 | T04 required #7 | M | GLOBAL | implemented | Central userError sanitization is used by ErrorNotice, including shared ActionError; source review plus unit coverage. |
|
||||
| F132 | T13 required #6 | M | serving-empty | implemented | Added empty-state Connect an app. Header remains icon-only with an accessible label, honoring the user’s earlier explicit annotation. |
|
||||
| F133 | T03 required #5 | M | tasks-populated | implemented | Enabled primary buttons, neutral disabled controls, bright on toggles, brand checkboxes, a compact growing composer, and labelled task actions/detail chrome. |
|
||||
| F134 | T04 required #8 | M | tasks-populated | implemented | Last run failed opens a sanitized ErrorNotice. Synthetic failed-run visual capture was unavailable. |
|
||||
| F135 | T15 optional #4 | L | tasks-populated | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F136 | T15 required #1 | M | tasks-create-* | implemented | Sans-serif instruction fields; scheduling state distinguishes scheduled and paused tasks; skills scope is explicit. Shared errors, toggles and dropdown layering cover related findings. |
|
||||
| F137 | T01 optional #3 | L | tasks-new-menu | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F138 | T15 optional #5 | L | tasks-empty | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F139 | T15 optional #6 | L | tasks-ai-blank | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F140 | T02 required #1 | H | tasks-repeat-options | implemented | Opaque dialogs and palettes, explicit overlay layers, dropdowns above their parent dialog, dark scrims and stable scroll gutters. |
|
||||
| F141 | T15 required #2 | M | tasks-created | implemented | Scheduled creation shows next run or Scheduled while the scheduler computes it, never Paused solely because nextRun is initially empty. |
|
||||
| F142 | T03 required #6 | M | tasks-detail-* | implemented | Enabled primary buttons, neutral disabled controls, bright on toggles, brand checkboxes, a compact growing composer, and labelled task actions/detail chrome. |
|
||||
| F143 | T15 optional #7 | L | tasks-result | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F144 | T16 required #1 | M | settings-search | implemented | Settings index follows the visible/search-result section. Setup context controls are inline, and its opaque bounded dialog retains a sticky footer. |
|
||||
| F145 | T16 optional #1 | L | settings-general | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F146 | T16 optional #2 | L | settings-general | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F147 | T16 optional #3 | L | settings-reading-focus | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F148 | T16 optional #4 | L | settings-storage | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F149 | T02 required #2 | H | setup-computer | implemented | Opaque dialogs and palettes, explicit overlay layers, dropdowns above their parent dialog, dark scrims and stable scroll gutters. |
|
||||
| F150 | T01 required #8 | H | setup-model | implemented | Setup shares the version ladder and fit recommendation; when no version fits fast, it does not falsely tag a slow version Recommended. |
|
||||
| F151 | T16 required #2 | M | setup-advanced | implemented | Settings index follows the visible/search-result section. Setup context controls are inline, and its opaque bounded dialog retains a sticky footer. |
|
||||
| F152 | T09 required #9 | M | setup-model | implemented | Bounded opaque setup with scrollable body and persistent header/footer verified at 1280×720. |
|
||||
| F153 | T04 required #9 | M | setup-prepare-error | implemented | Preparation error heading and ErrorNotice replace raw fixture text; synthetic prepare-failure visual capture was unavailable. |
|
||||
| F154 | T16 optional #5 | L | setup-prepare | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F155 | T02 required #3 | M | navigation-rename-chat | implemented | Opaque dialogs and palettes, explicit overlay layers, dropdowns above their parent dialog, dark scrims and stable scroll gutters. |
|
||||
| F156 | T17 required #1 | M | navigation-rename-chat | implemented | Rename uses a stacked full-width selected input; deletion offers Archive instead; shared overlay/gutter fixes prevent page movement. |
|
||||
| F157 | T17 required #2 | M | navigation-delete-chat-confirmation | implemented | Rename uses a stacked full-width selected input; deletion offers Archive instead; shared overlay/gutter fixes prevent page movement. |
|
||||
| F158 | T02 required #4 | M | navigation-command-palette | implemented | Opaque dialogs and palettes, explicit overlay layers, dropdowns above their parent dialog, dark scrims and stable scroll gutters. |
|
||||
| F159 | T08 required #1 | H | navigation-more | implemented | Engine and singular Model are primary navigation destinations. More contains Serving and Settings. |
|
||||
| F160 | T17 optional #1 | L | navigation-command-search | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F161 | T17 optional #2 | L | navigation-sidebar-collapsed | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F162 | T18 required #1 | M | preview-* | implemented | Active tabs scroll within their strip with edge fades. Narrow windows use an overlay; wide windows retain enough chat width. Images/PDF share Fit/100% controls and PDF uses icon paging. |
|
||||
| F163 | T18 required #2 | M | preview-* | implemented | Preview switches to overlay below 1120px available main width; wide-screen chat was measured at 644.6px at a 1654px viewport. |
|
||||
| F164 | T18 required #3 | M | preview-pdf-* | implemented | Active tabs scroll within their strip with edge fades. Narrow windows use an overlay; wide windows retain enough chat width. Images/PDF share Fit/100% controls and PDF uses icon paging. |
|
||||
| F165 | T18 optional #1 | L | preview-pdf-actual | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F166 | T18 optional #2 | L | preview-full-screen | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F167 | T18 optional #3 | L | preview-* | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F168 | T18 optional #4 | L | preview-table | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F169 | T02 required #5 | M | dark-* | implemented | Opaque dialogs and palettes, explicit overlay layers, dropdowns above their parent dialog, dark scrims and stable scroll gutters. |
|
||||
| F170 | T03 required #7 | M | dark-* | implemented | Dark primary is #087654 with white ink: verified contrast and luminance requirements both pass. |
|
||||
| F171 | T03 optional #2 | L | dark-* | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F172 | T19 optional #1 | L | dark-models-overview | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F173 | T19 required #1 | M | dark-chat-open-website-invalid | implemented | Shared field ErrorNotice + aria-invalid and red field border, captured in both themes. |
|
||||
| F174 | T03 optional #3 | L | dark-preview-pdf / dark-preview-website | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F175 | T19 optional #2 | L | dark-monitor-generating | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
| F176 | T03 required #8 | M | dark-skills-overview / dark-skills-edit | implemented | Enabled primary buttons, neutral disabled controls, bright on toggles, brand checkboxes, a compact growing composer, and labelled task actions/detail chrome. |
|
||||
| F177 | T19 optional #3 | L | dark-setup-model | optional-not-scheduled | Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed. |
|
||||
@@ -0,0 +1,202 @@
|
||||
# Strata audit fixes — implementation and review
|
||||
|
||||
Executed by Codex on 7 October 2026. No Claude process or Claude subagent was used.
|
||||
|
||||
## Scope and setup
|
||||
|
||||
- Package extracted to `audit-fixes/`; bundled agent definition copied unchanged to `.claude/agents/strata-fixer.md`.
|
||||
- Original 420 audit PNGs remain in `docs/evidence/audit-2026-10-07/`.
|
||||
- All 19 tasks were handled in dependency order. The required scope was **15 high + 82 medium findings**. The 80 optional low findings were not scheduled for a separate polish pass; some disappeared as a consequence of rebuilding the affected surfaces.
|
||||
- Every required finding has a disposition in [FINDING-STATUS.md](FINDING-STATUS.md), with a machine-readable copy in [finding-status.json](finding-status.json).
|
||||
- This app and its parent folder have no Git repository. No branches/commits were invented. Original source and preview state were saved in `baseline-source.tar.gz` and `baseline-preview-state.json`. [changed-files.txt](changed-files.txt) records the source comparison.
|
||||
- Design-kit files under `src/styles/kit/` were not changed.
|
||||
|
||||
## Phase 1 — shared fixes
|
||||
|
||||
### T01 · One model identity
|
||||
|
||||
Loaded-model identity now uses formatModelName. Removed the chat model catalog and multi-model profile flow; Model and Setup share a version ladder.
|
||||
|
||||
- Required findings: F001, F011, F059, F060, F077, F090, F123, F150.
|
||||
- Main files: `src/lib/format.ts; src/app/Sidebar.tsx; src/components/ComposerControls.tsx; src/screens/{Models,Setup,Tuning,Monitor}.tsx; server/catalog.mjs`.
|
||||
- Dispositions and qualifications: see the T01 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T02 · Overlay layering
|
||||
|
||||
Opaque dialogs and palettes, explicit overlay layers, dropdowns above their parent dialog, dark scrims and stable scroll gutters.
|
||||
|
||||
- Required findings: F140, F149, F155, F158, F169.
|
||||
- Main files: `src/components/{ui,Popover,FloatingMenu}.tsx; src/styles/app.css; src/screens/Chat.tsx`.
|
||||
- Dispositions and qualifications: see the T02 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T03 · Control states
|
||||
|
||||
Enabled primary buttons, neutral disabled controls, bright on toggles, brand checkboxes, a compact growing composer, and labelled task actions/detail chrome.
|
||||
|
||||
- Required findings: F025, F035, F094, F126, F133, F142, F170, F176.
|
||||
- Main files: `src/styles/app.css; src/screens/{Chat,Tasks}.tsx`.
|
||||
- Dispositions and qualifications: see the T03 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T04 · Errors
|
||||
|
||||
Shared ErrorNotice sanitizes Fixture prefixes and supports cause, recovery text and retry. Applied to composer/website, models, skills, tasks, setup, Serving and Cloudflare. Request states have semantic colors.
|
||||
|
||||
- Required findings: F021, F053, F098, F102, F111, F127, F131, F134, F153.
|
||||
- Main files: `src/components/{ui,CloudflareDialog,ComposerControls}.tsx; src/lib/format.ts; src/screens/{Models,Skills,Tasks,Serving,Setup,Chat}.tsx`.
|
||||
- Dispositions and qualifications: see the T04 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T05 · Live numbers
|
||||
|
||||
Hide idle chat statistics; show live estimated speed/tokens until reported usage arrives. Context comes from engine config. Clamp and flag impossible memory readings without asserting unobserved swapping.
|
||||
|
||||
- Required findings: F003, F006, F023, F121.
|
||||
- Main files: `src/lib/{chat-metrics,hardware-summary,store}.ts; src/components/TelemetryPopover.tsx; src/screens/Monitor.tsx; server/monitor.mjs`.
|
||||
- Dispositions and qualifications: see the T05 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T06 · Response hover layout
|
||||
|
||||
Response actions use a horizontal row below content and a portaled floating menu, so opening More never reflows or clips the response.
|
||||
|
||||
- Required findings: F034.
|
||||
- Main files: `src/screens/Chat.tsx; src/styles/app.css`.
|
||||
- Dispositions and qualifications: see the T06 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T07 · Unbuilt controls
|
||||
|
||||
Feature flags hide unfinished access modes, thinking levels and session-log export. A single Preview build badge identifies simulated mode; provenance remains where otherwise misleading.
|
||||
|
||||
- Required findings: F051.
|
||||
- Main files: `src/lib/features.ts; src/components/{ComposerControls,ChatToolbar,layout,ui}.tsx; src/components/TelemetryPopover.tsx`.
|
||||
- Dispositions and qualifications: see the T07 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T08 · Primary navigation
|
||||
|
||||
Engine and singular Model are primary navigation destinations. More contains Serving and Settings.
|
||||
|
||||
- Required findings: F159.
|
||||
- Main files: `src/app/Sidebar.tsx; src/lib/commands.ts`.
|
||||
- Dispositions and qualifications: see the T08 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
## Phase 2 — Model and Engine
|
||||
|
||||
### T09 · Model page
|
||||
|
||||
Single-model hero, seven version rows, detail action, installed list and shared Setup selection. Fit uses detected memory and context, with only the highest-quality fast fit recommended. Repeated profile warnings and compare trays were removed.
|
||||
|
||||
- Required findings: F061, F064, F070, F071, F072, F073, F074, F076, F152.
|
||||
- Main files: `src/screens/{Models,Setup}.tsx; src/components/VersionLadder.tsx; src/lib/model-versions.ts; server/{catalog,models}.mjs`.
|
||||
- Dispositions and qualifications: see the T09 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T10 · Engine v3
|
||||
|
||||
Simple workloads/headroom and capability-aware context slider; animated auto-tune recommendation; compact grouped Expert parameters with unsupported inputs hidden/disabled; underline sub-tabs; inline JSON line/column errors; dirty-only action bar.
|
||||
|
||||
- Required findings: F078, F079, F080, F081, F082, F084, F087, F092, F093, F096, F097.
|
||||
- Main files: `src/screens/Tuning.tsx; src/components/{AutoTune,EngineExperience}.tsx; src/lib/config.ts; src/styles/app.css`.
|
||||
- Dispositions and qualifications: see the T10 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
## Phase 3 — remaining screen fixes
|
||||
|
||||
### T11 · Chat
|
||||
|
||||
Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About.
|
||||
|
||||
- Required findings: F002, F004, F007, F012, F013, F015, F017, F018, F026, F028, F030, F032, F039, F041, F043, F052, F055, F056, F057, F058.
|
||||
- Main files: `src/screens/Chat.tsx; src/components/{ChatToolbar,SubagentRow,ArtifactCard,ComposerControls,Markdown}.tsx; src/lib/{store,commands}.ts`.
|
||||
- Dispositions and qualifications: see the T11 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T12 · Time-skip
|
||||
|
||||
Stable Version A/B labels, readable amber status text, primary Open version B and secondary Compare at completion. The selected example result opens in the preview.
|
||||
|
||||
- Required findings: F045, F047, F048.
|
||||
- Main files: `src/components/TimeSkipPanel.tsx; src/screens/Chat.tsx; src/styles/app.css`.
|
||||
- Dispositions and qualifications: see the T12 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T13 · Serving
|
||||
|
||||
Queued cancellation, generated key dialog with copy only for a value, explicit local-network status/action and URL copy, and Connect an app in the empty state.
|
||||
|
||||
- Required findings: F103, F108, F117, F118, F119, F132.
|
||||
- Main files: `src/screens/Serving.tsx; src/components/CloudflareDialog.tsx`.
|
||||
- Dispositions and qualifications: see the T13 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T14 · Monitor
|
||||
|
||||
Shared-memory labels explain pool overlap and idle states are clear. Memory validation is shared with T05.
|
||||
|
||||
- Required findings: F122.
|
||||
- Main files: `src/screens/Monitor.tsx; src/lib/hardware-summary.ts`.
|
||||
- Dispositions and qualifications: see the T14 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T15 · Skills and Tasks
|
||||
|
||||
Sans-serif instruction fields; scheduling state distinguishes scheduled and paused tasks; skills scope is explicit. Shared errors, toggles and dropdown layering cover related findings.
|
||||
|
||||
- Required findings: F136, F141.
|
||||
- Main files: `src/screens/{Skills,Tasks}.tsx; src/components/TaskEditor.tsx; src/styles/app.css`.
|
||||
- Dispositions and qualifications: see the T15 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T16 · Settings and Setup
|
||||
|
||||
Settings index follows the visible/search-result section. Setup context controls are inline, and its opaque bounded dialog retains a sticky footer.
|
||||
|
||||
- Required findings: F144, F151.
|
||||
- Main files: `src/screens/{Settings,Setup}.tsx; src/styles/app.css`.
|
||||
- Dispositions and qualifications: see the T16 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T17 · Navigation dialogs
|
||||
|
||||
Rename uses a stacked full-width selected input; deletion offers Archive instead; shared overlay/gutter fixes prevent page movement.
|
||||
|
||||
- Required findings: F156, F157.
|
||||
- Main files: `src/app/Sidebar.tsx; src/styles/app.css`.
|
||||
- Dispositions and qualifications: see the T17 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T18 · Preview panel
|
||||
|
||||
Active tabs scroll within their strip with edge fades. Narrow windows use an overlay; wide windows retain enough chat width. Images/PDF share Fit/100% controls and PDF uses icon paging.
|
||||
|
||||
- Required findings: F162, F163, F164.
|
||||
- Main files: `src/components/{ArtifactPanel,PreviewControls,PdfPreview}.tsx; src/screens/Chat.tsx; src/styles/app.css`.
|
||||
- Dispositions and qualifications: see the T18 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
### T19 · Dark theme
|
||||
|
||||
Shared field-error style is visible in dark mode; opaque overlays and dark scrims preserve depth. Primary/toggle changes pass contrast and surface-luminance checks.
|
||||
|
||||
- Required findings: F173.
|
||||
- Main files: `src/styles/app.css; src/components/ComposerControls.tsx`.
|
||||
- Dispositions and qualifications: see the T19 entries in [FINDING-STATUS.md](FINDING-STATUS.md).
|
||||
|
||||
## Verification
|
||||
|
||||
| Check | Result | Evidence |
|
||||
|---|---|---|
|
||||
| Baseline unit suite | 34 passed | Existing suite before changes |
|
||||
| Final unit suite | 39 passed; 0 failed, skipped or cancelled | [tests.log](tests.log) |
|
||||
| Production build | Passed | [build.log](build.log) |
|
||||
| TypeScript, UI audit, WCAG contrast, reading measure, dark-surface luminance | Passed | [check-final.log](check-final.log) |
|
||||
| Motion/reduced motion | Passed | [motion.log](motion.log) |
|
||||
| Quantified motion budget | **Not measured**: harness self-check could not detect its deliberately expensive control effect | [motion-budget.log](motion-budget.log) |
|
||||
|
||||
The package command `node --test tests/` is not accepted as a directory entry point by the installed Node version. Used `node --test tests/*.test.mjs` instead. Existing tests were retained. Fixture IDs and stale UI selectors were updated to the new single-model catalog and current accessible control labels; five logic tests were added (identity, memory, model fit, usage, JSON diagnostics).
|
||||
|
||||
Interactive checks covered Repeat above the task modal; dark/light enabled and disabled controls; settings search; failed-agent logs; website validation; active-tab closing and scrolling; PDF/image controls; Time-skip completion and opening its selected result; JSON error placement; and reply menu layout. A reply rectangle stayed exactly 864 × 298.8px before/after opening More at the wide viewport. Expert now shows five parameter rows and the next section heading at 1280×720.
|
||||
|
||||
The screenshot set is a **targeted regression review**, not a replacement capture of all 210 old states. Retired model pickers/profile/compare surfaces cannot be recaptured. An isolated read-only synthetic fixture endpoint was blocked by the browser (`ERR_BLOCKED_BY_CLIENT`); it was stopped without attempting a bypass. Synthetic hardware-unavailable, model-load/prepare failure, service-outage, queued and active-sharing states are source/logic reviewed but not all visually recaptured. No API key or network exposure was enabled during review.
|
||||
|
||||
## Product qualifications
|
||||
|
||||
- The seven Qwen3.8 versions are **design-preview data** from the supplied reference, explicitly marked Preview build. They are not claims of available downloadable model files. Real-engine mode retains the original verified model catalog and real download sources; this is why a literal source grep still finds Qwen2.5 in `server/real-model-catalog.mjs`.
|
||||
- Model fit uses detected hardware. The current 16GB computer cannot run the preview Balanced weights within the estimated budget; the UI correctly warns even though the simulated preview marks that version Running.
|
||||
- Numerical per-version benchmark speeds are not invented. Model says Not measured; Engine labels its demo estimates. Auto-tune animates checking/recommending supported settings and asks to review/save; it does not claim to have executed a benchmark.
|
||||
- Primary colors were adjusted to satisfy measured text contrast and the existing dark-surface budget. Literal white on #10b981 in light mode would fail text contrast.
|
||||
- The Serving guide header stays icon-only because the user explicitly requested that earlier. Its empty state now includes a labelled Connect an app action.
|
||||
- Text/code attachment is supported in the visible prompt. Image/video/GIF previews remain available; binary model input is outside the current text inference API.
|
||||
- Time-skip is still the scripted two-version prototype. Open version B opens the actual selected example summary; it does not imply a generated OMP artifact.
|
||||
- Setup/preview popovers are suppressed when setup is open. HMR edits to the central store require a browser reload during development; a normal fresh page load initializes correctly.
|
||||
|
||||
## Evidence and follow-up
|
||||
|
||||
See [the screenshot gallery](../docs/evidence/audit-fixes-2026-10-07/index.html) and [its coverage notes](../docs/evidence/audit-fixes-2026-10-07/README.md). Optional low-priority work remains listed in the supplied task files and finding ledger. Examples include richer raw-config syntax highlighting, advanced storage actions, and minor copy/spacing polish.
|
||||
@@ -0,0 +1,35 @@
|
||||
# Prompts for Claude Code
|
||||
|
||||
## 1. Run one task (simplest)
|
||||
Start a new session in the repo for each task and paste:
|
||||
|
||||
```
|
||||
Use the strata-fixer subagent to complete audit-fixes/tasks/T01-one-model-name.md.
|
||||
High and medium findings only. Follow the task's "How to check" and "Done when" sections.
|
||||
```
|
||||
|
||||
Change the file name for each task. Set the effort to medium for the subagent (for example with /model, or in your settings) to keep costs down.
|
||||
|
||||
## 2. Run a whole phase (orchestrated)
|
||||
Paste into one session:
|
||||
|
||||
```
|
||||
Read audit-fixes/README.md. Run Phase 1: for each task T01–T08, launch the strata-fixer
|
||||
subagent with its task file, high and medium findings only. Run tasks whose
|
||||
dependencies are met in parallel; wait for T01 before T05 and T08.
|
||||
Each subagent works on its own branch. When all are done, merge the branches into
|
||||
fix/phase-1 in task order, resolve conflicts, and run npm run check, node --test tests/
|
||||
and npm run build. Then stop and summarise PROGRESS.md for me.
|
||||
```
|
||||
|
||||
Use the same prompt for Phase 2 (T09–T10) and Phase 3 (T11–T19).
|
||||
|
||||
## 3. Review after each phase
|
||||
Run this in a fresh session, ideally on a stronger model:
|
||||
|
||||
```
|
||||
Review the fix/phase-1 branch against audit-fixes/REVIEW.md and the task files for T01–T08.
|
||||
For each finding, check the change in the code and, for the states listed, re-capture the
|
||||
screen and compare it with docs/evidence/audit-2026-10-07/. Report, per task: fixed, not
|
||||
fixed, regressions. Don't fix anything yourself, just list what to send back.
|
||||
```
|
||||
@@ -0,0 +1,71 @@
|
||||
# Strata UI fixes — handoff for Claude Code
|
||||
|
||||
This package comes from the Strata UI audit of 7 October 2026: 177 findings across 210 screen states. Here they are split into 19 tasks. Each task file lists the findings it covers, the files to change, and how to check the result.
|
||||
|
||||
## What's inside
|
||||
- `tasks/` has one file per task, ready to give to a subagent.
|
||||
- `findings.json` has all 177 findings with severity, state, issue, suggested fix and assigned task.
|
||||
- `designs/` holds the reference designs for T09 (Model) and T10 (Engine v3). They are design-component source files: read them for structure, copy, colours and behaviour. They won't run on their own.
|
||||
- `.claude/agents/strata-fixer.md` is a subagent definition (Sonnet, focused on one task).
|
||||
- `PROMPTS.md` has the prompts to paste into Claude Code.
|
||||
- `REVIEW.md` is the checklist for the review after each phase.
|
||||
- `PROGRESS.md` is the log that each task appends to.
|
||||
|
||||
## Setup
|
||||
1. Copy this folder into the repo root as `audit-fixes/` (so paths read `audit-fixes/tasks/T01-…`).
|
||||
2. Copy `audit-fixes/.claude/agents/strata-fixer.md` to `.claude/agents/strata-fixer.md` in the repo.
|
||||
3. Make sure `docs/evidence/audit-2026-10-07/` (the screenshots) is in the repo, because the task files point to it.
|
||||
4. Run `npm install`, then `npm run check` and `node --test tests/` once. Note anything that already fails, so it isn't blamed on a task.
|
||||
|
||||
## Order
|
||||
Phase 1 fixes shared components, so later tasks get smaller. Tasks in the same phase with no dependency between them can run in parallel on separate branches.
|
||||
|
||||
### Phase 1 — root causes (shared components)
|
||||
| Task | Title | Findings | High / Med / Low | Depends on |
|
||||
|---|---|---|---|---|
|
||||
| T01 | One model, one name | 11 | 6 / 2 / 3 | — |
|
||||
| T02 | Overlay layering and dialogs | 5 | 2 / 3 / 0 | — |
|
||||
| T03 | Primary, disabled and on states | 11 | 1 / 7 / 3 | — |
|
||||
| T04 | One error component, no fixture text | 10 | 0 / 9 / 1 | — |
|
||||
| T05 | Show numbers when they matter | 6 | 2 / 2 / 2 | T01 |
|
||||
| T06 | Fix the response hover layout | 1 | 1 / 0 / 0 | — |
|
||||
| T07 | Hide what is not built | 2 | 0 / 1 / 1 | — |
|
||||
| T08 | Engine and Model in the main nav | 1 | 1 / 0 / 0 | T01 |
|
||||
|
||||
### Phase 2 — rebuild Model and Engine
|
||||
| Task | Title | Findings | High / Med / Low | Depends on |
|
||||
|---|---|---|---|---|
|
||||
| T09 | Build the single-model Model page | 17 | 0 / 9 / 8 | T01, T03, T04 |
|
||||
| T10 | Build Engine v3 | 17 | 2 / 9 / 6 | T01, T02, T03 |
|
||||
|
||||
### Phase 3 — remaining findings per screen
|
||||
| Task | Title | Findings | High / Med / Low | Depends on |
|
||||
|---|---|---|---|---|
|
||||
| T11 | Chat: remaining findings | 38 | 0 / 20 / 18 | T01, T05, T06, T07 |
|
||||
| T12 | Time-skip: remaining findings | 6 | 0 / 3 / 3 | — |
|
||||
| T13 | Serving: remaining findings | 19 | 0 / 6 / 13 | T04 |
|
||||
| T14 | Monitor: remaining findings | 2 | 0 / 1 / 1 | T05 |
|
||||
| T15 | Skills and Tasks: remaining findings | 9 | 0 / 2 / 7 | T02, T03, T04 |
|
||||
| T16 | Settings and Setup: remaining findings | 7 | 0 / 2 / 5 | T02, T09 |
|
||||
| T17 | Navigation and overlays: remaining findings | 4 | 0 / 2 / 2 | T02, T08 |
|
||||
| T18 | Preview panel: remaining findings | 7 | 0 / 3 / 4 | — |
|
||||
| T19 | Dark mode: remaining findings | 4 | 0 / 1 / 3 | T02, T03 |
|
||||
|
||||
## Running it cheaply
|
||||
- Do high and medium first. Every task file puts low findings under "Optional polish". Skip them in the first pass. That cuts about a third of the work.
|
||||
- Use a fresh session per task. Each subagent starts clean with only its task file, so context stays small.
|
||||
- Check with tests first, and use screenshots only for the states listed in the task.
|
||||
- After each phase, run one review (see REVIEW.md) instead of reviewing after every task.
|
||||
|
||||
Rough cost at API list prices (Sonnet 5.5, medium effort, for the subagents; one review per phase):
|
||||
- Phase 1 (8 tasks): $10–20
|
||||
- Phase 2 (2 large tasks): $8–16
|
||||
- Phase 3 (9 tasks): $10–20, or about half that if you skip the low findings
|
||||
- Reviews: $8–15
|
||||
|
||||
## Ground rules for every task
|
||||
- Stay within the task's scope. If a fix needs a file that another task owns, make the smallest change and note it in PROGRESS.md.
|
||||
- Don't change the design kit tokens in `src/styles/kit/` unless the task says so. Run `npm run sync:kit` if you do.
|
||||
- Keep both themes working. Check light and dark.
|
||||
- Existing tests must stay green. Add tests for new logic (formatters, clamping, fit rules).
|
||||
- A finding can be closed as "already fixed by Txx" or "not reproducible", with a one-line reason.
|
||||
@@ -0,0 +1,47 @@
|
||||
# Review checklist — completed 7 October 2026
|
||||
|
||||
The final review covers all three phases together. See PROGRESS.md for each task and FINDING-STATUS.md for every finding. Checkboxes are intentionally left open where evidence is incomplete or the requested literal check was adapted.
|
||||
|
||||
## Every phase
|
||||
|
||||
- [x] `npm run check` passes (typecheck, UI audit, contrast, measure, luminance). Final log: `check-final.log`.
|
||||
- [x] `node --test tests/*.test.mjs` passes: 39 tests, none skipped or removed. The package's directory form is incompatible with the installed Node version.
|
||||
- [x] `npm run build` succeeds.
|
||||
- [x] Every high/medium finding is implemented or closed with a documented reason in PROGRESS.md / FINDING-STATUS.md.
|
||||
- [ ] Every listed state re-captured in both themes. **Partial:** 87 targeted screenshots; obsolete screens removed; the read-only synthetic fixture endpoint was blocked by the browser. No bypass attempted.
|
||||
- [x] Dialog/menu/response checks show no unintended content movement; response menu geometry was measured unchanged.
|
||||
- [x] Source compared with the baseline archive; changes belong to the audit fixes or supporting tests. Design-kit token files unchanged.
|
||||
|
||||
## Phase 1
|
||||
|
||||
- [x] One formatter supplies loaded-model identity throughout the UI.
|
||||
- [ ] Literal no-Qwen2.5 source grep. **Intentional exception:** `server/real-model-catalog.mjs` retains the verified real-engine model/download source. The design preview uses the supplied Qwen3.8 family. Do not rename a real model into a fictional one.
|
||||
- [x] No multi-model pickers remain; Model owns version selection and Setup reuses the same ladder.
|
||||
- [x] Repeat listbox works above the task dialog in both themes.
|
||||
- [x] Enabled/disabled primary states and on/off toggles are visually distinct.
|
||||
- [x] Shared ErrorNotice strips Fixture prefixes; error fields have clear state and recovery paths.
|
||||
- [x] Composer shows live estimated speed during streaming; Monitor clamps/flags impossible memory values.
|
||||
- [x] Engine and Model are primary navigation destinations.
|
||||
|
||||
## Phase 2
|
||||
|
||||
- [x] Model follows the reference structure: running hero, version ladder, details/actions and installed versions.
|
||||
- [x] Fit/recommendation derives from detected hardware and context, not reference placeholder numbers.
|
||||
- [x] Model lifecycle action mapping is implemented. Some synthetic lifecycle states were source-reviewed rather than captured.
|
||||
- [x] Engine follows the reference structure with compact Expert parameters and inline JSON diagnostics.
|
||||
- [x] Motion/reduced-motion checks pass (`motion.log`).
|
||||
- [ ] Quantified motion budget passes. **Not measured:** harness self-check could not detect a known-expensive effect (`motion-budget.log`). No performance claim made.
|
||||
|
||||
## Phase 3
|
||||
|
||||
- [x] All required screen findings have a disposition.
|
||||
- [x] Dark mode passes contrast and luminance checks.
|
||||
- [x] Time-skip completion opens the selected example result; A/B names stay stable.
|
||||
- [x] Optional low-priority polish remains explicitly unscheduled rather than silently claimed complete.
|
||||
|
||||
## Delivery
|
||||
|
||||
- [x] Package extracted; requested agent file copied unchanged.
|
||||
- [x] Original evidence preserved; targeted review evidence in `docs/evidence/audit-fixes-2026-10-07/`.
|
||||
- [x] No Git metadata exists here; baseline archive and changed-file inventory supplied instead of branch commits.
|
||||
- [x] No external publishing, API-key save, model-weight download or network exposure performed for the review.
|
||||
@@ -0,0 +1,32 @@
|
||||
exec((__import__('pathlib').Path(__file__).parent/'apply-shared.py').read_text().split("append('src/lib/format.ts'")[0])
|
||||
p=root/'src/components/ComposerControls.tsx';s=p.read_text();s=s.replace("import { Btn, Dialog, Icon }", "import { Btn, Dialog, Icon, ErrorNotice }");s="import { formatModelName } from '../lib/format';\nimport { features } from '../lib/features';\n"+s
|
||||
start=s.index(' <button ref={accessTrigger}');end=s.index(' <span className="spacer"/>',start);s=s[:start]+s[start:end].replace('<button','{features.toolAccess&&<button',1).replace('</button>','</button>}')+s[end:]
|
||||
start=s.index(' <button className="composer-choice composer-model"');end=s.index(' {menu?',start)
|
||||
s=s[:start]+''' <button className="composer-choice composer-model" onClick={()=>go('models')} title={formatModelName(loaded)}><span>{formatModelName(loaded)}</span></button>
|
||||
{features.thinkingLevels&&<button ref={thinkingTrigger} className="composer-choice composer-effort" onClick={()=>setPreferences('thinking')} title="Thinking level"><Icon name="thinking" size={16}/><span>{session?.preferences?.thinking??'Auto'}</span></button>}
|
||||
'''+s[end:]
|
||||
start=s.index('<button role="menuitem" className="menu__item" onClick={()=>{setMenu(false);createPreviewExamples();}}');end=s.index('</FloatingMenu>',start);s=s[:start]+'{features.demosInComposer&&<>'+s[start:end]+'</>}' +s[end:]
|
||||
start=s.index(' <Dialog open={models}');end=s.index(' <Dialog open={urlOpen}',start);s=s[:start]+s[end:]
|
||||
s=s.replace('Open a file<span className="xs muted">Preview only</span>','Open a file preview')
|
||||
s=s.replace('type="url" value={url}', 'type="url" aria-invalid={!!error} aria-describedby={error?"website-error":undefined} value={url}')
|
||||
s=s.replace('<p className="small muted">Some sites block embedded views. You can open them in your browser instead.</p>{error?<p role="alert" className="inline-error">{error}</p>:null}', '{error?<div id="website-error"><ErrorNotice message={error}/></div>:null}<p className="small muted">Some sites block embedded views. You can open them in your browser instead.</p>')
|
||||
s=s.replace("onChange={e=>setUrl(e.target.value)}", "onChange={e=>{setUrl(e.target.value);setError('');}}")
|
||||
s=s.replace("<p className=\"composer-menu-note xs muted\">Saved for this chat. {preferences==='access'?'Tool execution':'Adjustable thinking'} isn’t connected in this preview.</p>", '')
|
||||
s=s.replace("{value:'read',label:'Read only'},{value:'write',label:'Workspace write'},{value:'full',label:'Full access'}", "{value:'read',label:'Read only — inspect files'},{value:'write',label:'Workspace write — edit project files'},{value:'full',label:'Full access — can change your computer'}")
|
||||
s=s.replace("{error&&!models&&!urlOpen?<button className=\"composer-file-error\" onClick={()=>setError('')} title=\"Dismiss file error\">{error}</button>:null}", "{error&&!urlOpen?<ErrorNotice message={error} action=\"Dismiss\" onRetry={()=>setError('')}/>:null}")
|
||||
p.write_text(s)
|
||||
# Usage is calculated from streaming stats or explicitly marked estimates, never a fabricated rate.
|
||||
p=root/'src/lib/chat-metrics.ts';s=p.read_text();s=s.replace("const speed=[...replies].reverse().find(m=>m.tps!==undefined)?.tps??null;", "const streaming=replies.find(m=>m.streaming);\n const speed=streaming?.tps??[...replies].reverse().find(m=>m.tps!==undefined)?.tps??null;")
|
||||
s=s.replace('total:hasUsage?session.tokensIn+session.tokensOut:messages.length?null:0,', 'total:hasUsage?session.tokensIn+session.tokensOut+(streaming?.tokens??0):replies.every(m=>m.inputTokens!==undefined&&m.tokens!==undefined)?replies.reduce((n,m)=>n+m.inputTokens!+m.tokens!,0):null,')
|
||||
s=s.replace('return {example:', "return {streaming:!!streaming,estimated:streaming?.usageSource==='estimated',hasReplies:replies.length>0,example:")
|
||||
p.write_text(s)
|
||||
edit('src/lib/types.ts',"usageSource?: 'reported' | 'demo' | 'unavailable';", "usageSource?: 'reported' | 'demo' | 'unavailable' | 'estimated';")
|
||||
edit('src/lib/store.ts',"statsAvailable: sess.statsAvailable !== false && typeof frame.tokensIn === 'number' && typeof frame.tokensOut === 'number',", "statsAvailable: typeof frame.tokensIn === 'number' && typeof frame.tokensOut === 'number' && sess.messages.filter(m=>m.role==='assistant'&&!m.streaming).every(m=>typeof m.inputTokens==='number'),")
|
||||
edit('src/lib/store.ts',"patchAssistant((m) => ({ ...m, content: m.content + String(frame.text ?? '') }));", "patchAssistant((m) => { const content=m.content+String(frame.text??''); const count=Math.max(1,Math.ceil(content.length/4)); const seconds=Math.max(.1,(performance.now()-started)/1000); return {...m,content,tokens:count,tps:count/seconds,usageSource:'estimated'}; });")
|
||||
p=root/'src/components/TelemetryPopover.tsx';s=p.read_text();s=s.replace('const note=m.example?', 'if(!m.hasReplies)return null;\n const note=m.example?');s=s.replace("`${m.speed===null?'—':Math.round(m.speed)} tokens/s`", "`${m.estimated?'≈ ':''}${m.speed===null?'—':Math.round(m.speed)} tok/s${m.streaming?'':' · last reply'}`");s=s.replace('label="LLM time"','label="Thinking & writing"');s=s.replace('title="Session statistics"><Row', 'title="Session statistics">{m.estimated?<p className="xs muted">Live estimate from response length and elapsed time. Final usage comes from the engine.</p>:null}<Row');s=s.replace('`${Math.round(m.pct)}%`} title="Context length"','`${Math.round(m.pct)}% of context`} title="Context length"');s=s.replace('Includes the latest prompt and response. Automatic compaction is not connected in this build.','Includes the latest prompt and response.');p.write_text(s)
|
||||
edit('src/components/ArtifactCard.tsx','<Icon name="chevron" size={16}/>','<Icon name="ellipsis" size={16}/>')
|
||||
p=root/'src/components/Markdown.tsx';s=p.read_text();s=s.replace(r'\*\*[^*]+\*\*|',r'\*\*[^*]+\*\*|\*[^*\n]+\*|');s=s.replace(' const link =', " if (part.startsWith('*') && part.endsWith('*')) return <em key={i}>{part.slice(1,-1)}</em>;\n const link =");p.write_text(s)
|
||||
p=root/'src/screens/Chat.tsx';s=p.read_text();s=s.replace('Btn, Empty, Icon, IconBtn,','Btn, Empty, Icon, IconBtn, ErrorNotice,');s=s.replace('clockTime, cx, duration, tokens, tps','clockTime, cx, duration, tokens, tps, formatModelName');s=s.replace('const inlinePreview = splitWidth >= (selectedRun ? 720 : 900);','const inlinePreview = splitWidth >= (selectedRun ? 960 : 1120);');start=s.index(' <Empty\n');end=s.index('\n </div>',start);s=s[:start]+' <ChatIntro modelLabel={formatModelName(loaded)} onPick={updateDraft}/>'+s[end:];s=s.replace('Try the two-stream UI demo · add a prompt','Try two versions and keep the better one');s=s.replace('!draft.trim() || (!loaded',"!draft.trim() || draft.trim()==='/' || (!loaded");s=s.replace(' value={draft}\n', ' rows={1}\n value={draft}\n');s=s.replace(' onChange={(e) => setDraft(e.target.value)}',' onChange={(e) => {setDraft(e.target.value);e.currentTarget.style.height="auto";e.currentTarget.style.height=`${Math.min(180,e.currentTarget.scrollHeight)}px`;}}');s=s.replace("{m.example?'Design example':'Demo response · simulated inference'}", "{m.example?'Design example':'Preview build'}");s=s.replace('<summary aria-label="More response actions">More</summary>', '<summary aria-label="More response actions"><Icon name="ellipsis" size={16}/></summary>');s=s.replace('<summary>{t.name} · {t.state}</summary>', '<summary><Icon name="chevron" size={14}/>{t.name}<span>·</span><Icon name={t.state===\'denied\'?\'x\':\'check\'} size={14}/>{t.state===\'done\'&&t.scope!==\'read\'?\'Approved\':t.state===\'denied\'?\'Denied\':t.state===\'done\'?\'Done\':t.state}</summary>');s=s.replace('B selected · inspect the two passes','Version B selected · compare versions');p.write_text(s)
|
||||
# A failed example agent has an inspectable log; do not invent a working retry API.
|
||||
p=root/'src/components/SubagentRow.tsx';s=p.read_text();s="import { useState } from 'react';\n"+s;s=s.replace("import { Icon, type IconName }", "import { Btn, Dialog, Icon, type IconName }");s=s.replace(' const state=',' const [log,setLog]=useState(false);\n const state=');s=s.replace('</p></div>', '</p>{a.status===\'failed\'?<button className="text-action" onClick={()=>setLog(true)}>View log</button>:null}</div>');s=s.replace(' </div>;',' <Dialog open={log} title={`${a.name} · log`} onClose={()=>setLog(false)} actions={<Btn onClick={()=>setLog(false)}>Done</Btn>}><p>{a.description}</p><p className="small muted">Status: {state.label} · {elapsed(a.durationMs)} · {compactTokens(a.tokens)} tokens</p></Dialog></div>;');p.write_text(s)
|
||||
append('src/styles/app.css','\n.text-action { padding:0; border:0; background:none; color:var(--st-accent-text); cursor:pointer; font:inherit; font-size:12px; text-decoration:underline; }\n')
|
||||
@@ -0,0 +1,52 @@
|
||||
exec((__import__('pathlib').Path(__file__).parent/'apply-shared.py').read_text().split("append('src/lib/format.ts'")[0])
|
||||
p=root/'src/screens/Tuning.tsx';s=p.read_text();s=s.replace("import { ModelPicker, ModelAction } from '../components/ModelCatalog';", "import { formatModelName } from '../lib/format';\nimport { AutoTune } from '../components/AutoTune';")
|
||||
s=s.replace('DemoTest, PerformancePreview, TuningDials','DemoTest, PerformancePreview')
|
||||
s=s.replace("import type { ModelVariant } from '../lib/types';\n",'');s=s.replace('ActionError, Btn, Dialog, Field, Icon, Seg, Select','ActionError, Btn, Dialog, ErrorNotice, Icon, Select');s=s.replace('useStore, setConfigDraft','go, useStore, setConfigDraft');s=s.replace(" const [pickerOpen, setPickerOpen] = useState(false);\n const [picked, setPicked] = useState<ModelVariant | null>(null);", " const [tuneOpen,setTuneOpen]=useState(false);\n const [unsupported,setUnsupported]=useState(false);")
|
||||
start=s.index('const PRIORITIES');end=s.index('type Issue',start);s=s[:start]+s[end:]
|
||||
s=s.replace('const dirty = rawDraft !== null;', 'const dirty = rawDraft !== null && (!doc || JSON.stringify(doc)!==JSON.stringify(saved));')
|
||||
s=s.replace("const rows = params.filter(p =>", "const rows = params.filter(p => p.id!=='server.host' && (unsupported || !!p.applies&&!p.applies.startsWith('Preserved'))).filter(p =>")
|
||||
s=s.replace("v.id === engine?.variantId", "v.id === library?.loaded")
|
||||
start=s.index(' function changeBeginner');end=s.index(' function changeParam',start);s=s[:start]+s[end:]
|
||||
s=s.replace(" const batchSupported = !!engine.expert.find(p => p.id === 'perf.batch' && p.applies === 'Next model load');\n",'')
|
||||
s=s.replace("sub={current ? `${current.family} · ${current.quant}` : 'Choose a model to explore its setup.'} actions={<Btn onClick={() => setPickerOpen(true)}>Change model</Btn>}", "sub={formatModelName(current)} actions={<><Btn size=\"sm\" onClick={()=>go('models')}>Model version</Btn><button className=\"st-btn st-btn--secondary\" aria-pressed={mode==='expert'} onClick={()=>setMode(mode==='expert'?'beginner':'expert')}>Expert mode</button></>}")
|
||||
start=s.index(' <div className="section-toolbar">');end=s.index(' <ActionError />',start)
|
||||
s=s[:start]+''' <div className="section-toolbar"><span className="small muted">{dirty?'Unsaved changes':engine.dirty?'Saved for next load':'Saved settings'}</span><div className="row"><Btn size="sm" disabled={!doc} onClick={resetDraft}>Reset to recommended</Btn><Btn size="sm" disabled={!doc} onClick={()=>setTestOpen(true)}>Run speed test</Btn></div></div>
|
||||
'''+s[end:]
|
||||
start=s.index(' {mode === \'beginner\'');end=s.index(' <details className="disclosure"><summary>Expected experience',start)
|
||||
s=s[:start]+''' {mode === 'beginner' && doc ? <div className="instrument-layout">
|
||||
<section className="instrument-controls simple-engine"><div className="auto-tune-card"><Icon name="gauge" size={28}/><h2 className="h3">Make the most of this computer</h2><p className="small muted">Find a starting point for your hardware, then review before saving.</p><Btn variant="primary" disabled={!hardware||!current} onClick={()=>setTuneOpen(true)}>Auto-tune for my PC</Btn></div>
|
||||
<section><h2 className="h4">What are you working on?</h2><div className="workload-cards">{[{id:'short',title:'Everyday chat',detail:'Quick questions and short text',context:8192},{id:'document',title:'Documents & code',detail:'Room for longer files',context:32768},{id:'agent',title:'Long projects',detail:'Keep more of the conversation',context:131072}].map(w=><button key={w.id} aria-pressed={workload===w.id} onClick={()=>{setWorkload(w.id as Workload);const n=Math.min(w.context,current?.contextMax??32768);update({...doc,beginner:{...doc.beginner,contextLength:`${n/1024}k` as BeginnerConfig['contextLength']},expert:{...doc.expert,'ctx.length':`${n/1024}K`}});}}><strong>{w.title}</strong><span>{w.detail}</span></button>)}</div></section>
|
||||
<section><h2 className="h4">Resources</h2><div className="workload-cards">{[{id:'shared',title:'Leave room for other apps',detail:'Keep this computer responsive'},{id:'full',title:'Full speed',detail:'Give the engine more CPU threads'}].map(h=><button key={h.id} aria-pressed={(doc.headroom??'shared')===h.id} onClick={()=>update({...doc,headroom:h.id,expert:{...doc.expert,'perf.threads':Math.max(1,(hardware?.cpu.cores??4)-(h.id==='shared'?2:0))}})}><strong>{h.title}</strong><span>{h.detail}</span></button>)}</div></section>
|
||||
<label className="input-field"><span>Conversation context · {cfg.context/1024}K</span><input type="range" aria-label="Conversation context" min={0} max={[4096,8192,16384,32768,65536,131072,262144,524288,1048576].filter(n=>n<=(current?.contextMax??32768)).length-1} value={Math.max(0,[4096,8192,16384,32768,65536,131072,262144,524288,1048576].indexOf(cfg.context))} onChange={e=>changeParam('ctx.length',`${[4,8,16,32,64,128,256,512,1024][Number(e.target.value)]}K`)} /><span className="xs muted">4K — {(current?.contextMax??32768)/1024}K supported · larger context uses more memory</span></label>
|
||||
</section>{showPreview}
|
||||
</div> : <div className="stack expert-engine">
|
||||
<div className="engine-subtabs" role="tablist" aria-label="Expert editor">{(['parameters','raw'] as const).map(v=><button role="tab" aria-selected={view===v} key={v} onClick={()=>setView(v)}>{v==='raw'?'Raw config':'Parameters'}</button>)}</div>
|
||||
'''+s[end:]
|
||||
s=s.replace('<textarea className="st-input config-editor"', '{parsed.error?<ErrorNotice message={parsed.error} next="Correct the JSON before saving or applying."/>:null}<textarea className="st-input config-editor"')
|
||||
s=s.replace(' <div className="parameter-toolbar">', ''' <div className="row small muted"><a href="#/serving">Server access is managed in Serving</a><label className="check-label"><input type="checkbox" checked={unsupported} onChange={e=>setUnsupported(e.target.checked)}/>Show unsupported</label></div><div className="parameter-toolbar">''')
|
||||
s=s.replace("{p.id.startsWith('sample.') ? 'Next request · all requests' : g === 'Additional settings' ? 'Preserved only' : p.applies ?? 'Preserved only'}", "{!p.applies||p.applies.startsWith('Preserved')?'Not used by this engine':p.applies}")
|
||||
s=s.replace('<ExpertInput param={p} onChange=', "<ExpertInput param={p} disabled={!p.applies||p.applies.startsWith('Preserved')} onChange=")
|
||||
start=s.index(' <div className="config-savebar">');end=s.index('\n </div>',start);s=s[:start]+''' {dirty?<div className="config-savebar"><span className="small">{changed.length || 'Configuration'} {changed.length===1?'change':'changes'}</span><Btn size="sm" variant="ghost" disabled={pending} onClick={()=>setDiscardOpen(true)}>Discard</Btn><span className="spacer"/>{library?.loaded&&library.mode!=='simulated'?<Btn size="sm" disabled={invalid||pending||!connected||!lifecycle.allowed} onClick={()=>setApplyOpen(true)}>Apply now…</Btn>:null}<Btn size="sm" variant="primary" disabled={invalid||pending||!connected} onClick={()=>void save()}>{pending?'Saving…':'Save'}</Btn></div>:null}
|
||||
'''+s[end:]
|
||||
start=s.index(' <ModelPicker ');end=s.index(' <Dialog open={discardOpen}',start);s=s[:start]+''' <AutoTune open={tuneOpen} onClose={()=>setTuneOpen(false)} onDone={()=>{resetDraft();setTuneOpen(false);}}/>
|
||||
'''+s[end:]
|
||||
s=s.replace('Return all three editors to the saved configuration. The running model is unaffected.','Discard all unsaved engine changes and return to the saved configuration.')
|
||||
s=s.replace('function ExpertInput({ param, onChange }: { param: ExpertParam; onChange:', 'function ExpertInput({ param, onChange, disabled=false }: { param: ExpertParam; disabled?:boolean; onChange:');s=s.replace('<Select value={String(param.value)}','<Select disabled={disabled} value={String(param.value)}');s=s.replace('<button className="st-toggle" type="button"','<button disabled={disabled} className="st-toggle" type="button"');s=s.replace('<input id={`param-${param.id}`}','<input disabled={disabled} id={`param-${param.id}`}');p.write_text(s)
|
||||
(root/'src/components/AutoTune.tsx').write_text('''import { useEffect, useState } from 'react';
|
||||
import { Btn, Dialog, Icon } from './ui';
|
||||
const stages=['Checking hardware','Reviewing supported parameters','Choosing recommended settings','Ready to review'];
|
||||
/** Proposes catalog defaults; the animation never represents a measured benchmark. */
|
||||
export function AutoTune({open,onClose,onDone}:{open:boolean;onClose:()=>void;onDone:()=>void}){
|
||||
const [step,setStep]=useState(0);
|
||||
useEffect(()=>{if(!open)return;setStep(0);const timer=setInterval(()=>setStep(s=>Math.min(3,s+1)),900);return()=>clearInterval(timer);},[open]);
|
||||
return <Dialog open={open} title="Auto-tune for this computer" onClose={onClose} actions={<><Btn onClick={onClose}>Close</Btn><Btn variant="primary" disabled={step<3} onClick={onDone}>Review recommended settings</Btn></>}><div className="tune-progress"><div className="tune-orbit" data-complete={step===3}><svg viewBox="0 0 120 120" aria-hidden="true"><circle cx="60" cy="60" r="50"/><circle cx="60" cy="60" r="50" pathLength="100" strokeDasharray={`${(step+1)*25} 100`}/></svg><Icon name={step===3?'check':'gauge'} size={42}/></div><h3 role="status">{stages[step]}</h3><p className="small muted">A recommendation based on detected hardware and supported defaults. Save to apply it; speed has not been benchmarked.</p><div className="tune-steps">{stages.map((s,i)=><span key={s} data-done={i<=step}/>)}</div></div></Dialog>;
|
||||
}
|
||||
''')
|
||||
append('src/styles/app.css','''
|
||||
.simple-engine { display:flex; flex-direction:column; gap:24px; }.auto-tune-card { padding:24px; background:var(--st-surface); border:1px solid var(--st-line); border-radius:18px; }.auto-tune-card > svg { color:var(--st-accent-text); }.auto-tune-card h2 { margin-top:12px; }
|
||||
.workload-cards { display:flex; gap:8px; }.workload-cards button { flex:1; min-width:0; padding:12px; text-align:left; border:1px solid var(--st-line); border-radius:12px; background:var(--st-surface); color:var(--st-ink); font:inherit; cursor:pointer; }.workload-cards button[aria-pressed='true'] { border-color:var(--st-accent-text); background:var(--st-accent-surface); }.workload-cards span { display:block; font-size:12px; color:var(--st-ink-soft); margin-top:6px; }.simple-engine input[type='range'] { width:100%; accent-color:var(--st-accent); }
|
||||
.engine-subtabs { display:flex; gap:24px; border-bottom:1px solid var(--st-line); }.engine-subtabs button { padding:10px 0; border:0; border-bottom:2px solid transparent; background:none; font:inherit; color:var(--st-ink-muted); cursor:pointer; }.engine-subtabs button[aria-selected='true'] { color:var(--st-ink); border-bottom-color:var(--st-accent); }
|
||||
.expert-engine { gap:12px; }.parameter-group { margin:0; }.parameter-group > h2 { margin:12px 0 4px; }.parameter-row { display:grid; grid-template-columns:minmax(220px,1fr) minmax(230px,1fr); gap:20px; padding:10px 0; }.parameter-key { display:inline; margin-left:8px; font-size:11px; }.parameter-row .xs { display:none; }.parameter-toolbar { gap:12px; padding:8px 0; }.parameter-control { display:flex; align-items:center; gap:8px; }.parameter-control > :first-child { flex:1; }.parameter-control .st-input { min-height:32px; }.config-savebar { display:flex; flex-wrap:nowrap; align-items:center; gap:12px; padding:10px 14px; margin-top:12px; min-height:0; position:sticky; bottom:0; background:var(--st-surface); }.config-editor { min-height:320px; font-family:var(--st-font-mono); }.tuning { padding-bottom:24px; }
|
||||
.tune-progress { text-align:center; padding:10px 20px 24px; }.tune-orbit { width:180px; height:180px; margin:0 auto 20px; display:grid; place-items:center; position:relative; color:var(--st-accent-text); }.tune-orbit > svg:first-child { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }.tune-orbit circle { fill:none; stroke:var(--st-line); stroke-width:3; }.tune-orbit circle+circle { stroke:var(--st-accent); stroke-linecap:round; transition:stroke-dasharray var(--st-t-local) var(--st-ease-standard); }.tune-orbit[data-complete='true'] { color:var(--st-accent-text); }.tune-steps { display:flex; justify-content:center; gap:6px; margin-top:24px; }.tune-steps span { width:22px; height:5px; border-radius:3px; background:var(--st-line); }.tune-steps span[data-done='true'] { background:var(--st-accent); }
|
||||
@media(prefers-reduced-motion:reduce) { .tune-orbit circle+circle { transition:none; } }[data-motion='reduced'] .tune-orbit circle+circle { transition:none; }
|
||||
''')
|
||||
@@ -0,0 +1,31 @@
|
||||
exec((__import__('pathlib').Path(__file__).parent/'apply-shared.py').read_text().split("append('src/lib/format.ts'")[0])
|
||||
# Remove obsolete state after model-picker removal.
|
||||
edit('src/app/Sidebar.tsx',' const serving = useStore(s => s.serving);\n','')
|
||||
p=root/'src/components/ComposerControls.tsx';s=p.read_text().replace('go, loadVariant,','go,').replace('{session,onPreview,streaming}', '{session,onPreview}').replace(',[models,setModels]=useState(false)','').replace(",[pending,setPending]=useState(false)",'');p.write_text(s)
|
||||
p=root/'src/screens/Chat.tsx';s=p.read_text().replace('Btn, Empty, Icon, IconBtn, ErrorNotice,','Btn, Icon, IconBtn, ErrorNotice,').replace(' newSession,\n','');s=s.replace("{m.demo || m.example ? (", "{m.example ? (");a=s.index(' <span className="row" role="alert"');b=s.index('\n ) : null}',a);s=s[:a]+' <ErrorNotice message={m.error} next="Try sending the message again."/>'+s[b:];s=s.replace('<ChatIntro modelLabel={loaded?.label ?? null}', '<ChatIntro modelLabel={loaded ? formatModelName(loaded) : null}');s=s.replace('session.messages.length === 0 ? (', "session.messages.length === 0 ? (session.statsAvailable===false ? <p className=\"small muted\">Editing from an earlier message. Update the prompt below.</p> :");s=s.replace('inline={inlinePreview} onClose={()=>{setSelectedPreview(null);setExpanded(false);}}/> : null}', 'inline={inlinePreview} onPreview={openPreview} onClose={()=>{setSelectedPreview(null);setExpanded(false);}}/> : null}');p.write_text(s)
|
||||
# Unified preview toolbar.
|
||||
(root/'src/components/PreviewControls.tsx').write_text('''import { IconBtn, Seg } from './ui';
|
||||
export function PreviewControls({zoom,onZoom,page,pages,onPage,label}:{zoom:string;onZoom:(v:string)=>void;page?:number;pages?:number;onPage?:(n:number)=>void;label:string}) {return <div className="preview-controls">{page!==undefined&&onPage?<><IconBtn name="chevron" title="Previous page" disabled={page<=1} onClick={()=>onPage(page-1)}/><span className="small num">{page} / {pages??'—'}</span><IconBtn name="chevron" title="Next page" disabled={!pages||page>=pages} onClick={()=>onPage(page+1)}/></>:null}<Seg ariaLabel={`${label} zoom`} value={zoom} onChange={onZoom} options={[{value:'fit',label:'Fit'},{value:'1',label:'100%'}]}/></div>;}
|
||||
''')
|
||||
p=root/'src/components/ArtifactPanel.tsx';s=p.read_text();s="import { PreviewControls } from './PreviewControls';\n"+s;s=s.replace("{current.demo?'Example · ':''}{artifactLabel(current.kind)}", "{artifactFilename(current)} · {artifactLabel(current.kind)}");s=s.replace('<Seg ariaLabel="Image zoom" value={imageSize} options={[{value:\'fit\',label:\'Fit\'},{value:\'actual\',label:\'100%\'}]} onChange={setImageSize}/>', '<PreviewControls label="Image" zoom={imageSize} onZoom={setImageSize}/>');s=s.replace('data-size={imageSize}', 'data-size={imageSize===\'1\'?\'actual\':\'fit\'}');s=s.replace(" tab?.scrollIntoView({block:'nearest',inline:'nearest'});", " const strip=ref.current;if(tab&&strip){const r=tab.getBoundingClientRect(),box=strip.getBoundingClientRect();if(r.left<box.left)strip.scrollLeft-=box.left-r.left+20;else if(r.right>box.right-28)strip.scrollLeft+=r.right-box.right+48;}");p.write_text(s)
|
||||
p=root/'src/components/PdfPreview.tsx';s=p.read_text().replace("import { Btn, Select } from './ui';", "import { PreviewControls } from './PreviewControls';");a=s.index('<Btn size="sm"');b=s.index('</div><div ref={container}',a);s=s[:a]+'<PreviewControls label="PDF" zoom={zoom} onZoom={setZoom} page={page} pages={doc?.numPages} onPage={setPage}/>'+s[b:];s=s.replace("'str' in item?item.str:''", "'str' in item?item.str+('hasEOL' in item&&item.hasEOL?'\\n':''):''");p.write_text(s)
|
||||
p=root/'src/components/TimeSkipPanel.tsx';s=p.read_text();s=s.replace("import { Dialog, Icon, IconBtn }", "import type { PreviewArtifact } from '../lib/artifacts';\nimport { Btn, Dialog, Icon, IconBtn }");s=s.replace('{ run, sessionId, inline, onClose }', '{ run, sessionId, inline, onClose, onPreview }').replace('onClose: () => void })','onClose: () => void; onPreview:(a:PreviewArtifact)=>void })');s=s.replace("const version = original ? 'Original A' : inspect === 'a' ? revision ? 'Revision A' : 'Original A' : 'Candidate B';", "const version = original || inspect==='a' ? 'Version A' : 'Version B';");s=s.replace("const label = isA ? revision ? 'Revision' : 'Original' : 'Alternative';", "const label = isA ? 'Version A' : 'Version B';");s=s.replace("'Demo complete · B kept'", "'Version B kept'")
|
||||
a=s.index(' <footer className="timeskip-footer">');b=s.index('\n </aside>',a);s=s[:a]+''' <footer className="timeskip-footer"><span>Pass {frame.pass} of 2 · {frame.done?'Finished':'Sequential passes'}</span>{frame.done?<div className="row"><Btn size="sm" onClick={()=>{setInspect('a');setOriginal(false);}}>Compare</Btn><Btn size="sm" variant="primary" onClick={()=>onPreview({id:`${run.id}-version-b`,kind:'markdown',title:'version-b.md',content:`# Version B\\n\\n${run.prompt}\\n\\nThis is the kept result from the Time-skip UI example.\\n\\n${example.improved.map((v,i)=>`- **${example.labels[i]}:** ${v}`).join('\\n')}\\n\\n${example.correction}`,demo:true})}>Open version B</Btn><IconBtn name="refresh" title="Replay demo" onClick={()=>replayTimeSkip(sessionId,run.id)}/></div>:<span className="timeskip-dots" aria-hidden="true"><i data-on/><i data-on={frame.pass===2||undefined}/></span>}</footer>
|
||||
'''+s[b:];p.write_text(s)
|
||||
# Format and clamp telemetry once.
|
||||
append('src/lib/hardware-summary.ts','''
|
||||
export function memoryReading(used:number,total:number){const safeTotal=Number.isFinite(total)?Math.max(0,total):0;const safeUsed=Number.isFinite(used)?Math.max(0,used):0;return {used:Math.min(safeUsed,safeTotal),total:safeTotal,free:Math.max(0,safeTotal-safeUsed),over:Math.max(0,safeUsed-safeTotal)};}
|
||||
''')
|
||||
p=root/'src/screens/Monitor.tsx';s=p.read_text();s="import { memoryReading } from '../lib/hardware-summary';\n"+s;s=s.replace('contextLabel, duration, tokens, tps','contextLabel, duration, tokens, tps, formatModelName');s=s.replace("currentModel?.family ?? 'No model loaded'", 'formatModelName(currentModel)');s=s.replace("const model = library?.variants.find(v => v.id === data.variantId);", "const model = library?.variants.find(v => v.id === library.loaded);\n const ram=memoryReading(data.hardware.ramUsedGb,data.hardware.ramTotalGb);")
|
||||
s=s.replace("demo ? 'Demo'", "demo ? 'Illustrative'");s=s.replace("'Demo session'", "'This session'");s=s.replace("sub={model?.label ?? 'Engine and computer activity'}", 'sub={formatModelName(model)}');s=s.replace('data.hardware.ramUsedGb.toFixed(1)', 'ram.used.toFixed(1)');s=s.replace("`Demo${unified ? ' · do not add these pools' : ''}`", "ram.over>0?`Reading exceeds capacity by ${ram.over.toFixed(1)} GB`:unified?'Shared with model memory — count this pool once':'System memory'")
|
||||
s=s.replace("`${hardware.memory.freeGb.toFixed(1)} GB available at last check`", "`${(demo?ram.free:memoryReading(hardware.memory.usedGb,hardware.memory.totalGb).free).toFixed(1)} GB available${demo?'':' at last check'}`")
|
||||
s=s.replace("`${tps(s.current)} tok/s`", "data.phase==='idle'?'Idle':`${tps(s.current)} tok/s`");p.write_text(s)
|
||||
# Clamp telemetry at the host boundary too; UI still flags inconsistent fixture readings.
|
||||
p=root/'server/monitor.mjs';s=p.read_text().replace('ramUsedGb: round(state.hardware.ramUsedGb, 1),','ramUsedGb: round(clamp(state.hardware.ramUsedGb, 0, Math.max(0,state.hardware.ramTotalGb)), 1),');p.write_text(s)
|
||||
edit('src/components/CloudflareDialog.tsx',"pending?'Connecting…':mode==='quick'", "pending?'Connecting…':(error||tunnel?.error)?'Try again':mode==='quick'")
|
||||
# Sanitize transport error prefixes once; shared notices also handle fixture payload fields.
|
||||
p=root/'src/lib/client.ts';s=p.read_text();s="import { userError } from './format';\n"+s;s=s.replace('super(message);','super(userError(message));');p.write_text(s)
|
||||
append('src/styles/app.css','''
|
||||
.preview-controls { display:flex; align-items:center; gap:8px; }.preview-controls > .st-btn:first-child svg { transform:rotate(90deg); }.preview-controls > .st-btn:nth-of-type(2) svg { transform:rotate(-90deg); }.pdf-controls .preview-controls { width:100%; }.preview-controls > .st-tabs { margin-left:auto; }.pdf-canvas-wrap { overflow:auto; align-items:normal; }.pdf-canvas-wrap > canvas { flex-shrink:0; margin:0 auto; }.pdf-text { white-space:pre-wrap; }.artifact-tabs { overflow-x:auto; min-width:0; flex:1; mask-image:linear-gradient(to right,#000 calc(100% - 18px),transparent); padding-right:18px; }.preview-window-actions { flex-shrink:0; }.timeskip-checkpoint[data-tone='gap'] > span:last-child { color:#8a5a00; }.timeskip-topline { border-bottom:1px solid var(--st-line); }.timeskip-footer { flex-wrap:wrap; gap:10px; }.timeskip-footer .st-btn { padding:6px 10px; }.timeskip-footer .st-btn--primary { color:#0b1f17; }
|
||||
[data-theme='dark'] .timeskip-checkpoint[data-tone='gap'] > span:last-child { color:#edc66b; }
|
||||
''')
|
||||
@@ -0,0 +1,98 @@
|
||||
exec((__import__('pathlib').Path(__file__).parent/'apply-shared.py').read_text().split("append('src/lib/format.ts'")[0])
|
||||
p=root/'server/catalog.mjs';s=p.read_text();a=s.index('export const VARIANTS = [');b=s.index('\nexport function variant',a);real=s[a:b].replace('export const VARIANTS','export const REAL_VARIANTS');(root/'server/real-model-catalog.mjs').write_text('/** Verified file identities for the optional real engine. Never relabel these as demo weights. */\n'+real+'\n');s=s[:a]+'''import { REAL_VARIANTS } from './real-model-catalog.mjs';
|
||||
// Design model versions are isolated from real downloadable artifacts.
|
||||
const DESIGN_VERSIONS = [
|
||||
['Q2_K','Smallest',2.9], ['Q3_K_M','Compact',3.9], ['Q4_K_M','Balanced',4.9],
|
||||
['Q5_K_M','High quality',5.7], ['Q6_K','Very high',6.6], ['Q8_0','Near-original',8.5], ['BF16','Original',16],
|
||||
];
|
||||
export const VARIANTS = process.env.STRATA_REAL_ENGINE === '1' ? REAL_VARIANTS : DESIGN_VERSIONS.map(([quant,name,bits])=>{
|
||||
const diskGb=Math.round(30.5*bits/8*10)/10;
|
||||
return {id:`qwen38-${quant.toLowerCase()}`,name,family:'Qwen3.8-Flash-Next',quant,label:`Qwen3.8-Flash-Next · ${name} (${quant})`,params:'30.5B',
|
||||
blurb:'The same model at a different precision.',role:quant==='Q4_K_M'?'best-fit':'option',tier:quant==='Q2_K'?'starter':'balanced',
|
||||
ramClass:{minGb:diskGb+3,maxGb:diskGb+6,label:`${Math.ceil(diskGb+6)} GB memory`},diskGb,downloadGb:diskGb,contextMax:1048576,
|
||||
layerCount:48,experts:128,kvKbPerToken:24,hasDraft:true,kvModes:['INT8','FP16'],tags:[],minMemoryGb:diskGb+3,
|
||||
source:{repo:'design-preview',file:`${quant}.gguf`,bytes:Math.round(diskGb*1024**3)},designOnly:true};
|
||||
});
|
||||
''' +s[b:];s=s.replace("return `https://huggingface.co/", "if (v.designOnly) return undefined;\n return `https://huggingface.co/");s=s.replace("'64K', '128K']", "'64K', '128K', '256K', '512K', '1024K']");s=s.replace(" '128k': 131072,", " '128k': 131072,\n '256k': 262144,\n '512k': 524288,\n '1024k': 1048576,");p.write_text(s)
|
||||
# Existing preview state is migrated without changing real-engine files.
|
||||
p=root/'server/models.mjs';s=p.read_text();s=s.replace(' supervisor.init(hub);',''' supervisor.init(hub);
|
||||
if (!REAL) {
|
||||
const previous = getStore();
|
||||
const old = Object.keys(previous.installed ?? {}).filter(id => !VARIANTS.some(v=>v.id===id));
|
||||
if (old.length) {
|
||||
const balanced=VARIANTS.find(v=>v.quant==='Q4_K_M').id;
|
||||
update({installed:{...previous.installed,[balanced]:{installedAt:nowIso(),simulated:true}},
|
||||
...(old.includes(previous.loaded)?{loaded:balanced}:{}),...(old.includes(previous.current)?{current:balanced}: {})});
|
||||
}
|
||||
}''');s=s.replace('const totalSec = 11 + v.downloadGb * 0.55;', 'const totalSec = 10; // Preview timing is independent of fictional file sizes.');p.write_text(s)
|
||||
for p in (root/'tests').glob('*.test.mjs'):
|
||||
s=p.read_text().replace('qwen2.5-0.5b-q4km','qwen38-q4_k_m');p.write_text(s)
|
||||
edit('src/lib/types.ts',"'64k' | '128k';", "'64k' | '128k' | '256k' | '512k' | '1024k';")
|
||||
edit('src/components/EngineExperience.tsx','32768, 65536, 131072]', '32768, 65536, 131072, 262144, 524288, 1048576]')
|
||||
(root/'src/lib/model-versions.ts').write_text('''import type { Hardware, ModelVariant, ModelLibrary } from './types';
|
||||
export type VersionFit = {zone:'fast'|'slower'|'too-big'|'unknown';needed:number;fastBudget:number;budget:number;over:number};
|
||||
/** Fit uses detected pools without double-counting unified memory. No speed benchmark is implied. */
|
||||
export function versionFit(v:ModelVariant, hardware:Hardware|null, context=32768):VersionFit {
|
||||
const needed=v.diskGb+(v.kvKbPerToken??0)*context/1024**2+(v.experts?2.5:1.2);
|
||||
if(!hardware)return {zone:'unknown',needed,fastBudget:0,budget:0,over:0};
|
||||
const ram=Math.max(0,hardware.memory.totalGb),gpu=Math.max(0,hardware.accelerator.usableVramGb);
|
||||
const unified=hardware.accelerator.unified;
|
||||
const fastBudget=unified?ram*.72:hardware.accelerator.backend==='cpu'?0:gpu*.92;
|
||||
const budget=unified?ram*.9:gpu+ram*.6;
|
||||
const zone=context>v.contextMax||needed>budget?'too-big':needed<=fastBudget?'fast':'slower';
|
||||
return {zone,needed,fastBudget,budget,over:Math.max(0,needed-budget)};
|
||||
}
|
||||
export function modelVersions(library:ModelLibrary){const family=library.mode==='simulated'?'Qwen3.8-Flash-Next':library.variants.find(v=>v.id===(library.loaded??library.current))?.family??library.variants[0]?.family;return library.variants.filter(v=>v.family===family).sort((a,b)=>a.diskGb-b.diskGb);}
|
||||
export function recommendedVersion(versions:ModelVariant[],hardware:Hardware|null,context=32768){return versions.filter(v=>versionFit(v,hardware,context).zone==='fast').at(-1)??versions.find(v=>versionFit(v,hardware,context).zone==='slower');}
|
||||
export const VERSION_FIT_LABEL={fast:'Fast fit',slower:'Slower · system memory','too-big':'Too big','unknown':'Fit unknown'};
|
||||
''')
|
||||
(root/'src/components/VersionLadder.tsx').write_text('''import type { Hardware, ModelVariant } from '../lib/types';
|
||||
import { versionFit, VERSION_FIT_LABEL } from '../lib/model-versions';
|
||||
import { sizeGb } from '../lib/format';
|
||||
import { Icon } from './ui';
|
||||
export function VersionLadder({versions,hardware,context,selected,recommended,onSelect}:{versions:ModelVariant[];hardware:Hardware|null;context:number;selected?:string;recommended?:string;onSelect:(id:string)=>void}){
|
||||
return <div className="version-ladder" role="group" aria-label="Model versions">{versions.map(v=>{const fit=versionFit(v,hardware,context);return <button key={v.id} className="version-rung" data-fit={fit.zone} aria-pressed={selected===v.id} onClick={()=>onSelect(v.id)}><span className="version-rung__node"><Icon name={v.state==='loaded'?'check':'layers'} size={16}/></span><span><strong>{v.name}</strong><small>{v.quant} · {sizeGb(v.diskGb)}</small></span><span className="version-rung__state">{v.state==='loaded'?'Running':v.state==='downloading'?`${Math.round(v.progress?.pct??0)}%`:recommended===v.id?'Recommended':v.state==='installed'?'Downloaded':VERSION_FIT_LABEL[fit.zone]}</span></button>;})}</div>;
|
||||
}
|
||||
''')
|
||||
(root/'src/screens/Models.tsx').write_text('''import { useState } from 'react';
|
||||
import { ActionError, Bar, Btn, Dialog, ErrorNotice, Icon, Select } from '../components/ui';
|
||||
import { Screen } from '../components/layout';
|
||||
import { VersionLadder } from '../components/VersionLadder';
|
||||
import { LifecycleNotice } from '../components/LifecycleNotice';
|
||||
import { modelVersions, recommendedVersion, versionFit, VERSION_FIT_LABEL } from '../lib/model-versions';
|
||||
import { formatModelName, sizeGb } from '../lib/format';
|
||||
import { cancelInstall, go, installVariant, loadVariant, removeVariant, unloadModel, useStore, lifecycleStatus } from '../lib/store';
|
||||
export function ModelsScreen(){
|
||||
const library=useStore(s=>s.library),hardware=useStore(s=>s.hardware),engine=useStore(s=>s.engine);const lifecycle=lifecycleStatus(useStore(s=>s));
|
||||
const [selected,setSelected]=useState(''),[context,setContext]=useState(32768),[confirm,setConfirm]=useState<'switch'|'delete'|null>(null),[pending,setPending]=useState(false),[error,setError]=useState('');
|
||||
if(!library)return <Screen title="Model"><p>Loading model versions…</p></Screen>;
|
||||
const versions=modelVersions(library),recommended=recommendedVersion(versions,hardware,context),running=library.variants.find(v=>v.id===library.loaded);
|
||||
const version=versions.find(v=>v.id===selected)??running??recommended??versions[0];
|
||||
if(!version)return <Screen title="Model"><p>No model versions are available.</p></Screen>;
|
||||
const fit=versionFit(version,hardware,context),loaded=version.id===library.loaded,installed=['loaded','installed'].includes(version.state),working=['loading','downloading','unloading'].includes(version.state);
|
||||
const contexts=[4096,8192,16384,32768,65536,131072,262144,524288,1048576].filter(n=>n<=version.contextMax);
|
||||
async function act(action:()=>Promise<boolean|void>){setPending(true);setError('');try{const ok=await action();if(ok===false)throw new Error('The operation could not finish. Check the engine connection and try again.');setConfirm(null);}catch(e){setError(e instanceof Error?e.message:String(e));}finally{setPending(false);}}
|
||||
return <Screen title="Model" sub="One model. A version that fits your computer." actions={<Btn icon="gauge" onClick={()=>go('tuning')}>Engine</Btn>}><div className="stack stack--lg model-page"><ActionError/>
|
||||
<section className="model-hero"><span className="model-hero__icon"><Icon name="layers" size={28}/></span><div><span className="eyebrow">{running?'RUNNING':'YOUR MODEL'}</span><h2>{running?formatModelName(running):versions[0].family}</h2><p className="small muted">{running?'Shared by all chats':'Pick a version below to get started.'}</p></div><span className="model-status">{running?'Ready':'Not loaded'}</span></section>
|
||||
{!hardware?<ErrorNotice message="Hardware has not been detected." next="Check this computer to see which versions fit." action="Run guided setup" onRetry={()=>go('setup')}/>:null}
|
||||
<div className="section-toolbar"><div><h2 className="h3">Choose a version</h2><p className="small muted">Smaller versions use less memory. Larger versions preserve more precision.</p></div><Select ariaLabel="Version context" value={String(context)} onChange={v=>setContext(Number(v))} options={contexts.map(n=>({value:String(n),label:`${n/1024}K context`}))}/></div>
|
||||
{!recommended&&hardware?<ErrorNotice message={`${context/1024}K context exceeds the available model budget.`} next="A shorter context may make room for a smaller version." action={context>4096?'Use shorter context':'Review computer'} onRetry={()=>context>4096?setContext(context/2):go('setup')}/>:null}
|
||||
<div className="model-version-layout"><VersionLadder versions={versions} hardware={hardware} context={context} selected={version.id} recommended={recommended?.id} onSelect={id=>{setSelected(id);setError('');}}/>
|
||||
<section className="version-detail" aria-label="Version details"><div className="section-toolbar"><span className="eyebrow">{version.quant}</span><span className="model-status">{loaded?'Running':installed?'Downloaded':VERSION_FIT_LABEL[fit.zone]}</span></div><h2>{version.name}</h2><p className="small muted">{formatModelName(version)}</p><div className="version-numbers"><div><strong>{sizeGb(version.diskGb)}</strong><span>Download size</span></div><div><strong>{sizeGb(fit.needed)}</strong><span>Estimated memory</span></div></div><p className="small">{fit.zone==='unknown'?'Check your computer to estimate fit.':fit.zone==='too-big'?`${sizeGb(fit.over)} over the estimated memory budget at this context.`:fit.zone==='fast'?'Fits the fast memory budget with room for other apps.':'Fits with less headroom or with weights in slower system memory.'}</p><p className="xs muted">Speed on this PC: {version.performance?.[0]?.source==='measured'?`${version.performance[0].answer.low}–${version.performance[0].answer.high} tok/s`:'Run a speed test in Engine'}</p>
|
||||
{working?<><Bar value={version.progress?.pct??0} label={version.state}/><p className="small" role="status">{version.progress?.stage??'Working…'}</p>{version.state==='downloading'?<Btn disabled={pending} onClick={()=>void act(()=>cancelInstall(version.id))}>Cancel download</Btn>:null}</>:loaded?<Btn disabled={pending||!lifecycle.allowed} onClick={()=>void act(unloadModel)}>Unload version</Btn>:installed?<div className="row"><Btn variant="primary" disabled={pending||!lifecycle.allowed||fit.zone==='too-big'} onClick={()=>setConfirm('switch')}>Switch to {version.name}</Btn><Btn icon="trash" disabled={pending} onClick={()=>setConfirm('delete')}>Delete</Btn></div>:<Btn variant="primary" icon="download" disabled={pending||fit.zone==='too-big'} onClick={()=>void act(()=>installVariant(version.id))}>{fit.zone==='too-big'?'Too big for this PC':`Download · ${sizeGb(version.downloadGb)}`}</Btn>}
|
||||
{version.error||error?<ErrorNotice message={error||version.error!} next="Your downloaded files are retained."/>:null}<LifecycleNotice/>
|
||||
</section></div>
|
||||
<section><h2 className="h3">On this computer</h2>{versions.filter(v=>['installed','loaded'].includes(v.state)).map(v=><div className="installed-version" key={v.id}><span><strong>{v.name}</strong><small>{v.quant} · {sizeGb(v.diskGb)}</small></span><Btn size="sm" onClick={()=>setSelected(v.id)}>{v.state==='loaded'?'View running version':'View version'}</Btn></div>)}{!versions.some(v=>['installed','loaded'].includes(v.state))?<p className="small muted">No versions downloaded yet. Choose one above to get started.</p>:null}<p className="small muted">{sizeGb(library.disk.usedGb)} model files · {sizeGb(library.disk.freeGb)} free</p></section>
|
||||
</div><Dialog open={!!confirm} title={confirm==='delete'?'Delete this version?':`Switch to ${version.name}?`} onClose={()=>!pending&&setConfirm(null)} actions={<><Btn disabled={pending} onClick={()=>setConfirm(null)}>Cancel</Btn><Btn variant={confirm==='delete'?'danger':'primary'} disabled={pending} onClick={()=>void act(()=>confirm==='delete'?removeVariant(version.id):loadVariant(version.id))}>{pending?'Working…':error?'Try again':confirm==='delete'?'Delete version':'Switch version'}</Btn></>}><p>{confirm==='delete'?`Remove ${sizeGb(version.diskGb)} of downloaded files. You can download this version again.`:`Switch all chats to ${version.name} (${sizeGb(version.diskGb)}). Loading may take a few moments.`}</p>{confirm==='switch'?<details className="disclosure"><summary>Engine settings</summary><p className="small muted">Uses your saved {engine?.beginner.contextLength??'recommended'} context. Change settings in Engine.</p></details>:null}{error?<ErrorNotice message={error}/>:null}</Dialog></Screen>;
|
||||
}
|
||||
''')
|
||||
append('src/styles/app.css','''
|
||||
.model-hero { display:flex; align-items:center; gap:20px; border:1px solid var(--st-line); border-radius:20px; padding:26px; background:var(--st-surface); }
|
||||
.model-hero > div { flex:1; min-width:0; }.model-hero h2 { margin:6px 0; font-size:24px; letter-spacing:-.5px; }.model-hero p { margin:0; }
|
||||
.model-hero__icon { color:var(--st-accent-text); }.model-status { font-size:12px; color:var(--st-ink-soft); white-space:nowrap; }
|
||||
.model-version-layout { display:grid; grid-template-columns:minmax(260px,1fr) minmax(320px,1fr); gap:28px; align-items:start; }
|
||||
.version-ladder { display:flex; flex-direction:column; gap:5px; }.version-rung { display:flex; gap:12px; align-items:center; width:100%; text-align:left; padding:13px; background:var(--st-surface); border:1px solid var(--st-line); border-radius:12px; font:inherit; color:var(--st-ink); cursor:pointer; }
|
||||
.version-rung[aria-pressed='true'] { border-color:var(--st-accent-text); background:var(--st-accent-surface); }.version-rung small { display:block; color:var(--st-ink-muted); font-size:12px; margin-top:4px; }.version-rung__node { color:var(--st-accent-text); }.version-rung__state { margin-left:auto; font-size:11px; color:var(--st-ink-soft); text-align:right; }.version-rung[data-fit='too-big'] .version-rung__node { color:var(--st-ink-muted); }
|
||||
.version-detail { border:1px solid var(--st-line); border-radius:18px; padding:24px; background:var(--st-surface); position:sticky; top:12px; }.version-detail h2 { font-size:28px; margin:20px 0 4px; }.version-numbers { display:flex; gap:28px; margin:24px 0; }.version-numbers strong { font-size:22px; }.version-numbers span { display:block; font-size:12px; color:var(--st-ink-muted); margin-top:6px; }.installed-version { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--st-line); padding:14px 0; }.installed-version small { display:block; color:var(--st-ink-muted); margin-top:4px; }
|
||||
@media(max-width:850px) { .model-version-layout { grid-template-columns:1fr; }.model-hero { padding:18px; }.model-hero h2 { font-size:19px; }.version-detail { position:static; } }
|
||||
''')
|
||||
@@ -0,0 +1,45 @@
|
||||
exec((__import__('pathlib').Path(__file__).parent/'apply-shared.py').read_text().split("append('src/lib/format.ts'")[0])
|
||||
p=root/'src/screens/Setup.tsx';s=p.read_text();s=s.replace('Bar, Btn, Dialog, Icon, Pill, Steps','Bar, Btn, Icon, Pill, Steps, ErrorNotice, PreviewBadge');s=s.replace('DemoTest, MemoryBudget, PerformancePreview, ProfileChoice, TuningDials','DemoTest, MemoryBudget');s=s.replace("import { ModelPicker } from '../components/ModelCatalog';", "import { VersionLadder } from '../components/VersionLadder';\nimport { modelVersions, recommendedVersion, versionFit } from '../lib/model-versions';\nimport { Select } from '../components/ui';")
|
||||
s=s.replace('estimate, recommend','estimate');s=s.replace('import { sizeGb }','import { sizeGb, formatModelName }');s=s.replace("const [profile, setProfile]", "const [profile, setProfile]")
|
||||
s=s.replace("const [adjust, setAdjust] = useState(false); const [picker, setPicker] = useState(false); ", '');s=s.replace("const [workload, setWorkload] = useState<Workload>('document');", "const workload:Workload='document';")
|
||||
a=s.index(' const recommendations =');b=s.index(' const experience',a);s=s[:a]+''' const versions=library?modelVersions(library):[];
|
||||
const recommended=recommendedVersion(versions,hardware,config.context);
|
||||
const candidate=versions.find(v=>v.id===picked)??recommended??versions[0];
|
||||
'''+s[b:];a=s.index(' const modelTitle =');b=s.index(' const choices',a);s=s[:a]+" const modelTitle=formatModelName(candidate);\n"+s[b:];s=s.replace('[4096, 8192, 16384, 32768, 65536, 131072]','[4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576]');s=s.replace("experience.fit === 'too-large' || experience.fit === 'unsupported'", "!!candidate && versionFit(candidate,hardware,config.context).zone === 'too-big'")
|
||||
s=s.replace('<h1 className="h2">Set up Strata</h1>','<h1 className="h2">Set up Strata <PreviewBadge/></h1>');s=s.replace('{demo ? <p className="demo-strip"><Icon name="info" size={16} />Demo · downloads and answers are simulated.</p> : null}', '');s=s.replace('Find my models','Pick a version').replace('Browse models','View versions')
|
||||
a=s.index(" {step === 2 ?");b=s.index(" {step === 3 ?",a);s=s[:a]+''' {step === 2 ? <section className="stack"><h2 className="setup-headline" tabIndex={-1}>Pick a version</h2><p className="small muted">{versions[0]?.family} · the same model at different sizes.</p><VersionLadder versions={versions} hardware={hardware} context={config.context} selected={candidate?.id} recommended={recommended?.id} onSelect={setPicked}/><details className="disclosure"><summary>Conversation context</summary><div className="input-field"><span>Context length</span><Select ariaLabel="Setup context" value={context} onChange={setContext} options={[{value:'recommended',label:'Recommended (32K)'},...[4,8,16,32,64,128,256,512,1024].filter(n=>n*1024<=(candidate?.contextMax??32768)).map(n=>({value:`${n}k` as BeginnerConfig['contextLength'],label:`${n}K`}))]}/></div></details>{blocked?<ErrorNotice message="This version needs more memory at this context." next="Choose a smaller version or shorten the conversation context."/>:null}<div className="setup-actions"><Btn disabled={pending} onClick={()=>void advance(1)}>Back</Btn><Btn variant="primary" disabled={!candidate||blocked||pending} onClick={()=>void run()}>{pending?'Preparing…':installed?'Load version':'Download and continue'}</Btn></div></section>:null}
|
||||
'''+s[b:];s=s.replace('tabIndex={-1}>Preparing your model</h2>', 'tabIndex={-1}>{error?"Couldn’t prepare the model":"Preparing your model"}</h2>');s=s.replace('{error ? <p role="alert" className="inline-error small">{error}</p> : null}', '{error ? <ErrorNotice message={error} next="Your choices have been saved. Use Retry to continue."/> : null}')
|
||||
a=s.index(' </div><Dialog open={adjust}');b=s.index('<DemoTest open={testOpen}',a);s=s[:a]+' </div>'+s[b:];p.write_text(s)
|
||||
# Errors and task controls.
|
||||
p=root/'src/components/TaskEditor.tsx';s=p.read_text().replace('Btn, Dialog, Select','Btn, Dialog, Select, ErrorNotice');s=s.replace(" const modelName=library?.variants.find(v=>v.id===library.loaded)?.family.split('-')[0]??'model';\n",'');s=s.replace("assistant?'Create with '+modelName", "assistant?'Create with AI'");s=s.replace('<p role="alert" className="inline-error">{error}</p>', '<ErrorNotice message={error}/>');p.write_text(s)
|
||||
p=root/'src/screens/Tasks.tsx';s=p.read_text().replace('IconBtn, Select','IconBtn, Select, ErrorNotice');s=s.replace(" const modelName=loaded?.family.split('-')[0] ?? 'model';\n",'');s=s.replace('Create with {modelName}', 'Create with AI');s=s.replace('title={currentTask?.title??"Tasks"}', 'title={currentTask?<><button className="text-action" onClick={()=>navigate(\'tasks\')}>Tasks</button> › {currentTask.title}</>:"Tasks"}');s=s.replace('sub="Run a prompt on a schedule, or whenever you need it." actions={<div', 'sub={currentTask?undefined:"Run a prompt on a schedule, or whenever you need it."} actions={currentTask?undefined:<div');s=s.replace('{location.param?<button className="text-action" onClick={()=>navigate(\'tasks\')}>All tasks</button>:null}', '');s=s.replace('<p className="task-runtime small muted">','{!currentTask&&<p className="task-runtime small muted">').replace('file and web tools aren’t connected.</p>','the instructions you save.</p>}');s=s.replace('<label className="row small muted"><input type="checkbox" checked={archived}', '{!currentTask&&<label className="row small muted"><input type="checkbox" checked={archived}').replace('/>Deleted tasks</label>','/>Deleted tasks</label>}');s=s.replace('<p role="alert" className="inline-error">{error}</p>', '<ErrorNotice message={error} onRetry={()=>void refresh()}/>');s=s.replace('<p className="small inline-error">{t.error}</p>', '<button className="task-failed text-action" onClick={()=>setResult(t.id!)}>Last run failed · View</button>');s=s.replace("t.enabled&&t.nextRunAt?`Next: ${new Date(t.nextRunAt).toLocaleString(undefined,{dateStyle:'medium',timeStyle:'short'})}`:'Paused'", "t.enabled?(t.nextRunAt?`Next: ${new Date(t.nextRunAt).toLocaleString(undefined,{dateStyle:'medium',timeStyle:'short'})}`:'Scheduled · calculating next run'):'Paused'")
|
||||
s=s.replace('<IconBtn name={t.status===\'running\'?\'stop\':\'send\'}', '<Btn size="sm" icon={t.status===\'running\'?\'stop\':\'bolt\'}');s=s.replace('`))}/><button className="st-toggle"', '`))}>{t.status===\'running\'?\'Stop\':\'Run now\'}</Btn><label className="row small"><span>On schedule</span><button className="st-toggle"');s=s.replace('{enabled:!t.enabled}))}/></>', '{enabled:!t.enabled}))}/></label></>');s=s.replace("<Markdown text={selected.output??'No result yet.'}/>", "{selected.error?<ErrorNotice message={selected.error} next=\"Try running this task again.\"/>:<Markdown text={selected.output??'No result yet.'}/>}");p.write_text(s)
|
||||
p=root/'src/screens/Skills.tsx';s=p.read_text().replace('Select, type IconName','Select, ErrorNotice, type IconName');s=s.replace('<p role="alert" className="inline-error">{error}</p>', '<ErrorNotice message={error} action="Retry" onRetry={()=>void action(\'refresh\',loadSkills)}/>');s=s.replace('enabled here','enabled in this workspace');p.write_text(s)
|
||||
# Error consistency and sharing discoverability.
|
||||
p=root/'src/screens/Serving.tsx';s=p.read_text().replace('IconBtn, Seg','IconBtn, Seg, ErrorNotice');s=s.replace(" function closeKey()", " function generateKey(){const bytes=crypto.getRandomValues(new Uint8Array(32));setKeyDraft('sk-strata-'+Array.from(bytes,v=>v.toString(16).padStart(2,'0')).join(''));setGenerated(true);}\n function closeKey()")
|
||||
s=s.replace("setKeyDraft(''); setGenerated(false);", 'generateKey();');s=s.replace('<p role="alert" className="inline-error">{error}</p>', '<ErrorNotice message={error}/>');s=s.replace('<p ref={cancelResult} tabIndex={-1} role="alert">{selected.error}</p>', '<div ref={cancelResult} tabIndex={-1}><ErrorNotice message={selected.error} next="Check the client connection and try the request again."/></div>');s=s.replace('useRef<HTMLParagraphElement>', 'useRef<HTMLDivElement>')
|
||||
s=s.replace("{selected.cancellable ? <Btn", "{selected.cancellable!==false&&['queued','generating'].includes(selected.state) ? <Btn")
|
||||
s=s.replace("r.cancelRequested ? r.cancellable ? 'Cancelling…' : 'Cancelled' : r.state", "<span className=\"request-status\" data-state={r.state}>{r.cancelRequested ? r.cancellable ? 'Cancelling…' : 'Cancelled' : r.state.charAt(0).toUpperCase()+r.state.slice(1)}</span>")
|
||||
s=s.replace(" : undefined} />}</section>", " : <Btn onClick={()=>setGuide(true)}>Connect an app</Btn>} />}</section>")
|
||||
old='<IconBtn name="link" title={serving.sharing?.active ? \'Manage local sharing\' : \'Start local sharing\'} active={!!serving.sharing?.active} onClick={() => { setError(\'\'); setSharingOpen(true); }} />'
|
||||
s=s.replace(old,'');s=s.replace('</dd></div>{serving.tunnel?.status', '</dd></div><div><dt>Local network</dt><dd className="row"><span className="request-status" data-state={serving.sharing?.active?"shared":"queued"}>{serving.sharing?.active?"Shared on local network":"Off"}</span><Btn size="sm" onClick={()=>{setError(\'\');setSharingOpen(true);}}>{serving.sharing?.active?"Manage / stop":"Share"}</Btn></dd></div>{serving.tunnel?.status')
|
||||
s=s.replace('<code className="key-url">{serving.sharing.url}</code>', '<div className="row"><code className="key-url">{serving.sharing.url}</code><IconBtn name="copy" title="Copy local network URL" onClick={()=>void navigator.clipboard.writeText(serving.sharing!.url!)}/></div>')
|
||||
s=s.replace('<IconBtn name="copy" title="Copy new API key" disabled={!keyDraft} onClick={() => void navigator.clipboard.writeText(keyDraft)} />', '{keyDraft?<IconBtn name="copy" title="Copy new API key" onClick={() => void navigator.clipboard.writeText(keyDraft)} />:null}')
|
||||
s=s.replace('Generate a key for me</Btn>', 'Generate another key</Btn><button className="text-action" onClick={()=>{setKeyDraft(\'\');setGenerated(false);}}>Use my own key</button>')
|
||||
s=s.replace("'Demo model ready'", "'Model ready'");p.write_text(s)
|
||||
p=root/'src/components/CloudflareDialog.tsx';s=p.read_text().replace("from './ui';", "from './ui';")
|
||||
s=s.replace('Btn, Dialog,', 'Btn, ErrorNotice, Dialog,');s=s.replace('<p className="inline-error" role="alert">{error||tunnel?.error}</p>', '<ErrorNotice message={error||tunnel?.error||\'Connection failed\'} next="Check the connector and network, then try connecting again."/>');p.write_text(s)
|
||||
# Settings index follows the actual scroll container and filtered sections.
|
||||
p=root/'src/screens/Settings.tsx';s=p.read_text().replace('useState, type ReactNode','useState, useEffect, useRef, type ReactNode');s=s.replace('CONTENT_FONT_RANGE, go,','CONTENT_FONT_RANGE, createChatShowcase, createPreviewExamples, go,');s=s.replace(" const fields:", " const bodyRef=useRef<HTMLDivElement>(null);\n const fields:");s=s.replace(" { section: 'About', label: 'Version'", " {section:'About',label:'Design examples',hint:'Explore code, media, approvals and file previews.',aliases:'help demo showcase',control:<div className=\"row\"><Btn size=\"sm\" onClick={createChatShowcase}>Chat showcase</Btn><Btn size=\"sm\" onClick={createPreviewExamples}>Preview examples</Btn></div>},\n { section: 'About', label: 'Version'")
|
||||
s=s.replace('Manage models','Manage model versions');s=s.replace(' return <Screen', ''' useEffect(()=>{
|
||||
const body=bodyRef.current,scroll=body?.closest('.main__body');if(!body||!scroll)return;
|
||||
const sections=[...body.querySelectorAll<HTMLElement>('.settings-section')];
|
||||
const update=()=>{const top=scroll.getBoundingClientRect().top+80;const current=sections.filter(s=>s.getBoundingClientRect().top<=top).at(-1)??sections[0];setActive(current?.id.replace('settings-','')??'');};
|
||||
const observer=new IntersectionObserver(update,{root:scroll,rootMargin:'-70px 0px -55% 0px'});sections.forEach(s=>observer.observe(s));scroll.addEventListener('scroll',update,{passive:true});update();return()=>{observer.disconnect();scroll.removeEventListener('scroll',update);};
|
||||
},[query]);
|
||||
return <Screen''');s=s.replace("document.getElementById(`settings-${section}`)?.scrollIntoView({ block: 'start', behavior: scrollBehavior() });", "const target=document.getElementById(`settings-${section}`);const container=bodyRef.current?.closest('.main__body');if(target&&container)container.scrollTo({top:container.scrollTop+target.getBoundingClientRect().top-container.getBoundingClientRect().top-72,behavior:scrollBehavior()});")
|
||||
s=s.replace('<div className="stack stack--lg settings-body">','<div ref={bodyRef} className="stack stack--lg settings-body">');p.write_text(s)
|
||||
append('src/styles/app.css','''
|
||||
.request-status { display:inline-flex; padding:3px 8px; border-radius:6px; background:var(--st-surface-2); color:var(--st-ink-soft); font-size:12px; white-space:nowrap; }.request-status[data-state='generating'] { color:var(--st-info-text); }.request-status[data-state='done'] { color:var(--st-accent-text); }.request-status[data-state='error'],.task-failed { color:var(--st-danger-text); }.request-status[data-state='shared'] { color:var(--st-warn-text); }
|
||||
.setupmodal__surface { max-height:calc(100dvh - 48px); overflow:auto; background:var(--st-surface); opacity:1; animation:none; }.setup-redesign .setup-actions { position:sticky; bottom:0; padding:16px 0; background:var(--st-surface); z-index:2; }.setup-headline:focus { outline:none; }.setup-redesign .version-rung { padding:9px 12px; }.settings-body output { white-space:nowrap; min-width:44px; }
|
||||
''')
|
||||
@@ -0,0 +1,88 @@
|
||||
from pathlib import Path
|
||||
root=Path(__file__).resolve().parent.parent
|
||||
def edit(file,old,new):
|
||||
p=root/file;s=p.read_text();assert old in s,(file,old[:100]);p.write_text(s.replace(old,new))
|
||||
def append(file,text):
|
||||
p=root/file;p.write_text(p.read_text()+text)
|
||||
append('src/lib/format.ts','''
|
||||
/** Identity comes from the host; never substitute a different real model. */
|
||||
export function formatModelName(model: {family:string;quant:string;name?:string}|null|undefined): string {
|
||||
if (!model) return 'No model loaded';
|
||||
const version = ({Q2_K:'Smallest',Q3_K_M:'Compact',Q4_K_M:'Balanced',Q5_K_M:'High quality',Q6_K:'Very high',Q8_0:'Near-original',BF16:'Original'} as Record<string,string>)[model.quant] ?? model.name;
|
||||
return `${model.family} · ${version ? `${version} (${model.quant})` : model.quant}`;
|
||||
}
|
||||
export function userError(message: string): string {
|
||||
return message.replace(/^\\s*Fixture:\\s*/i, '').replace(/^./, c => c.toUpperCase());
|
||||
}
|
||||
''')
|
||||
edit('src/components/ui.tsx',"import { cx } from '../lib/format';","import { cx, userError } from '../lib/format';")
|
||||
append('src/components/ui.tsx','''
|
||||
/** Shared, announced error with a cause and a concrete recovery action. */
|
||||
export function ErrorNotice({message, next, action, onRetry}: {message:string;next?:string;action?:string;onRetry?:()=>void}) {
|
||||
return <div className="error-notice" role="alert"><Icon name="error" size={18}/><div><strong>{userError(message)}</strong>{next?<p>{next}</p>:null}</div>{onRetry?<Btn size="sm" onClick={onRetry}>{action??'Try again'}</Btn>:null}</div>;
|
||||
}
|
||||
export function PreviewBadge(){const demo=useStore(s=>s.library?.mode==='simulated');return demo?<span className="preview-badge">Preview build</span>:null;}
|
||||
''')
|
||||
edit('src/components/ui.tsx','style={{ left: placed.left, top: placed.top, width: placed.width }}',"style={{ left: placed.left, top: placed.top, width: placed.width, zIndex: triggerRef.current?.closest('[role=\"dialog\"]') ? 'var(--layer-dialog-popover)' : 'var(--layer-popover)' }}")
|
||||
edit('src/components/Popover.tsx','style={{...position,width,',"style={{...position,zIndex:anchor?.closest('[role=\"dialog\"]')?'var(--layer-dialog-popover)':'var(--layer-popover)',width,")
|
||||
edit('src/components/FloatingMenu.tsx','style={{ ...placed, width:',"style={{ ...placed, zIndex:anchor?.closest('[role=\"dialog\"]')?'var(--layer-dialog-popover)':'var(--layer-popover)', width:")
|
||||
edit('src/components/layout.tsx',"import type { ReactNode } from 'react';","import type { ReactNode } from 'react';\nimport { PreviewBadge } from './ui';")
|
||||
edit('src/components/layout.tsx','{title}</h1>','{title} <PreviewBadge/></h1>')
|
||||
edit('src/app/Sidebar.tsx',"import { cx, relTime }", "import { cx, relTime, formatModelName }")
|
||||
p=root/'src/app/Sidebar.tsx';s=p.read_text();start=s.index(' const modelName=');end=s.index(' const phase',start);s=s[:start]+" const modelName=formatModelName(current);\n const modelQuant=current ? 'Shared by all chats' : 'View model versions';\n"+s[end:];s=s.replace('<NavLink route="monitor"', '<NavLink route="skills" label="Skills" icon="thinking" current={location.route} />\n <NavLink route="monitor"');s=s.replace('<NavLink route="serving" label="Serving" icon="link" current={location.route} meta={serving?.stats.running ? String(serving.stats.running) : undefined} />','<NavLink route="tuning" label="Engine" icon="gauge" current={location.route} /><NavLink route="models" label="Model" icon="layers" current={location.route} />');s=s.replace('More — Skills, Models, Engine and Settings','More — Serving and Settings').replace("['skills', 'models', 'tuning', 'settings']","['serving', 'settings']");s=s.replace("{ route: 'skills', label: 'Skills', icon: 'thinking' }, { route: 'models', label: 'Models', icon: 'layers' }, { route: 'tuning', label: 'Engine', icon: 'gauge' },", "{ route: 'serving', label: 'Serving', icon: 'link' },");s=s.replace('<label className="strong" htmlFor="chat-name">Chat name</label><input className="st-input" id="chat-name" value={name} onChange={e => setName(e.target.value)} />','<label className="input-field" htmlFor="chat-name"><span>Chat name</span><input className="st-input" id="chat-name" value={name} onFocus={e=>e.currentTarget.select()} onChange={e => setName(e.target.value)} /></label>');s=s.replace('<Btn variant="danger" onClick={() => { if (deleteId) deleteSession(deleteId);','<Btn onClick={() => { if (deleteId) toggleArchive(deleteId); setDeleteId(null); }}>Archive instead</Btn><Btn variant="danger" onClick={() => { if (deleteId) deleteSession(deleteId);');p.write_text(s)
|
||||
edit('src/lib/commands.ts',"label: 'Models'", "label: 'Model'")
|
||||
edit('src/lib/commands.ts',"slash: ['new', 'clear']", "slash: ['new']")
|
||||
edit('src/lib/commands.ts',"Check computer, choose model and load", "Check computer, pick a version and load")
|
||||
# Flags retain unfinished controls without presenting them as working features.
|
||||
(root/'src/lib/features.ts').write_text("export const features = { toolAccess: false, thinkingLevels: false, sessionLog: false, chatAttachments: false, demosInComposer: false } as const;\n")
|
||||
edit('src/components/ChatToolbar.tsx',"import { Btn, Dialog, Icon, IconBtn }", "import { Btn, Dialog, Icon, IconBtn, PreviewBadge }")
|
||||
edit('src/components/ChatToolbar.tsx',"import { SubagentRow }", "import { features } from '../lib/features';\nimport { SubagentRow }")
|
||||
edit('src/components/ChatToolbar.tsx','</h1><button ref={agentsRef}', '</h1><PreviewBadge/>{!!session?.agents?.length&&<button ref={agentsRef}')
|
||||
edit('src/components/ChatToolbar.tsx','size={13}/></button><span className="spacer"/>', 'size={13}/></button>}<span className="spacer"/>')
|
||||
edit('src/components/ChatToolbar.tsx','</button><button role="menuitem" className="menu__item" onClick={()=>{setMenu(false);setLog(true);}}>', '</button>{features.sessionLog&&<button role="menuitem" className="menu__item" onClick={()=>{setMenu(false);setLog(true);}}>')
|
||||
edit('src/components/ChatToolbar.tsx','Download Session Log</button></FloatingMenu>','Download session log</button>}</FloatingMenu>')
|
||||
edit('src/components/ChatToolbar.tsx','<Icon name="chevron" size={16}/></button>)}</div></Dialog>', '<span className="xs muted">Use template</span></button>)}</div></Dialog>')
|
||||
append('src/styles/app.css','''
|
||||
/* Audit fixes: shared states and overlay ownership. */
|
||||
:root { --layer-base: 0; --layer-sticky: 10; --layer-sidebar: 20; --layer-popover: 100; --layer-dialog: 160; --layer-dialog-popover: 180; --layer-toast: 200; }
|
||||
html, body { overflow: hidden; }
|
||||
.main__body, .dialog-body { scrollbar-gutter: stable; }
|
||||
.dialog-layer { z-index: var(--layer-dialog); }
|
||||
.dialog-scrim, .scrim { background: rgb(0 0 0 / .36); }
|
||||
[data-theme='dark'] .dialog-scrim, [data-theme='dark'] .scrim { background: rgb(0 0 0 / .55); }
|
||||
.dialog-surface, .palette, .setup__panel { opacity: 1; background: var(--st-surface); animation: none; }
|
||||
.dialog-head, .dialog-actions { flex-shrink: 0; }
|
||||
.select__pop { z-index: var(--layer-dialog-popover); background: var(--st-surface); }
|
||||
.menu, .anchored-popover { z-index: var(--layer-popover); background: var(--st-surface); }
|
||||
.st-btn--primary, .nav-new.st-btn--primary { background: #10b981; color: #0b1f17; border-color: #10b981; }
|
||||
.st-btn--primary:hover:not(:disabled), .nav-new.st-btn--primary:hover:not(:disabled) { background: #22ce95; color: #0b1f17; border-color: #22ce95; }
|
||||
.st-btn:disabled { background: var(--st-surface-2); border-color: var(--st-line); color: var(--st-ink-muted); opacity: .65; box-shadow: none; }
|
||||
.st-toggle[aria-checked='true'] { background: #10b981; border-color: #10b981; }
|
||||
.st-toggle[aria-checked='true']::after { background: #fff; }
|
||||
input[type='checkbox'], input[type='radio'] { accent-color: #10b981; }
|
||||
textarea { font-family: inherit; }
|
||||
.error-notice { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; margin:12px 0; border:1px solid var(--st-danger-text); border-radius:12px; background:var(--st-surface); color:var(--st-danger-text); font-size:13px; }
|
||||
.error-notice > svg { flex-shrink:0; margin-top:2px; }
|
||||
.error-notice > div { flex:1; min-width:0; }
|
||||
.error-notice p { margin:4px 0 0; color:var(--st-ink-soft); }
|
||||
.st-input[aria-invalid='true'] { border-color:var(--st-danger-text); }
|
||||
.preview-badge { display:inline-flex; flex-shrink:0; align-items:center; border:1px solid var(--st-line); border-radius:6px; color:var(--st-ink-muted); padding:3px 6px; font-size:10px; font-weight:500; white-space:nowrap; }
|
||||
.st-msg { min-width:0; }
|
||||
.st-msg__meta { display:flex; flex-direction:row; flex-wrap:nowrap; min-width:0; width:100%; gap:8px; }
|
||||
.st-msg__actions { display:flex; flex-wrap:nowrap; opacity:0; }
|
||||
.st-msg:hover .st-msg__actions, .st-msg:focus-within .st-msg__actions { opacity:1; }
|
||||
.message-overflow { position:relative; }
|
||||
.message-overflow > div { position:absolute; top:100%; bottom:auto; left:0; min-width:240px; width:max-content; max-width:calc(100vw - 40px); background:var(--st-surface); border:1px solid var(--st-line); border-radius:12px; padding:10px; z-index:5; display:flex; flex-direction:column; align-items:stretch; box-shadow:var(--st-sh-pop); }
|
||||
.st-msg--user .message-overflow > div { left:auto; right:0; }
|
||||
.response-stats { white-space:nowrap; }
|
||||
.composer .st-composer textarea { min-height:44px; height:44px; max-height:180px; padding:12px 16px; }
|
||||
.composer { padding-top:10px; padding-bottom:10px; }
|
||||
.composer-model { max-width:270px; }
|
||||
.composer-model span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
||||
.chat-toolbar__conversation h1 { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
||||
.tool-summary { font-size:13px; color:var(--st-ink-soft); }
|
||||
.tool-summary summary { display:flex; align-items:center; gap:6px; font-weight:500; list-style:none; }
|
||||
.tool-summary summary::-webkit-details-marker { display:none; }
|
||||
.tool-summary[open] summary > svg:first-child { transform:rotate(180deg); }
|
||||
@media (hover:none) { .st-msg__actions { opacity:1; } }
|
||||
''')
|
||||
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"version": 1,
|
||||
"setup": {
|
||||
"complete": true,
|
||||
"flowVersion": 2,
|
||||
"step": 4,
|
||||
"history": [
|
||||
{
|
||||
"step": 1,
|
||||
"at": "2026-10-05T18:00:10.057Z"
|
||||
},
|
||||
{
|
||||
"step": 2,
|
||||
"at": "2026-10-05T18:51:53.450Z"
|
||||
},
|
||||
{
|
||||
"step": 2,
|
||||
"at": "2026-10-05T18:51:53.886Z"
|
||||
},
|
||||
{
|
||||
"step": 2,
|
||||
"at": "2026-10-05T18:52:00.541Z"
|
||||
},
|
||||
{
|
||||
"step": 2,
|
||||
"at": "2026-10-05T18:52:02.205Z"
|
||||
},
|
||||
{
|
||||
"step": 2,
|
||||
"at": "2026-10-05T18:52:04.790Z"
|
||||
},
|
||||
{
|
||||
"step": 2,
|
||||
"at": "2026-10-05T18:52:05.651Z"
|
||||
},
|
||||
{
|
||||
"step": 2,
|
||||
"at": "2026-10-05T18:52:06.436Z"
|
||||
},
|
||||
{
|
||||
"step": 2,
|
||||
"at": "2026-10-05T18:52:07.787Z"
|
||||
},
|
||||
{
|
||||
"step": 2,
|
||||
"at": "2026-10-05T18:52:08.814Z"
|
||||
},
|
||||
{
|
||||
"step": 2,
|
||||
"at": "2026-10-05T18:52:09.420Z"
|
||||
},
|
||||
{
|
||||
"step": 2,
|
||||
"at": "2026-10-05T18:53:03.761Z"
|
||||
},
|
||||
{
|
||||
"step": 3,
|
||||
"at": "2026-10-05T18:55:28.371Z"
|
||||
},
|
||||
{
|
||||
"step": 4,
|
||||
"at": "2026-10-05T18:55:41.653Z"
|
||||
}
|
||||
],
|
||||
"dismissed": false,
|
||||
"choices": {
|
||||
"variantId": "qwen2.5-0.5b-q4km",
|
||||
"contextLength": "32k",
|
||||
"profile": "balanced",
|
||||
"batch": 2048,
|
||||
"batchAuto": true
|
||||
},
|
||||
"completedAt": "2026-10-05T19:15:31.747Z"
|
||||
},
|
||||
"installed": {
|
||||
"qwen2.5-0.5b-q4km": {
|
||||
"installedAt": "2026-10-05T18:55:39.914Z",
|
||||
"simulated": true
|
||||
}
|
||||
},
|
||||
"current": "qwen2.5-0.5b-q4km",
|
||||
"loaded": "qwen2.5-0.5b-q4km",
|
||||
"beginner": {
|
||||
"priority": "balanced",
|
||||
"contextLength": "32k",
|
||||
"readImages": false,
|
||||
"gpuIdle": "never"
|
||||
},
|
||||
"expert": {
|
||||
"ctx.length": "32K",
|
||||
"perf.batch": 2048,
|
||||
"perf.threads": 2,
|
||||
"ctx.kvMode": "INT8",
|
||||
"gpu.layers": "Automatic"
|
||||
},
|
||||
"serving": {
|
||||
"otherDevices": false,
|
||||
"apiKey": null,
|
||||
"pauseServing": true
|
||||
},
|
||||
"configExtra": {
|
||||
"batchAutomatic": true
|
||||
},
|
||||
"tasks": [
|
||||
{
|
||||
"title": "new test task",
|
||||
"prompt": "do this",
|
||||
"frequency": "daily",
|
||||
"at": "09:00",
|
||||
"weekday": 1,
|
||||
"timeZone": "Europe/Zagreb",
|
||||
"enabled": true,
|
||||
"id": "4d1dd4be-830d-438b-8d9a-58a20245f031",
|
||||
"createdAt": "2026-10-06T20:00:52.943Z",
|
||||
"status": "idle",
|
||||
"archived": false,
|
||||
"nextRunAt": "2026-10-07T07:00:00.000Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
changed: src/app/Sidebar.tsx
|
||||
changed: src/components/ArtifactCard.tsx
|
||||
changed: src/components/ArtifactPanel.tsx
|
||||
changed: src/components/ChatToolbar.tsx
|
||||
changed: src/components/CloudflareDialog.tsx
|
||||
changed: src/components/ComposerControls.tsx
|
||||
changed: src/components/EngineExperience.tsx
|
||||
changed: src/components/FloatingMenu.tsx
|
||||
changed: src/components/Markdown.tsx
|
||||
removed: src/components/ModelCatalog.tsx
|
||||
changed: src/components/PdfPreview.tsx
|
||||
changed: src/components/Popover.tsx
|
||||
changed: src/components/SubagentRow.tsx
|
||||
changed: src/components/TaskEditor.tsx
|
||||
changed: src/components/TelemetryPopover.tsx
|
||||
changed: src/components/TimeSkipPanel.tsx
|
||||
changed: src/components/layout.tsx
|
||||
changed: src/components/ui.tsx
|
||||
changed: src/lib/chat-metrics.ts
|
||||
changed: src/lib/client.ts
|
||||
changed: src/lib/commands.ts
|
||||
changed: src/lib/config.ts
|
||||
changed: src/lib/format.ts
|
||||
changed: src/lib/hardware-summary.ts
|
||||
changed: src/lib/store.ts
|
||||
changed: src/lib/types.ts
|
||||
changed: src/screens/Chat.tsx
|
||||
changed: src/screens/Models.tsx
|
||||
changed: src/screens/Monitor.tsx
|
||||
changed: src/screens/Serving.tsx
|
||||
changed: src/screens/Settings.tsx
|
||||
changed: src/screens/Setup.tsx
|
||||
changed: src/screens/Skills.tsx
|
||||
changed: src/screens/Tasks.tsx
|
||||
changed: src/screens/Tuning.tsx
|
||||
changed: src/styles/app.css
|
||||
changed: server/catalog.mjs
|
||||
changed: server/models.mjs
|
||||
changed: server/monitor.mjs
|
||||
changed: scripts/contrast.mjs
|
||||
changed: scripts/luminance.mjs
|
||||
changed: scripts/measure.mjs
|
||||
changed: scripts/motion.mjs
|
||||
changed: scripts/motionbudget.mjs
|
||||
changed: tests/reliability.test.mjs
|
||||
changed: tests/request-flow.test.mjs
|
||||
changed: tests/ui-fixture-host.mjs
|
||||
added: src/components/PreviewControls.tsx
|
||||
added: src/components/VersionLadder.tsx
|
||||
added: src/components/AutoTune.tsx
|
||||
added: src/lib/model-versions.ts
|
||||
added: src/lib/features.ts
|
||||
added: server/real-model-catalog.mjs
|
||||
added: tests/audit-fixes.test.mjs
|
||||
@@ -0,0 +1,842 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<style>
|
||||
@font-face{font-family:'GT Walsheim Pro';src:url('fonts/GTWalsheimPro-Regular.woff2') format('woff2');font-weight:400;font-display:swap;}
|
||||
@font-face{font-family:'GT Walsheim Pro';src:url('fonts/GTWalsheimPro-Medium.woff2') format('woff2');font-weight:500;font-display:swap;}
|
||||
@font-face{font-family:'GT Walsheim Pro';src:url('fonts/GTWalsheimPro-Bold.woff2') format('woff2');font-weight:700;font-display:swap;}
|
||||
@font-face{font-family:'GT Walsheim Pro';src:url('fonts/GTWalsheimPro-Black.woff2') format('woff2');font-weight:900;font-display:swap;}
|
||||
*{box-sizing:border-box;}
|
||||
html,body{margin:0;padding:0;background:#f9fafb;}
|
||||
a{color:#0c8a60;text-decoration:none;}
|
||||
a:hover{text-decoration:underline;}
|
||||
input[type=range]{accent-color:#10b981;}
|
||||
input[type=number]::-webkit-inner-spin-button{opacity:.5;}
|
||||
@keyframes blink{50%{opacity:0}}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="min-height:100vh;background:#f9fafb;color:#221e1f;font-family:'GT Walsheim Pro',system-ui,sans-serif;-webkit-font-smoothing:antialiased;padding-bottom:120px;">
|
||||
|
||||
<header style="display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 32px;background:#ffffff;border-bottom:1px solid #dee5ee;">
|
||||
<div style="display:flex;flex-direction:column;gap:4px;">
|
||||
<h1 style="margin:0;font-weight:700;font-size:24px;letter-spacing:-0.01em;">Engine</h1>
|
||||
<span style="font-size:13px;color:#6f6f6f;">Qwen3.8-Flash-Next · tuned for this PC</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div style="{{ modeBarWidth }}margin:0 auto;padding:24px 28px 0;display:flex;align-items:center;gap:16px;flex-wrap:wrap;">
|
||||
<div style="display:flex;gap:4px;padding:4px;background:#ffffff;border:1px solid #dee5ee;border-radius:16px;box-shadow:0 1px 2px rgba(0,0,0,.04);">
|
||||
<button onClick="{{ toSimple }}" style="{{ modeSimpleStyle }}display:flex;align-items:center;gap:8px;height:40px;padding:0 18px;border:0;border-radius:12px;font:700 14px/1 'GT Walsheim Pro',sans-serif;cursor:pointer;"><span style="display:inline-block;width:17px;height:17px;background:currentColor;mask:url(icons/gauge.svg) center/contain no-repeat;"></span>Simple</button>
|
||||
<button onClick="{{ toExpert }}" style="{{ modeExpertStyle }}display:flex;align-items:center;gap:8px;height:40px;padding:0 18px;border:0;border-radius:12px;font:700 14px/1 'GT Walsheim Pro',sans-serif;cursor:pointer;"><span style="display:inline-block;width:17px;height:17px;background:currentColor;mask:url(icons/settings.svg) center/contain no-repeat;"></span>Expert</button>
|
||||
</div>
|
||||
<span style="font-size:14px;color:#6f6f6f;">{{ modeHint }}</span>
|
||||
</div>
|
||||
|
||||
<!-- SIMPLE -->
|
||||
<sc-if value="{{ isSimple }}" hint-placeholder-val="{{ true }}">
|
||||
<main style="max-width:1200px;margin:0 auto;padding:20px 28px 0;display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start;">
|
||||
<div style="flex:1.45 1 520px;min-width:0;display:flex;flex-direction:column;gap:20px;">
|
||||
<section style="background:#ffffff;border:1px solid #dee5ee;border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:18px;box-shadow:0 4px 4px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.04);">
|
||||
<div style="display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;">
|
||||
<div style="display:flex;flex-direction:column;gap:4px;">
|
||||
<h2 style="margin:0;font-weight:700;font-size:20px;">What will you mostly use it for?</h2>
|
||||
<span style="font-size:14px;color:#6f6f6f;">Strata sets everything else up for you. You can change it any time.</span>
|
||||
</div>
|
||||
<button onClick="{{ startTune }}" style="display:flex;align-items:center;gap:8px;height:40px;padding:0 16px;border:1.5px solid #dee5ee;border-radius:14px;background:#ffffff;color:#221e1f;font:700 14px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#f7f7f7;"><span style="display:inline-block;width:18px;height:18px;background:#2F384C;mask:url(icons/gauge.svg) center/contain no-repeat;"></span>Auto-tune for my PC</button>
|
||||
</div>
|
||||
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;">
|
||||
<sc-for list="{{ goals }}" as="g" hint-placeholder-count="3">
|
||||
<button onClick="{{ g.pick }}" style="{{ g.cardStyle }}display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:16px;border-radius:16px;text-align:left;cursor:pointer;font-family:'GT Walsheim Pro',sans-serif;transition:border-color 160ms,background 160ms;">
|
||||
<span style="{{ g.iconWrap }}display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;"><span style="{{ g.iconStyle }}display:inline-block;width:22px;height:22px;"></span></span>
|
||||
<span style="display:flex;flex-direction:column;gap:3px;">
|
||||
<span style="font-weight:700;font-size:15px;color:#221e1f;">{{ g.title }}</span>
|
||||
<span style="font-size:13px;line-height:1.4;color:#6f6f6f;">{{ g.sub }}</span>
|
||||
</span>
|
||||
</button>
|
||||
</sc-for>
|
||||
</div>
|
||||
<div style="display:flex;flex-direction:column;gap:12px;">
|
||||
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;">
|
||||
<sc-for list="{{ headroom }}" as="h" hint-placeholder-count="2">
|
||||
<button onClick="{{ h.pick }}" style="{{ h.cardStyle }}display:flex;align-items:flex-start;gap:14px;padding:16px;border-radius:16px;text-align:left;cursor:pointer;font-family:'GT Walsheim Pro',sans-serif;transition:border-color 160ms,background 160ms;">
|
||||
<span style="{{ h.radio }}flex:none;width:20px;height:20px;margin-top:2px;border-radius:50%;box-sizing:border-box;transition:border 160ms;"></span>
|
||||
<span style="flex:1;display:flex;flex-direction:column;gap:4px;">
|
||||
<span style="display:flex;align-items:center;gap:8px;"><span style="{{ h.iconStyle }}display:inline-block;width:18px;height:18px;"></span><span style="font-weight:700;font-size:15px;color:#221e1f;">{{ h.title }}</span></span>
|
||||
<span style="font-size:13px;line-height:1.45;color:#6f6f6f;">{{ h.sub }}</span>
|
||||
<span style="font-size:12px;font-weight:500;color:#303030;font-variant-numeric:tabular-nums;">{{ h.stat }}</span>
|
||||
</span>
|
||||
</button>
|
||||
</sc-for>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section style="background:#ffffff;border:1px solid #dee5ee;border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:20px;box-shadow:0 4px 4px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.04);">
|
||||
<div style="display:flex;align-items:baseline;justify-content:space-between;gap:12px;">
|
||||
<div style="display:flex;flex-direction:column;gap:4px;">
|
||||
<h2 style="margin:0;font-weight:700;font-size:20px;">How much it can remember</h2>
|
||||
<span style="font-size:14px;color:#6f6f6f;">Everything in one chat: your messages, its replies and any files you add.</span>
|
||||
</div>
|
||||
<sc-if value="{{ ctxNotRec }}" hint-placeholder-val="{{ false }}">
|
||||
<button onClick="{{ resetCtx }}" style="border:0;background:transparent;color:#0c8a60;font:500 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;white-space:nowrap;">Use recommended</button>
|
||||
</sc-if>
|
||||
</div>
|
||||
<div style="display:flex;align-items:flex-end;gap:14px;">
|
||||
<span style="font-weight:900;font-size:44px;line-height:1;letter-spacing:-0.02em;font-variant-numeric:tabular-nums;">≈ {{ pages }}</span>
|
||||
<span style="font-weight:500;font-size:18px;color:#303030;padding-bottom:4px;">pages</span>
|
||||
<span style="flex:1;"></span>
|
||||
<span style="font-size:13px;color:#6f6f6f;padding-bottom:6px;font-variant-numeric:tabular-nums;">{{ ctxLabel }} tokens</span>
|
||||
<sc-if value="{{ ctxIsRec }}" hint-placeholder-val="{{ true }}">
|
||||
<span style="display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:#ecfdf5;color:#0c8a60;font-size:12px;font-weight:700;margin-bottom:4px;">Recommended</span>
|
||||
</sc-if>
|
||||
</div>
|
||||
<div style="display:flex;flex-direction:column;gap:8px;">
|
||||
<input type="range" min="0" max="8" step="1" value="{{ ctxIdx }}" onChange="{{ setCtxIdx }}" style="width:100%;height:24px;cursor:pointer;"/>
|
||||
<div style="display:flex;justify-content:space-between;font-size:12px;color:#6f6f6f;font-variant-numeric:tabular-nums;">
|
||||
<span>4K</span><span>8K</span><span>16K</span><span>32K</span><span>64K</span><span>128K</span><span>256K</span><span>512K</span><span>1M</span>
|
||||
</div>
|
||||
<div style="display:flex;justify-content:space-between;font-size:12px;color:#303030;">
|
||||
<span>A note</span><span>A report</span><span>A book</span><span>A bookshelf</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;background:#f7f7f7;font-size:14px;line-height:1.45;color:#303030;">
|
||||
<span style="display:inline-block;flex:none;width:18px;height:18px;background:#2F384C;mask:url(icons/info.svg) center/contain no-repeat;"></span>{{ ctxHint }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<aside style="flex:1 1 320px;min-width:300px;position:sticky;top:20px;display:flex;flex-direction:column;gap:16px;">
|
||||
<section style="background:#ffffff;border:1px solid #dee5ee;border-radius:20px;padding:22px;display:flex;flex-direction:column;gap:16px;box-shadow:0 4px 4px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.04);">
|
||||
<div style="display:flex;align-items:center;justify-content:space-between;gap:10px;">
|
||||
<h2 style="margin:0;font-weight:700;font-size:18px;">How it will feel</h2>
|
||||
<span style="font-size:12px;font-weight:500;color:#6f6f6f;">{{ previewTag }}</span>
|
||||
</div>
|
||||
<div style="min-height:132px;padding:14px 16px;border-radius:16px 16px 16px 6px;background:#f9fafb;border:1px solid #eeeeee;font-size:14px;line-height:1.6;color:#303030;">{{ streamText }}<span style="display:inline-block;width:7px;height:15px;margin-left:2px;vertical-align:-2px;background:#10b981;border-radius:2px;animation:blink 1s steps(1) infinite;"></span></div>
|
||||
<div style="display:grid;grid-template-columns:1fr 1fr;gap:10px;">
|
||||
<div style="display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:14px;background:#f7f7f7;">
|
||||
<span style="font-size:12px;font-weight:500;color:#6f6f6f;">Writes</span>
|
||||
<span style="font-weight:900;font-size:24px;line-height:1;font-variant-numeric:tabular-nums;">{{ genTokS }} <span style="font-weight:500;font-size:13px;color:#6f6f6f;">tok/s</span></span>
|
||||
<span style="font-size:12px;color:#6f6f6f;font-variant-numeric:tabular-nums;">{{ wps }} words per second · {{ genVs }}</span>
|
||||
</div>
|
||||
<div style="display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:14px;background:#f7f7f7;">
|
||||
<span style="font-size:12px;font-weight:500;color:#6f6f6f;">Reads</span>
|
||||
<span style="font-weight:900;font-size:24px;line-height:1;font-variant-numeric:tabular-nums;">{{ readTok }} <span style="font-weight:500;font-size:13px;color:#6f6f6f;">tok/s</span></span>
|
||||
<span style="font-size:12px;color:#6f6f6f;font-variant-numeric:tabular-nums;">10-page doc in {{ readSec }} sec</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section style="background:#ffffff;border:1px solid #dee5ee;border-radius:20px;padding:22px;display:flex;flex-direction:column;gap:18px;box-shadow:0 4px 4px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.04);">
|
||||
<div style="display:flex;align-items:center;gap:12px;">
|
||||
<span style="display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border-radius:14px;background:#f7f7f7;border:1px solid #eeeeee;"><span style="display:inline-block;width:24px;height:24px;background:#2F384C;mask:url(icons/gpu.svg) center/contain no-repeat;"></span></span>
|
||||
<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;">
|
||||
<h2 style="margin:0;font-weight:700;font-size:17px;">Graphics memory</h2>
|
||||
<span style="font-size:13px;color:#6f6f6f;">RTX 4070 · 12 GB VRAM</span>
|
||||
</div>
|
||||
<span style="{{ fitChip }}display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap;"><span style="width:6px;height:6px;border-radius:50%;background:currentColor;"></span>{{ fitLabel }}</span>
|
||||
</div>
|
||||
<div style="display:flex;flex-direction:column;gap:10px;">
|
||||
<div style="display:flex;align-items:baseline;justify-content:space-between;gap:10px;">
|
||||
<span style="display:flex;align-items:baseline;gap:6px;"><span style="font-weight:900;font-size:30px;line-height:1;letter-spacing:-0.01em;font-variant-numeric:tabular-nums;">{{ usedGb }}</span><span style="font-size:14px;font-weight:500;color:#6f6f6f;">GB used of 12</span></span>
|
||||
<span style="font-size:13px;font-weight:500;color:#303030;font-variant-numeric:tabular-nums;">{{ mFree }} GB free</span>
|
||||
</div>
|
||||
<div style="display:flex;gap:3px;height:12px;padding:2px;border-radius:999px;background:#eef1f4;">
|
||||
<div style="{{ barModel }}height:100%;border-radius:999px;background:#2F384C;transition:width 260ms;"></div>
|
||||
<div style="{{ barCtx }}height:100%;border-radius:999px;background:#10b981;transition:width 260ms;"></div>
|
||||
<div style="{{ barWork }}height:100%;border-radius:999px;background:#0f97ff;transition:width 260ms;"></div>
|
||||
<div style="{{ barOver }}height:100%;border-radius:999px;background:repeating-linear-gradient(45deg,#e0283f 0 4px,#f37a89 4px 8px);transition:width 260ms;"></div>
|
||||
<div style="flex:1;"></div>
|
||||
<div style="{{ barReserve }}height:100%;border-radius:999px;background:repeating-linear-gradient(45deg,#c9d1db 0 3px,#e3e8ee 3px 6px);transition:width 260ms;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display:flex;flex-direction:column;font-size:13px;color:#303030;font-variant-numeric:tabular-nums;">
|
||||
<div style="display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #eeeeee;"><span style="width:10px;height:10px;border-radius:3px;background:#2F384C;"></span><span style="flex:1;">Model</span><span style="font-weight:700;">{{ mModel }} GB</span></div>
|
||||
<div style="display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #eeeeee;"><span style="width:10px;height:10px;border-radius:3px;background:#10b981;"></span><span style="flex:1;">Chat memory</span><span style="font-weight:700;">{{ mCtx }} GB</span></div>
|
||||
<div style="display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #eeeeee;"><span style="width:10px;height:10px;border-radius:3px;background:#0f97ff;"></span><span style="flex:1;">Working space</span><span style="font-weight:700;">{{ mWork }} GB</span></div>
|
||||
<sc-if value="{{ showReserve }}" hint-placeholder-val="{{ true }}">
|
||||
<div style="display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #eeeeee;"><span style="width:10px;height:10px;border-radius:3px;background:repeating-linear-gradient(45deg,#c9d1db 0 3px,#e3e8ee 3px 6px);"></span><span style="flex:1;">Kept for your apps</span><span style="font-weight:700;">{{ mReserve }} GB</span></div>
|
||||
</sc-if>
|
||||
</div>
|
||||
<div style="{{ fitBox }}display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:14px;font-size:13px;line-height:1.45;">
|
||||
<span style="display:inline-block;flex:none;width:16px;height:16px;margin-top:1px;background:currentColor;mask:url(icons/info.svg) center/contain no-repeat;"></span>{{ fitHint }}
|
||||
</div>
|
||||
</section>
|
||||
</aside>
|
||||
</main>
|
||||
</sc-if>
|
||||
|
||||
<!-- EXPERT -->
|
||||
<sc-if value="{{ isExpert }}" hint-placeholder-val="{{ false }}">
|
||||
<main style="max-width:1360px;margin:0 auto;padding:20px 28px 0;display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start;">
|
||||
|
||||
<aside style="flex:1 1 200px;max-width:260px;min-width:200px;display:flex;flex-direction:column;gap:10px;">
|
||||
<span style="font-weight:500;font-size:12px;letter-spacing:0.06em;text-transform:uppercase;color:#6f6f6f;padding:0 4px;">Presets</span>
|
||||
<sc-for list="{{ presets }}" as="p" hint-placeholder-count="5">
|
||||
<div onClick="{{ p.load }}" style="{{ p.style }}position:relative;display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-radius:14px;cursor:pointer;transition:background 140ms,border-color 140ms;">
|
||||
<span style="display:flex;align-items:center;gap:8px;padding-right:22px;"><span style="font-weight:700;font-size:14px;color:#221e1f;">{{ p.name }}</span><sc-if value="{{ p.active }}" hint-placeholder-val="{{ false }}"><span style="width:7px;height:7px;border-radius:50%;background:#10b981;"></span></sc-if></span>
|
||||
<span style="font-family:ui-monospace,Consolas,monospace;font-size:11px;line-height:1.5;color:#6f6f6f;">{{ p.sub }}</span>
|
||||
<sc-if value="{{ p.custom }}" hint-placeholder-val="{{ false }}">
|
||||
<button onClick="{{ p.remove }}" title="Delete preset" style="position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:0;border-radius:7px;background:transparent;cursor:pointer;" style-hover="background:#fdecee;"><span style="display:inline-block;width:14px;height:14px;background:#6f6f6f;mask:url(icons/trash.svg) center/contain no-repeat;"></span></button>
|
||||
</sc-if>
|
||||
</div>
|
||||
</sc-for>
|
||||
<sc-if value="{{ naming }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;background:#ffffff;border:1.5px solid #405de6;">
|
||||
<input value="{{ nameDraft }}" onChange="{{ onName }}" onKeyDown="{{ onNameKey }}" placeholder="Preset name" autofocus="" style="height:36px;padding:0 10px;border-radius:10px;border:1px solid #dee5ee;font:500 14px 'GT Walsheim Pro',sans-serif;color:#221e1f;outline:none;"/>
|
||||
<div style="display:flex;gap:6px;">
|
||||
<button onClick="{{ cancelName }}" style="flex:1;height:32px;border:1px solid #dee5ee;border-radius:10px;background:#ffffff;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;">Cancel</button>
|
||||
<button onClick="{{ savePreset }}" style="flex:1;height:32px;border:0;border-radius:10px;background:#10b981;color:#ffffff;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</sc-if>
|
||||
<sc-if value="{{ notNaming }}" hint-placeholder-val="{{ true }}">
|
||||
<button onClick="{{ startName }}" style="display:flex;align-items:center;justify-content:center;gap:8px;height:40px;border:1.5px dashed #dee5ee;border-radius:14px;background:transparent;color:#303030;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="border-color:#10b981;color:#0c8a60;"><span style="display:inline-block;width:16px;height:16px;background:currentColor;mask:url(icons/new-chat.svg) center/contain no-repeat;"></span>Save current as preset</button>
|
||||
</sc-if>
|
||||
</aside>
|
||||
|
||||
<section style="flex:999 1 520px;display:flex;flex-direction:column;gap:16px;min-width:0;">
|
||||
<div style="display:flex;align-items:center;gap:12px;flex-wrap:wrap;">
|
||||
<div style="display:flex;gap:4px;padding:4px;background:#f7f7f7;border:1px solid #dee5ee;border-radius:14px;">
|
||||
<button onClick="{{ toParams }}" style="{{ tabParamsStyle }}display:flex;align-items:center;gap:8px;height:34px;padding:0 14px;border:0;border-radius:10px;font:700 14px/1 'GT Walsheim Pro',sans-serif;cursor:pointer;"><span style="display:inline-block;width:16px;height:16px;background:currentColor;mask:url(icons/settings.svg) center/contain no-repeat;"></span>Parameters</button>
|
||||
<button onClick="{{ toRaw }}" style="{{ tabRawStyle }}display:flex;align-items:center;gap:8px;height:34px;padding:0 14px;border:0;border-radius:10px;font:700 14px/1 'GT Walsheim Pro',sans-serif;cursor:pointer;"><span style="display:inline-block;width:16px;height:16px;background:currentColor;mask:url(icons/copy.svg) center/contain no-repeat;"></span>Raw config</button>
|
||||
</div>
|
||||
<span style="flex:1;"></span>
|
||||
<code style="font-family:ui-monospace,Consolas,monospace;font-size:12px;color:#6f6f6f;">~/.strata/engine.json</code>
|
||||
</div>
|
||||
|
||||
<sc-if value="{{ tabParams }}" hint-placeholder-val="{{ true }}">
|
||||
<div style="display:flex;flex-direction:column;gap:14px;">
|
||||
<div style="display:flex;align-items:center;gap:10px;flex-wrap:wrap;">
|
||||
<div style="flex:1;min-width:220px;display:flex;align-items:center;gap:8px;height:42px;padding:0 12px;border-radius:14px;border:1.5px solid #dee5ee;background:#ffffff;">
|
||||
<span style="display:inline-block;width:16px;height:16px;background:#6f6f6f;mask:url(icons/layers.svg) center/contain no-repeat;"></span>
|
||||
<input value="{{ q }}" onChange="{{ onQ }}" placeholder="Search name or key, e.g. kv or sample.top" style="flex:1;border:0;outline:none;background:transparent;font:400 14px 'GT Walsheim Pro',sans-serif;color:#221e1f;"/>
|
||||
</div>
|
||||
<button onClick="{{ toggleChanged }}" style="{{ changedBtnStyle }}display:flex;align-items:center;gap:8px;height:42px;padding:0 14px;border-radius:14px;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;">Unsaved only · {{ unsavedN }}</button>
|
||||
<button onClick="{{ toggleDesc }}" style="{{ descBtnStyle }}display:flex;align-items:center;gap:8px;height:42px;padding:0 14px;border-radius:14px;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;">Descriptions</button>
|
||||
</div>
|
||||
<div style="display:flex;gap:6px;flex-wrap:wrap;">
|
||||
<sc-for list="{{ groupChips }}" as="gc" hint-placeholder-count="7">
|
||||
<button onClick="{{ gc.pick }}" style="{{ gc.style }}height:30px;padding:0 12px;border-radius:999px;font:500 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;">{{ gc.label }}</button>
|
||||
</sc-for>
|
||||
</div>
|
||||
|
||||
<sc-for list="{{ groups }}" as="grp" hint-placeholder-count="3">
|
||||
<div style="display:flex;flex-direction:column;background:#ffffff;border:1px solid #dee5ee;border-radius:20px;padding:8px;box-shadow:0 4px 4px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.04);">
|
||||
<div style="display:flex;align-items:baseline;justify-content:space-between;padding:12px 16px 8px;">
|
||||
<span style="font-weight:700;font-size:16px;">{{ grp.title }}</span>
|
||||
<span style="font-size:12px;color:#6f6f6f;">{{ grp.count }}</span>
|
||||
</div>
|
||||
<sc-for list="{{ grp.rows }}" as="r" hint-placeholder-count="3">
|
||||
<div style="{{ r.rowStyle }}display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;padding:12px 16px;border-radius:14px;">
|
||||
<div style="flex:1 1 240px;display:flex;flex-direction:column;gap:4px;min-width:0;">
|
||||
<div style="display:flex;align-items:center;gap:10px;flex-wrap:wrap;">
|
||||
<span style="font-weight:700;font-size:14px;">{{ r.label }}</span>
|
||||
<code style="font-family:ui-monospace,Consolas,monospace;font-size:12px;color:#6f6f6f;">{{ r.key }}</code>
|
||||
<sc-if value="{{ r.unsaved }}" hint-placeholder-val="{{ false }}"><span style="display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:#fff6e0;color:#8a5a00;font-size:11px;font-weight:700;">Unsaved</span></sc-if>
|
||||
</div>
|
||||
<span style="font-size:12px;color:#6f6f6f;">{{ r.meta }}</span>
|
||||
<sc-if value="{{ r.showDesc }}" hint-placeholder-val="{{ false }}"><span style="font-size:13px;line-height:1.45;color:#303030;">{{ r.desc }}</span></sc-if>
|
||||
</div>
|
||||
<div style="flex:0 1 auto;margin-left:auto;display:flex;align-items:center;gap:6px;">
|
||||
<sc-if value="{{ r.isSelect }}" hint-placeholder-val="{{ true }}">
|
||||
<select value="{{ r.value }}" onChange="{{ r.onSelect }}" style="width:min(190px,100%);height:40px;padding:0 10px;border-radius:12px;border:1.5px solid #dee5ee;background:#ffffff;color:#221e1f;font:500 14px 'GT Walsheim Pro',sans-serif;cursor:pointer;">
|
||||
<sc-for list="{{ r.options }}" as="o" hint-placeholder-count="3"><option value="{{ o.v }}">{{ o.l }}</option></sc-for>
|
||||
</select>
|
||||
</sc-if>
|
||||
<sc-if value="{{ r.isNumber }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="display:flex;align-items:center;gap:10px;width:min(190px,100%);">
|
||||
<input type="range" min="{{ r.min }}" max="{{ r.max }}" step="{{ r.step }}" value="{{ r.value }}" onChange="{{ r.onNumber }}" style="flex:1;min-width:0;"/>
|
||||
<input type="number" min="{{ r.min }}" max="{{ r.max }}" step="{{ r.step }}" value="{{ r.value }}" onChange="{{ r.onNumber }}" style="width:72px;height:40px;padding:0 8px;border-radius:12px;border:1.5px solid #dee5ee;background:#ffffff;color:#221e1f;font:500 14px ui-monospace,Consolas,monospace;text-align:right;"/>
|
||||
</div>
|
||||
</sc-if>
|
||||
<sc-if value="{{ r.isBool }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="display:flex;align-items:center;justify-content:flex-end;gap:10px;width:min(190px,100%);">
|
||||
<span style="font-size:13px;color:#6f6f6f;">{{ r.boolLabel }}</span>
|
||||
<button onClick="{{ r.onToggle }}" role="switch" style="{{ r.track }}position:relative;flex:none;width:42px;height:26px;border-radius:999px;border:0;cursor:pointer;padding:0;transition:background 160ms;"><span style="{{ r.knob }}position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#ffffff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform 160ms;"></span></button>
|
||||
</div>
|
||||
</sc-if>
|
||||
<button onClick="{{ r.revert }}" title="Back to saved value" style="{{ r.revertStyle }}width:56px;height:32px;border:0;border-radius:9px;background:transparent;color:#0c8a60;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#ecfdf5;">Revert</button>
|
||||
</div>
|
||||
</div>
|
||||
</sc-for>
|
||||
</div>
|
||||
</sc-for>
|
||||
<sc-if value="{{ noResults }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="padding:40px;text-align:center;font-size:14px;color:#6f6f6f;background:#ffffff;border:1px dashed #dee5ee;border-radius:20px;">No parameters match. Try another word, or clear the filters.</div>
|
||||
</sc-if>
|
||||
</div>
|
||||
</sc-if>
|
||||
|
||||
<sc-if value="{{ tabRaw }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="display:flex;flex-direction:column;gap:12px;">
|
||||
<div style="display:flex;align-items:center;gap:8px;flex-wrap:wrap;">
|
||||
<span style="{{ rawChip }}display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 12px;border-radius:999px;font-size:12px;font-weight:700;"><span style="width:6px;height:6px;border-radius:50%;background:currentColor;"></span>{{ rawStatus }}</span>
|
||||
<span style="flex:1;"></span>
|
||||
<button onClick="{{ rawFormat }}" style="height:36px;padding:0 14px;border:1.5px solid #dee5ee;border-radius:12px;background:#ffffff;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#f7f7f7;">Format</button>
|
||||
<button onClick="{{ rawCopy }}" style="height:36px;padding:0 14px;border:1.5px solid #dee5ee;border-radius:12px;background:#ffffff;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#f7f7f7;">{{ copyLabel }}</button>
|
||||
<button onClick="{{ rawImport }}" style="height:36px;padding:0 14px;border:1.5px solid #dee5ee;border-radius:12px;background:#ffffff;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#f7f7f7;">Import</button>
|
||||
<button onClick="{{ rawExport }}" style="height:36px;padding:0 14px;border:1.5px solid #dee5ee;border-radius:12px;background:#ffffff;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#f7f7f7;">Export</button>
|
||||
<input type="file" accept=".json,application/json" ref="{{ fileRef }}" onChange="{{ onFile }}" style="display:none;"/>
|
||||
</div>
|
||||
<div style="display:flex;max-height:620px;overflow:auto;background:#1b1f23;border-radius:20px;border:1.5px solid #1b1f23;">
|
||||
<pre style="margin:0;padding:16px 10px 16px 16px;text-align:right;color:#5d6670;font:400 13px/1.7 ui-monospace,Consolas,monospace;user-select:none;border-right:1px solid rgba(255,255,255,.06);">{{ gutter }}</pre>
|
||||
<textarea value="{{ rawValue }}" onChange="{{ onRaw }}" rows="{{ rawRows }}" spellcheck="false" style="flex:1;min-width:0;margin:0;padding:16px;border:0;outline:none;resize:none;overflow:hidden;background:transparent;color:#e6e9ec;font:400 13px/1.7 ui-monospace,Consolas,monospace;white-space:pre;tab-size:2;min-width:360px;"></textarea>
|
||||
</div>
|
||||
<sc-if value="{{ rawHasMsg }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="{{ rawMsgStyle }}display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:14px;font-size:13px;line-height:1.5;">
|
||||
<span style="{{ rawMsgIcon }}display:inline-block;flex:none;width:18px;height:18px;margin-top:1px;"></span>
|
||||
<span style="font-family:ui-monospace,Consolas,monospace;">{{ rawMsg }}</span>
|
||||
</div>
|
||||
</sc-if>
|
||||
<span style="font-size:12px;color:#6f6f6f;">Edits apply to the draft as you type, as long as the JSON is valid. Unknown keys are ignored. The Parameters tab stays in sync.</span>
|
||||
</div>
|
||||
</sc-if>
|
||||
</section>
|
||||
|
||||
<aside style="flex:1 1 280px;min-width:260px;display:flex;flex-direction:column;gap:14px;">
|
||||
<section style="background:#ffffff;border:1px solid #dee5ee;border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:14px;box-shadow:0 4px 4px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.04);">
|
||||
<div style="display:flex;align-items:center;justify-content:space-between;"><h2 style="margin:0;font-weight:700;font-size:16px;">Live estimate</h2><span style="font-size:12px;color:#6f6f6f;">{{ previewTag }}</span></div>
|
||||
<div style="display:grid;grid-template-columns:1fr 1fr;gap:8px;">
|
||||
<div style="display:flex;flex-direction:column;gap:5px;padding:12px;border-radius:12px;background:#f7f7f7;"><span style="font-size:11px;font-weight:500;letter-spacing:0.04em;text-transform:uppercase;color:#6f6f6f;">Decode</span><span style="font-weight:900;font-size:22px;line-height:1;font-variant-numeric:tabular-nums;">{{ genTok }}</span><span style="font-size:11px;color:#6f6f6f;font-variant-numeric:tabular-nums;">tok/s · {{ genPct }}</span></div>
|
||||
<div style="display:flex;flex-direction:column;gap:5px;padding:12px;border-radius:12px;background:#f7f7f7;"><span style="font-size:11px;font-weight:500;letter-spacing:0.04em;text-transform:uppercase;color:#6f6f6f;">Prefill</span><span style="font-weight:900;font-size:22px;line-height:1;font-variant-numeric:tabular-nums;">{{ readTok }}</span><span style="font-size:11px;color:#6f6f6f;font-variant-numeric:tabular-nums;">tok/s · {{ readPct }}</span></div>
|
||||
</div>
|
||||
<div style="display:flex;flex-direction:column;gap:8px;">
|
||||
<div style="display:flex;align-items:center;justify-content:space-between;font-size:13px;"><span style="font-weight:700;">VRAM {{ usedGb }} / 12 GB</span><span style="{{ fitChip }}display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:700;">{{ fitLabel }}</span></div>
|
||||
<div style="display:flex;height:10px;border-radius:999px;background:#eef1f4;overflow:hidden;">
|
||||
<div style="{{ barModel }}height:100%;background:#2F384C;transition:width 260ms;"></div>
|
||||
<div style="{{ barCtx }}height:100%;background:#10b981;transition:width 260ms;"></div>
|
||||
<div style="{{ barWork }}height:100%;background:#0f97ff;transition:width 260ms;"></div>
|
||||
<div style="{{ barOver }}height:100%;background:repeating-linear-gradient(45deg,#e0283f 0 4px,#f37a89 4px 8px);transition:width 260ms;"></div>
|
||||
<div style="flex:1;"></div>
|
||||
<div style="{{ barReserve }}height:100%;background:repeating-linear-gradient(45deg,#c9d1db 0 3px,#e3e8ee 3px 6px);transition:width 260ms;"></div>
|
||||
</div>
|
||||
<div style="display:flex;flex-direction:column;gap:5px;font-family:ui-monospace,Consolas,monospace;font-size:12px;color:#303030;">
|
||||
<span style="display:flex;justify-content:space-between;"><span style="display:flex;align-items:center;gap:6px;"><span style="width:8px;height:8px;border-radius:2px;background:#2F384C;"></span>weights + experts</span><span>{{ mModel }} GB</span></span>
|
||||
<span style="display:flex;justify-content:space-between;"><span style="display:flex;align-items:center;gap:6px;"><span style="width:8px;height:8px;border-radius:2px;background:#10b981;"></span>kv cache</span><span>{{ mCtx }} GB</span></span>
|
||||
<span style="display:flex;justify-content:space-between;"><span style="display:flex;align-items:center;gap:6px;"><span style="width:8px;height:8px;border-radius:2px;background:#0f97ff;"></span>compute buffers</span><span>{{ mWork }} GB</span></span>
|
||||
<sc-if value="{{ showReserve }}" hint-placeholder-val="{{ true }}">
|
||||
<span style="display:flex;justify-content:space-between;"><span style="display:flex;align-items:center;gap:6px;"><span style="width:8px;height:8px;border-radius:2px;background:repeating-linear-gradient(45deg,#c9d1db 0 3px,#e3e8ee 3px 6px);"></span>reserved (headroom)</span><span>{{ mReserve }} GB</span></span>
|
||||
</sc-if>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section style="background:#ffffff;border:1px solid #dee5ee;border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:10px;box-shadow:0 4px 4px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.04);">
|
||||
<h2 style="margin:0;font-weight:700;font-size:16px;">Resolved by Auto</h2>
|
||||
<div style="display:flex;flex-direction:column;gap:6px;font-family:ui-monospace,Consolas,monospace;font-size:12px;color:#303030;">
|
||||
<sc-for list="{{ resolved }}" as="rv" hint-placeholder-count="4">
|
||||
<span style="display:flex;justify-content:space-between;gap:10px;"><span style="color:#6f6f6f;">{{ rv.k }}</span><span>{{ rv.v }}</span></span>
|
||||
</sc-for>
|
||||
</div>
|
||||
</section>
|
||||
</aside>
|
||||
</main>
|
||||
</sc-if>
|
||||
|
||||
<sc-if value="{{ hasChanges }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="position:fixed;left:50%;bottom:20px;transform:translateX(-50%);width:min(1040px,calc(100% - 32px));display:flex;align-items:center;gap:16px;padding:12px 12px 12px 20px;background:#ffffff;border:1px solid #dee5ee;border-radius:20px;box-shadow:0 30px 18px rgba(0,0,0,.03),0 13px 13px rgba(0,0,0,.05),0 3px 7px rgba(0,0,0,.06),0 10px 40px rgba(15,23,42,.08);z-index:30;">
|
||||
<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;">
|
||||
<span style="font-weight:700;font-size:14px;">{{ changeCount }} <span style="font-weight:500;color:#6f6f6f;">· {{ applyNote }}</span></span>
|
||||
<span style="{{ changeFont }}font-size:12px;color:#6f6f6f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">{{ changeList }}</span>
|
||||
</div>
|
||||
<sc-if value="{{ applying }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="display:flex;flex-direction:column;gap:6px;width:220px;">
|
||||
<span style="font-size:12px;font-weight:500;color:#303030;">{{ applyStep }}</span>
|
||||
<div style="height:6px;border-radius:999px;background:#eef1f4;overflow:hidden;"><div style="{{ applyBar }}height:100%;border-radius:999px;background:#10b981;"></div></div>
|
||||
</div>
|
||||
</sc-if>
|
||||
<sc-if value="{{ notApplying }}" hint-placeholder-val="{{ true }}">
|
||||
<div style="display:flex;align-items:center;gap:8px;">
|
||||
<button onClick="{{ undo }}" style="height:42px;padding:0 16px;border:1.5px solid #dee5ee;border-radius:14px;background:#ffffff;color:#221e1f;font:700 14px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#f7f7f7;">Discard</button>
|
||||
<button onClick="{{ apply }}" style="height:42px;padding:0 20px;border:0;border-radius:14px;background:#10b981;color:#ffffff;font:700 14px 'GT Walsheim Pro',sans-serif;cursor:pointer;box-shadow:0 6px 16px rgba(16,185,129,.24);" style-hover="background:#0c8a60;">{{ applyLabel }}</button>
|
||||
</div>
|
||||
</sc-if>
|
||||
</div>
|
||||
</sc-if>
|
||||
|
||||
<sc-if value="{{ toast }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="position:fixed;right:24px;bottom:24px;display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:14px;background:#ffffff;border:1px solid #dee5ee;box-shadow:0 10px 40px rgba(15,23,42,.08),0 1px 3px rgba(15,23,42,.06);font-size:14px;z-index:40;">
|
||||
<span style="display:inline-block;width:20px;height:20px;background:#10b981;mask:url(icons/check.svg) center/contain no-repeat;"></span>
|
||||
<span style="display:flex;flex-direction:column;gap:2px;"><span style="font-weight:700;">{{ toastTitle }}</span><span style="color:#6f6f6f;">{{ toastSub }}</span></span>
|
||||
</div>
|
||||
</sc-if>
|
||||
|
||||
<sc-if value="{{ tuning }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(14,17,19,.32);z-index:50;padding:20px;">
|
||||
<div style="position:relative;width:min(600px,100%);max-height:calc(100vh - 40px);overflow-y:auto;display:flex;flex-direction:column;gap:20px;padding:28px;background:#f9fafb;border:1px solid #dee5ee;border-radius:24px;box-shadow:0 16px 48px rgba(0,0,0,.18);">
|
||||
<div style="position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;">
|
||||
<div style="display:flex;flex-direction:column;gap:6px;">
|
||||
<h2 style="margin:0;font-weight:700;font-size:22px;letter-spacing:-0.01em;">{{ tuneTitle }}</h2>
|
||||
<span style="font-size:14px;line-height:1.45;color:#6f6f6f;max-width:560px;">{{ tuneSub }}</span>
|
||||
</div>
|
||||
<sc-if value="{{ tuneRunning }}" hint-placeholder-val="{{ true }}">
|
||||
<button onClick="{{ cancelTune }}" style="flex:none;height:38px;padding:0 16px;border:1.5px solid #dee5ee;border-radius:12px;background:#ffffff;color:#221e1f;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#f7f7f7;">Cancel</button>
|
||||
</sc-if>
|
||||
</div>
|
||||
{{ tuneViz }}
|
||||
<sc-if value="{{ tuneDone }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="position:relative;z-index:1;display:flex;justify-content:flex-end;gap:10px;">
|
||||
<button onClick="{{ discardTune }}" style="height:44px;padding:0 18px;border:1.5px solid #dee5ee;border-radius:14px;background:#ffffff;color:#221e1f;font:700 14px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#f7f7f7;">Keep my settings</button>
|
||||
<button onClick="{{ closeTune }}" style="height:44px;padding:0 22px;border:0;border-radius:14px;background:#10b981;color:#ffffff;font:700 14px 'GT Walsheim Pro',sans-serif;cursor:pointer;box-shadow:0 6px 16px rgba(16,185,129,.24);" style-hover="background:#0c8a60;">Review changes</button>
|
||||
</div>
|
||||
</sc-if>
|
||||
</div>
|
||||
</div>
|
||||
</sc-if>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props="{"startMode":{"editor":"enum","options":["simple","expert"],"default":"simple","tsType":"'simple'|'expert'"},"showDescriptions":{"editor":"boolean","default":false,"tsType":"boolean"}}">
|
||||
const SEL = 'select', NUM = 'number', BOOL = 'bool';
|
||||
const P = [
|
||||
['ctx.length', 'Context length', 'ctx', SEL, [['4096', '4K'], ['8192', '8K'], ['16384', '16K'], ['32768', '32K'], ['65536', '64K'], ['131072', '128K'], ['262144', '256K'], ['524288', '512K'], ['1048576', '1M']], '16384', 'load', 'Maximum tokens kept in one chat, up to 1M. The hybrid attention keeps KV cost low, but 512K+ usually needs INT4 and expert offload.'],
|
||||
['ctx.kvMode', 'KV cache format', 'ctx', SEL, [['auto', 'Automatic'], ['fp16', 'FP16'], ['int8', 'INT8'], ['int4', 'INT4']], 'auto', 'load', 'Precision of the context cache. INT8 halves memory with negligible quality loss; INT4 quarters it.'],
|
||||
['ctx.ropeScale', 'RoPE scaling', 'ctx', SEL, [['none', 'None'], ['yarn', 'YaRN']], 'none', 'load', 'Extends context beyond the trained window. Only useful above 64K.'],
|
||||
['server.parallel', 'Parallel slots', 'ctx', NUM, [1, 4, 1], 1, 'load', 'Chats served at once. Each slot reserves its own KV cache.'],
|
||||
['mem.mode', 'Expert cache / RAM mode', 'mem', SEL, [['auto', 'Automatic'], ['vram', 'VRAM only'], ['offload', 'Offload cold experts']], 'auto', 'load', 'Where inactive MoE experts live. Offloading frees VRAM at some speed cost.'],
|
||||
['mem.expertCache', 'Expert cache slots', 'mem', NUM, [8, 128, 8], 64, 'load', 'Experts kept hot in VRAM. More slots mean fewer swaps but more memory.'],
|
||||
['mem.mmap', 'Memory-map weights', 'mem', BOOL, null, true, 'load', 'Load weights lazily from disk. Faster start and lower RAM use.'],
|
||||
['mem.lock', 'Lock in RAM', 'mem', BOOL, null, false, 'load', 'Stops the OS from paging the model out. Needs enough free RAM.'],
|
||||
['sys.headroom', 'Resource headroom', 'gpu', SEL, [['shared', 'Leave 15% for other apps'], ['max', 'Full power']], 'shared', 'load', 'Shared keeps 15% of VRAM and 2 CPU cores free and caps the power limit, so the PC stays responsive. Full power uses everything.'],
|
||||
['gpu.layers', 'GPU / layer split', 'gpu', SEL, [['auto', 'Automatic'], ['all', 'All on GPU'], ['split', 'Split with CPU']], 'auto', 'load', 'Which device holds each layer. All on GPU is fastest when it fits.'],
|
||||
['gpu.flashAttn', 'Flash attention', 'gpu', BOOL, null, true, 'load', 'Fused attention kernel. Faster and smaller; turn off only to debug.'],
|
||||
['cpu.threads', 'CPU threads', 'gpu', SEL, [['auto', 'Automatic'], ['2', '2'], ['4', '4'], ['8', '8']], 'auto', 'load', 'Threads for work off the GPU. 8 cores detected. Auto uses 6 when sharing, 8 at full power.'],
|
||||
['batch.size', 'Prompt batch', 'batch', SEL, [['auto', 'Automatic'], ['512', '512'], ['1024', '1,024'], ['2048', '2,048'], ['4096', '4,096']], 'auto', 'load', 'Logical batch for prefill. Larger reads prompts faster but needs bigger buffers.'],
|
||||
['batch.ubatch', 'Micro-batch', 'batch', SEL, [['256', '256'], ['512', '512'], ['1024', '1,024']], '512', 'load', 'Physical batch per kernel call. Lower it if you hit out-of-memory during prefill.'],
|
||||
['perf.draft', 'Speculative decoding', 'perf', BOOL, null, true, 'load', 'Use the built-in draft head to guess tokens ahead and verify them in one pass.'],
|
||||
['perf.draftDepth', 'Draft depth', 'perf', NUM, [1, 8, 1], 4, 'request', 'Tokens guessed per step. Gains flatten past 5–6.'],
|
||||
['sample.temperature', 'Temperature', 'sample', NUM, [0, 2, 0.05], 0.7, 'request', 'Randomness of each token choice. 0 is fully deterministic.'],
|
||||
['sample.topP', 'Top-p', 'sample', NUM, [0, 1, 0.01], 0.95, 'request', 'Sample only from the smallest set of tokens whose probabilities add up to p.'],
|
||||
['sample.topK', 'Top-k', 'sample', NUM, [0, 200, 1], 40, 'request', 'Sample only from the k most likely tokens. 0 disables.'],
|
||||
['sample.minP', 'Min-p', 'sample', NUM, [0, 1, 0.01], 0.05, 'request', 'Drop tokens below this fraction of the top token\u2019s probability.'],
|
||||
['sample.repeatPenalty', 'Repeat penalty', 'sample', NUM, [1, 2, 0.01], 1.05, 'request', 'Discourages repeating recent tokens. Keep near 1.0 for code.'],
|
||||
['sample.seed', 'Seed', 'sample', NUM, [-1, 99999, 1], -1, 'request', '-1 picks a new random seed each time. Fix it for reproducible output.'],
|
||||
];
|
||||
const PM = Object.fromEntries(P.map(p => [p[0], { key: p[0], label: p[1], group: p[2], type: p[3], opts: p[4], def: p[5], applies: p[6], desc: p[7] }]));
|
||||
const GROUPS = [['ctx', 'Context'], ['mem', 'Memory'], ['gpu', 'GPU & CPU'], ['batch', 'Prompt & batching'], ['perf', 'Speed'], ['sample', 'Sampling']];
|
||||
const DEFAULTS = Object.fromEntries(P.map(p => [p[0], p[5]]));
|
||||
const CTXV = ['4096', '8192', '16384', '32768', '65536', '131072', '262144', '524288', '1048576'];
|
||||
const GOALS = {
|
||||
chat: { title: 'Everyday chat', sub: 'Questions, ideas, writing help', icon: 'chat', ctx: '16384', style: 'balanced', sample: 'Sure. Here is a simple plan for your week: start Monday with the hardest task, keep Wednesday afternoon free for catch-up, and leave Friday for review and planning the next week.' },
|
||||
docs: { title: 'Long documents', sub: 'Summaries of reports, PDFs, notes', icon: 'layers', ctx: '65536', style: 'precise', sample: 'Summary of the 42-page report: revenue grew 18% year on year, driven mostly by the two new regions. Costs rose 9%. The main risk flagged is supplier concentration, covered in section 4.' },
|
||||
code: { title: 'Coding', sub: 'Write, explain and fix code', icon: 'tool', ctx: '32768', style: 'precise', sample: 'The bug is on line 14: the loop runs one step too far, so it reads past the end of the list. Change range(len(items) + 1) to range(len(items)) and the error goes away.' },
|
||||
};
|
||||
const STYLES = { precise: ['Precise', 'Same answer each time', 0.2, 0.9], balanced: ['Balanced', 'Good for most things', 0.7, 0.95], creative: ['Creative', 'More varied ideas', 1.0, 0.98] };
|
||||
const BUILTIN = [
|
||||
['Strata default', {}],
|
||||
['Max speed', { 'sys.headroom': 'max', 'ctx.length': '8192', 'ctx.kvMode': 'int8', 'batch.size': '4096', 'perf.draftDepth': 6 }],
|
||||
['Long context', { 'ctx.length': '131072', 'ctx.kvMode': 'int8', 'ctx.ropeScale': 'yarn', 'mem.mode': 'offload', 'batch.size': '2048' }],
|
||||
['Low VRAM', { 'ctx.length': '16384', 'ctx.kvMode': 'int4', 'mem.mode': 'offload', 'mem.expertCache': 32, 'batch.size': '512', 'batch.ubatch': '256' }],
|
||||
['Deterministic eval', { 'sample.temperature': 0, 'sample.topK': 1, 'sample.seed': 42, 'perf.draft': false }],
|
||||
];
|
||||
const VRAM = 12, LS = 'strata-engine-presets-v1';
|
||||
const fmt = (k, v) => { const p = PM[k]; if (p.type === SEL) return (p.opts.find(o => o[0] === v) || [v, v])[1]; if (p.type === BOOL) return v ? 'On' : 'Off'; return String(v); };
|
||||
|
||||
|
||||
const ce = React.createElement;
|
||||
const T_END = 10.4;
|
||||
const ss = (a, b, x) => { x = Math.min(1, Math.max(0, (x - a) / (b - a))); return x * x * (3 - 2 * x); };
|
||||
const clamp = (v, a, b) => Math.max(a, Math.min(b, v));
|
||||
const easeOut3 = x => 1 - Math.pow(1 - clamp(x, 0, 1), 3);
|
||||
const easeBack = x => { const c = 1.6; x = clamp(x, 0, 1); return 1 + (c + 1) * Math.pow(x - 1, 3) + c * Math.pow(x - 1, 2); };
|
||||
const PH = [0, 2.0, 4.6, 8.6, T_END];
|
||||
const STATUS = ['Checking your hardware', 'Warming up the model', 'Trying setups', 'Locking in the best one', 'Done'];
|
||||
// master energy: long ease-in, sustain, long glide out
|
||||
const energy = t => 0.03 + 0.97 * Math.pow(ss(0.2, 3.8, t), 1.6) * (1 - ss(7.2, 10.6, t));
|
||||
// progress = normalised integral of (base + energy) so the ring fills slow → fast → slow
|
||||
const PROG = (() => { const dt = 1 / 240, arr = [0]; let acc = 0; for (let t = 0; t < T_END; t += dt) { acc += (0.1 + energy(t)) * dt; arr.push(acc); } return { arr, dt, total: acc }; })();
|
||||
const progAt = t => { if (t >= T_END) return 1; const i = clamp(t / PROG.dt, 0, PROG.arr.length - 1), lo = Math.floor(i), f = i - lo; const v = PROG.arr[lo] + ((PROG.arr[lo + 1] ?? PROG.arr[lo]) - PROG.arr[lo]) * f; return v / PROG.total; };
|
||||
const spring = (st, target, dt, k, z) => { const c = 2 * Math.sqrt(k) * z; for (let i = 0; i < 4; i++) { const h = dt / 4; st.v += (k * (target - st.x) - c * st.v) * h; st.x += st.v * h; } return st.x; };
|
||||
const reduceMotion = () => { try { return window.matchMedia('(prefers-reduced-motion: reduce)').matches; } catch (e) { return false; } };
|
||||
|
||||
function TuneViz({ trials, best, baseGen, onDone }) {
|
||||
const [, force] = React.useState(0);
|
||||
const r = React.useRef(null);
|
||||
const n = trials.length, slot = (PH[3] - PH[2]) / n;
|
||||
const targetAt = t => t < PH[1] ? 0 : t < PH[2] ? baseGen * ss(PH[1] + 0.2, PH[2] - 0.2, t) : t < PH[3] ? (() => { const i = Math.min(n - 1, Math.floor((t - PH[2]) / slot)); const lp = (t - PH[2] - i * slot) / slot; return lp < 0.18 ? (i === 0 ? baseGen : trials[i - 1].tok) : trials[i].tok; })() : trials[best].tok;
|
||||
if (!r.current) r.current = { t: 0, start: null, last: null, angle: 0, angle2: 0, num: { x: 0, v: 0 }, gpu: { x: 3, v: 0 }, cpu: { x: 4, v: 0 }, mem: { x: 2, v: 0 }, lastTarget: 0, popAt: -9, status: 0, statusAt: 0, statusPrev: 0, done: false, rm: reduceMotion() };
|
||||
React.useEffect(() => {
|
||||
let raf;
|
||||
const loop = now => {
|
||||
const s = r.current;
|
||||
if (s.start == null) { s.start = now; s.last = now; }
|
||||
const dt = Math.min(0.04, (now - s.last) / 1000); s.last = now; s.t = (now - s.start) / 1000;
|
||||
const t = s.t, e = energy(t), mf = s.rm ? 0.2 : 1;
|
||||
s.angle = (s.angle + (10 + 520 * e) * dt * mf) % 360;
|
||||
s.angle2 = (s.angle2 - (6 + 210 * e) * dt * mf + 360) % 360;
|
||||
const tgt = targetAt(t);
|
||||
if (Math.abs(tgt - s.lastTarget) > 0.05 && t > PH[2]) s.popAt = t;
|
||||
s.lastTarget = tgt;
|
||||
spring(s.num, tgt, dt, 26, 0.78);
|
||||
const wob = (a, b, c) => Math.sin(t * a) * 0.55 + Math.sin(t * b + c) * 0.45;
|
||||
spring(s.gpu, 3 + 93 * e + 2.5 * e * wob(2.3, 3.7, 1), dt, 18, 1);
|
||||
spring(s.cpu, 5 + e * (58 + 16 * wob(1.3, 2.9, 2)), dt, 14, 1);
|
||||
spring(s.mem, 2 + 56 * e + 1.5 * e * wob(1.9, 3.3, 4), dt, 16, 1);
|
||||
const ph = t < PH[1] ? 0 : t < PH[2] ? 1 : t < PH[3] ? 2 : t < PH[4] ? 3 : 4;
|
||||
if (ph !== s.status) { s.statusPrev = s.status; s.status = ph; s.statusAt = t; }
|
||||
if (t >= T_END && !s.done) { s.done = true; onDone && onDone(); }
|
||||
force(x => (x + 1) % 1e6);
|
||||
if (t < T_END + 3) raf = requestAnimationFrame(loop);
|
||||
};
|
||||
raf = requestAnimationFrame(loop);
|
||||
return () => cancelAnimationFrame(raf);
|
||||
}, []);
|
||||
|
||||
const s = r.current, t = s.t, e = energy(t), prog = progAt(t), endT = t - T_END, finished = endT >= 0;
|
||||
const S = 320, R = 122, TICKS = 96, lit = prog * TICKS;
|
||||
const pol = (ang, rad) => [Math.cos(ang) * rad, Math.sin(ang) * rad];
|
||||
const A = f => f * Math.PI * 2 - Math.PI / 2;
|
||||
|
||||
// ticks with continuous fade at the head
|
||||
const ticks = [];
|
||||
for (let i = 0; i < TICKS; i++) {
|
||||
const ang = A(i / TICKS), f = clamp(lit - i, 0, 1), head = lit - i >= 0 && lit - i < 5 && !finished ? 1 - (lit - i) / 5 : 0;
|
||||
const len = 9 + head * 6, [x1, y1] = pol(ang, R - len), [x2, y2] = pol(ang, R);
|
||||
ticks.push(ce('line', { key: 'g' + i, x1: x1.toFixed(2), y1: y1.toFixed(2), x2: x2.toFixed(2), y2: y2.toFixed(2), stroke: '#e3e8ee', strokeWidth: 3, strokeLinecap: 'round' }));
|
||||
if (f > 0) ticks.push(ce('line', { key: 'o' + i, x1: x1.toFixed(2), y1: y1.toFixed(2), x2: x2.toFixed(2), y2: y2.toFixed(2), stroke: '#10b981', strokeWidth: 3, strokeLinecap: 'round', opacity: f.toFixed(3) }));
|
||||
}
|
||||
// leading head
|
||||
const [hx, hy] = pol(A(prog), R + 9);
|
||||
const head = prog > 0.002 && !finished ? ce('g', null,
|
||||
ce('circle', { cx: hx.toFixed(2), cy: hy.toFixed(2), r: 10, fill: '#10b981', opacity: (0.10 + e * 0.12).toFixed(3) }),
|
||||
ce('circle', { cx: hx.toFixed(2), cy: hy.toFixed(2), r: 4.5, fill: '#10b981', stroke: '#ffffff', strokeWidth: 2 })) : null;
|
||||
|
||||
// checkpoints for each tested setup
|
||||
const cps = trials.map((tr, i) => {
|
||||
const tEnd = PH[2] + (i + 1) * slot, p = progAt(tEnd), age = t - tEnd;
|
||||
if (age < 0) return null;
|
||||
const isBest = i === best, win = isBest && finished ? easeBack(endT / 0.5) : 0;
|
||||
const sc = easeBack(age / 0.45), [cx, cy] = pol(A(p), R + 22);
|
||||
return ce('circle', { key: 'cp' + i, cx: cx.toFixed(2), cy: cy.toFixed(2), r: ((3 + win * 2.5) * sc).toFixed(2), fill: isBest && finished ? '#10b981' : '#2F384C', opacity: isBest || !finished ? 1 : 0.35 });
|
||||
});
|
||||
|
||||
// inner motion rings
|
||||
const C1 = 2 * Math.PI * 100, seg1 = C1 / 14, d1 = 2 + e * 26;
|
||||
const C2 = 2 * Math.PI * 88, seg2 = C2 / 36, d2 = 1 + e * 5;
|
||||
const motion = ce('g', null,
|
||||
ce('circle', { r: 100, fill: 'none', stroke: '#10b981', strokeWidth: 3, strokeLinecap: 'round', strokeDasharray: d1.toFixed(2) + ' ' + (seg1 - d1).toFixed(2), opacity: (0.12 + e * 0.38).toFixed(3), transform: 'rotate(' + s.angle.toFixed(2) + ')' }),
|
||||
ce('circle', { r: 88, fill: 'none', stroke: '#2F384C', strokeWidth: 1.5, strokeLinecap: 'round', strokeDasharray: d2.toFixed(2) + ' ' + (seg2 - d2).toFixed(2), opacity: (0.08 + e * 0.12).toFixed(3), transform: 'rotate(' + s.angle2.toFixed(2) + ')' }));
|
||||
|
||||
// finish: seal flash + ripples
|
||||
const flash = finished ? Math.pow(Math.max(0, 1 - endT / 0.7), 2) : 0;
|
||||
const ripples = finished && !s.rm ? [0, 0.22, 0.44].map((d, k) => { const x = (endT - d) / 1.6; if (x <= 0 || x >= 1) return null; const ex = easeOut3(x); return ce('circle', { key: 'rp' + k, r: (R + 2 + ex * 58).toFixed(2), fill: 'none', stroke: '#10b981', strokeWidth: (2.5 * (1 - ex) + 0.4).toFixed(2), opacity: (0.5 * Math.pow(1 - x, 2)).toFixed(3) }); }) : [];
|
||||
|
||||
const ring = ce('svg', { viewBox: '-' + S / 2 + ' -' + S / 2 + ' ' + S + ' ' + S, style: { position: 'absolute', inset: 0, width: '100%', height: '100%', overflow: 'visible' } },
|
||||
ce('circle', { r: R - 14, fill: '#10b981', opacity: (0.025 + e * 0.04 + flash * 0.08).toFixed(3) }),
|
||||
ripples, ticks,
|
||||
ce('circle', { r: R + 1, fill: 'none', stroke: '#10b981', strokeWidth: 3, opacity: (flash * 0.9).toFixed(3) }),
|
||||
cps, head, motion,
|
||||
ce('circle', { r: 78, fill: '#ffffff', stroke: '#eeeeee', strokeWidth: 1 }));
|
||||
|
||||
// centre number
|
||||
const num = Math.max(0, s.num.x), pop = Math.max(0, 1 - (t - s.popAt) / 0.45), finPop = finished ? Math.sin(clamp(endT / 0.5, 0, 1) * Math.PI) : 0;
|
||||
const scale = 1 + 0.04 * Math.sin(pop * Math.PI) * pop + 0.06 * finPop;
|
||||
const delta = (num - baseGen) / baseGen * 100;
|
||||
const showDelta = t > PH[2] + 0.3;
|
||||
const centre = ce('div', { style: { position: 'absolute', inset: 0, display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', gap: 4, pointerEvents: 'none' } },
|
||||
ce('span', { style: { fontWeight: 900, fontSize: 58, lineHeight: 1, letterSpacing: '-0.035em', color: t < PH[1] ? '#c9d1db' : '#221e1f', fontVariantNumeric: 'tabular-nums', transform: 'scale(' + scale.toFixed(4) + ')', transition: 'color 400ms' } }, num.toFixed(finished && endT > 0.8 ? 0 : 1)),
|
||||
ce('span', { style: { fontSize: 13, fontWeight: 500, color: '#6f6f6f' } }, 'tok/s'),
|
||||
ce('span', { style: { height: 18, fontSize: 12, fontWeight: 700, fontVariantNumeric: 'tabular-nums', color: delta >= 0.5 ? '#0c8a60' : '#6f6f6f', opacity: showDelta ? ss(PH[2] + 0.3, PH[2] + 0.8, t).toFixed(3) : 0 } }, (delta >= 0 ? '+' : '') + delta.toFixed(0) + '% vs now'));
|
||||
|
||||
// status with crossfade
|
||||
const sx = ss(s.statusAt, s.statusAt + 0.45, t);
|
||||
const lineStyle = (o, y) => ({ position: 'absolute', left: 0, right: 0, textAlign: 'center', fontWeight: 700, fontSize: 16, color: '#221e1f', opacity: o.toFixed(3), transform: 'translateY(' + y.toFixed(2) + 'px)' });
|
||||
const label = i => i === 4 ? 'Done' : i === 2 ? STATUS[2] + ' · ' + Math.min(n, Math.floor((t - PH[2]) / slot) + 1) + ' of ' + n : STATUS[i] + '…';
|
||||
const status = ce('div', { style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 12 } },
|
||||
ce('div', { style: { display: 'flex', gap: 6 } }, [0, 1, 2, 3].map(i => { const active = i === Math.min(3, s.status) && !finished; return ce('span', { key: i, style: { width: active ? 24 : 6, height: 6, borderRadius: 999, background: i <= s.status || finished ? '#10b981' : '#dee5ee', opacity: active ? 0.55 + 0.45 * (0.5 + 0.5 * Math.sin(t * 4)) : 1, transition: 'width 500ms cubic-bezier(.2,.7,.2,1), background 400ms' } }); })),
|
||||
ce('div', { style: { position: 'relative', width: '100%', height: 22 } },
|
||||
sx < 1 ? ce('span', { style: lineStyle(1 - sx, -8 * sx) }, label(s.statusPrev)) : null,
|
||||
ce('span', { style: lineStyle(sx, 8 * (1 - sx)) }, label(s.status))));
|
||||
|
||||
// result chip
|
||||
const bestTok = trials[best].tok, gain = (bestTok - baseGen) / baseGen * 100, pc = finished ? easeBack((endT - 0.25) / 0.55) : 0;
|
||||
const result = ce('div', { style: { display: 'flex', justifyContent: 'center', height: 40 } },
|
||||
finished && endT > 0.25 ? ce('span', { style: { display: 'inline-flex', alignItems: 'center', gap: 8, height: 40, padding: '0 18px', borderRadius: 999, background: '#ecfdf5', color: '#0c8a60', fontWeight: 700, fontSize: 15, transform: 'translateY(' + ((1 - clamp(pc, 0, 1)) * 6).toFixed(2) + 'px) scale(' + (0.9 + 0.1 * pc).toFixed(4) + ')', opacity: clamp((endT - 0.25) / 0.3, 0, 1).toFixed(3) } },
|
||||
ce('span', { style: { display: 'inline-block', width: 16, height: 16, background: '#0c8a60', mask: 'url(icons/check.svg) center/contain no-repeat', WebkitMask: 'url(icons/check.svg) center/contain no-repeat' } }),
|
||||
gain >= 0.5 ? '+' + gain.toFixed(0) + '% faster · ' + trials[best].label : 'Your current settings are already the fastest') : null);
|
||||
|
||||
// meters
|
||||
const meter = (icon, label, v, max, unit) => ce('div', { style: { flex: '1 1 140px', display: 'flex', flexDirection: 'column', gap: 10, padding: '14px 16px', background: '#ffffff', border: '1px solid #dee5ee', borderRadius: 16 } },
|
||||
ce('div', { style: { display: 'flex', alignItems: 'center', gap: 8 } },
|
||||
ce('span', { style: { display: 'inline-block', width: 16, height: 16, background: '#2F384C', mask: 'url(icons/' + icon + '.svg) center/contain no-repeat', WebkitMask: 'url(icons/' + icon + '.svg) center/contain no-repeat' } }),
|
||||
ce('span', { style: { flex: 1, fontSize: 13, fontWeight: 500, color: '#6f6f6f' } }, label),
|
||||
ce('span', { style: { fontSize: 13, fontWeight: 700, color: '#221e1f', fontVariantNumeric: 'tabular-nums' } }, Math.max(0, v).toFixed(0) + unit)),
|
||||
ce('div', { style: { height: 6, borderRadius: 999, background: '#eef1f4', overflow: 'hidden' } }, ce('div', { style: { width: clamp(v / max * 100, 0, 100).toFixed(2) + '%', height: '100%', borderRadius: 999, background: '#10b981' } })));
|
||||
|
||||
return ce('div', { style: { display: 'flex', flexDirection: 'column', gap: 18 } },
|
||||
ce('div', { style: { position: 'relative', width: 320, height: 320, maxWidth: '100%', margin: '0 auto' } }, ring, centre),
|
||||
status, result,
|
||||
ce('div', { style: { display: 'flex', flexWrap: 'wrap', gap: 10 } }, meter('gpu', 'Graphics card', s.gpu.x, 100, '%'), meter('cpu', 'Processor', s.cpu.x, 100, '%'), meter('memory', 'Memory', s.mem.x, 60, ' GB/s')));
|
||||
}
|
||||
|
||||
class Component extends DCLogic {
|
||||
fileRef = React.createRef();
|
||||
state = {
|
||||
cfg: { ...DEFAULTS }, saved: { ...DEFAULTS }, goal: 'chat', savedGoal: 'chat',
|
||||
mode: this.props.startMode ?? 'simple', tab: 'params', q: '', grp: 'all', changedOnly: false, showDesc: this.props.showDescriptions ?? false,
|
||||
raw: null, rawErr: null, rawWarn: null, copied: false,
|
||||
userPresets: this.loadPresets(), naming: false, nameDraft: '',
|
||||
tuning: null, applying: null, toast: null, stream: '',
|
||||
};
|
||||
loadPresets() { try { return JSON.parse(localStorage.getItem(LS)) || [['My coding setup', { 'ctx.length': '32768', 'sample.temperature': 0.2, 'sample.topP': 0.9, 'sample.repeatPenalty': 1.0 }]]; } catch (e) { return []; } }
|
||||
savePresets(list) { try { localStorage.setItem(LS, JSON.stringify(list)); } catch (e) {} }
|
||||
|
||||
calc(c) {
|
||||
const ctxK = +c['ctx.length'] / 1024;
|
||||
const kv = c['ctx.kvMode'] === 'auto' ? (ctxK >= 256 ? 'int4' : ctxK >= 64 ? 'int8' : 'fp16') : c['ctx.kvMode'];
|
||||
const batch = c['batch.size'] === 'auto' ? (c['sys.headroom'] === 'max' ? (ctxK >= 16 ? 4096 : 2048) : (ctxK >= 32 ? 2048 : 1024)) : +c['batch.size'];
|
||||
const gpu = c['gpu.layers'] === 'auto' ? 'all' : c['gpu.layers'];
|
||||
const maxP = c['sys.headroom'] === 'max', reserve = maxP ? 0 : VRAM * 0.15;
|
||||
const threads = c['cpu.threads'] === 'auto' ? (maxP ? 8 : 6) : +c['cpu.threads'];
|
||||
const memMode = c['mem.mode'] === 'auto' ? (ctxK >= 256 ? 'offload' : 'vram') : c['mem.mode'];
|
||||
const par = Math.max(1, +c['server.parallel'] || 1), flash = !!c['gpu.flashAttn'];
|
||||
const perK = { fp16: 0.025, int8: 0.0125, int4: 0.007 }[kv] * (flash ? 1 : 1.15);
|
||||
const mCtx = ctxK * perK * par;
|
||||
const mWork = 0.3 + batch / 2048 * 0.5 + (+c['batch.ubatch']) / 1024 * 0.15;
|
||||
const slots = +c['mem.expertCache'] || 64, off = memMode === 'offload';
|
||||
const mModel = (5.0 + slots * 0.022) * (off ? 0.72 : 1) * (gpu === 'split' ? 0.6 : 1);
|
||||
const used = mModel + mCtx + mWork, over = Math.max(0, used - (VRAM - reserve)), spill = over > 0;
|
||||
let gen = 52 / (1 + ctxK / 400) * (kv === 'int4' ? 0.96 : 1);
|
||||
if (c['perf.draft']) gen *= 1.22 + (Math.min(+c['perf.draftDepth'] || 1, 6) - 1) * 0.02;
|
||||
if (off) gen *= 0.82 * (0.8 + slots / 320);
|
||||
if (gpu === 'split') gen *= 0.55 + threads * 0.03;
|
||||
if (spill) gen *= 0.4;
|
||||
if (par > 1) gen /= 1 + (par - 1) * 0.35;
|
||||
if (maxP) gen *= 1.07;
|
||||
let read = ({ 512: 640, 1024: 880, 2048: 1030, 4096: 1090 })[batch] || 880;
|
||||
if (!flash) read *= 0.8; if (maxP) read *= 1.08; if (gpu === 'split') read *= 0.6; if (spill) read *= 0.35;
|
||||
return { kv, batch, gpu, threads, memMode, mModel, mCtx, mWork, used, over, spill, reserve, free: Math.max(0, VRAM - reserve - used), gen, read };
|
||||
}
|
||||
styleOf(c) { return Object.keys(STYLES).find(k => Math.abs(STYLES[k][2] - c['sample.temperature']) < 0.001 && Math.abs(STYLES[k][3] - c['sample.topP']) < 0.001) || null; }
|
||||
|
||||
componentDidMount() { this.restartStream(); }
|
||||
componentWillUnmount() { clearInterval(this.iv); clearTimeout(this.tt); (this.timers || []).forEach(clearTimeout); }
|
||||
componentDidUpdate() { const k = this.state.goal + ':' + this.calc(this.state.cfg).gen.toFixed(0); if (k !== this._lastKey) this.restartStream(); }
|
||||
restartStream() {
|
||||
clearInterval(this.iv);
|
||||
this._lastKey = this.state.goal + ':' + this.calc(this.state.cfg).gen.toFixed(0);
|
||||
const full = GOALS[this.state.goal].sample; let i = 0, pause = 0;
|
||||
this.setState({ stream: '' });
|
||||
this.iv = setInterval(() => {
|
||||
if (pause > 0) { if (--pause === 0) { i = 0; this.setState({ stream: '' }); } return; }
|
||||
const cps = this.calc(this.state.cfg).gen * 0.75 * 5.6;
|
||||
i = Math.min(full.length, i + Math.max(1, Math.round(cps * 0.05)));
|
||||
this.setState({ stream: full.slice(0, i) });
|
||||
if (i >= full.length) pause = 50;
|
||||
}, 50);
|
||||
}
|
||||
later(fn, ms) { (this.timers ||= []).push(setTimeout(fn, ms)); }
|
||||
|
||||
setCfg(patch, keepRaw) { this.setState(s => ({ cfg: { ...s.cfg, ...patch }, ...(keepRaw ? {} : { raw: null, rawErr: null, rawWarn: null }) })); }
|
||||
rawText() { const s = this.state; return JSON.stringify({ schema: 'strata.engine/1', model: 'qwen3.8-flash-next', simple: { goal: s.goal, style: this.styleOf(s.cfg) || 'custom' }, engine: s.cfg }, null, 2); }
|
||||
parseRaw(text) {
|
||||
let obj;
|
||||
try { obj = JSON.parse(text); } catch (e) { const m = /position (\d+)/.exec(e.message); let line = ''; if (m) line = ` (line ${text.slice(0, +m[1]).split('\n').length})`; this.setState({ raw: text, rawErr: 'Invalid JSON' + line + ': ' + e.message.replace(/^JSON\.parse: |^Unexpected/, s => s ? s : ''), rawWarn: null }); return; }
|
||||
const eng = obj && obj.engine; if (!eng || typeof eng !== 'object') { this.setState({ raw: text, rawErr: 'Missing "engine" object.', rawWarn: null }); return; }
|
||||
const patch = {}, unknown = [], errs = [];
|
||||
for (const [k, v] of Object.entries(eng)) {
|
||||
const p = PM[k]; if (!p) { unknown.push(k); continue; }
|
||||
if (p.type === SEL && !p.opts.some(o => o[0] === v)) errs.push(`${k}: "${v}" is not one of ${p.opts.map(o => o[0]).join(', ')}`);
|
||||
else if (p.type === NUM && (typeof v !== 'number' || v < p.opts[0] || v > p.opts[1])) errs.push(`${k}: expected a number from ${p.opts[0]} to ${p.opts[1]}`);
|
||||
else if (p.type === BOOL && typeof v !== 'boolean') errs.push(`${k}: expected true or false`);
|
||||
else patch[k] = v;
|
||||
}
|
||||
if (errs.length) { this.setState({ raw: text, rawErr: errs.join('\n'), rawWarn: null }); return; }
|
||||
const goal = obj.simple && GOALS[obj.simple.goal] ? obj.simple.goal : this.state.goal;
|
||||
this.setState(s => ({ raw: text, rawErr: null, rawWarn: unknown.length ? `Ignored unknown key${unknown.length > 1 ? 's' : ''}: ${unknown.join(', ')}` : null, cfg: { ...s.cfg, ...patch }, goal }));
|
||||
}
|
||||
|
||||
apply() {
|
||||
const steps = ['Pausing the engine…', 'Loading with new settings…', 'Warming up…'];
|
||||
const needsLoad = Object.keys(this.state.cfg).some(k => this.state.cfg[k] !== this.state.saved[k] && PM[k].applies === 'load');
|
||||
const inc = needsLoad ? 4 : 12; let p = 0;
|
||||
this.setState({ applying: { p: 0, step: needsLoad ? steps[0] : 'Saving…' } });
|
||||
const tick = () => {
|
||||
p += inc;
|
||||
if (p >= 100) {
|
||||
const g = this.calc(this.state.cfg).gen.toFixed(0);
|
||||
this.setState(s => ({ saved: { ...s.cfg }, savedGoal: s.goal, applying: null, raw: null, toast: needsLoad ? { t: 'Engine reloaded', s: `Running at ${g} tok/s. Saved to engine.json.` } : { t: 'Saved', s: 'Applies from your next message.' } }));
|
||||
clearTimeout(this.tt); this.tt = setTimeout(() => this.setState({ toast: null }), 3200); return;
|
||||
}
|
||||
this.setState({ applying: { p, step: needsLoad ? steps[Math.min(2, Math.floor(p / 34))] : 'Saving…' } });
|
||||
this.later(tick, 70);
|
||||
};
|
||||
this.later(tick, 70);
|
||||
}
|
||||
startTune() {
|
||||
const s = this.state, g = GOALS[s.goal], st = STYLES[g.style];
|
||||
const base = { ...DEFAULTS, 'sys.headroom': s.cfg['sys.headroom'], 'ctx.length': g.ctx, 'sample.temperature': st[2], 'sample.topP': st[3] };
|
||||
const cand = [
|
||||
['batch 1024 · kv fp16', { 'batch.size': '1024', 'ctx.kvMode': 'fp16' }],
|
||||
['batch 2048 · kv fp16', { 'batch.size': '2048', 'ctx.kvMode': 'fp16' }],
|
||||
['batch 2048 · kv int8', { 'batch.size': '2048', 'ctx.kvMode': 'int8' }],
|
||||
['batch 4096 · kv int8', { 'batch.size': '4096', 'ctx.kvMode': 'int8' }],
|
||||
['batch 4096 · int8 · draft 6', { 'batch.size': '4096', 'ctx.kvMode': 'int8', 'perf.draftDepth': 6 }],
|
||||
].map(([label, p]) => { const cfg = { ...base, ...p }, cc = this.calc(cfg); return { label, cfg, tok: +(cc.gen + cc.read / 400).toFixed(1), spill: cc.spill, used: cc.used }; });
|
||||
let best = 0; cand.forEach((c, i) => { if (!c.spill && c.tok > cand[best].tok) best = i; });
|
||||
this._run = (this._run || 0) + 1;
|
||||
this.setState({ tuning: { run: this._run, trials: cand.map(({ label, tok }) => ({ label, tok })), best, bestCfg: cand[best].cfg, vramT: cand[best].used, done: false } });
|
||||
}
|
||||
_tuneDone = () => { this.setState(x => x.tuning ? { tuning: { ...x.tuning, done: true } } : null); };
|
||||
|
||||
renderVals() {
|
||||
const s = this.state, c = s.cfg, cc = this.calc(c), ca = this.calc(s.saved);
|
||||
const isExpert = s.mode === 'expert';
|
||||
const total = Math.max(VRAM, cc.used + cc.reserve), pct = v => `width:${(v / total * 100).toFixed(2)}%;`;
|
||||
const fit = cc.spill ? 'over' : cc.free < 1.2 ? 'tight' : 'ok';
|
||||
const fitMap = {
|
||||
ok: ['Fits comfortably', 'background:#ecfdf5;color:#0c8a60;', cc.reserve > 0 ? `Fits with ${cc.free.toFixed(1)} GB to spare, plus ${cc.reserve.toFixed(1)} GB kept free for your other apps.` : `Everything fits with ${cc.free.toFixed(1)} GB to spare. Full power: Strata uses the whole card.`],
|
||||
tight: ['Tight fit', 'background:#fff6e0;color:#8a5a00;', 'It fits, but only just. Other apps using the graphics card may slow it down.'],
|
||||
over: ['Too big', 'background:#fdecee;color:#b01a2e;', `It needs ${cc.over.toFixed(1)} GB more than your graphics card has, so part of it moves to slower system memory.`],
|
||||
}[fit];
|
||||
const style = this.styleOf(c), g = GOALS[s.goal], ctxV = c['ctx.length'];
|
||||
const pages = Math.round(+ctxV / 650);
|
||||
const changedKeys = Object.keys(c).filter(k => c[k] !== s.saved[k]);
|
||||
const loadN = changedKeys.filter(k => PM[k].applies === 'load').length;
|
||||
const pctD = (a, b) => { const d = (a - b) / b * 100; return Math.abs(d) < 0.5 ? 'same as now' : `${d > 0 ? '+' : ''}${d.toFixed(0)}% vs now`; };
|
||||
const anyChange = changedKeys.length > 0;
|
||||
|
||||
// expert rows
|
||||
const ql = s.q.trim().toLowerCase();
|
||||
const rowsFor = gk => P.map(p => PM[p[0]]).filter(p => p.group === gk)
|
||||
.filter(p => !ql || p.label.toLowerCase().includes(ql) || p.key.toLowerCase().includes(ql) || p.desc.toLowerCase().includes(ql))
|
||||
.filter(p => !s.changedOnly || c[p.key] !== s.saved[p.key])
|
||||
.map(p => {
|
||||
const v = c[p.key], unsaved = v !== s.saved[p.key], isDef = v === p.def;
|
||||
const auto = { 'ctx.kvMode': cc.kv.toUpperCase(), 'batch.size': String(cc.batch), 'gpu.layers': cc.gpu === 'all' ? 'all on GPU' : 'split', 'cpu.threads': String(cc.threads), 'mem.mode': cc.memMode }[p.key];
|
||||
return {
|
||||
label: p.label, key: p.key, desc: p.desc, showDesc: s.showDesc, unsaved,
|
||||
meta: `${p.applies === 'load' ? 'Reloads engine' : 'Next message'} · default ${fmt(p.key, p.def)}${v === 'auto' && auto ? ` · Auto → ${auto}` : ''}${!isDef ? ' · custom' : ''}`,
|
||||
isSelect: p.type === SEL, isNumber: p.type === NUM, isBool: p.type === BOOL,
|
||||
value: p.type === BOOL ? '' : v, options: p.type === SEL ? p.opts.map(([ov, ol]) => ({ v: ov, l: ol })) : [],
|
||||
min: p.opts?.[0], max: p.opts?.[1], step: p.opts?.[2],
|
||||
onSelect: e => this.setCfg({ [p.key]: e.target.value }),
|
||||
onNumber: e => { const n = parseFloat(e.target.value); if (!isNaN(n)) this.setCfg({ [p.key]: Math.min(p.opts[1], Math.max(p.opts[0], n)) }); },
|
||||
onToggle: () => this.setCfg({ [p.key]: !v }), boolLabel: v ? 'On' : 'Off',
|
||||
track: `background:${v ? '#10b981' : '#dee5ee'};`, knob: `transform:translateX(${v ? 16 : 0}px);`,
|
||||
revert: () => this.setCfg({ [p.key]: s.saved[p.key] }), revertStyle: unsaved ? '' : 'visibility:hidden;',
|
||||
rowStyle: unsaved ? 'background:#fffbf0;' : '',
|
||||
};
|
||||
});
|
||||
const groups = GROUPS.filter(([gk]) => s.grp === 'all' || s.grp === gk).map(([gk, title]) => { const rows = rowsFor(gk); return { title, rows, count: `${rows.length} ${rows.length === 1 ? 'setting' : 'settings'}` }; }).filter(x => x.rows.length);
|
||||
|
||||
const allPresets = [...BUILTIN.map(([n, p]) => [n, p, false]), ...s.userPresets.map(([n, p]) => [n, p, true])];
|
||||
const resolve = p => ({ ...DEFAULTS, ...p });
|
||||
const same = (a, b) => Object.keys(DEFAULTS).every(k => a[k] === b[k]);
|
||||
const summary = p => { const r = resolve(p); const bits = [fmt('ctx.length', r['ctx.length']), r['ctx.kvMode'] === 'auto' ? 'kv auto' : r['ctx.kvMode'], `t=${r['sample.temperature']}`]; if (r['mem.mode'] === 'offload') bits.push('offload'); return bits.join(' · '); };
|
||||
|
||||
const raw = s.raw ?? this.rawText();
|
||||
const rawLines = raw.split('\n').length;
|
||||
const tsteps = [['Checking your hardware', 'RTX 4070 · 12 GB'], ['Testing speed', `${ca.gen.toFixed(0)} tok/s`], [`Picking settings for ${g.title.toLowerCase()}`, 'Done']];
|
||||
const chipOn = 'background:#221e1f;color:#ffffff;border:1px solid #221e1f;', chipOff = 'background:#ffffff;color:#303030;border:1px solid #dee5ee;';
|
||||
const seg = on => on ? 'background:#ffffff;color:#221e1f;box-shadow:0 1px 2px rgba(0,0,0,.06),0 4px 4px rgba(0,0,0,.03);' : 'background:transparent;color:#6f6f6f;';
|
||||
|
||||
return {
|
||||
appliedGen: ca.gen.toFixed(0),
|
||||
isSimple: !isExpert, isExpert,
|
||||
toSimple: () => this.setState({ mode: 'simple' }), toExpert: () => this.setState({ mode: 'expert' }),
|
||||
modeSimpleStyle: isExpert ? 'background:transparent;color:#6f6f6f;' : 'background:#221e1f;color:#ffffff;', modeExpertStyle: isExpert ? 'background:#221e1f;color:#ffffff;' : 'background:transparent;color:#6f6f6f;',
|
||||
modeBarWidth: isExpert ? 'max-width:1360px;' : 'max-width:1200px;',
|
||||
modeHint: isExpert ? `Every parameter, presets and the raw config. Same settings as Simple.` : 'Pick what you need and Strata handles the rest.',
|
||||
paramCount: P.length,
|
||||
// simple
|
||||
startTune: () => this.startTune(),
|
||||
goals: Object.entries(GOALS).map(([k, gg]) => { const sel = s.goal === k; return {
|
||||
title: gg.title, sub: gg.sub,
|
||||
pick: () => { const st = STYLES[gg.style]; this.setState({ goal: k }); this.setCfg({ 'ctx.length': gg.ctx, 'sample.temperature': st[2], 'sample.topP': st[3] }); },
|
||||
cardStyle: sel ? 'background:#ecfdf5;border:1.5px solid #10b981;' : 'background:#ffffff;border:1.5px solid #dee5ee;',
|
||||
iconWrap: sel ? 'background:#ffffff;' : 'background:#f7f7f7;',
|
||||
iconStyle: `background:${sel ? '#0c8a60' : '#2F384C'};mask:url(icons/${gg.icon}.svg) center/contain no-repeat;`,
|
||||
}; }),
|
||||
headroom: [['shared', 'Leave room for other apps', 'Keeps 15% of graphics memory and 2 CPU cores free, so browsing, calls and video stay smooth.', 'activity'], ['max', 'Full power', 'Uses all of the graphics card and every CPU core for the fastest replies. Best when Strata is the only thing running.', 'bolt']].map(([k, t, sub, ic]) => {
|
||||
const sel = c['sys.headroom'] === k, alt = this.calc({ ...c, 'sys.headroom': k });
|
||||
return { title: t, sub, stat: `≈ ${alt.gen.toFixed(0)} tok/s · ${k === 'max' ? 'all 12 GB' : (VRAM * 0.85).toFixed(1) + ' GB for Strata'}`,
|
||||
pick: () => this.setCfg({ 'sys.headroom': k }),
|
||||
cardStyle: sel ? 'background:#ecfdf5;border:1.5px solid #10b981;' : 'background:#ffffff;border:1.5px solid #dee5ee;',
|
||||
radio: sel ? 'border:6px solid #10b981;background:#ffffff;' : 'border:1.5px solid #c9d1db;background:#ffffff;',
|
||||
iconStyle: `background:${sel ? '#0c8a60' : '#2F384C'};mask:url(icons/${ic}.svg) center/contain no-repeat;` };
|
||||
}),
|
||||
pages: pages.toLocaleString(), ctxLabel: fmt('ctx.length', ctxV), ctxIdx: Math.max(0, CTXV.indexOf(ctxV)),
|
||||
setCtxIdx: e => this.setCfg({ 'ctx.length': CTXV[+e.target.value] }),
|
||||
ctxIsRec: ctxV === g.ctx, ctxNotRec: ctxV !== g.ctx, resetCtx: () => this.setCfg({ 'ctx.length': g.ctx }),
|
||||
ctxHint: +ctxV > +g.ctx ? `More than ${g.title.toLowerCase()} usually needs. It uses more memory and writes a little slower.` : +ctxV < +g.ctx ? 'Less than recommended. Long chats or files may get cut off, but replies come a bit faster.' : `About ${pages} pages of text. The right size for ${g.title.toLowerCase()} on this PC.`,
|
||||
styles: Object.entries(STYLES).map(([k, [t, sub, temp, tp]]) => ({ title: t, sub: style === null && k === 'balanced' ? 'Custom values set in Expert' : sub, pick: () => this.setCfg({ 'sample.temperature': temp, 'sample.topP': tp }), btnStyle: style === k ? 'background:#ffffff;box-shadow:0 1px 2px rgba(0,0,0,.06),0 4px 4px rgba(0,0,0,.03);' : 'background:transparent;' })),
|
||||
previewTag: anyChange ? 'Preview · not applied' : 'Current settings',
|
||||
streamText: s.stream, wps: Math.round(cc.gen * 0.75), readSec: (6500 / cc.read).toFixed(1),
|
||||
genTokS: cc.gen.toFixed(0), genVs: pctD(cc.gen, ca.gen),
|
||||
usedGb: cc.used.toFixed(1), mModel: cc.mModel.toFixed(1), mCtx: cc.mCtx.toFixed(1), mWork: cc.mWork.toFixed(1), mFree: cc.free.toFixed(1),
|
||||
barModel: pct(cc.mModel), barCtx: pct(cc.mCtx), barWork: pct(Math.max(0, cc.mWork - cc.over)), barOver: pct(cc.over), barReserve: pct(cc.reserve), showReserve: cc.reserve > 0, mReserve: cc.reserve.toFixed(1),
|
||||
fitLabel: fitMap[0], fitChip: fitMap[1], fitHint: fitMap[2], fitBox: { ok: 'background:#f7f7f7;color:#303030;', tight: 'background:#fff6e0;color:#8a5a00;', over: 'background:#fdecee;color:#b01a2e;' }[fit],
|
||||
// expert
|
||||
presets: allPresets.map(([name, p, custom], i) => { const active = same(resolve(p), c); return {
|
||||
name, sub: summary(p), custom, active,
|
||||
load: () => this.setCfg(resolve(p)),
|
||||
remove: e => { e.stopPropagation(); const list = s.userPresets.filter((_, j) => j !== i - BUILTIN.length); this.savePresets(list); this.setState({ userPresets: list }); },
|
||||
style: active ? 'background:#ecfdf5;border:1.5px solid #10b981;' : 'background:#ffffff;border:1.5px solid #dee5ee;',
|
||||
}; }),
|
||||
naming: s.naming, notNaming: !s.naming, nameDraft: s.nameDraft,
|
||||
startName: () => this.setState({ naming: true, nameDraft: '' }), cancelName: () => this.setState({ naming: false }),
|
||||
onName: e => this.setState({ nameDraft: e.target.value }),
|
||||
onNameKey: e => { if (e.key === 'Enter') this._savePreset(); if (e.key === 'Escape') this.setState({ naming: false }); },
|
||||
savePreset: () => this._savePreset(),
|
||||
tabParams: s.tab === 'params', tabRaw: s.tab === 'raw',
|
||||
toParams: () => this.setState({ tab: 'params' }), toRaw: () => this.setState({ tab: 'raw', raw: null, rawErr: null, rawWarn: null }),
|
||||
tabParamsStyle: seg(s.tab === 'params'), tabRawStyle: seg(s.tab === 'raw'),
|
||||
q: s.q, onQ: e => this.setState({ q: e.target.value }),
|
||||
unsavedN: changedKeys.length, toggleChanged: () => this.setState(x => ({ changedOnly: !x.changedOnly })), changedBtnStyle: s.changedOnly ? chipOn : chipOff,
|
||||
toggleDesc: () => this.setState(x => ({ showDesc: !x.showDesc })), descBtnStyle: s.showDesc ? chipOn : chipOff,
|
||||
groupChips: [['all', 'All'], ...GROUPS].map(([k, l]) => ({ label: l, pick: () => this.setState({ grp: k }), style: s.grp === k ? chipOn : chipOff })),
|
||||
groups, noResults: groups.length === 0,
|
||||
rawValue: raw, rawRows: rawLines, gutter: Array.from({ length: rawLines }, (_, i) => i + 1).join('\n'),
|
||||
onRaw: e => this.parseRaw(e.target.value),
|
||||
rawStatus: s.rawErr ? 'Invalid — draft not updated' : s.rawWarn ? 'Valid with warnings' : 'Valid · in sync',
|
||||
rawChip: s.rawErr ? 'background:#fdecee;color:#b01a2e;' : s.rawWarn ? 'background:#fff6e0;color:#8a5a00;' : 'background:#ecfdf5;color:#0c8a60;',
|
||||
rawHasMsg: !!(s.rawErr || s.rawWarn), rawMsg: s.rawErr || s.rawWarn || '',
|
||||
rawMsgStyle: s.rawErr ? 'background:#fdecee;color:#b01a2e;white-space:pre-wrap;' : 'background:#fff6e0;color:#8a5a00;',
|
||||
rawMsgIcon: `background:currentColor;mask:url(icons/${s.rawErr ? 'error' : 'warning'}.svg) center/contain no-repeat;`,
|
||||
rawFormat: () => { if (!s.rawErr) this.setState({ raw: null, rawWarn: null }); else { try { this.parseRaw(JSON.stringify(JSON.parse(raw), null, 2)); } catch (e) {} } },
|
||||
copyLabel: s.copied ? 'Copied' : 'Copy',
|
||||
rawCopy: () => { navigator.clipboard?.writeText(raw); this.setState({ copied: true }); this.later(() => this.setState({ copied: false }), 1400); },
|
||||
rawExport: () => { const b = new Blob([raw], { type: 'application/json' }); const a = document.createElement('a'); a.href = URL.createObjectURL(b); a.download = 'engine.json'; a.click(); setTimeout(() => URL.revokeObjectURL(a.href), 1000); },
|
||||
rawImport: () => this.fileRef.current?.click(), fileRef: this.fileRef,
|
||||
onFile: e => { const f = e.target.files?.[0]; if (!f) return; f.text().then(t => this.parseRaw(t)); e.target.value = ''; },
|
||||
genTok: cc.gen.toFixed(1), genPct: pctD(cc.gen, ca.gen), readTok: Math.round(cc.read).toLocaleString(), readPct: pctD(cc.read, ca.read),
|
||||
resolved: [['sys.headroom', c['sys.headroom'] === 'max' ? '0% reserved' : '15% reserved'], ['ctx.kvMode', cc.kv], ['batch.size', String(cc.batch)], ['gpu.layers', cc.gpu === 'all' ? 'all (48/48)' : 'split (29/48)'], ['cpu.threads', String(cc.threads)], ['mem.mode', cc.memMode]].map(([k, v]) => ({ k, v })),
|
||||
// change bar
|
||||
hasChanges: anyChange || s.applying != null,
|
||||
changeCount: changedKeys.length === 1 ? '1 unsaved change' : `${changedKeys.length} unsaved changes`,
|
||||
applyNote: loadN ? `${loadN} reload${loadN > 1 ? '' : 's'} the engine (~4 s), chats are kept` : 'applies from the next message',
|
||||
changeList: changedKeys.map(k => `${isExpert ? k : PM[k].label} ${fmt(k, s.saved[k])} → ${fmt(k, c[k])}`).join(' · '),
|
||||
changeFont: isExpert ? 'font-family:ui-monospace,Consolas,monospace;' : '',
|
||||
applying: s.applying != null, notApplying: s.applying == null,
|
||||
applyStep: s.applying?.step ?? '', applyBar: `width:${s.applying?.p ?? 0}%;transition:width 70ms linear;`,
|
||||
applyLabel: loadN ? 'Apply & reload' : 'Save',
|
||||
undo: () => this.setState(x => ({ cfg: { ...x.saved }, raw: null, rawErr: null, rawWarn: null })),
|
||||
apply: () => this.apply(),
|
||||
toast: !!s.toast, toastTitle: s.toast?.t ?? '', toastSub: s.toast?.s ?? '',
|
||||
tuning: !!s.tuning, tuneDone: !!s.tuning?.done,
|
||||
tuneRunning: !!s.tuning && !s.tuning.done,
|
||||
tuneTitle: s.tuning?.done ? 'Your PC is tuned' : 'Tuning for your PC',
|
||||
tuneSub: s.tuning?.done ? 'Strata found the fastest setup for ' + g.title.toLowerCase() + '. Nothing changes until you review and apply it.' : 'Strata is testing your PC with the model to find the fastest setup. About 10 seconds.',
|
||||
tuneViz: s.tuning ? ce(TuneViz, { key: s.tuning.run, trials: s.tuning.trials, best: s.tuning.best, baseGen: ca.gen, vramT: s.tuning.vramT, onDone: this._tuneDone }) : null,
|
||||
cancelTune: () => this.setState({ tuning: null }),
|
||||
discardTune: () => this.setState({ tuning: null }),
|
||||
closeTune: () => { const c = this.state.tuning?.bestCfg; this.setState({ tuning: null }); if (c) this.setCfg(c); },
|
||||
};
|
||||
}
|
||||
_savePreset() {
|
||||
const name = this.state.nameDraft.trim(); if (!name) return;
|
||||
const diff = Object.fromEntries(Object.keys(DEFAULTS).filter(k => this.state.cfg[k] !== DEFAULTS[k]).map(k => [k, this.state.cfg[k]]));
|
||||
const list = [...this.state.userPresets, [name, diff]];
|
||||
this.savePresets(list); this.setState({ userPresets: list, naming: false });
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,384 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<style>
|
||||
@font-face{font-family:'GT Walsheim Pro';src:url('fonts/GTWalsheimPro-Regular.woff2') format('woff2');font-weight:400;font-display:swap;}
|
||||
@font-face{font-family:'GT Walsheim Pro';src:url('fonts/GTWalsheimPro-Medium.woff2') format('woff2');font-weight:500;font-display:swap;}
|
||||
@font-face{font-family:'GT Walsheim Pro';src:url('fonts/GTWalsheimPro-Bold.woff2') format('woff2');font-weight:700;font-display:swap;}
|
||||
@font-face{font-family:'GT Walsheim Pro';src:url('fonts/GTWalsheimPro-Black.woff2') format('woff2');font-weight:900;font-display:swap;}
|
||||
*{box-sizing:border-box;}
|
||||
html,body{margin:0;padding:0;background:#f9fafb;}
|
||||
a{color:#0c8a60;text-decoration:none;}
|
||||
a:hover{text-decoration:underline;}
|
||||
details>summary::-webkit-details-marker{display:none;}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="min-height:100vh;background:#f9fafb;color:#221e1f;font-family:'GT Walsheim Pro',system-ui,sans-serif;-webkit-font-smoothing:antialiased;padding-bottom:80px;">
|
||||
|
||||
<header style="display:flex;align-items:center;gap:16px;padding:16px 32px;background:#ffffff;border-bottom:1px solid #dee5ee;">
|
||||
<div style="display:flex;flex-direction:column;gap:4px;">
|
||||
<h1 style="margin:0;font-weight:700;font-size:24px;letter-spacing:-0.01em;">Model</h1>
|
||||
<span style="font-size:13px;color:#6f6f6f;">One model, tuned for your PC. Pick the version that fits.</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main style="max-width:1200px;margin:0 auto;padding:28px 28px 0;display:flex;flex-direction:column;gap:28px;">
|
||||
|
||||
<section style="display:flex;flex-wrap:wrap;align-items:center;gap:24px;padding:24px;background:#ffffff;border:1px solid #dee5ee;border-radius:24px;box-shadow:0 4px 4px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.04);">
|
||||
<div style="flex:1 1 420px;min-width:0;display:flex;gap:18px;align-items:flex-start;">
|
||||
<span style="display:flex;align-items:center;justify-content:center;flex:none;width:64px;height:64px;border-radius:18px;background:#f9fafb;border:1px solid #eeeeee;"><img src="brand/logo/strata-mark-light.svg" width="40" height="40" alt=""/></span>
|
||||
<div style="display:flex;flex-direction:column;gap:10px;min-width:0;">
|
||||
<h2 style="margin:0;font-weight:900;font-size:30px;line-height:1.05;letter-spacing:-0.02em;">Qwen3.8-Flash-Next</h2>
|
||||
<p style="margin:0;max-width:560px;font-size:15px;line-height:1.55;color:#303030;">The one model Strata is built around. It's a mixture of experts: 30B parameters in total, but only 3B work on each word, so it runs fast on a home PC.</p>
|
||||
<div style="display:flex;flex-wrap:wrap;gap:8px;">
|
||||
<span style="display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;background:#f7f7f7;border:1px solid #dee5ee;font-size:12px;font-weight:500;color:#303030;"><span style="display:inline-block;width:14px;height:14px;background:#2F384C;mask:url(icons/layers.svg) center/contain no-repeat;"></span>30B total · 3B active</span>
|
||||
<span style="display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;background:#f7f7f7;border:1px solid #dee5ee;font-size:12px;font-weight:500;color:#303030;"><span style="display:inline-block;width:14px;height:14px;background:#2F384C;mask:url(icons/chat.svg) center/contain no-repeat;"></span>Up to 1M context</span>
|
||||
<span style="display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;background:#f7f7f7;border:1px solid #dee5ee;font-size:12px;font-weight:500;color:#303030;"><span style="display:inline-block;width:14px;height:14px;background:#2F384C;mask:url(icons/tool.svg) center/contain no-repeat;"></span>Text · code · tools</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="flex:0 1 380px;min-width:280px;display:flex;flex-direction:column;gap:14px;padding:18px;border-radius:18px;background:#f9fafb;border:1px solid #eeeeee;">
|
||||
<sc-if value="{{ heroSwitching }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="display:flex;flex-direction:column;gap:10px;">
|
||||
<span style="display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:0.05em;text-transform:uppercase;color:#0c8a60;"><span style="width:7px;height:7px;border-radius:50%;background:#10b981;"></span>Loading</span>
|
||||
<span style="font-weight:700;font-size:18px;">{{ switchName }}</span>
|
||||
<div style="height:6px;border-radius:999px;background:#eef1f4;overflow:hidden;"><div style="{{ switchBar }}height:100%;border-radius:999px;background:#10b981;"></div></div>
|
||||
<span style="font-size:12px;color:#6f6f6f;">{{ switchStep }}</span>
|
||||
</div>
|
||||
</sc-if>
|
||||
<sc-if value="{{ heroRunning }}" hint-placeholder-val="{{ true }}">
|
||||
<div style="display:flex;align-items:flex-start;justify-content:space-between;gap:12px;">
|
||||
<div style="display:flex;flex-direction:column;gap:6px;">
|
||||
<span style="display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:0.05em;text-transform:uppercase;color:#0c8a60;"><span style="width:7px;height:7px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px #d1fae5;"></span>Running</span>
|
||||
<span style="font-weight:700;font-size:18px;">{{ runName }}</span>
|
||||
<code style="font-family:ui-monospace,Consolas,monospace;font-size:12px;color:#6f6f6f;">{{ runQuant }}</code>
|
||||
</div>
|
||||
<div style="display:flex;flex-direction:column;align-items:flex-end;gap:2px;">
|
||||
<span style="font-weight:900;font-size:30px;line-height:1;font-variant-numeric:tabular-nums;">{{ runSpeed }}</span>
|
||||
<span style="font-size:12px;color:#6f6f6f;">tok/s</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display:flex;gap:8px;">
|
||||
<a href="Engine v3.dc.html" style="flex:1;display:flex;align-items:center;justify-content:center;gap:8px;height:40px;border:1.5px solid #dee5ee;border-radius:14px;background:#ffffff;color:#221e1f;font:700 14px 'GT Walsheim Pro',sans-serif;text-decoration:none;" style-hover="background:#f7f7f7;text-decoration:none;"><span style="display:inline-block;width:16px;height:16px;background:#2F384C;mask:url(icons/gauge.svg) center/contain no-repeat;"></span>Tune engine</a>
|
||||
<button onClick="{{ unload }}" style="flex:1;height:40px;border:1.5px solid #dee5ee;border-radius:14px;background:#ffffff;color:#221e1f;font:700 14px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#f7f7f7;">Unload</button>
|
||||
</div>
|
||||
</sc-if>
|
||||
<sc-if value="{{ heroIdle }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="display:flex;flex-direction:column;gap:6px;">
|
||||
<span style="display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:0.05em;text-transform:uppercase;color:#6f6f6f;"><span style="width:7px;height:7px;border-radius:50%;background:#c9d1db;"></span>Not loaded</span>
|
||||
<span style="font-size:14px;line-height:1.45;color:#303030;">Nothing is using your graphics card right now.</span>
|
||||
</div>
|
||||
<button onClick="{{ loadRec }}" style="height:42px;border:0;border-radius:14px;background:#10b981;color:#ffffff;font:700 14px 'GT Walsheim Pro',sans-serif;cursor:pointer;box-shadow:0 6px 16px rgba(16,185,129,.24);" style-hover="background:#0c8a60;">{{ loadRecLabel }}</button>
|
||||
</sc-if>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section style="display:flex;flex-direction:column;gap:16px;">
|
||||
<div style="display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;">
|
||||
<div style="display:flex;flex-direction:column;gap:4px;">
|
||||
<h2 style="margin:0;font-weight:700;font-size:22px;letter-spacing:-0.01em;">Choose a version</h2>
|
||||
<span style="font-size:14px;line-height:1.5;color:#6f6f6f;max-width:640px;">Same model, packed at different sizes. Smaller versions are faster and use less memory; bigger ones are a little more precise.</span>
|
||||
</div>
|
||||
<span style="display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:999px;background:#ffffff;border:1px solid #dee5ee;font-size:13px;font-weight:500;color:#303030;"><span style="display:inline-block;width:16px;height:16px;background:#2F384C;mask:url(icons/gpu.svg) center/contain no-repeat;"></span>{{ hwLabel }}</span>
|
||||
</div>
|
||||
|
||||
<div style="background:#ffffff;border:1px solid #dee5ee;border-radius:24px;padding:20px 20px 16px;display:flex;flex-direction:column;gap:14px;box-shadow:0 4px 4px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.04);">
|
||||
<div style="display:flex;flex-wrap:wrap;gap:16px;font-size:12px;font-weight:500;color:#303030;">
|
||||
<span style="display:flex;align-items:center;gap:8px;"><span style="width:12px;height:12px;border-radius:4px;background:#ecfdf5;border:1.5px solid #10b981;"></span>Fast on your PC</span>
|
||||
<span style="display:flex;align-items:center;gap:8px;"><span style="width:12px;height:12px;border-radius:4px;background:#fff6e0;border:1.5px solid #e39b0b;"></span>Works, but slower</span>
|
||||
<span style="display:flex;align-items:center;gap:8px;"><span style="width:12px;height:12px;border-radius:4px;background:repeating-linear-gradient(45deg,#eef1f4 0 3px,#f7f7f7 3px 6px);border:1.5px solid #c9d1db;"></span>Too big for your PC</span>
|
||||
</div>
|
||||
<div style="overflow-x:auto;margin:0 -4px;padding:4px;">
|
||||
<div style="display:grid;grid-template-columns:repeat(7,minmax(112px,1fr));gap:0;min-width:784px;">
|
||||
<sc-for list="{{ quants }}" as="q" hint-placeholder-count="7">
|
||||
<button onClick="{{ q.select }}" style="{{ q.colStyle }}position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px 6px 16px;border:0;cursor:pointer;font-family:'GT Walsheim Pro',sans-serif;text-align:center;transition:background 160ms,box-shadow 160ms;">
|
||||
<span style="{{ q.zoneBar }}position:absolute;left:0;right:0;top:0;height:3px;"></span>
|
||||
<span style="{{ q.conStyle }}position:absolute;top:57px;height:2px;background:#dee5ee;"></span>
|
||||
<span style="height:22px;display:flex;align-items:center;">
|
||||
<sc-if value="{{ q.isRec }}" hint-placeholder-val="{{ false }}"><span style="display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:#221e1f;color:#ffffff;font-size:11px;font-weight:700;">Recommended</span></sc-if>
|
||||
</span>
|
||||
<span style="{{ q.node }}position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;box-sizing:border-box;transition:transform 160ms;"><span style="{{ q.nodeInner }}display:inline-block;"></span></span>
|
||||
<span style="display:flex;flex-direction:column;align-items:center;gap:3px;">
|
||||
<span style="font-weight:700;font-size:14px;color:#221e1f;">{{ q.name }}</span>
|
||||
<code style="font-family:ui-monospace,Consolas,monospace;font-size:11px;color:#6f6f6f;">{{ q.id }}</code>
|
||||
</span>
|
||||
<span style="display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;font-variant-numeric:tabular-nums;">
|
||||
<span style="color:#303030;">{{ q.sizeLabel }}</span>
|
||||
<span style="{{ q.speedStyle }}font-weight:700;">{{ q.speedLabel }}</span>
|
||||
</span>
|
||||
<span style="height:18px;font-size:11px;font-weight:700;color:#0c8a60;">{{ q.stateTag }}</span>
|
||||
</button>
|
||||
</sc-for>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display:flex;justify-content:space-between;font-size:12px;font-weight:500;color:#6f6f6f;padding:0 6px;">
|
||||
<span>← Smaller and faster</span><span>More precise →</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="display:flex;flex-wrap:wrap;gap:20px;padding:24px;background:#ffffff;border:1px solid #dee5ee;border-radius:24px;box-shadow:0 4px 4px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.04);">
|
||||
<div style="flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:18px;">
|
||||
<div style="display:flex;align-items:center;gap:12px;flex-wrap:wrap;">
|
||||
<h3 style="margin:0;font-weight:700;font-size:22px;">{{ sel.name }}</h3>
|
||||
<code style="font-family:ui-monospace,Consolas,monospace;font-size:13px;color:#6f6f6f;">{{ sel.id }}</code>
|
||||
<span style="{{ sel.chipStyle }}display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;"><span style="width:6px;height:6px;border-radius:50%;background:currentColor;"></span>{{ sel.chip }}</span>
|
||||
</div>
|
||||
<p style="margin:0;font-size:15px;line-height:1.55;color:#303030;max-width:640px;">{{ sel.blurb }}</p>
|
||||
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;">
|
||||
<div style="display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:16px;background:#f7f7f7;">
|
||||
<span style="font-size:12px;font-weight:500;color:#6f6f6f;">Quality</span>
|
||||
<span style="font-weight:900;font-size:24px;line-height:1;font-variant-numeric:tabular-nums;">{{ sel.quality }}<span style="font-weight:500;font-size:13px;color:#6f6f6f;">% of original</span></span>
|
||||
<div style="height:6px;border-radius:999px;background:#e3e8ee;overflow:hidden;"><div style="{{ sel.qualityBar }}height:100%;border-radius:999px;background:#2F384C;"></div></div>
|
||||
</div>
|
||||
<div style="display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:16px;background:#f7f7f7;">
|
||||
<span style="font-size:12px;font-weight:500;color:#6f6f6f;">Writing speed</span>
|
||||
<span style="font-weight:900;font-size:24px;line-height:1;font-variant-numeric:tabular-nums;">{{ sel.speed }}<span style="font-weight:500;font-size:13px;color:#6f6f6f;"> tok/s</span></span>
|
||||
<div style="height:6px;border-radius:999px;background:#e3e8ee;overflow:hidden;"><div style="{{ sel.speedBar }}height:100%;border-radius:999px;"></div></div>
|
||||
</div>
|
||||
<div style="display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:16px;background:#f7f7f7;">
|
||||
<span style="font-size:12px;font-weight:500;color:#6f6f6f;">Download size</span>
|
||||
<span style="font-weight:900;font-size:24px;line-height:1;font-variant-numeric:tabular-nums;">{{ sel.size }}<span style="font-weight:500;font-size:13px;color:#6f6f6f;"> GB</span></span>
|
||||
<span style="font-size:12px;color:#6f6f6f;">{{ sel.diskNote }}</span>
|
||||
</div>
|
||||
<div style="display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:16px;background:#f7f7f7;">
|
||||
<span style="font-size:12px;font-weight:500;color:#6f6f6f;">Memory needed</span>
|
||||
<span style="font-weight:900;font-size:24px;line-height:1;font-variant-numeric:tabular-nums;">{{ sel.need }}<span style="font-weight:500;font-size:13px;color:#6f6f6f;"> GB</span></span>
|
||||
<div style="display:flex;gap:2px;height:6px;border-radius:999px;background:#e3e8ee;overflow:hidden;"><div style="{{ sel.memGpu }}height:100%;background:#10b981;"></div><div style="{{ sel.memSys }}height:100%;background:#2F384C;"></div><div style="{{ sel.memOver }}height:100%;background:repeating-linear-gradient(45deg,#e0283f 0 3px,#f37a89 3px 6px);"></div></div>
|
||||
<span style="font-size:12px;color:#6f6f6f;font-variant-numeric:tabular-nums;">{{ sel.memNote }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<details style="border-top:1px solid #eeeeee;padding-top:14px;">
|
||||
<summary style="list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:700;color:#303030;">Technical details<span style="display:inline-block;width:14px;height:14px;background:#6f6f6f;mask:url(icons/chevron.svg) center/contain no-repeat;"></span></summary>
|
||||
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px 24px;margin-top:12px;font-family:ui-monospace,Consolas,monospace;font-size:12px;color:#303030;">
|
||||
<span style="display:flex;justify-content:space-between;gap:10px;"><span style="color:#6f6f6f;">bits / weight</span><span>{{ sel.bits }}</span></span>
|
||||
<span style="display:flex;justify-content:space-between;gap:10px;"><span style="color:#6f6f6f;">perplexity vs BF16</span><span>{{ sel.ppl }}</span></span>
|
||||
<span style="display:flex;justify-content:space-between;gap:10px;"><span style="color:#6f6f6f;">experts in VRAM</span><span>{{ sel.expertsVram }}</span></span>
|
||||
<span style="display:flex;justify-content:space-between;gap:10px;"><span style="color:#6f6f6f;">file</span><span style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">{{ sel.file }}</span></span>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
|
||||
<div style="flex:0 1 280px;min-width:240px;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:20px;border-radius:18px;background:#f9fafb;border:1px solid #eeeeee;">
|
||||
<sc-if value="{{ act.running }}" hint-placeholder-val="{{ false }}">
|
||||
<span style="display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px;color:#0c8a60;"><span style="display:inline-block;width:18px;height:18px;background:#10b981;mask:url(icons/check.svg) center/contain no-repeat;"></span>This version is running</span>
|
||||
<span style="font-size:13px;line-height:1.45;color:#6f6f6f;">All chats use it. Tune speed and memory on the Engine page.</span>
|
||||
<button onClick="{{ unload }}" style="height:42px;border:1.5px solid #dee5ee;border-radius:14px;background:#ffffff;color:#221e1f;font:700 14px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#f7f7f7;">Unload</button>
|
||||
</sc-if>
|
||||
<sc-if value="{{ act.installed }}" hint-placeholder-val="{{ false }}">
|
||||
<span style="font-weight:700;font-size:15px;">Downloaded and ready</span>
|
||||
<span style="font-size:13px;line-height:1.45;color:#6f6f6f;">{{ act.switchNote }}</span>
|
||||
<button onClick="{{ act.switchTo }}" style="{{ act.btnState }}height:44px;border:0;border-radius:14px;background:#10b981;color:#ffffff;font:700 14px 'GT Walsheim Pro',sans-serif;cursor:pointer;box-shadow:0 6px 16px rgba(16,185,129,.24);" style-hover="background:#0c8a60;">Switch to this version</button>
|
||||
<button onClick="{{ act.remove }}" style="{{ act.btnState }}display:flex;align-items:center;justify-content:center;gap:8px;height:38px;border:0;border-radius:12px;background:transparent;color:#b01a2e;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#fdecee;"><span style="display:inline-block;width:15px;height:15px;background:currentColor;mask:url(icons/trash.svg) center/contain no-repeat;"></span>Delete · frees {{ sel.size }} GB</button>
|
||||
</sc-if>
|
||||
<sc-if value="{{ act.downloading }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="display:flex;justify-content:space-between;font-size:13px;font-variant-numeric:tabular-nums;"><span style="font-weight:700;">Downloading</span><span style="color:#6f6f6f;">{{ act.dlPct }}%</span></div>
|
||||
<div style="height:8px;border-radius:999px;background:#eef1f4;overflow:hidden;"><div style="{{ act.dlBar }}height:100%;border-radius:999px;background:#10b981;transition:width 120ms linear;"></div></div>
|
||||
<span style="font-size:12px;color:#6f6f6f;font-variant-numeric:tabular-nums;">{{ act.dlNote }}</span>
|
||||
<button onClick="{{ act.cancel }}" style="height:38px;border:1.5px solid #dee5ee;border-radius:12px;background:#ffffff;color:#221e1f;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#f7f7f7;">Cancel</button>
|
||||
</sc-if>
|
||||
<sc-if value="{{ act.available }}" hint-placeholder-val="{{ true }}">
|
||||
<span style="font-weight:700;font-size:15px;">Not downloaded yet</span>
|
||||
<span style="font-size:13px;line-height:1.45;color:#6f6f6f;">{{ act.availNote }}</span>
|
||||
<button onClick="{{ act.download }}" style="display:flex;align-items:center;justify-content:center;gap:8px;height:44px;border:0;border-radius:14px;background:#10b981;color:#ffffff;font:700 14px 'GT Walsheim Pro',sans-serif;cursor:pointer;box-shadow:0 6px 16px rgba(16,185,129,.24);" style-hover="background:#0c8a60;"><span style="display:inline-block;width:16px;height:16px;background:#ffffff;mask:url(icons/download.svg) center/contain no-repeat;"></span>Download · {{ sel.size }} GB</button>
|
||||
</sc-if>
|
||||
<sc-if value="{{ act.tooBig }}" hint-placeholder-val="{{ false }}">
|
||||
<span style="display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px;color:#b01a2e;"><span style="display:inline-block;width:18px;height:18px;background:currentColor;mask:url(icons/warning.svg) center/contain no-repeat;"></span>Too big for this PC</span>
|
||||
<span style="font-size:13px;line-height:1.45;color:#6f6f6f;">{{ act.bigNote }}</span>
|
||||
<button onClick="{{ act.pickRec }}" style="height:42px;border:1.5px solid #dee5ee;border-radius:14px;background:#ffffff;color:#221e1f;font:700 14px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#f7f7f7;">See the recommended one</button>
|
||||
</sc-if>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section style="display:flex;flex-direction:column;gap:14px;">
|
||||
<div style="display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;">
|
||||
<h2 style="margin:0;font-weight:700;font-size:22px;letter-spacing:-0.01em;">On this PC</h2>
|
||||
<span style="font-size:13px;color:#6f6f6f;font-variant-numeric:tabular-nums;">{{ storageLabel }}</span>
|
||||
</div>
|
||||
<div style="background:#ffffff;border:1px solid #dee5ee;border-radius:20px;padding:8px;box-shadow:0 4px 4px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.04);">
|
||||
<sc-for list="{{ installedRows }}" as="row" hint-placeholder-count="2">
|
||||
<div style="{{ row.style }}display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 16px;border-radius:14px;">
|
||||
<span style="{{ row.dot }}flex:none;width:10px;height:10px;border-radius:50%;"></span>
|
||||
<div style="flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:2px;">
|
||||
<span style="font-weight:700;font-size:15px;">{{ row.name }} <code style="font-family:ui-monospace,Consolas,monospace;font-weight:400;font-size:12px;color:#6f6f6f;margin-left:6px;">{{ row.id }}</code></span>
|
||||
<span style="font-size:13px;color:#6f6f6f;font-variant-numeric:tabular-nums;">{{ row.meta }}</span>
|
||||
</div>
|
||||
<div style="display:flex;align-items:center;gap:6px;">
|
||||
<sc-if value="{{ row.canSwitch }}" hint-placeholder-val="{{ false }}">
|
||||
<button onClick="{{ row.switchTo }}" style="height:36px;padding:0 14px;border:1.5px solid #dee5ee;border-radius:12px;background:#ffffff;color:#221e1f;font:700 13px 'GT Walsheim Pro',sans-serif;cursor:pointer;" style-hover="background:#f7f7f7;">Switch</button>
|
||||
<button onClick="{{ row.remove }}" title="Delete" style="display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:10px;background:transparent;cursor:pointer;" style-hover="background:#fdecee;"><span style="display:inline-block;width:16px;height:16px;background:#6f6f6f;mask:url(icons/trash.svg) center/contain no-repeat;"></span></button>
|
||||
</sc-if>
|
||||
<sc-if value="{{ row.isRunning }}" hint-placeholder-val="{{ false }}">
|
||||
<span style="display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;background:#ecfdf5;color:#0c8a60;font-size:12px;font-weight:700;">Running</span>
|
||||
</sc-if>
|
||||
<sc-if value="{{ row.isDl }}" hint-placeholder-val="{{ false }}">
|
||||
<span style="font-size:12px;font-weight:700;color:#303030;font-variant-numeric:tabular-nums;">{{ row.dlPct }}%</span>
|
||||
</sc-if>
|
||||
</div>
|
||||
</div>
|
||||
</sc-for>
|
||||
<div style="display:flex;flex-direction:column;gap:8px;padding:14px 16px 12px;margin-top:4px;border-top:1px solid #eeeeee;">
|
||||
<div style="display:flex;height:8px;border-radius:999px;background:#eef1f4;overflow:hidden;"><div style="{{ storageBar }}height:100%;border-radius:999px;background:#2F384C;transition:width 300ms;"></div></div>
|
||||
<span style="font-size:12px;color:#6f6f6f;font-variant-numeric:tabular-nums;">{{ storageNote }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<sc-if value="{{ toast }}" hint-placeholder-val="{{ false }}">
|
||||
<div style="position:fixed;right:24px;bottom:24px;display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:14px;background:#ffffff;border:1px solid #dee5ee;box-shadow:0 10px 40px rgba(15,23,42,.08),0 1px 3px rgba(15,23,42,.06);font-size:14px;z-index:40;">
|
||||
<span style="display:inline-block;width:20px;height:20px;background:#10b981;mask:url(icons/check.svg) center/contain no-repeat;"></span>
|
||||
<span style="display:flex;flex-direction:column;gap:2px;"><span style="font-weight:700;">{{ toastTitle }}</span><span style="color:#6f6f6f;">{{ toastSub }}</span></span>
|
||||
</div>
|
||||
</sc-if>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props="{"hardware":{"editor":"enum","options":["this","laptop","workstation"],"default":"this","tsType":"'this'|'laptop'|'workstation'"}}">
|
||||
const Q = [
|
||||
['Q2_K', 'Smallest', 2.9, 90.8, '+9.1%', 96],
|
||||
['Q3_K_M', 'Compact', 3.9, 95.4, '+3.8%', 90],
|
||||
['Q4_K_M', 'Balanced', 4.9, 98.1, '+1.2%', 84],
|
||||
['Q5_K_M', 'High quality', 5.7, 99.0, '+0.5%', 78],
|
||||
['Q6_K', 'Very high', 6.6, 99.5, '+0.2%', 72],
|
||||
['Q8_0', 'Near-original', 8.5, 99.9, '+0.04%', 64],
|
||||
['BF16', 'Original', 16, 100, '0', 50],
|
||||
].map(([id, name, bits, quality, ppl, base]) => ({ id, name, bits, quality, ppl, base, size: +(30.5 * bits / 8).toFixed(1) }));
|
||||
const HW = {
|
||||
this: { label: 'RTX 4070 · 12 GB · 32 GB RAM', vram: 12, ram: 32, disk: 1000, used: 588 },
|
||||
laptop: { label: 'RTX 4060 Laptop · 8 GB · 16 GB RAM', vram: 8, ram: 16, disk: 512, used: 401 },
|
||||
workstation: { label: 'RTX 4090 · 24 GB · 64 GB RAM', vram: 24, ram: 64, disk: 2000, used: 910 },
|
||||
};
|
||||
|
||||
class Component extends DCLogic {
|
||||
state = { running: 'Q4_K_M', installed: ['Q4_K_M', 'Q3_K_M'], selected: null, dl: {}, switching: null, toast: null };
|
||||
componentWillUnmount() { (this.timers || []).forEach(clearInterval); clearTimeout(this.tt); }
|
||||
hw() { return HW[this.props.hardware ?? 'this'] || HW.this; }
|
||||
fit(q) {
|
||||
const hw = this.hw(), vAvail = hw.vram * 0.92, cap = vAvail + hw.ram * 0.6, need = +(q.size + 2.5).toFixed(1);
|
||||
if (need > cap) return { zone: 'none', need, gpuPart: Math.min(need, vAvail), sysPart: Math.max(0, cap - vAvail), over: need - cap, speed: 0, cap };
|
||||
const frac = vAvail / need, speed = q.base * (0.35 + 0.65 * Math.min(1, frac * 1.3));
|
||||
return { zone: speed >= 60 ? 'fast' : 'slow', need, gpuPart: Math.min(need, vAvail), sysPart: Math.max(0, need - vAvail), over: 0, speed, cap, onGpu: Math.min(100, Math.round(frac * 100)) };
|
||||
}
|
||||
rec() {
|
||||
const fits = Q.map(q => [q, this.fit(q)]).filter(([, f]) => f.zone !== 'none');
|
||||
const fast = fits.filter(([, f]) => f.zone === 'fast');
|
||||
if (fast.length) return fast[fast.length - 1][0].id;
|
||||
if (fits.length) return fits[0][0].id;
|
||||
return Q[0].id;
|
||||
}
|
||||
toastMsg(t, s) { this.setState({ toast: { t, s } }); clearTimeout(this.tt); this.tt = setTimeout(() => this.setState({ toast: null }), 3000); }
|
||||
download(id) {
|
||||
if (this.state.dl[id] != null) return;
|
||||
this.setState(s => ({ dl: { ...s.dl, [id]: 0 } }));
|
||||
const iv = setInterval(() => {
|
||||
const p = (this.state.dl[id] ?? 0) + 1.6 + Math.random() * 1.4;
|
||||
if (this.state.dl[id] == null) { clearInterval(iv); return; }
|
||||
if (p >= 100) { clearInterval(iv); this.setState(s => { const dl = { ...s.dl }; delete dl[id]; return { dl, installed: [...s.installed, id] }; }); this.toastMsg('Download complete', `${Q.find(q => q.id === id).name} is ready to use.`); return; }
|
||||
this.setState(s => ({ dl: { ...s.dl, [id]: p } }));
|
||||
}, 120);
|
||||
(this.timers ||= []).push(iv);
|
||||
}
|
||||
cancel(id) { this.setState(s => { const dl = { ...s.dl }; delete dl[id]; return { dl }; }); }
|
||||
switchTo(id) {
|
||||
if (this.state.switching) return;
|
||||
const steps = ['Unloading the current version…', 'Loading weights from disk…', 'Moving experts to the graphics card…', 'Warming up…'];
|
||||
this.setState({ switching: { to: id, p: 0 } });
|
||||
const iv = setInterval(() => {
|
||||
const p = this.state.switching.p + 2.6;
|
||||
if (p >= 100) { clearInterval(iv); this.setState({ running: id, switching: null }); const q = Q.find(x => x.id === id); this.toastMsg('Now running ' + q.name, `${this.fit(q).speed.toFixed(0)} tok/s on this PC.`); return; }
|
||||
this.setState({ switching: { to: id, p, step: steps[Math.min(3, Math.floor(p / 25))] } });
|
||||
}, 60);
|
||||
(this.timers ||= []).push(iv);
|
||||
}
|
||||
remove(id) { if (id === this.state.running) return; this.setState(s => ({ installed: s.installed.filter(x => x !== id) })); this.toastMsg('Version deleted', `${Q.find(q => q.id === id).size} GB freed.`); }
|
||||
|
||||
renderVals() {
|
||||
const s = this.state, hw = this.hw(), recId = this.rec();
|
||||
const selId = s.selected ?? s.running ?? recId;
|
||||
const zoneCol = { fast: ['#f3fcf8', '#10b981'], slow: ['#fffaf0', '#e39b0b'], none: ['repeating-linear-gradient(45deg,#f4f6f8 0 4px,#fafbfc 4px 8px)', '#c9d1db'] };
|
||||
const quants = Q.map((q, i) => {
|
||||
const f = this.fit(q), sel = q.id === selId, inst = s.installed.includes(q.id), run = q.id === s.running, dl = s.dl[q.id] != null;
|
||||
const [bg, zc] = zoneCol[f.zone];
|
||||
const node = run ? 'background:#10b981;border:0;box-shadow:0 0 0 5px #d1fae5;' : inst ? 'background:#2F384C;border:0;' : f.zone === 'none' ? 'background:#ffffff;border:2px dashed #c9d1db;' : 'background:#ffffff;border:2px solid #2F384C;';
|
||||
return {
|
||||
id: q.id, name: q.name, sizeLabel: q.size + ' GB',
|
||||
speedLabel: f.zone === 'none' ? 'Won\u2019t fit' : f.speed.toFixed(0) + ' tok/s',
|
||||
speedStyle: f.zone === 'none' ? 'color:#9aa3ab;' : f.zone === 'slow' ? 'color:#8a5a00;' : 'color:#0c8a60;',
|
||||
stateTag: run ? 'Running' : dl ? `Downloading ${Math.floor(s.dl[q.id])}%` : inst ? 'Downloaded' : '',
|
||||
isRec: q.id === recId,
|
||||
select: () => this.setState({ selected: q.id }),
|
||||
colStyle: (sel ? 'background:#ffffff;box-shadow:0 0 0 2px #221e1f inset,0 10px 24px rgba(15,23,42,.10);border-radius:16px;z-index:2;' : `background:${bg};`) + (i === 0 && !sel ? 'border-radius:14px 0 0 14px;' : '') + (i === Q.length - 1 && !sel ? 'border-radius:0 14px 14px 0;' : ''),
|
||||
zoneBar: `background:${zc};` + (sel ? 'left:14px;right:14px;border-radius:0 0 3px 3px;' : '') + (i === 0 ? 'border-top-left-radius:14px;' : '') + (i === Q.length - 1 ? 'border-top-right-radius:14px;' : ''),
|
||||
conStyle: i === 0 ? 'left:50%;right:0;' : i === Q.length - 1 ? 'left:0;right:50%;' : 'left:0;right:0;',
|
||||
node: node + (sel ? 'transform:scale(1.15);' : ''),
|
||||
nodeInner: run || inst ? 'width:8px;height:8px;border-radius:50%;background:#ffffff;' : 'width:0;height:0;',
|
||||
};
|
||||
});
|
||||
const q = Q.find(x => x.id === selId), f = this.fit(q), run = q.id === s.running, inst = s.installed.includes(q.id), dl = s.dl[q.id];
|
||||
const qualityTxt = q.quality >= 99.5 ? 'Practically identical to the original.' : q.quality >= 98 ? 'Hard to tell apart from the original in everyday use.' : q.quality >= 95 ? 'Slightly less precise on hard reasoning and code.' : 'Noticeably less precise. Best when memory is very tight.';
|
||||
const fitTxt = f.zone === 'none' ? `It needs about ${f.need} GB of memory, and this PC has about ${f.cap.toFixed(0)} GB free for models.` : f.sysPart < 0.05 ? 'Runs entirely on your graphics card, the fastest way to run it.' : f.zone === 'fast' ? 'Most of it runs on your graphics card. Rarely used experts sit in system memory, so it\u2019s still fast.' : 'It fits, but more of it lives in slower system memory, so replies come noticeably slower.';
|
||||
const total = Math.max(f.need, f.cap), pw = v => `width:${(v / total * 100).toFixed(1)}%;`;
|
||||
const freeDisk = hw.disk - hw.used - s.installed.reduce((a, id) => a + Q.find(x => x.id === id).size, 0);
|
||||
const chip = run ? ['Running', 'background:#ecfdf5;color:#0c8a60;'] : dl != null ? ['Downloading', 'background:#e8f4ff;color:#0668c2;'] : inst ? ['Downloaded', 'background:#f7f7f7;color:#303030;'] : f.zone === 'none' ? ['Too big', 'background:#fdecee;color:#b01a2e;'] : q.id === recId ? ['Recommended', 'background:#221e1f;color:#ffffff;'] : ['Available', 'background:#f7f7f7;color:#303030;'];
|
||||
const runQ = Q.find(x => x.id === s.running), swQ = s.switching && Q.find(x => x.id === s.switching.to);
|
||||
const modelGb = s.installed.reduce((a, id) => a + Q.find(x => x.id === id).size, 0);
|
||||
const dlLeft = dl != null ? (q.size * (1 - dl / 100)) : 0;
|
||||
|
||||
return {
|
||||
hwLabel: 'Checked for ' + hw.label,
|
||||
heroSwitching: !!s.switching, heroRunning: !s.switching && !!s.running, heroIdle: !s.switching && !s.running,
|
||||
switchName: swQ ? `${swQ.name} · ${swQ.id}` : '', switchBar: `width:${s.switching?.p ?? 0}%;transition:width 60ms linear;`, switchStep: s.switching?.step ?? 'Unloading the current version…',
|
||||
runName: runQ?.name ?? '', runQuant: runQ ? runQ.id + ' · ' + runQ.size + ' GB' : '', runSpeed: runQ ? this.fit(runQ).speed.toFixed(0) : '',
|
||||
unload: () => { this.setState({ running: null }); this.toastMsg('Model unloaded', 'Your graphics card is free.'); },
|
||||
loadRec: () => { const id = s.installed.includes(recId) ? recId : s.installed[0]; if (id) this.switchTo(id); },
|
||||
loadRecLabel: 'Load ' + (Q.find(x => x.id === (s.installed.includes(recId) ? recId : s.installed[0]))?.name ?? 'model'),
|
||||
quants,
|
||||
sel: {
|
||||
id: q.id, name: q.name, chip: chip[0], chipStyle: chip[1],
|
||||
blurb: qualityTxt + ' ' + fitTxt,
|
||||
quality: q.quality.toFixed(1), qualityBar: `width:${((q.quality - 85) / 15 * 100).toFixed(1)}%;`,
|
||||
speed: f.zone === 'none' ? '—' : f.speed.toFixed(0),
|
||||
speedBar: `width:${(f.speed / 96 * 100).toFixed(1)}%;background:${f.zone === 'slow' ? '#e39b0b' : '#10b981'};`,
|
||||
size: q.size, diskNote: inst ? 'Already on this PC' : `${freeDisk.toFixed(0)} GB free on disk`,
|
||||
need: f.need, memGpu: pw(f.gpuPart), memSys: pw(f.sysPart), memOver: pw(f.over),
|
||||
memNote: f.zone === 'none' ? `${f.over.toFixed(1)} GB more than this PC has` : f.sysPart < 0.05 ? `All ${f.need} GB on graphics card` : `${f.gpuPart.toFixed(1)} GB graphics card + ${f.sysPart.toFixed(1)} GB system`,
|
||||
bits: q.bits.toFixed(1), ppl: q.ppl, expertsVram: f.zone === 'none' ? '—' : (f.onGpu ?? 100) + '%', file: `qwen3.8-flash-next-${q.id}.gguf`,
|
||||
},
|
||||
act: {
|
||||
running: run, installed: inst && !run && dl == null, downloading: dl != null, available: !inst && dl == null && f.zone !== 'none', tooBig: !inst && dl == null && f.zone === 'none',
|
||||
switchNote: s.running ? `Switching takes about 5 seconds. Your chats stay open.` : 'Load it to start chatting.',
|
||||
switchTo: () => this.switchTo(q.id), remove: () => this.remove(q.id), btnState: s.switching ? 'opacity:.5;pointer-events:none;' : '',
|
||||
dlPct: dl != null ? Math.floor(dl) : 0, dlBar: `width:${dl ?? 0}%;`, dlNote: dl != null ? `${(q.size - dlLeft).toFixed(1)} of ${q.size} GB · 112 MB/s · about ${Math.max(1, Math.round(dlLeft * 1024 / 112 / 60))} min left` : '',
|
||||
cancel: () => this.cancel(q.id), download: () => this.download(q.id),
|
||||
availNote: f.zone === 'fast' ? `Fits well on this PC. You'll be able to switch to it as soon as it's downloaded.` : 'It will run, but slower than the recommended version.',
|
||||
bigNote: `It needs about ${f.need} GB and this PC has about ${f.cap.toFixed(0)} GB. A PC with more graphics or system memory could run it.`,
|
||||
pickRec: () => this.setState({ selected: recId }),
|
||||
},
|
||||
installedRows: [...s.installed, ...Object.keys(s.dl)].map(id => {
|
||||
const qq = Q.find(x => x.id === id), ff = this.fit(qq), isRun = id === s.running, isDl = s.dl[id] != null;
|
||||
return {
|
||||
id, name: qq.name, isRunning: isRun, isDl, canSwitch: !isRun && !isDl, dlPct: isDl ? Math.floor(s.dl[id]) : 0,
|
||||
meta: `${qq.size} GB on disk · ${qq.quality}% quality · ${ff.zone === 'none' ? 'won\u2019t fit' : ff.speed.toFixed(0) + ' tok/s'}${isDl ? ' · downloading' : ''}`,
|
||||
dot: isRun ? 'background:#10b981;box-shadow:0 0 0 4px #d1fae5;' : isDl ? 'background:#0f97ff;' : 'background:#2F384C;',
|
||||
style: id === selId ? 'background:#f7f7f7;' : '',
|
||||
switchTo: () => this.switchTo(id), remove: () => this.remove(id),
|
||||
};
|
||||
}),
|
||||
storageLabel: `${modelGb.toFixed(1)} GB of model files`,
|
||||
storageBar: `width:${((hw.used + modelGb) / hw.disk * 100).toFixed(1)}%;`,
|
||||
storageNote: `${freeDisk.toFixed(0)} GB free of ${hw.disk >= 1000 ? (hw.disk / 1000) + ' TB' : hw.disk + ' GB'} · models use ${modelGb.toFixed(1)} GB`,
|
||||
toast: !!s.toast, toastTitle: s.toast?.t ?? '', toastSub: s.toast?.s ?? '',
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1 @@
|
||||
{"scenario":"unknown-hardware","readOnly":true,"responses":{"/api/setup":{"complete":true,"dismissed":true,"step":4,"flowVersion":2}}}
|
||||
@@ -0,0 +1 @@
|
||||
[{"id":"T01","title":"One model, one name","phase":1,"deps":[],"n":11,"h":6,"m":2,"l":3},{"id":"T02","title":"Overlay layering and dialogs","phase":1,"deps":[],"n":5,"h":2,"m":3,"l":0},{"id":"T03","title":"Primary, disabled and on states","phase":1,"deps":[],"n":11,"h":1,"m":7,"l":3},{"id":"T04","title":"One error component, no fixture text","phase":1,"deps":[],"n":10,"h":0,"m":9,"l":1},{"id":"T05","title":"Show numbers when they matter","phase":1,"deps":["T01"],"n":6,"h":2,"m":2,"l":2},{"id":"T06","title":"Fix the response hover layout","phase":1,"deps":[],"n":1,"h":1,"m":0,"l":0},{"id":"T07","title":"Hide what is not built","phase":1,"deps":[],"n":2,"h":0,"m":1,"l":1},{"id":"T08","title":"Engine and Model in the main nav","phase":1,"deps":["T01"],"n":1,"h":1,"m":0,"l":0},{"id":"T09","title":"Build the single-model Model page","phase":2,"deps":["T01","T03","T04"],"n":17,"h":0,"m":9,"l":8},{"id":"T10","title":"Build Engine v3","phase":2,"deps":["T01","T02","T03"],"n":17,"h":2,"m":9,"l":6},{"id":"T11","title":"Chat: remaining findings","phase":3,"deps":["T01","T05","T06","T07"],"n":38,"h":0,"m":20,"l":18},{"id":"T12","title":"Time-skip: remaining findings","phase":3,"deps":[],"n":6,"h":0,"m":3,"l":3},{"id":"T13","title":"Serving: remaining findings","phase":3,"deps":["T04"],"n":19,"h":0,"m":6,"l":13},{"id":"T14","title":"Monitor: remaining findings","phase":3,"deps":["T05"],"n":2,"h":0,"m":1,"l":1},{"id":"T15","title":"Skills and Tasks: remaining findings","phase":3,"deps":["T02","T03","T04"],"n":9,"h":0,"m":2,"l":7},{"id":"T16","title":"Settings and Setup: remaining findings","phase":3,"deps":["T02","T09"],"n":7,"h":0,"m":2,"l":5},{"id":"T17","title":"Navigation and overlays: remaining findings","phase":3,"deps":["T02","T08"],"n":4,"h":0,"m":2,"l":2},{"id":"T18","title":"Preview panel: remaining findings","phase":3,"deps":[],"n":7,"h":0,"m":3,"l":4},{"id":"T19","title":"Dark mode: remaining findings","phase":3,"deps":["T02","T03"],"n":4,"h":0,"m":1,"l":3}]
|
||||
@@ -0,0 +1,72 @@
|
||||
# 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)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 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 |
|
||||
| 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 |
|
||||
| 3 | High | `chat-response-complete` | Reply says "Running on Starter · 0.5B Q4_K_M" — a fifth name for the model | same single formatter |
|
||||
| 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) |
|
||||
| 5 | High | `engine-*` | Header "Qwen2.5-0.5B-Instruct · Q4_K_M" + "Change model" button | version chip linking to Model page |
|
||||
| 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 |
|
||||
| 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 |
|
||||
| 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) |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `models-file-details` | Mono file source wraps mid-token ("0.5B-\nInstruct-GGUF") | ellipsis + copy button, or break at "/" |
|
||||
| 2 | Low | `serving-requests-all` | Model ID "qwen2.5-0.5b-q4km" (yet another model name) | from single formatter / real served id |
|
||||
| 3 | Low | `tasks-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.
|
||||
@@ -0,0 +1,55 @@
|
||||
# T02 · Overlay layering and dialogs
|
||||
|
||||
**Phase 1** · 5 findings (2 high, 3 medium, 0 low) · Depends on: nothing, can start now
|
||||
|
||||
## Goal
|
||||
Menus open behind dialogs, some overlays show the page through them, opening a dialog shifts and clips the sidebar, and the dark-mode scrim lightens the page. Fix this once with a z-index scale, portalled popovers and a stable scrollbar gutter.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/styles/app.css` (z-index tokens: base, sticky, sidebar, popover, dialog, dialog-popover, toast)
|
||||
- `src/components/Popover.tsx and src/components/FloatingMenu.tsx` (portal to body, layer above the open dialog)
|
||||
- `src/components/ui.tsx` (Dialog: opaque surface, scrim colour per theme, scroll lock without layout shift)
|
||||
- `src/app/CommandPalette.tsx`
|
||||
- `src/screens/Setup.tsx` (dialog max-height + internal scroll)
|
||||
- `src/components/TaskEditor.tsx` (Repeat dropdown)
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | High | `tasks-repeat-options` | Repeat dropdown opens but its options render behind the dialog (confirmed in capture QA) — can't pick a frequency by mouse | portal the listbox above the dialog layer (z-index / top-layer) |
|
||||
| 2 | High | `setup-computer` | Setup dialog is see-through: the chat page ("What would you like to do?", suggestion cards, composer) shows through and overlaps the setup content. Either the entrance fade was captured mid-way or the "Translucent" surface setting applies to dialogs | verify; dialogs always opaque (Transparency setting should not reach modal surfaces) |
|
||||
| 3 | Medium | `navigation-rename-chat` | Opening a dialog shifts the sidebar ~26px left, clipping its contents ("orkspaces", New chat button cut) — also in delete confirmation | fix scrollbar-gutter compensation (scrollbar-gutter: stable on the scroll container, not padding on body) |
|
||||
| 4 | Medium | `navigation-command-palette` | Open state is see-through — chat content shows through the palette and is unreadable (search/empty states are opaque). Same pattern as Setup | verify entrance animation vs. translucent surface; overlays must be opaque at first paint |
|
||||
| 5 | Medium | `dark-*` | Dark-mode modal scrim is a light grey wash (#4a4a4a-ish) rather than a darkening overlay, so the page behind looks washed out and the dialog has little contrast against it | scrim rgba(0,0,0,.55) in dark |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
_None._
|
||||
|
||||
## 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:
|
||||
- [ ] In the task editor, the Repeat dropdown opens above the dialog and an option can be picked with mouse and keyboard.
|
||||
- [ ] Opening any dialog does not move the sidebar (compare its x position before and after; use scrollbar-gutter: stable or compensate padding).
|
||||
- [ ] Setup and the command palette have opaque surfaces in both themes. First confirm the see-through look is not just a mid-animation capture; if it is, note that and skip.
|
||||
- [ ] Dark mode scrim darkens the page (e.g. rgba(0,0,0,.55)).
|
||||
- [ ] Setup fits a 1280×720 window with its own scroll area; the primary action stays visible.
|
||||
- [ ] 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/`:
|
||||
- `tasks-repeat-options-light.png`
|
||||
- `setup-computer-light.png`
|
||||
- `navigation-rename-chat-light.png`
|
||||
- `navigation-command-palette-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t02-overlay-layering` with message `T02: Overlay layering and dialogs`.
|
||||
- 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.
|
||||
@@ -0,0 +1,55 @@
|
||||
# T03 · Primary, disabled and on states
|
||||
|
||||
**Phase 1** · 11 findings (1 high, 7 medium, 3 low) · Depends on: nothing, can start now
|
||||
|
||||
## Goal
|
||||
Enabled and disabled primary buttons look the same, dark-mode primary buttons are green on green, toggle "on" is barely visible, and checkboxes use browser blue. Define the states once in the shared components.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/components/ui.tsx` (Button, Toggle, Checkbox)
|
||||
- `src/styles/app.css`
|
||||
- `src/styles/kit/` (only if the token lives there; keep sync:kit working)
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | High | `GLOBAL` | Primary buttons (New chat, Send, Approve, Open preview) use the same pale-green tint enabled or disabled; Approve looks disabled, Send-enabled ≈ Send-disabled | solid #10b981 + white for enabled; neutral grey for disabled |
|
||||
| 2 | Medium | `GLOBAL-chat` | At 1280×720 the composer (3-line empty textarea + toolbar + stats) takes ~250px; reading area is ~420px | 1-line composer that grows; stats inline in toolbar |
|
||||
| 3 | Medium | `GLOBAL` | Native checkboxes render browser blue (#2563eb) — off-palette | accent-color: #10b981 (or ink) app-wide |
|
||||
| 4 | Medium | `skills-*` | Toggle "on" state is pale mint with a white knob — barely distinguishable from "off" | solid #10b981 track when on |
|
||||
| 5 | Medium | `tasks-populated` | Row actions are unlabeled icons (pencil, paper-plane for "run now", toggle); paper-plane reads as "send" | tooltips + text "Run now"; label the toggle "On schedule" |
|
||||
| 6 | Medium | `tasks-detail-*` | Detail view keeps list chrome (Demo note, "Deleted tasks" checkbox, search, sort) and the generic subtitle; "All tasks" is a centred underlined link above content | breadcrumb "Tasks › Daily briefing" top-left; hide list controls |
|
||||
| 7 | Medium | `dark-*` | Primary buttons in dark (Approve, Open preview, Save setup and load, New chat) are dark green fill with green text (~3:1) | solid #10b981 with #0b1f17 or white text; same rule as light |
|
||||
| 8 | Medium | `dark-skills-overview / dark-skills-edit` | "On" toggles in dark are a dark green track with a dark knob — on vs off is hard to tell | bright #10b981 track + white knob when on |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `GLOBAL-sidebar` | Task rows show pencil + trash icons permanently on every row | reveal on hover/focus |
|
||||
| 2 | Low | `dark-*` | Disabled "Save for next load" in dark is near-invisible green-on-green | neutral disabled style shared with light |
|
||||
| 3 | Low | `dark-preview-pdf / dark-preview-website` | PDF page and website preview stay bright white/cream inside the dark panel — expected for document content, but there's no frame or dimming option | thin border + optional "Dim document" toggle |
|
||||
|
||||
## 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:
|
||||
- [ ] Primary enabled: solid #10b981 with white text, both themes. Disabled: neutral fill (#eef1f4 light / a neutral grey in dark) with muted text, not a green tint.
|
||||
- [ ] Toggle on: bright green track and white knob, both themes. Off: neutral track.
|
||||
- [ ] Checkboxes use the brand green via accent-color or a custom control.
|
||||
- [ ] `npm run contrast` passes; add the new states to it if they are not covered.
|
||||
- [ ] 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/`:
|
||||
- `tasks-populated-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t03-control-states` with message `T03: Primary, disabled and on states`.
|
||||
- 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.
|
||||
@@ -0,0 +1,67 @@
|
||||
# T04 · One error component, no fixture text
|
||||
|
||||
**Phase 1** · 10 findings (0 high, 9 medium, 1 low) · Depends on: nothing, can start now
|
||||
|
||||
## Goal
|
||||
Errors render as plain body text in seven places and most start with "Fixture:". Add one ErrorNotice component (icon, what happened, what to do, optional action) and use it everywhere.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/components/ui.tsx` (new ErrorNotice)
|
||||
- `src/screens/Serving.tsx`
|
||||
- `src/components/CloudflareDialog.tsx`
|
||||
- `src/screens/Models.tsx`
|
||||
- `src/screens/Skills.tsx`
|
||||
- `src/screens/Tasks.tsx / src/components/TaskEditor.tsx`
|
||||
- `src/screens/Setup.tsx`
|
||||
- `src/screens/Chat.tsx` (open-website error)
|
||||
- `tests/ui-fixture-host.mjs` (check where the "Fixture:" prefix comes from)
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `chat-open-website-invalid` | Error "Enter a full http:// or https:// address." is plain black body text below the helper; field has no error state | red text directly under field + red border + aria-invalid; helper below |
|
||||
| 2 | Medium | `chat-composer-error` | Composer error squeezed into the toolbar between "Auto" and Send in 11px red | error line above the composer with icon |
|
||||
| 3 | Medium | `serving-requests-all` | Status column is lowercase plain text (queued / generating / done / error); errors aren't red | status chips: grey queued, blue generating, green done, red error |
|
||||
| 4 | Medium | `serving-request-error` | Error reason shows fixture text: "Fixture: upstream response timed out after 4 seconds." | strip fixture prefix; plain cause + next step |
|
||||
| 5 | Medium | `serving-cloudflare-error` | Error is plain 16px black body text ("Fixture: Cloudflare could not establish…") with no error styling; buttons unchanged | red error callout with icon, cause, and "Try again" as the primary |
|
||||
| 6 | Medium | `skills-refresh-error` | Error is plain text at the bottom: "Fixture: skill service unavailable." — no styling, no retry | error banner under the header with Retry |
|
||||
| 7 | Medium | `GLOBAL` | Fixture text leaks into UI copy ("Fixture: …") in Serving, Cloudflare, Models, Skills errors | strip in fixture layer; errors use one component (icon, cause, action) |
|
||||
| 8 | Medium | `tasks-populated` | Failed run shows plain black text "Fixture: the demo model returned an invalid response." under the row | red inline status "Last run failed · View" (no fixture text) |
|
||||
| 9 | Medium | `setup-prepare-error` | Error state keeps the heading "Preparing your model" (with a visible focus box around it), shows "Preparation stopped" in plain bold, and ends with fixture text | heading "Couldn't prepare the model", red icon, cause, Retry; focus without visible ring on headings |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `chat-markdown-table` | Status column "Ready" as plain text far right | status chip; tighter column widths |
|
||||
|
||||
## 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 error state listed below uses ErrorNotice.
|
||||
- [ ] Find the source of "Fixture:". If it is only in the fixture host, leave the host alone but make sure production code never prints it; if production code adds it, remove it.
|
||||
- [ ] Errors are announced (role="alert" or aria-live="polite").
|
||||
- [ ] 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-open-website-invalid-light.png`
|
||||
- `chat-markdown-table-light.png`
|
||||
- `chat-composer-error-light.png`
|
||||
- `serving-requests-all-light.png`
|
||||
- `serving-request-error-light.png`
|
||||
- `serving-cloudflare-error-light.png`
|
||||
- `skills-refresh-error-light.png`
|
||||
- `tasks-populated-light.png`
|
||||
- `setup-prepare-error-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t04-error-notice` with message `T04: One error component, no fixture text`.
|
||||
- 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.
|
||||
@@ -0,0 +1,57 @@
|
||||
# T05 · Show numbers when they matter
|
||||
|
||||
**Phase 1** · 6 findings (2 high, 2 medium, 2 low) · Depends on: T01
|
||||
|
||||
## Goal
|
||||
The composer stats show "—" while generating, Monitor reads 0.0 tok/s at rest, percentages have no labels, and memory can read 20.0 / 16 GB. Show live values, label every unit, and catch impossible ones.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/components/ChatToolbar.tsx`
|
||||
- `src/lib/chat-metrics.ts`
|
||||
- `src/components/ContextRing.tsx`
|
||||
- `src/components/TelemetryPopover.tsx`
|
||||
- `src/screens/Monitor.tsx`
|
||||
- `src/lib/hardware-summary.ts`
|
||||
- `server/monitor.mjs, server/hardware.mjs`
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `chat-empty` | Stats row idle: "— tokens/s · 0 total tokens · ◌ —" | hide until first reply |
|
||||
| 2 | High | `chat-generating` | Stats row shows "— tokens/s · — total tokens" WHILE generating — the one moment speed matters | show live tok/s during stream |
|
||||
| 3 | Medium | `chat-showcase-code` | "21%" in stats row unlabeled | "21% of context" |
|
||||
| 4 | High | `monitor-generating` | "System memory 20.0 / 16 GB" — used exceeds total, shown without warning | cap/flag; if real, show "Over by 4 GB · swapping" in red |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `chat-generating` | Sidebar model dot turns blue during generation, no label/tooltip; "Serving 1" badge unexplained | tooltip "Generating"; badge → "1 request" |
|
||||
| 2 | Low | `monitor-*` | Header right icon (image glyph) has no label | tooltip "Save snapshot" or text button |
|
||||
|
||||
## 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:
|
||||
- [ ] While generating, the stats row shows live tok/s. When idle it shows the last reply (e.g. "43.8 tok/s · last reply") or is hidden.
|
||||
- [ ] Every percentage has a label ("21% of context").
|
||||
- [ ] Used memory can never exceed total. Clamp it and log a warning, and make both free-memory figures come from one source.
|
||||
- [ ] Add unit tests for the clamping and idle formatting.
|
||||
- [ ] 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-generating-light.png`
|
||||
- `chat-showcase-code-light.png`
|
||||
- `monitor-generating-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t05-live-numbers` with message `T05: Show numbers when they matter`.
|
||||
- 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.
|
||||
@@ -0,0 +1,43 @@
|
||||
# T06 · Fix the response hover layout
|
||||
|
||||
**Phase 1** · 1 findings (1 high, 0 medium, 0 low) · Depends on: nothing, can start now
|
||||
|
||||
## Goal
|
||||
Hovering a reply opens a side column about 20px wide, its text wraps one character per line, and the code block is pushed out of view. Message actions must never change layout.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/screens/Chat.tsx` (message actions)
|
||||
- `src/styles/app.css`
|
||||
- `src/components/Markdown.tsx` (only if the code block width is involved)
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | High | `chat-response-actions` | LAYOUT BUG: hovering a response opens a ~20px side column; its meta text ("…tok/s · 4.2s") wraps one character per line and the code block is pushed left/clipped ("rt function", "turn notes") | actions row horizontal under the message, absolutely positioned; never reflow content |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
_None._
|
||||
|
||||
## 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:
|
||||
- [ ] Hovering or focusing a reply shows the actions in a row under the message, without moving any content (measure the message bounding box before and after hover; it must be identical).
|
||||
- [ ] Meta text ("tok/s · 4.2s") sits on one line.
|
||||
- [ ] Works with the keyboard (focus-within) and on touch (always visible on narrow screens).
|
||||
- [ ] 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-response-actions-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t06-response-hover` with message `T06: Fix the response hover layout`.
|
||||
- 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.
|
||||
@@ -0,0 +1,49 @@
|
||||
# T07 · Hide what is not built
|
||||
|
||||
**Phase 1** · 2 findings (0 high, 1 medium, 1 low) · Depends on: nothing, can start now
|
||||
|
||||
## Goal
|
||||
"Isn't connected in this preview" appears several times, a Session log dialog has only a Done button, and "Demo" labels sit on single values. Hide unbuilt controls and show one "Preview build" badge instead.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/components/ComposerControls.tsx`
|
||||
- `src/screens/Chat.tsx`
|
||||
- `src/screens/Monitor.tsx`
|
||||
- `src/screens/Tasks.tsx`
|
||||
- `src/screens/Models.tsx`
|
||||
- `src/components/layout.tsx` (one header badge)
|
||||
- `src/lib/lifecycle.ts or src/lib/config.ts` (one feature-flag map)
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `GLOBAL` | "isn't connected in this preview/build" footnotes in 5+ places (thinking menu, tool access, compaction, session log, add menu) | hide unbuilt controls, or one "Preview build" badge |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `chat-session-log` | Title Case "Download Session Log"; rest of app is sentence case | "Download session log" |
|
||||
|
||||
## 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:
|
||||
- [ ] `grep -rn "isn.t connected in this preview" src` returns nothing rendered by default.
|
||||
- [ ] There are no per-value "Demo" labels. One "Preview build" badge appears in the app header when the demo engine is active.
|
||||
- [ ] Hidden controls are behind a feature flag, not deleted, so they can return when they are built.
|
||||
- [ ] 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-session-log-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t07-hide-unbuilt` with message `T07: Hide what is not built`.
|
||||
- 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.
|
||||
@@ -0,0 +1,45 @@
|
||||
# T08 · Engine and Model in the main nav
|
||||
|
||||
**Phase 1** · 1 findings (1 high, 0 medium, 0 low) · Depends on: T01
|
||||
|
||||
## Goal
|
||||
Engine tuning is what makes Strata different, but it sits under More. Put Engine and Model in the primary nav and make the sidebar model card open Model.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/app/Sidebar.tsx`
|
||||
- `src/lib/router.ts`
|
||||
- `src/lib/commands.ts` (command palette entries)
|
||||
- `src/app/App.tsx`
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | High | `navigation-more` | Engine and Models live in the "More" popover | promote Engine (and Model) to primary nav |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
_None._
|
||||
|
||||
## 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:
|
||||
- [ ] Sidebar order: Chat, Tasks, Skills, Monitor, Engine, Model, then More (Serving, Settings…). Keep the collapsed rail in the same order.
|
||||
- [ ] The sidebar model card opens Model.
|
||||
- [ ] The command palette lists Engine and Model.
|
||||
- [ ] Existing routes still resolve (keep redirects from old paths).
|
||||
- [ ] 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/`:
|
||||
- `navigation-more-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t08-nav-engine-model` with message `T08: Engine and Model in the main nav`.
|
||||
- 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.
|
||||
@@ -0,0 +1,77 @@
|
||||
# T09 · Build the single-model Model page
|
||||
|
||||
**Phase 2** · 17 findings (0 high, 9 medium, 8 low) · Depends on: T01, T03, T04
|
||||
|
||||
## Goal
|
||||
Replace the multi-model library (Models) and Setup step 2 with the single-model page in designs/Model.dc.html: a hero for the running version, a ladder of versions marked by how well each fits this PC, a detail panel with one action, and the list of installed versions.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/screens/Models.tsx` (rewrite as Model)
|
||||
- `src/components/ModelCatalog.tsx` (remove or reduce to version list)
|
||||
- `src/screens/Setup.tsx` (step 2 becomes "pick a version", reusing the fit logic)
|
||||
- `src/lib/types.ts` (Version, Fit)
|
||||
- `server/catalog.mjs, server/models.mjs` (versions + fit for detected hardware)
|
||||
- `designs/Model.dc.html` (reference: structure, copy, colours, fit rules)
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `models-overview` | Profile legend is a plain-text line with slashes ("Agentic · Tools… / Balanced · … / Performance · …") | drop with profiles; if kept, chips with tooltips |
|
||||
| 2 | Medium | `models-recommendation-details` | Balanced and Performance explanations are the same sentence twice | unique copy or one line |
|
||||
| 3 | Medium | `models-context-64k` | At 64K every profile says "No fitting model found", each with its own "Review context" + "Why?" — dead end ×3 | one message: "64K needs 2.1 GB more · Use 32K" with a one-click fix |
|
||||
| 4 | Medium | `models-none-installed` | Floating "2 of 3 selected · Compare variants" tray overlaps the empty state's help text, selecting items that aren't visible | clear selection when the list filters to empty; never overlay content |
|
||||
| 5 | Medium | `models-hardware-unavailable` | "Check computer" + "Why?" repeated on three rows plus a fourth line saying the same | one banner with one action |
|
||||
| 6 | Medium | `models-hardware-unavailable-dialog` | Dialog says "Use guided setup to check this computer" but has no button | add "Run guided setup" primary |
|
||||
| 7 | Medium | `models-load-confirmation` | Body is a config string ("32K context · batch 2,048 · INT8 cache · Automatic · 2 CPU threads") and "your separate draft" is unexplained | plain sentence: "Switch all chats to Balanced (4.9 GB). Takes ~5 s."; details behind disclosure |
|
||||
| 8 | Medium | `models-load-error` | Error copy exposes internals ("Fixture: model load failed; installed files retained."); dialog then offers two retries ("Try again" and "Save setup and load") | plain cause + one retry; keep fixture text out of UI |
|
||||
| 9 | Medium | `setup-model` | Setup dialog is taller than a 720px window; title and footer scroll out of view | max-height: calc(100vh - 48px) with scrolling body and sticky footer |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `models-overview` | "Global · all chats" floats above the buttons as an orphan label | put under the model name |
|
||||
| 2 | Low | `models-overview` | Reading speed label blue, Answer speed label green — colour code used only on this page | ink labels; one accent |
|
||||
| 3 | Low | `models-recommendation-details` | "Start answering · Not estimated" shown as a value | hide unknown rows |
|
||||
| 4 | Low | `models-filters` | Pluralisation: "1 variants", "1 quantizations", "1 installed · 1 variants" | pluralise |
|
||||
| 5 | Low | `models-filters` | "Include incompatible variants" checkbox label is 16px next to 14px filter pills | match control text size |
|
||||
| 6 | Low | `models-storage` | Storage shows a raw temp path with no actions | "Open folder" / "Change location" |
|
||||
| 7 | Low | `models-large-catalog` | Demo button label "Simulate download" | "Download"; mark demo once in header |
|
||||
| 8 | Low | `models-context-options` | Context menu stops at 64K | list matches engine range (up to 1M) |
|
||||
|
||||
## 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:
|
||||
- [ ] All seven versions show size, speed on this PC and a fit zone (fast / slower / too big). "Recommended" is the best-quality version that is still fast.
|
||||
- [ ] The detail panel action matches the state: Switch + Delete, Download (progress + cancel), Unload, or "Too big for this PC".
|
||||
- [ ] Fit is computed from the real hardware the host reports; the reference design's numbers are placeholders.
|
||||
- [ ] Setup step 2 uses the same component and the same recommendation.
|
||||
- [ ] Light and dark both pass `npm run contrast`.
|
||||
- [ ] 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/`:
|
||||
- `models-overview-light.png`
|
||||
- `models-recommendation-details-light.png`
|
||||
- `models-filters-light.png`
|
||||
- `models-storage-light.png`
|
||||
- `models-context-64k-light.png`
|
||||
- `models-none-installed-light.png`
|
||||
- `models-hardware-unavailable-light.png`
|
||||
- `models-hardware-unavailable-dialog-light.png`
|
||||
- `models-load-confirmation-light.png`
|
||||
- `models-large-catalog-light.png`
|
||||
- `models-load-error-light.png`
|
||||
- `models-context-options-light.png`
|
||||
- `setup-model-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t09-model-page` with message `T09: Build the single-model Model page`.
|
||||
- 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.
|
||||
@@ -0,0 +1,77 @@
|
||||
# T10 · Build Engine v3
|
||||
|
||||
**Phase 2** · 17 findings (2 high, 9 medium, 6 low) · Depends on: T01, T02, T03
|
||||
|
||||
## Goal
|
||||
Replace Tuning with designs/Engine v3.dc.html: auto-tune with the live animation, workloads with the two modes (leave room for other apps / full speed), and an Expert mode with every parameter, presets and the raw config editor.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/screens/Tuning.tsx` (rewrite as Engine)
|
||||
- `src/components/EngineExperience.tsx`
|
||||
- `src/lib/tuning-controls.ts`
|
||||
- `src/lib/config.ts`
|
||||
- `src/lib/experience.ts`
|
||||
- `server/engine.mjs`
|
||||
- `designs/Engine v3.dc.html` (reference: structure, copy, motion timing, colours)
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `engine-beginner` | Dial tick labels (4K 8K 16K 32K) sit in a straight row under a 270° dial, not at their ticks | labels around the arc, or use a slider |
|
||||
| 2 | Medium | `engine-beginner` | Context range tops out at 32K; model supports 1M | range from engine capabilities |
|
||||
| 3 | Medium | `engine-beginner` | "Reset" link is very pale grey (~2:1) | ink-muted #6f6f6f minimum |
|
||||
| 4 | Medium | `engine-*` | Sticky action bar is ~140px tall with "More actions", disabled "Apply now…", disabled "Save for next load", plus two lines of notes; covers content and both actions look disabled at rest | one-line bar that appears only when there are changes ("2 changes · Discard · Save") |
|
||||
| 5 | Medium | `engine-resource-controls` | Beginner mode exposes GPU/layer split, KV mode (INT8), CPU threads | move to Expert; Beginner gets workload + headroom only |
|
||||
| 6 | Medium | `engine-expert` | Two stacked segmented controls (Beginner/Expert, Parameters/Raw config) look identical | mode as a toggle in the header; sub-tabs as underline tabs |
|
||||
| 7 | High | `engine-config-invalid` | Invalid JSON shows no visible error; the error line sits under the sticky action bar; Export silently disables | inline error banner above the editor with line/column; keep editor bottom clear of the bar |
|
||||
| 8 | Medium | `engine-expert-advanced` | Several Expert parameters (RoPE scaling, Expert cache / RAM mode) are "Preserved only · adapter does not apply this value" — shown as live inputs in small grey caption | disable the control + "Not used by this engine" tag, or hide behind "Show unsupported" |
|
||||
| 9 | Medium | `engine-expert-changed-only-empty` | Status says "Draft" and "Save for next load" is enabled while "Changed only (0)" | Draft/Save only when changes > 0 |
|
||||
| 10 | High | `engine-expert-*` | At 1280×720 Expert mode shows ONE parameter per screen: mode tabs, sub-tabs, two disclosures, filter row and the sticky bar take ~85% of the height | compact table rows (name · key · value · revert), collapse header chrome on scroll |
|
||||
| 11 | Medium | `engine-expert-server` | "Server access (server.host)" duplicates the Serving page setting, and is "Preserved only" here | one home: Serving; link from Expert |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `engine-prompt-batch` | Second dial in blue (context dial is green); "Automatic · recommended 2,048" checkbox unchecked while value is 2,048 | one accent; Automatic on by default, dial disabled until unchecked |
|
||||
| 2 | Low | `engine-raw-config` | Plain textarea: no line numbers, highlighting or inline validation; bottom clipped by sticky bar | code editor with gutter errors |
|
||||
| 3 | Low | `engine-*` | Two-column layout leaves right column empty below "Expected experience" | sticky summary card on the right |
|
||||
| 4 | Low | `engine-discard-confirmation` | "Return all three editors…" — user doesn't know there are three | "Discard all unsaved engine changes" |
|
||||
| 5 | Low | `engine-actions` | Recommended defaults / Validate / Speed test hidden in "More actions" | surface "Reset to recommended" and "Run speed test" as visible buttons |
|
||||
| 6 | Low | `engine-adapter-details` | "llama.cpp adapter… native Strata configuration requires a different adapter" | move to Expert › About engine |
|
||||
|
||||
## 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:
|
||||
- [ ] Beginner mode shows no expert controls.
|
||||
- [ ] Expert mode shows all parameters on one scrollable page grouped in sections; at 1280×720 more than one section is visible.
|
||||
- [ ] Invalid raw config shows an inline error next to the editor and disables Apply; the sticky action bar never covers content.
|
||||
- [ ] Auto-tune motion respects prefers-reduced-motion. Run `npm run motion` and `npm run motion:budget`.
|
||||
- [ ] The header shows the model via formatModelName() and has no "Change model".
|
||||
- [ ] 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/`:
|
||||
- `engine-beginner-light.png`
|
||||
- `engine-resource-controls-light.png`
|
||||
- `engine-prompt-batch-light.png`
|
||||
- `engine-expert-light.png`
|
||||
- `engine-raw-config-light.png`
|
||||
- `engine-config-invalid-light.png`
|
||||
- `engine-discard-confirmation-light.png`
|
||||
- `engine-actions-light.png`
|
||||
- `engine-adapter-details-light.png`
|
||||
- `engine-expert-advanced-light.png`
|
||||
- `engine-expert-changed-only-empty-light.png`
|
||||
- `engine-expert-server-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t10-engine-page` with message `T10: Build Engine v3`.
|
||||
- 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.
|
||||
@@ -0,0 +1,105 @@
|
||||
# T11 · Chat: remaining findings
|
||||
|
||||
**Phase 3** · 38 findings (0 high, 20 medium, 18 low) · Depends on: T01, T05, T06, T07
|
||||
|
||||
## Goal
|
||||
Fix the remaining Chat findings after the shared fixes have landed. Skip any finding that a phase 1 task already resolved.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/screens/Chat.tsx`
|
||||
- `src/components/ChatToolbar.tsx`
|
||||
- `src/components/ComposerControls.tsx`
|
||||
- `src/components/ArtifactCard.tsx`
|
||||
- `src/components/ChatMedia.tsx`
|
||||
- `src/components/SubagentRow.tsx`
|
||||
- `src/components/Markdown.tsx`
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `chat-empty` | "0 subagents ▾" dropdown with zero items | hide at 0 |
|
||||
| 2 | Medium | `chat-empty` | Disabled Send = pale green on pale green, reads as selected | neutral disabled style |
|
||||
| 3 | Medium | `chat-generating` | Header title clipped mid-word ("…short paragrap") with no ellipsis | text-overflow: ellipsis + title attr |
|
||||
| 4 | Medium | `chat-model-picker` | "Running" rendered as a disabled outlined button | status chip (green dot + text), not a button |
|
||||
| 5 | Medium | `chat-template` | Template cards carry a ▾ chevron, implying expand, but the action is "pick" | remove chevron; whole card selectable, "Use template" on hover |
|
||||
| 6 | Medium | `chat-session-log` | Dialog for an unbuilt feature ("will be connected in a future build"), only "Done" | hide the entry until it works |
|
||||
| 7 | Medium | `chat-slash-commands` | /new and /clear have identical descriptions | merge, or /clear = "Clear this conversation" |
|
||||
| 8 | Medium | `chat-slash-commands` | /time-skip "Try the two-stream UI demo · add a prompt" — internal jargon | "Try two versions and keep the better one" |
|
||||
| 9 | Medium | `chat-subagents-statuses` | Failed subagent ("Preview server did not respond") offers no action | Retry / View log on failed rows |
|
||||
| 10 | Medium | `chat-context-length` | Context limit shows 128K; model supports up to 1M (Engine setting) | read limit from engine config |
|
||||
| 11 | Medium | `chat-approval-collapsed` | "▶ Read project notes · done" uses native ▶ and bold H3 weight — louder than the approval card it sits above | small grey row with chevron icon, like tool calls elsewhere |
|
||||
| 12 | Medium | `chat-approval-approved` | Approved change collapses to "· done"; denied says "· denied" — asymmetric, and "done" hides that a write happened | "Approved" (green check) / "Denied" (grey x) |
|
||||
| 13 | Medium | `chat-artifact-cards` | File cards: subtitle "Website · Open in sidebar" reads like a link but isn't; chevron opens a menu — primary click unclear | whole card opens in sidebar; ••• menu for the rest |
|
||||
| 14 | Medium | `chat-message-actions` | Hover "branch" icon button sits on top of the user bubble and clips its text ("…a conversat") | place actions below the bubble with the other icons |
|
||||
| 15 | Medium | `chat-edit-branch` | A new branch shows the empty-state hero + suggestions while the composer holds the edited message | hide empty state in branches; show "Editing from: …" note above composer |
|
||||
| 16 | Medium | `chat-add-menu` | + menu mixes demo entries ("Try preview examples", "Try chat showcase") with real actions; no way to attach a file to the message | Attach file / Open website; move demos to Help |
|
||||
| 17 | Medium | `chat-tool-access` | Read only / Workspace write / Full access with no description; Full access not marked as risky | one-line description each; amber for Full access |
|
||||
| 18 | Medium | `chat-no-conversations` | Two different empty states: this one (icon, small heading, "Ask a question, work with text…", extra New chat button) vs chat-empty (big heading, suggestions, different subline) | one empty state; drop the redundant New chat button (composer is already live) |
|
||||
| 19 | Medium | `chat-response-complete` | Markdown not rendered: "*where*" shows literal asterisks | fix inline emphasis parsing |
|
||||
| 20 | Medium | `chat-response-complete` | After a reply, stats show "60 tokens/s · — total tokens · 1%" — total missing | populate total; label 1% ("1% of context") |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `chat-empty` | 3 suggestion cards in 2-col grid leave an orphan | 3-col or 1 row of 3 |
|
||||
| 2 | Low | `chat-generating` | Two chats both titled "Chat showcase · code, to…" in list | dedupe titles / show distinguishing snippet |
|
||||
| 3 | Low | `chat-generating` | Unexplained green dot on "Build a calm website…" list item | legend/tooltip ("Unread" / "Running task") |
|
||||
| 4 | Low | `chat-template` | Templates duplicate but differ from empty-state suggestions (two sets of starters) | single set of starters |
|
||||
| 5 | Low | `chat-slash-commands` | /setup "choose model", /model "Open Models" — plural/multi-model language | "/model Open Model" |
|
||||
| 6 | Low | `chat-slash-commands` | Send turns active with just "/" typed | keep disabled while the input is only a command prefix |
|
||||
| 7 | Low | `chat-open-website-invalid` | "Open preview" same pale-green style whether valid or not | disabled style until valid |
|
||||
| 8 | Low | `chat-showcase-code` | Text "More" under assistant message next to icon actions | ••• icon button |
|
||||
| 9 | Low | `chat-session-statistics` | "LLM time" jargon; "Turns / tool calls 1 / 2" slash-pair | "Thinking & writing"; separate rows |
|
||||
| 10 | Low | `chat-context-length` | Footnote about compaction "not connected in this build" | remove until built |
|
||||
| 11 | Low | `chat-approval-collapsed` | Expand chevron floats mid-row, detached from title and from actions | put chevron at far right or next to title |
|
||||
| 12 | Low | `chat-approval-approved` | Section heading "A change waiting for you" stays after it's resolved | update heading or treat as static demo copy |
|
||||
| 13 | Low | `chat-gif-paused` | With preview open, chat column narrows and the composer wraps the model chip onto its own row; visible scrollbar between panes | collapse composer controls into icons at narrow widths |
|
||||
| 14 | Low | `chat-artifact-cards` | Blockquote "A calmer place…" is indented with no quote bar, reads as misalignment | 3px left rule + muted text |
|
||||
| 15 | Low | `chat-artifact-actions` | Menu says "Show in file explorer" while copy above says "Finder" | OS-aware label |
|
||||
| 16 | Low | `chat-message-actions` | "‹ Latest" pill doesn't say where you are | "Branch 1 of 2 · Back to latest" |
|
||||
| 17 | Low | `chat-edit-branch` | Title gets "(branch)" appended in parentheses | branch icon chip after title |
|
||||
| 18 | Low | `chat-thinking-menu` | Auto/Low/Medium/High with no hint of trade-off | one-line hint each ("Faster" … "Most careful") |
|
||||
|
||||
## 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:
|
||||
- [ ] Each finding above is resolved in the running app, in light and dark mode.
|
||||
- [ ] 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-generating-light.png`
|
||||
- `chat-model-picker-light.png`
|
||||
- `chat-template-light.png`
|
||||
- `chat-session-log-light.png`
|
||||
- `chat-slash-commands-light.png`
|
||||
- `chat-open-website-invalid-light.png`
|
||||
- `chat-showcase-code-light.png`
|
||||
- `chat-subagents-statuses-light.png`
|
||||
- `chat-session-statistics-light.png`
|
||||
- `chat-context-length-light.png`
|
||||
- `chat-approval-collapsed-light.png`
|
||||
- `chat-approval-approved-light.png`
|
||||
- `chat-gif-paused-light.png`
|
||||
- `chat-artifact-cards-light.png`
|
||||
- `chat-artifact-actions-light.png`
|
||||
- `chat-message-actions-light.png`
|
||||
- `chat-edit-branch-light.png`
|
||||
- `chat-add-menu-light.png`
|
||||
- `chat-thinking-menu-light.png`
|
||||
- `chat-tool-access-light.png`
|
||||
- `chat-no-conversations-light.png`
|
||||
- `chat-response-complete-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t11-chat` with message `T11: Chat: remaining findings`.
|
||||
- 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.
|
||||
@@ -0,0 +1,50 @@
|
||||
# T12 · Time-skip: remaining findings
|
||||
|
||||
**Phase 3** · 6 findings (0 high, 3 medium, 3 low) · Depends on: nothing, can start now
|
||||
|
||||
## Goal
|
||||
Give the two versions stable names across every state, use plain words, and let people use the version that was kept.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/components/TimeSkipPanel.tsx`
|
||||
- `src/lib/time-skip.ts`
|
||||
- `src/components/ArtifactPanel.tsx`
|
||||
- `src/screens/Chat.tsx` (inline card)
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `timeskip-building` | Small amber status text ("Reset needs work", "Content overflows") at ~11px is low contrast on white | darker amber (#8a5a00) or icon + ink text |
|
||||
| 2 | Medium | `timeskip-*` | Stream A is called "Original", then "Revision", then "Revision A"; B is "Alternative", "Candidate B", "Selected version" across states | fixed names: "Version A" / "Version B", with stage as a sub-label |
|
||||
| 3 | Medium | `timeskip-complete` | Finished panel offers only "Replay demo" — no way to open/apply the kept version | primary "Open version B" + secondary "Compare" |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `timeskip-building` | Header chips: A shows a ✓, B shows a ▾ — two different affordances for the same kind of item | same control for both; ✓ only on the winner |
|
||||
| 2 | Low | `timeskip-*` | "First draft saved ▾" chevron: unclear what it opens | make it a plain label or a history menu with a visible title |
|
||||
| 3 | Low | `timeskip-inspect-original` | Scrolled list slides under the panel header with no divider/shadow; first row half-hidden | sticky header with bottom border when scrolled |
|
||||
|
||||
## 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:
|
||||
- [ ] `node --test tests/time-skip.test.mjs` passes.
|
||||
- [ ] 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/`:
|
||||
- `timeskip-building-light.png`
|
||||
- `timeskip-complete-light.png`
|
||||
- `timeskip-inspect-original-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t12-time-skip` with message `T12: Time-skip: remaining findings`.
|
||||
- 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.
|
||||
@@ -0,0 +1,75 @@
|
||||
# T13 · Serving: remaining findings
|
||||
|
||||
**Phase 3** · 19 findings (0 high, 6 medium, 13 low) · Depends on: T04
|
||||
|
||||
## Goal
|
||||
Polish Serving: status chips, unlabelled icon actions, the hidden Connect guide, the table and the API key flow.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/screens/Serving.tsx`
|
||||
- `src/lib/serving-state.ts`
|
||||
- `src/components/CloudflareDialog.tsx`
|
||||
- `server/serving.mjs, server/local-share.mjs`
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `serving-request-queued` | Queued request can't be cancelled (only generating shows "Cancel request") | Cancel for queued too |
|
||||
| 2 | Medium | `serving-key-empty` | Copy icon shown next to an empty key field; "Generate" and "Enter your own" have equal weight | generate on open; "Use my own key" link; copy only when a value exists |
|
||||
| 3 | Medium | `serving-local-sharing-*` | Local sharing opens from an unlabeled link icon at the end of the Status row | labelled row in the summary card: "Local network · Off · Share" |
|
||||
| 4 | Medium | `serving-local-sharing-manage` | The shared network URL has no copy button (every other URL does) | add copy |
|
||||
| 5 | Medium | `serving-local-sharing-active` | While sharing is on, the only sign is the base URL changing to 192.0.2.42 and a pressed icon; Status still says "API listening" | Status: "Shared on local network" with amber dot + Stop |
|
||||
| 6 | Medium | `serving-empty` | Empty state says "Requests appear here when a client… uses the API" but doesn't offer the Connect-an-app guide, which hides behind the header (i) icon | "Connect an app" button in the empty state and as a labelled header button |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `serving-requests-all` | Summary "1 active · 1 queued · 1 completed" leaves out the error row | add "· 1 failed" |
|
||||
| 2 | Low | `serving-requests-all` | Status row ends in an unlabeled link icon; header (i) icon unlabeled | tooltip/aria-label, or text button |
|
||||
| 3 | Low | `serving-request-done` | Footnote "This view updates while the request runs" on a finished request; State values lowercase ("done") | show footnote only while running; sentence case + chip |
|
||||
| 4 | Low | `serving-guide-*` | Base URL and model ID inside the numbered steps have no copy buttons (only the curl block does); dialog body scrolls with no visible cue, code block runs into the bottom edge | inline copy chips; footer with Done; fade at scroll edge |
|
||||
| 5 | Low | `serving-guide-*` | Step 4 "This local API has no key configured" reads as a warning but is styled as a normal step | info note with "Set key" link |
|
||||
| 6 | Low | `serving-key-remove-confirmation` | Key shown as "Required · Ends in DEMO"; body "Existing clients can keep their current key field" is unclear | "Ends in •••3f9a"; "Apps that send the old key will still connect." |
|
||||
| 7 | Low | `serving-cloudflare-address` | "STEP 1 OF 4" repeats the stepper directly above | drop the eyebrow |
|
||||
| 8 | Low | `serving-cloudflare-review-quick` | Key limitation ("Turn off streaming in your client") buried in small grey text | amber note callout |
|
||||
| 9 | Low | `serving-cloudflare-connector-missing` | Only a Homebrew command ("brew install cloudflared") — macOS only | OS-aware command / tabs |
|
||||
| 10 | Low | `serving-cloudflare-connected` | "Done" and "Stop tunnel" same weight; Stop is destructive | Done primary; Stop as red text button |
|
||||
| 11 | Low | `serving-tunnel-active` | Header button still reads "Cloudflare tunnel" while a tunnel is live | "Tunnel on" with green dot |
|
||||
| 12 | Low | `serving-cloudflare-domain-empty` | Stepper scrolls with content and is clipped under the dialog header | pin stepper below header |
|
||||
| 13 | Low | `serving-key-change` | "Your old key will stop working" is buried in grey helper text | amber note above the buttons |
|
||||
|
||||
## 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:
|
||||
- [ ] `node --test tests/request-flow.test.mjs tests/tasks-and-sharing.test.mjs` passes.
|
||||
- [ ] 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/`:
|
||||
- `serving-requests-all-light.png`
|
||||
- `serving-request-queued-light.png`
|
||||
- `serving-request-done-light.png`
|
||||
- `serving-key-empty-light.png`
|
||||
- `serving-key-remove-confirmation-light.png`
|
||||
- `serving-cloudflare-address-light.png`
|
||||
- `serving-cloudflare-review-quick-light.png`
|
||||
- `serving-cloudflare-connector-missing-light.png`
|
||||
- `serving-cloudflare-connected-light.png`
|
||||
- `serving-tunnel-active-light.png`
|
||||
- `serving-cloudflare-domain-empty-light.png`
|
||||
- `serving-local-sharing-manage-light.png`
|
||||
- `serving-local-sharing-active-light.png`
|
||||
- `serving-key-change-light.png`
|
||||
- `serving-empty-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t13-serving` with message `T13: Serving: remaining findings`.
|
||||
- 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.
|
||||
@@ -0,0 +1,43 @@
|
||||
# T14 · Monitor: remaining findings
|
||||
|
||||
**Phase 3** · 2 findings (0 high, 1 medium, 1 low) · Depends on: T05
|
||||
|
||||
## Goal
|
||||
Fix the remaining Monitor findings once T05 has made the numbers consistent.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/screens/Monitor.tsx`
|
||||
- `src/components/charts.tsx`
|
||||
- `src/lib/hardware-summary.ts`
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `monitor-*` | Caption "Demo · do not add these pools" is cryptic | "Shared with the model — don't add to Model memory" or a single combined memory bar |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `monitor-computer` | "Shared memory 16 GB · 3.8 GB available" disagrees with "System memory 7.0 / 16 GB" above | one source, same timestamp |
|
||||
|
||||
## 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:
|
||||
- [ ] Each finding above is resolved in the running app, in light and dark mode.
|
||||
- [ ] 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/`:
|
||||
- `monitor-computer-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t14-monitor` with message `T14: Monitor: remaining findings`.
|
||||
- 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.
|
||||
@@ -0,0 +1,60 @@
|
||||
# T15 · Skills and Tasks: remaining findings
|
||||
|
||||
**Phase 3** · 9 findings (0 high, 2 medium, 7 low) · Depends on: T02, T03, T04
|
||||
|
||||
## Goal
|
||||
Label row actions, give the task detail view its own controls, and finish the Skills and Tasks states.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/screens/Skills.tsx`
|
||||
- `src/screens/Tasks.tsx`
|
||||
- `src/components/TaskEditor.tsx`
|
||||
- `src/lib/tasks.ts`
|
||||
- `src/app/TaskTree.tsx`
|
||||
- `server/tasks.mjs, server/skill-edits.mjs`
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `tasks-create-*` | Instructions textareas (and the AI prompt box) render in monospace while every other field is sans | inherit brand font in textareas |
|
||||
| 2 | Medium | `tasks-created` | A task created with "Run on schedule" checked appears as "Paused" | verify state mapping; new scheduled tasks show "Next: …" |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `skills-added` | In this state the page subtitle, "N enabled here" and the search field disappear | keep header layout stable across states |
|
||||
| 2 | Low | `skills-edit` | Description is a single-line input that truncates; Instructions field is cut off at the dialog bottom | textarea for both; dialog scroll with sticky footer |
|
||||
| 3 | Low | `skills-overview` | "3 enabled here" — "here" is ambiguous | "3 enabled in this workspace" |
|
||||
| 4 | Low | `tasks-populated` | Every row has the same clock icon tile, so it carries no information | drop the tile or vary by state (scheduled / running / paused / failed) |
|
||||
| 5 | Low | `tasks-empty` | Empty-state icon is a large heavy outline clock, unlike the small boxed icons used in other empty states | shared EmptyState component |
|
||||
| 6 | Low | `tasks-ai-blank` | Dialog body is clipped at the bottom (Instructions field cut) with no scroll cue | scroll fade + sticky footer |
|
||||
| 7 | Low | `tasks-result` | Date formats differ: "06/10/2026, 12:24:23" here vs "7 Oct 2026, 13:24" on the row | one date formatter |
|
||||
|
||||
## 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:
|
||||
- [ ] `node --test tests/tasks-and-sharing.test.mjs` passes.
|
||||
- [ ] 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/`:
|
||||
- `skills-added-light.png`
|
||||
- `skills-edit-light.png`
|
||||
- `skills-overview-light.png`
|
||||
- `tasks-populated-light.png`
|
||||
- `tasks-empty-light.png`
|
||||
- `tasks-ai-blank-light.png`
|
||||
- `tasks-created-light.png`
|
||||
- `tasks-result-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t15-skills-tasks` with message `T15: Skills and Tasks: remaining findings`.
|
||||
- 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.
|
||||
@@ -0,0 +1,54 @@
|
||||
# T16 · Settings and Setup: remaining findings
|
||||
|
||||
**Phase 3** · 7 findings (0 high, 2 medium, 5 low) · Depends on: T02, T09
|
||||
|
||||
## Goal
|
||||
Make the Settings index follow the visible section, and finish the Setup flow after T09.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/screens/Settings.tsx`
|
||||
- `src/screens/Setup.tsx`
|
||||
- `server/setup.mjs`
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `settings-search` | While searching "motion", the index highlights "About" but the only result is under Reading & focus (same lag in Privacy state) | highlight follows visible section; during search, highlight the result's section or none |
|
||||
| 2 | Medium | `setup-advanced` | "Advanced" opens a second modal on top of the setup modal, containing only the same context dial already on the page behind it | inline disclosure, or drop — nothing new inside |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `settings-general` | Reading size value wraps to two lines ("16" / "px") | nowrap, fixed width value |
|
||||
| 2 | Low | `settings-general` | General contains a single row (Keyboard shortcuts) | fold into Reading & focus, or add Language/Startup here |
|
||||
| 3 | Low | `settings-reading-focus` | Option label "Standard / system" uses a slash | "Follow system" (matches Motion) |
|
||||
| 4 | Low | `settings-storage` | "Manage models" (plural) | "Manage model versions" → Model page |
|
||||
| 5 | Low | `setup-prepare` | Footer line "Global · all chats · A model operation is in progress. View requests" | drop; progress already shown |
|
||||
|
||||
## 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:
|
||||
- [ ] The Settings index highlights the section under the sticky header while scrolling (IntersectionObserver with a top offset).
|
||||
- [ ] No scrollIntoView calls remain in Settings; use container.scrollTo with an offset.
|
||||
- [ ] 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/`:
|
||||
- `settings-search-light.png`
|
||||
- `settings-general-light.png`
|
||||
- `settings-reading-focus-light.png`
|
||||
- `settings-storage-light.png`
|
||||
- `setup-advanced-light.png`
|
||||
- `setup-prepare-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t16-settings-setup` with message `T16: Settings and Setup: remaining findings`.
|
||||
- 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.
|
||||
@@ -0,0 +1,51 @@
|
||||
# T17 · Navigation and overlays: remaining findings
|
||||
|
||||
**Phase 3** · 4 findings (0 high, 2 medium, 2 low) · Depends on: T02, T08
|
||||
|
||||
## Goal
|
||||
Finish the command palette, shortcuts, sampling drawer and context panel.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/app/CommandPalette.tsx`
|
||||
- `src/app/Shortcuts.tsx`
|
||||
- `src/app/SamplingDrawer.tsx`
|
||||
- `src/app/ContextPanel.tsx`
|
||||
- `src/app/Sidebar.tsx`
|
||||
- `src/lib/shortcut-bindings.ts`
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `navigation-rename-chat` | "Chat name" label sits inline left of a ~170px input that truncates the current name | stacked label, full-width input, name pre-selected |
|
||||
| 2 | Medium | `navigation-delete-chat-confirmation` | Copy says "Archive it if you want to keep it" but the dialog has no Archive action | add "Archive instead" secondary button |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `navigation-command-search` | "Restart engine" uses a red icon for a non-destructive action | neutral icon; red only for destructive |
|
||||
| 2 | Low | `navigation-sidebar-collapsed` | Collapsed rail shows a lone green dot for the model with no label/tooltip | tooltip "Qwen3.8-Flash-Next · running"; same for other rail icons |
|
||||
|
||||
## 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:
|
||||
- [ ] Each finding above is resolved in the running app, in light and dark mode.
|
||||
- [ ] 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/`:
|
||||
- `navigation-rename-chat-light.png`
|
||||
- `navigation-delete-chat-confirmation-light.png`
|
||||
- `navigation-command-search-light.png`
|
||||
- `navigation-sidebar-collapsed-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t17-navigation` with message `T17: Navigation and overlays: remaining findings`.
|
||||
- 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.
|
||||
@@ -0,0 +1,52 @@
|
||||
# T18 · Preview panel: remaining findings
|
||||
|
||||
**Phase 3** · 7 findings (0 high, 3 medium, 4 low) · Depends on: nothing, can start now
|
||||
|
||||
## Goal
|
||||
Stop the tab strip overflowing and give every file type the same zoom and paging controls.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/components/ArtifactPanel.tsx`
|
||||
- `src/components/PdfPreview.tsx`
|
||||
- `src/components/TablePreview.tsx`
|
||||
- `src/components/ChatMedia.tsx`
|
||||
- `src/lib/preview-tabs.ts`
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `preview-*` | Tab strip truncates ("fieldnotes-cover.svg" clipped by the full-screen button) and doesn't scroll to the active tab — in preview-code the first tab is pushed off | overflow scroll with fade + scroll active tab into view (scrollLeft, not scrollIntoView) |
|
||||
| 2 | Medium | `preview-*` | Opening the panel squeezes the chat to ~470px; composer wraps to two rows | resizable split with min chat width ~560px; or panel as overlay below 1280px |
|
||||
| 3 | Medium | `preview-pdf-*` | Mixed zoom controls: segmented Fit/100% for images, a dropdown for PDF; Previous/Next as large pill buttons | one zoom control pattern; icon buttons for paging |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `preview-pdf-actual` | At 100% the PDF page overflows horizontally with text cut off and no horizontal scrollbar | allow horizontal scroll / pan |
|
||||
| 2 | Low | `preview-full-screen` | "Page text" disclosure dumps the PDF's text as one run-on paragraph | preserve line breaks or hide |
|
||||
| 3 | Low | `preview-*` | Header label "Example · Website" etc. | file name + type; drop "Example" |
|
||||
| 4 | Low | `preview-table` | Filter field and table card are misaligned (filter overhangs right edge) | align to table width |
|
||||
|
||||
## 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:
|
||||
- [ ] One shared toolbar component for zoom and paging is used by every preview type.
|
||||
- [ ] 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/`:
|
||||
- `preview-pdf-actual-light.png`
|
||||
- `preview-full-screen-light.png`
|
||||
- `preview-table-light.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t18-preview-panel` with message `T18: Preview panel: remaining findings`.
|
||||
- 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.
|
||||
@@ -0,0 +1,47 @@
|
||||
# T19 · Dark mode: remaining findings
|
||||
|
||||
**Phase 3** · 4 findings (0 high, 1 medium, 3 low) · Depends on: T02, T03
|
||||
|
||||
## Goal
|
||||
Fix the dark-mode issues that remain after the shared control and overlay fixes.
|
||||
|
||||
## Files to change
|
||||
These are the likely files. Read them before editing, and change others only if the fix needs it.
|
||||
- `src/styles/app.css`
|
||||
- `src/styles/kit/`
|
||||
|
||||
## Findings to fix (high and medium)
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Medium | `dark-chat-open-website-invalid` | Same plain-text error (no red, no field state) as light | shared field error style |
|
||||
|
||||
## Optional polish (low)
|
||||
Do these only if the task is otherwise done and the budget allows.
|
||||
|
||||
| # | Severity | State | Issue | Suggested fix |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Low | `dark-models-overview` | Blue "Reading" label (#3b82f6-ish) on near-black is low contrast | ink label in both themes |
|
||||
| 2 | Low | `dark-monitor-generating` | Sidebar model dot turns blue while generating (same as light) — blue isn't used for state anywhere else in dark | green pulse for "working" |
|
||||
| 3 | Low | `dark-setup-model` | Heading gets a visible focus outline on step change (same as light setup-prepare-error) | move focus without a visible ring on non-interactive headings (tabindex=-1 + :focus-visible none) |
|
||||
|
||||
## 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:
|
||||
- [ ] `npm run contrast` and `npm run luminance` pass in dark mode.
|
||||
- [ ] 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/`:
|
||||
- `models-overview-dark.png`
|
||||
- `chat-open-website-invalid-dark.png`
|
||||
- `monitor-generating-dark.png`
|
||||
- `setup-model-dark.png`
|
||||
|
||||
## Done when
|
||||
- All checks pass.
|
||||
- Commit on branch `fix/t19-dark-mode` with message `T19: Dark mode: remaining findings`.
|
||||
- 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.
|
||||
@@ -0,0 +1,121 @@
|
||||
from pathlib import Path
|
||||
from collections import Counter, defaultdict
|
||||
import json, html
|
||||
from PIL import Image, ImageDraw
|
||||
r=Path('audit-fixes'); findings=json.loads((r/'findings.json').read_text())
|
||||
summary={
|
||||
'T01':('One model identity', 'Loaded-model identity now uses formatModelName. Removed the chat model catalog and multi-model profile flow; Model and Setup share a version ladder.', 'src/lib/format.ts; src/app/Sidebar.tsx; src/components/ComposerControls.tsx; src/screens/{Models,Setup,Tuning,Monitor}.tsx; server/catalog.mjs'),
|
||||
'T02':('Overlay layering', 'Opaque dialogs and palettes, explicit overlay layers, dropdowns above their parent dialog, dark scrims and stable scroll gutters.', 'src/components/{ui,Popover,FloatingMenu}.tsx; src/styles/app.css; src/screens/Chat.tsx'),
|
||||
'T03':('Control states', 'Enabled primary buttons, neutral disabled controls, bright on toggles, brand checkboxes, a compact growing composer, and labelled task actions/detail chrome.', 'src/styles/app.css; src/screens/{Chat,Tasks}.tsx'),
|
||||
'T04':('Errors', 'Shared ErrorNotice sanitizes Fixture prefixes and supports cause, recovery text and retry. Applied to composer/website, models, skills, tasks, setup, Serving and Cloudflare. Request states have semantic colors.', 'src/components/{ui,CloudflareDialog,ComposerControls}.tsx; src/lib/format.ts; src/screens/{Models,Skills,Tasks,Serving,Setup,Chat}.tsx'),
|
||||
'T05':('Live numbers', 'Hide idle chat statistics; show live estimated speed/tokens until reported usage arrives. Context comes from engine config. Clamp and flag impossible memory readings without asserting unobserved swapping.', 'src/lib/{chat-metrics,hardware-summary,store}.ts; src/components/TelemetryPopover.tsx; src/screens/Monitor.tsx; server/monitor.mjs'),
|
||||
'T06':('Response hover layout', 'Response actions use a horizontal row below content and a portaled floating menu, so opening More never reflows or clips the response.', 'src/screens/Chat.tsx; src/styles/app.css'),
|
||||
'T07':('Unbuilt controls', 'Feature flags hide unfinished access modes, thinking levels and session-log export. A single Preview build badge identifies simulated mode; provenance remains where otherwise misleading.', 'src/lib/features.ts; src/components/{ComposerControls,ChatToolbar,layout,ui}.tsx; src/components/TelemetryPopover.tsx'),
|
||||
'T08':('Primary navigation', 'Engine and singular Model are primary navigation destinations. More contains Serving and Settings.', 'src/app/Sidebar.tsx; src/lib/commands.ts'),
|
||||
'T09':('Model page', 'Single-model hero, seven version rows, detail action, installed list and shared Setup selection. Fit uses detected memory and context, with only the highest-quality fast fit recommended. Repeated profile warnings and compare trays were removed.', 'src/screens/{Models,Setup}.tsx; src/components/VersionLadder.tsx; src/lib/model-versions.ts; server/{catalog,models}.mjs'),
|
||||
'T10':('Engine v3', 'Simple workloads/headroom and capability-aware context slider; animated auto-tune recommendation; compact grouped Expert parameters with unsupported inputs hidden/disabled; underline sub-tabs; inline JSON line/column errors; dirty-only action bar.', 'src/screens/Tuning.tsx; src/components/{AutoTune,EngineExperience}.tsx; src/lib/config.ts; src/styles/app.css'),
|
||||
'T11':('Chat', 'Zero-agent menus hidden; title truncation signalled; explicit template selection; approval summaries; failed-agent log; simplified slash commands; branch-aware empty state; inline emphasis; file actions; text attachment support; demos moved to Settings About.', 'src/screens/Chat.tsx; src/components/{ChatToolbar,SubagentRow,ArtifactCard,ComposerControls,Markdown}.tsx; src/lib/{store,commands}.ts'),
|
||||
'T12':('Time-skip', 'Stable Version A/B labels, readable amber status text, primary Open version B and secondary Compare at completion. The selected example result opens in the preview.', 'src/components/TimeSkipPanel.tsx; src/screens/Chat.tsx; src/styles/app.css'),
|
||||
'T13':('Serving', 'Queued cancellation, generated key dialog with copy only for a value, explicit local-network status/action and URL copy, and Connect an app in the empty state.', 'src/screens/Serving.tsx; src/components/CloudflareDialog.tsx'),
|
||||
'T14':('Monitor', 'Shared-memory labels explain pool overlap and idle states are clear. Memory validation is shared with T05.', 'src/screens/Monitor.tsx; src/lib/hardware-summary.ts'),
|
||||
'T15':('Skills and Tasks', 'Sans-serif instruction fields; scheduling state distinguishes scheduled and paused tasks; skills scope is explicit. Shared errors, toggles and dropdown layering cover related findings.', 'src/screens/{Skills,Tasks}.tsx; src/components/TaskEditor.tsx; src/styles/app.css'),
|
||||
'T16':('Settings and Setup', 'Settings index follows the visible/search-result section. Setup context controls are inline, and its opaque bounded dialog retains a sticky footer.', 'src/screens/{Settings,Setup}.tsx; src/styles/app.css'),
|
||||
'T17':('Navigation dialogs', 'Rename uses a stacked full-width selected input; deletion offers Archive instead; shared overlay/gutter fixes prevent page movement.', 'src/app/Sidebar.tsx; src/styles/app.css'),
|
||||
'T18':('Preview panel', 'Active tabs scroll within their strip with edge fades. Narrow windows use an overlay; wide windows retain enough chat width. Images/PDF share Fit/100% controls and PDF uses icon paging.', 'src/components/{ArtifactPanel,PreviewControls,PdfPreview}.tsx; src/screens/Chat.tsx; src/styles/app.css'),
|
||||
'T19':('Dark theme', 'Shared field-error style is visible in dark mode; opaque overlays and dark scrims preserve depth. Primary/toggle changes pass contrast and surface-luminance checks.', 'src/styles/app.css; src/components/ComposerControls.tsx')}
|
||||
# IDs are stable, one-based positions in the supplied findings.json.
|
||||
notes={
|
||||
1:'Formatter reads the actual loaded record; simulated preview uses the design family, real-engine mode retains its verified catalog.',
|
||||
11:'Closed by removal: chat version chip links to Model; no multi-model picker remains.',
|
||||
12:'Closed by removal of the model-picker surface; running status is a non-action status on Model.',
|
||||
15:'Closed by hiding session-log export until it is implemented.',
|
||||
17:'Removed duplicate /clear; /new is the single new-chat command.',
|
||||
25:'Adapted colors to measured contrast: light #10b981 uses dark ink; dark uses #087654 with white ink to meet both text contrast and the app surface-luminance budget.',
|
||||
26:'View log exposes the recorded failure. No unsupported backend retry is implied.',
|
||||
35:'Empty textarea is one line and grows to 180px. Three stats chips remain one compact row directly below it, preserving the prior requested separate popovers.',
|
||||
51:'Unbuilt controls hidden. Preview badge is shared; estimated/simulated per-value labels remain where removing them would misrepresent data.',
|
||||
52:'Attach text file inserts inspected text/code into the visible prompt. Binary media remains preview-only because the inference endpoint accepts text. Showcase links moved to Settings About.',
|
||||
55:'Closed by hiding unbuilt tool-access choices behind a disabled feature flag (T07).',
|
||||
59:'New demo replies use the loaded identity. Existing saved historical messages are preserved.',
|
||||
70:'One consolidated memory warning and Use shorter context action replace repeated profile dead ends; budgets derive from hardware, not sample 2.1 GB numbers.',
|
||||
71:'Closed by removing the multi-select compare tray and profile filters.',
|
||||
74:'Plain switch sentence plus a disclosure of saved Engine context. No unmeasured five-second loading promise.',
|
||||
76:'One retry action in the switch dialog and shared sanitized error. Synthetic failed-load visual capture was unavailable; source path reviewed.',
|
||||
79:'Range is filtered against model capabilities, including 1M for the design preview.',
|
||||
90:'Header uses the actual loaded record; a real adapter may correctly report the original Qwen2.5 test model.',
|
||||
97:'Removed the duplicated unsupported Server access editor; Expert links to Serving.',
|
||||
102:'Shared sanitizer removes Fixture prefix. Synthetic upstream-error visual capture was unavailable.',
|
||||
108:'Key is generated in the editor draft on open; copy appears only for non-empty text. No key was saved during this review.',
|
||||
111:'Shared ErrorNotice and one retry path; synthetic connector-error visual capture was unavailable.',
|
||||
119:'Shared local-network state has an amber dot, explicit status and Stop action. Public/local sharing was not enabled for screenshots.',
|
||||
121:'Used memory is clamped to total with a warning when the source reports an overflow. The UI does not claim swapping without a signal proving it.',
|
||||
127:'Retry ErrorNotice sits under the page header. Synthetic service-outage visual capture was unavailable.',
|
||||
131:'Central userError sanitization is used by ErrorNotice, including shared ActionError; source review plus unit coverage.',
|
||||
132:'Added empty-state Connect an app. Header remains icon-only with an accessible label, honoring the user’s earlier explicit annotation.',
|
||||
134:'Last run failed opens a sanitized ErrorNotice. Synthetic failed-run visual capture was unavailable.',
|
||||
141:'Scheduled creation shows next run or Scheduled while the scheduler computes it, never Paused solely because nextRun is initially empty.',
|
||||
150:'Setup shares the version ladder and fit recommendation; when no version fits fast, it does not falsely tag a slow version Recommended.',
|
||||
152:'Bounded opaque setup with scrollable body and persistent header/footer verified at 1280×720.',
|
||||
153:'Preparation error heading and ErrorNotice replace raw fixture text; synthetic prepare-failure visual capture was unavailable.',
|
||||
163:'Preview switches to overlay below 1120px available main width; wide-screen chat was measured at 644.6px at a 1654px viewport.',
|
||||
170:'Dark primary is #087654 with white ink: verified contrast and luminance requirements both pass.',
|
||||
173:'Shared field ErrorNotice + aria-invalid and red field border, captured in both themes.'}
|
||||
removed={11,12,15,55,71,97}
|
||||
counters=defaultdict(int); ledger=[]
|
||||
for i,f in enumerate(findings,1):
|
||||
key=(f['task'],'optional' if f['sev']=='L' else 'required'); counters[key]+=1
|
||||
row={'id':f'F{i:03}', 'task_finding':f'{f["task"]} {key[1]} #{counters[key]}',**f}
|
||||
row['status']='optional-not-scheduled' if f['sev']=='L' else 'closed-by-removal' if i in removed else 'implemented'
|
||||
row['resolution']='Optional low-priority polish was not scheduled in this first pass. Shared/rebuilt surfaces may also resolve this incidentally; no separate closure is claimed.' if f['sev']=='L' else notes.get(i,summary[f['task']][1])
|
||||
ledger.append(row)
|
||||
(r/'finding-status.json').write_text(json.dumps(ledger,indent=2)+'\n')
|
||||
lines=['# Finding dispositions — 7 October 2026','','Stable `F001`–`F177` IDs follow the original `findings.json` order. The task reference also gives the number within its required or optional table.','', '| ID | Task finding | Priority | State | Disposition | Resolution |','|---|---|---|---|---|---|']
|
||||
for x in ledger:lines.append('| '+' | '.join(str(x[k]).replace('|',' / ').replace('\n',' ') for k in ['id','task_finding','sev','screen','status','resolution'])+' |')
|
||||
(r/'FINDING-STATUS.md').write_text('\n'.join(lines)+'\n')
|
||||
progress=['# Strata audit fixes — implementation and review','','Executed by Codex on 7 October 2026. No Claude process or Claude subagent was used.','', '## Scope and setup','', '- Package extracted to `audit-fixes/`; bundled agent definition copied unchanged to `.claude/agents/strata-fixer.md`.', '- Original 420 audit PNGs remain in `docs/evidence/audit-2026-10-07/`.', '- All 19 tasks were handled in dependency order. The required scope was **15 high + 82 medium findings**. The 80 optional low findings were not scheduled for a separate polish pass; some disappeared as a consequence of rebuilding the affected surfaces.', '- Every required finding has a disposition in [FINDING-STATUS.md](FINDING-STATUS.md), with a machine-readable copy in [finding-status.json](finding-status.json).', '- This app and its parent folder have no Git repository. No branches/commits were invented. Original source and preview state were saved in `baseline-source.tar.gz` and `baseline-preview-state.json`. [changed-files.txt](changed-files.txt) records the source comparison.', '- Design-kit files under `src/styles/kit/` were not changed.', '', '## Phase 1 — shared fixes','']
|
||||
for task,(title,description,files) in summary.items():
|
||||
if task=='T09':progress+=['## Phase 2 — Model and Engine','']
|
||||
if task=='T11':progress+=['## Phase 3 — remaining screen fixes','']
|
||||
ids=[x['id'] for x in ledger if x['task']==task and x['sev']!='L']
|
||||
progress +=[f'### {task} · {title}', '',description,'',f'- Required findings: {", ".join(ids)}.',f'- Main files: `{files}`.',f'- Dispositions and qualifications: see the {task} entries in [FINDING-STATUS.md](FINDING-STATUS.md).','']
|
||||
progress +=['## Verification','', '| Check | Result | Evidence |','|---|---|---|', '| Baseline unit suite | 34 passed | Existing suite before changes |', '| Final unit suite | 39 passed; 0 failed, skipped or cancelled | [tests.log](tests.log) |', '| Production build | Passed | [build.log](build.log) |', '| TypeScript, UI audit, WCAG contrast, reading measure, dark-surface luminance | Passed | [check-final.log](check-final.log) |', '| Motion/reduced motion | Passed | [motion.log](motion.log) |', '| Quantified motion budget | **Not measured**: harness self-check could not detect its deliberately expensive control effect | [motion-budget.log](motion-budget.log) |', '', 'The package command `node --test tests/` is not accepted as a directory entry point by the installed Node version. Used `node --test tests/*.test.mjs` instead. Existing tests were retained. Fixture IDs and stale UI selectors were updated to the new single-model catalog and current accessible control labels; five logic tests were added (identity, memory, model fit, usage, JSON diagnostics).', '', 'Interactive checks covered Repeat above the task modal; dark/light enabled and disabled controls; settings search; failed-agent logs; website validation; active-tab closing and scrolling; PDF/image controls; Time-skip completion and opening its selected result; JSON error placement; and reply menu layout. A reply rectangle stayed exactly 864 × 298.8px before/after opening More at the wide viewport. Expert now shows five parameter rows and the next section heading at 1280×720.', '', 'The screenshot set is a **targeted regression review**, not a replacement capture of all 210 old states. Retired model pickers/profile/compare surfaces cannot be recaptured. An isolated read-only synthetic fixture endpoint was blocked by the browser (`ERR_BLOCKED_BY_CLIENT`); it was stopped without attempting a bypass. Synthetic hardware-unavailable, model-load/prepare failure, service-outage, queued and active-sharing states are source/logic reviewed but not all visually recaptured. No API key or network exposure was enabled during review.', '', '## Product qualifications','', '- The seven Qwen3.8 versions are **design-preview data** from the supplied reference, explicitly marked Preview build. They are not claims of available downloadable model files. Real-engine mode retains the original verified model catalog and real download sources; this is why a literal source grep still finds Qwen2.5 in `server/real-model-catalog.mjs`.', '- Model fit uses detected hardware. The current 16GB computer cannot run the preview Balanced weights within the estimated budget; the UI correctly warns even though the simulated preview marks that version Running.', '- Numerical per-version benchmark speeds are not invented. Model says Not measured; Engine labels its demo estimates. Auto-tune animates checking/recommending supported settings and asks to review/save; it does not claim to have executed a benchmark.', '- Primary colors were adjusted to satisfy measured text contrast and the existing dark-surface budget. Literal white on #10b981 in light mode would fail text contrast.', '- The Serving guide header stays icon-only because the user explicitly requested that earlier. Its empty state now includes a labelled Connect an app action.', '- Text/code attachment is supported in the visible prompt. Image/video/GIF previews remain available; binary model input is outside the current text inference API.', '- Time-skip is still the scripted two-version prototype. Open version B opens the actual selected example summary; it does not imply a generated OMP artifact.', '- Setup/preview popovers are suppressed when setup is open. HMR edits to the central store require a browser reload during development; a normal fresh page load initializes correctly.', '', '## Evidence and follow-up','', 'See [the screenshot gallery](../docs/evidence/audit-fixes-2026-10-07/index.html) and [its coverage notes](../docs/evidence/audit-fixes-2026-10-07/README.md). Optional low-priority work remains listed in the supplied task files and finding ledger. Examples include richer raw-config syntax highlighting, advanced storage actions, and minor copy/spacing polish.','']
|
||||
(r/'PROGRESS.md').write_text('\n'.join(progress))
|
||||
# Preserve raw captures and publish PNG files with descriptive names plus a browsable index.
|
||||
p=Path('docs/evidence/audit-fixes-2026-10-07'); captures=sorted(x for x in p.glob('*.jpg') if not x.name.startswith('contact-sheet-'))
|
||||
manifest=[]
|
||||
for f in captures:
|
||||
im=Image.open(f); dest=f.with_suffix('.png');im.save(dest)
|
||||
manifest.append({'file':dest.name,'width':im.width,'height':im.height,'source':f.name})
|
||||
(p/'manifest.json').write_text(json.dumps(manifest,indent=2)+'\n')
|
||||
style='body{margin:0;background:#f4f5f7;color:#182322;font:15px system-ui}header{padding:32px}h1{margin:0 0 12px}p{max-width:880px;line-height:1.6}main{padding:0 24px 40px;display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:20px}figure{margin:0;padding:12px;background:white;border:1px solid #d6dede;border-radius:12px}img{width:100%;height:auto;border-radius:6px}figcaption{padding-top:10px}small{display:block;color:#567;font-size:12px}a{color:inherit}'
|
||||
items='\n'.join(f'<figure><a href="{x["file"]}"><img loading="lazy" src="{x["file"]}" alt="{html.escape(x["file"][:-4])}"></a><figcaption>{html.escape(x["file"][:-4])}<small>{x["width"]} × {x["height"]}</small></figcaption></figure>' for x in manifest)
|
||||
(p/'index.html').write_text(f'<!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Strata audit fixes — evidence</title><style>{style}</style><header><h1>Strata · audit fixes</h1><p>{len(manifest)} screenshots · 7 October 2026. A targeted light/dark regression review of the remediation work. Click a screenshot for its full size. The original audit remains in the neighboring audit-2026-10-07 directory.</p><p>Some captures were collected during implementation; final Model, Engine, Setup, empty-chat and reply-menu states were refreshed after fixes. This is not a complete synthetic-state matrix. See README.md for limitations.</p></header><main>{items}</main></html>')
|
||||
(p/'README.md').write_text(f'''# Audit-fix visual evidence
|
||||
|
||||
Captured through Codex browser control against the existing local preview at http://localhost:5199 on 7 October 2026.
|
||||
|
||||
- **{len(manifest)} screenshots**; [open the gallery](index.html).
|
||||
- Screenshots use 1280×720 for the compact-layout gate and 1654×977 for the wide split view. Exact dimensions are in [manifest.json](manifest.json).
|
||||
- PNGs are published copies of the browser's JPEG captures. Raw JPEG files are retained; conversion does not add detail.
|
||||
- `contact-sheet-*.jpg` are thumbnail review aids, not individual screen evidence.
|
||||
- Original evidence remains unchanged in `../audit-2026-10-07/` (420 PNGs, 210 paired states).
|
||||
|
||||
## Coverage
|
||||
|
||||
Model overview/context; Engine beginner/Expert/unsupported/raw/invalid/auto-tune; Setup computer/version choice; chat empty/generation/completion/actions/templates/add/validation/context/subagents; preview website/code/image/PDF and tab closing; Time-skip building/completion/result; Serving overview/guide/Cloudflare/local-sharing dialog; Monitor; Skills; Tasks creation/repeat/weekly/list/detail; Settings overview/search.
|
||||
|
||||
Main captures were visually reviewed using contact sheets, with full-size inspection of final Engine, menu, preview and setup states. Accidental transition/incorrect-route captures found in review were replaced. Some earlier screenshots predate the final dark primary-token adjustment; use the final Engine/Model/Setup/empty-chat screenshots as the final control-color reference.
|
||||
|
||||
## Limits
|
||||
|
||||
This is a targeted regression set, not all 210 original states recaptured. Model profiles, comparison and model-picker states were removed. No real key/network-sharing changes were performed. Browser access to an isolated read-only fixture server was blocked, so synthetic unavailable-hardware, failed-load/prepare, service-outage and queued/shared-active variants were not all visually recaptured. Their changes have source and relevant logic-test coverage. Motion-budget performance was not measurable by the existing harness; no FPS/performance claim is made.
|
||||
|
||||
See [implementation progress](../../../audit-fixes/PROGRESS.md) and [finding dispositions](../../../audit-fixes/FINDING-STATUS.md).
|
||||
''')
|
||||
# Refresh thumbnail review sheets after the final replacements.
|
||||
for start in range(0,len(captures),20):
|
||||
sheet=Image.new('RGB',(1440,1150),'#333333');d=ImageDraw.Draw(sheet)
|
||||
for i,f in enumerate(captures[start:start+20]):
|
||||
im=Image.open(f);im.thumbnail((350,197));x=(i%4)*360;y=(i//4)*230;sheet.paste(im,(x,y));d.text((x+3,y+199),f.stem,fill='white')
|
||||
sheet.save(p/f'contact-sheet-{start//20+1}.jpg')
|
||||
print(f'{len(ledger)} dispositions, {len(manifest)} screenshots, progress + gallery written')
|
||||
@@ -0,0 +1,162 @@
|
||||
# Strata
|
||||
|
||||
Local AI, with one model by default and multiple native instances in Expert mode.
|
||||
The React UI connects to the official Strata installer and engine, checks the
|
||||
hardware, prepares supported models, serves compatible APIs and shows measured
|
||||
engine activity. See [native integration handover](docs/native-engine-handover.md).
|
||||
|
||||
This is the web-first iteration of the app. It is built to become a standalone
|
||||
desktop app later — the browser shell and the engine host are already separate
|
||||
processes talking over HTTP, which is the same seam Electron would need.
|
||||
|
||||
```
|
||||
┌────────────────────────────┐ ┌──────────────────────────────────────┐
|
||||
│ web shell (Vite/React) │ /api │ engine host (node, zero deps) │
|
||||
│ :5199 in dev │ ─────▶ │ :8791 │
|
||||
│ │ SSE │ hardware · models · engine · │
|
||||
│ Chat Monitor Serving │ ◀───── │ serving · metrics · inference │
|
||||
│ Models Tuning Workspace │ │ │
|
||||
└────────────────────────────┘ └──────────────────────────────────────┘
|
||||
```
|
||||
|
||||
## Run it
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run dev # host on :8791 + web on :5199, one command
|
||||
```
|
||||
|
||||
Open <http://localhost:5199>. On a clean machine Strata opens the first-run
|
||||
Welcome flow: hardware check → choose version → optionally read pictures → download/load → chat. Advanced settings remain collapsed.
|
||||
|
||||
Single-port mode (what the desktop build will use):
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
npm run serve # everything on http://127.0.0.1:8791
|
||||
```
|
||||
|
||||
Other scripts: `npm run typecheck`, `npm run sync:kit` (re-import the design
|
||||
kit), `npm run shot -- out.png <url>` and `npm run flow -- chat|expert|setup|light`
|
||||
(scripted screenshots used to verify the UI).
|
||||
|
||||
## What is real, and what is not
|
||||
|
||||
### Try the Time-skip sidebar
|
||||
|
||||
Send `/time-skip Make a small website for my plant shop` in any chat. Any prompt
|
||||
text works; no model needs to be loaded. This is a **28-second UI demo**, with
|
||||
simulated checkpoints and checks, rather than a connection to the OMP harness.
|
||||
It saves A, builds and checks B, chooses B, then rejects a weaker revision.
|
||||
Click either stream or the saved first draft to inspect its example evidence.
|
||||
The run continues when hidden, survives reloads, and can be replayed when done.
|
||||
The sidebar shares the preview tab bar and respects reduced-motion preferences.
|
||||
|
||||
### Implementation status
|
||||
|
||||
| Area | Status |
|
||||
| --- | --- |
|
||||
| Hardware detection | **Real.** `system_profiler` / `sysctl` / `vm_stat` on macOS, `nvidia-smi` / `/proc` on Linux, `os` module fallbacks everywhere. |
|
||||
| Native model catalog | **Read from the installed Strata source.** Families, real download sizes and hardware compatibility come from its official MCP catalog. |
|
||||
| Model files | **Native installer or real GGUF adapter.** Native preparation reuses/resumes shards and companion files. The older design adapter remains simulated unless `STRATA_REAL_ENGINE=1`. |
|
||||
| Engine tuning | **Native config and measured operations.** Validated parameters/JSON, config backups, per-model GPU placement, measured benchmark and supported NVIDIA calibration. |
|
||||
| Serving API | **Native gateway.** Chat Completions, Anthropic and supported Responses protocols route by exact model ID. Existing key/network controls and request cancellation remain. |
|
||||
| Inference | **Native managed processes or a selected API/local adapter.** Native vision sends actual image content, and explicitly enabled MCP calls appear in chat. Design demonstrations remain labelled. |
|
||||
| Monitor metrics | **Reported native readings.** Per-model TPS/prompt TPS, context and cache; shared host RAM and GPU measurements. Missing readings remain unavailable. Simulated mode is labelled. |
|
||||
|
||||
Conversations stay in browser storage. Selected API providers receive their
|
||||
conversation and skill instructions; enabled MCP servers access their configured
|
||||
resources. Downloads and update checks contact the official upstream services.
|
||||
No usage telemetry is sent. The UI request log stores timing/token metadata, and
|
||||
native API monitoring can retain request content in memory when explicitly enabled.
|
||||
|
||||
## Layout
|
||||
|
||||
```
|
||||
strata/
|
||||
├── index.html single entry, dark by default
|
||||
├── src/
|
||||
│ ├── app/ shell: App, Sidebar, CommandPalette (⌘K)
|
||||
│ ├── components/ primitives (ui.tsx), charts, screen chrome
|
||||
│ ├── screens/ Launch · Setup · Chat · Models · Tuning ·
|
||||
│ │ Serving · Monitor · Workspace · Skills · Settings
|
||||
│ ├── lib/ types, api client, event stream, store, router, format
|
||||
│ └── styles/
|
||||
│ ├── kit/ tokens.css + components.css, synced from ../ui
|
||||
│ └── app.css app shell and screen styles
|
||||
├── server/
|
||||
│ ├── index.mjs HTTP surface, SSE hub, static hosting
|
||||
│ ├── hardware.mjs real probes and the compatibility verdict
|
||||
│ ├── catalog.mjs the model ladder + every expert parameter
|
||||
│ ├── models.mjs install/load state machine, disk accounting
|
||||
│ ├── engine.mjs beginner goals → expert params, predictions, validation
|
||||
│ ├── monitor.mjs live phase + throughput + thermals
|
||||
│ ├── serving.mjs API keys, access policy, request log
|
||||
│ ├── inference.mjs backend detection (llama.cpp/Ollama/LM Studio) + proxy
|
||||
│ └── store.mjs JSON state under $STRATA_HOME (~/.strata)
|
||||
└── scripts/ dev runner, design-kit sync, screenshot harness
|
||||
```
|
||||
|
||||
State lives in `~/.strata` (`models/`, `data/state.json`). If the home directory
|
||||
is not writable — sandboxes, locked-down accounts — the host falls back to
|
||||
`./.strata`. Override with `STRATA_HOME`, `STRATA_WORKSPACE`, `STRATA_PORT`.
|
||||
|
||||
## Design
|
||||
|
||||
The interface **is** the Strata UI kit in `../ui`, not a lookalike.
|
||||
|
||||
- **Light is the default.** `:root` holds the light palette; `data-theme="dark"`
|
||||
swaps the same token names. Both themes are laid out from one stylesheet.
|
||||
- **Kit classes are the components.** Every component the kit defines is in use:
|
||||
`.st-header` (screen headers), `.st-card` (55 call sites), `.st-btn`,
|
||||
`.st-pill` and `.st-badge` (status lines vs. table cells), `.st-progress`,
|
||||
`.st-tabs`, `.st-table`, `.st-metric` (every number tile in the app),
|
||||
`.st-input` / `.st-toggle` / `.st-slider` / `.st-field` / `.st-label`,
|
||||
`.st-collapse` (model thinking), `.st-code` (code blocks),
|
||||
`.st-gauge` (GPU load, context fill), `.st-drawer`, `.st-composer`,
|
||||
`.st-msg` / `.st-bubble`, `.st-toast`.
|
||||
`src/components/ui.tsx` is a thin binding layer over them; `src/styles/app.css`
|
||||
only adds layout plus a short list of documented extensions at the top.
|
||||
- **No gradients anywhere.** Surfaces are flat; depth comes from the kit's three
|
||||
shadows (`--st-sh-card`, `--st-sh-bar`, `--st-sh-pop`).
|
||||
- **Kit geometry.** Radius 8 / 14 / 20 / 24, 4pt spacing, 14px controls, 20px
|
||||
cards, 24px panels, 64px header, 1160px content column.
|
||||
- **Icons** are the Anron duotone set, rebuilt into one sprite at
|
||||
`public/icons/sprite.svg` by `npm run sync:kit`. The script strips the kit's
|
||||
C2PA metadata and carries the source `fill="none"` onto each `<symbol>` — without
|
||||
it every stroked path inherits the default black fill and the icons render as
|
||||
blobs.
|
||||
|
||||
What comes from DSH rather than the kit is the *shape of the product*: sidebar
|
||||
sessions, a status line that reports what the engine is doing, ⌘K palette,
|
||||
slash commands, per-tool approvals, and a sampling drawer one click from the
|
||||
composer.
|
||||
|
||||
## API surface
|
||||
|
||||
| Method | Path | Purpose |
|
||||
| --- | --- | --- |
|
||||
| GET | `/api/health` | host status, detected backend |
|
||||
| GET | `/api/setup` · POST `/api/setup/step` · POST `/api/setup/complete` | first-run state |
|
||||
| GET | `/api/hardware?reprobe=1` | probes, checks, verdict, recommendation |
|
||||
| GET | `/api/models` | library with per-variant state and progress |
|
||||
| POST | `/api/models/:id/install` · `/cancel` · `/load` | library actions |
|
||||
| DELETE | `/api/models/:id` · POST `/api/models/unload` | reclaim disk / VRAM |
|
||||
| GET/PATCH | `/api/engine` | beginner + expert configuration |
|
||||
| POST | `/api/engine/restart` · `/reset` · `/validate` · GET `/export` | engine lifecycle |
|
||||
| GET/PATCH | `/api/serving` | access policy, API key, request log |
|
||||
| GET | `/api/monitor` | live snapshot (also pushed over SSE) |
|
||||
| GET | `/api/events` | SSE: `monitor`, `models`, `engine`, `serving`, `setup`, `log` |
|
||||
| POST | `/api/chat/stream` | NDJSON token stream for the chat UI |
|
||||
| GET | `/v1/models`, POST `/v1/chat/completions`, POST `/v1/messages` | public, OpenAI/Anthropic compatible |
|
||||
|
||||
## Next
|
||||
|
||||
1. Engine supervisor: detect a `llama-server` binary, spawn it with the tuned
|
||||
flags, parse its logs into the Monitor instead of synthesising them.
|
||||
2. Real downloads: resolve GGUF files from Hugging Face, verify hashes, resume
|
||||
interrupted installs.
|
||||
3. Desktop shell: wrap the built web app and the host in Electron/Tauri using
|
||||
the same `{ url }` handshake the host already exposes.
|
||||
4. Tool use and approvals in chat (read/write inside the workspace, shell with
|
||||
an explicit grant), following the permission-preset pattern.
|
||||
@@ -0,0 +1,33 @@
|
||||
# Browser review: 19 annotations
|
||||
|
||||
Implemented in the restored app at `http://localhost:5160`.
|
||||
|
||||
| Annotation | Change |
|
||||
| --- | --- |
|
||||
| 1 | A compact 440px task delete dialog explains that the schedule stops and the instructions/last result remain recoverable. The row collapses over 240ms and an animated success toast confirms deletion. Reduced motion is respected. |
|
||||
| 2–4 | The connection guide is titled “Connect Strata to an app.” OpenAI/Anthropic tabs are in its header immediately before Close. The example-template sentence is removed. |
|
||||
| 5 | API key status and controls are part of the connection summary alongside Model ID, Status and Local network. |
|
||||
| 6, 8, 9, 11, 13, 15 | Screen headers no longer display Preview build badges. |
|
||||
| 7 | Serving's subtitle is removed. |
|
||||
| 10, 12 | Model's Engine button and Engine's Model version button are removed from their headers. |
|
||||
| 14 | Monitor's current model appears after its title on the same line. |
|
||||
| 16–17 | Skills header actions are Add skill, Search, Refresh. The section heading is “Manage your skills library.” |
|
||||
| 18 | Chat's model badge is a version menu showing name, quantization, size and availability. It supports downloads and switching through the existing host operations, including their lifecycle gates. A switch applies to all chats and retains conversations. |
|
||||
| 19 | Browser speech recognition writes interim/final text into the existing draft without submitting. Dictation has a right-side feedback panel, pause detection, Stop/Done controls and a configurable Cmd/Ctrl+Shift+D shortcut. Escape closes the panel and releases capture. Navigation, manual draft edits and response generation stop capture. |
|
||||
|
||||
## Verification
|
||||
|
||||
- Typecheck and production build passed.
|
||||
- Twelve focused tests passed: six dictation lifecycle tests, three agent update tests, and three task/sharing tests.
|
||||
- Browser checks covered all requested headers and control positions, skill search filtering, both protocol templates, the compact deletion dialog, deletion feedback, and the customizable dictation shortcut.
|
||||
- A paused “Deletion feedback check” task was created and archived through the UI. Its instructions remain in Deleted tasks; it never ran.
|
||||
- The simulated model was downloaded and switched to Smallest, then restored to the original Balanced version. No real model files were downloaded.
|
||||
- Screenshots are in `docs/evidence/annotations-19-2026-10-09/`.
|
||||
|
||||
## Dictation support
|
||||
|
||||
Recognition uses the browser's `SpeechRecognition` or `webkitSpeechRecognition` service. Microphone permission and a working browser speech service are required; some services process audio online. Missing support, denied permission, disconnected microphones, service/network errors and idle capture have explicit handling. The app does not provide its own speech backend.
|
||||
|
||||
The 3.5-second pause timer, interim corrections, final results, errors and cleanup were tested with simulated recognition events. Live microphone transcription was not exercised. Browser services may end recognition independently of the app's timer.
|
||||
|
||||
References: [SpeechRecognition](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition), [interim results](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/interimResults), [stop](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/stop).
|
||||
@@ -0,0 +1,86 @@
|
||||
# 32 annotation review — 9 October 2026
|
||||
|
||||
Completed in `/Users/nikoveit/Documents/Strata-Design/backups/strata`.
|
||||
|
||||
App: http://localhost:5160 · Host API: http://127.0.0.1:5161
|
||||
|
||||
## Checklist
|
||||
|
||||
| Comment | Result |
|
||||
| --- | --- |
|
||||
| 1 | Chat model rows show name – quant – GB on one line. |
|
||||
| 2 | All seven model API states have explicit labels and actions; transitions disable repeat actions, progress is shown, and errors retry download or loading according to whether files are installed. |
|
||||
| 3 | Removed the shared-model heading from the chat model menu. |
|
||||
| 4 | Running version sorts first in the chat menu. |
|
||||
| 5 | Removed Manage model versions from the chat menu footer. |
|
||||
| 6 | Removed the example-agents footer from the subagent popover. |
|
||||
| 7 | Removed the Design example badge from chat responses. |
|
||||
| 8 | Time-skip card arrow points right toward the side view. |
|
||||
| 9 | Empty chats show a usage dashboard with Overview / Models, All / 30d / 7d, six statistics, activity heatmap, stacked model usage chart, token breakdown and percentages. Generic heading contains no personal name. |
|
||||
| 10 | Every skill uses the same glyph from the existing icon set. |
|
||||
| 11 | GPU inventory lists all detected devices. Temperature and utilization are matched per device, with unavailable sensor readings shown explicitly. |
|
||||
| 12 | Physical processors are listed separately. Aggregate core counts remain available to Engine tuning. The local M4 now correctly reports 10 physical cores and 10 logical threads. |
|
||||
| 13 | Reset to recommended and Run speed test are in the Engine header after the mode button. |
|
||||
| 14 | Removed the specified working-memory warning from the visible validation list. Validation still runs. |
|
||||
| 15 | Removed the specified fast-memory warning from the visible validation list. Validation still runs. |
|
||||
| 16 | Conversation context is linear from 4K to the model maximum, in exact 1K increments. The host validates, saves and translates every supported integer K value. |
|
||||
| 17 | Removed the performance Details disclosure. |
|
||||
| 18 | Removed the Speeds · Demo estimate caption. Provenance remains available to assistive technology and on hover. |
|
||||
| 19 | Removed the Sample workload selector from the performance preview. |
|
||||
| 20 | Removed Shared by all chats from the model hero. |
|
||||
| 21 | Removed Ready from the model hero. |
|
||||
| 22 | Removed Version context selection; the Model page uses the saved Engine context. |
|
||||
| 23 | On this computer rows show quant and GB without Smallest / Balanced names. |
|
||||
| 24 | Removed View running version. |
|
||||
| 25 | Removed View version. |
|
||||
| 26 | The precision explanation sits inline beside Choose a version. |
|
||||
| 27 | Model hero includes a family selector populated from the actual catalog, with versions filtered by the selected family. |
|
||||
| 28 | Removed Not set beside API key. |
|
||||
| 29 | API key label remains on one line. |
|
||||
| 30 | Same badge removal as comment 7. |
|
||||
| 31 | Removed the Mode heading and corrected option heights. All five choices fit without scrolling at the current desktop viewport. |
|
||||
| 32 | User message hover/focus shows relative sent time, copy and Rewind to here. Rewind preserves the original chat and opens a branch with the earlier prompt ready to edit. It is disabled during generation. |
|
||||
|
||||
## State mapping
|
||||
|
||||
| API state | Picker presentation |
|
||||
| --- | --- |
|
||||
| available | Download |
|
||||
| downloading | Downloading with percentage and progress |
|
||||
| installed | Downloaded; Switch version |
|
||||
| loading | Loading; repeat action disabled |
|
||||
| loaded | Running when it is the active model, otherwise Downloaded |
|
||||
| unloading | Unloading; repeat action disabled |
|
||||
| error | Retry; installed files retry loading, otherwise retry download |
|
||||
|
||||
## Data and hardware limits
|
||||
|
||||
- Usage derives from saved browser history. Message and token counts deduplicate copied branch turns. Showcase and Time-skip example turns are excluded. Token totals include only reported engine usage; demo, estimated and unavailable usage do not become measured totals.
|
||||
- The current build runs in simulated mode and its catalog contains one model family. No extra production families were invented. A test covers multiple families in a fixture.
|
||||
- NVIDIA sensors use stable GPU UUIDs. Linux DRM sensors are read from each device's own sysfs path. Processor topology uses macOS physical/logical/package counts, Linux socket/core topology, and Windows processor instances.
|
||||
- This Mac does not expose GPU temperature/utilization through these probes, so its card shows Unavailable. Two-processor and multiple-GPU cases were verified with fixtures, including distinct temperatures and a missing sensor.
|
||||
- Hardware inventory does not assume that different GPUs' VRAM can be pooled by the inference adapter.
|
||||
|
||||
Primary probe references: [NVIDIA SMI](https://docs.nvidia.com/deploy/nvidia-smi/index.html), [Linux CPU topology](https://man7.org/linux/man-pages/man1/lscpu.1.html), [Windows processors](https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-processor), [Linux AMD GPU sensors](https://docs.kernel.org/gpu/amdgpu/thermal.html).
|
||||
|
||||
## Verification
|
||||
|
||||
- `npm run typecheck` — passed.
|
||||
- `npm run build` — passed; 117 modules.
|
||||
- `node --test tests/annotations-32.test.mjs tests/dictation.test.mjs tests/agent-updates.test.mjs tests/tasks-and-sharing.test.mjs` — 20 passed.
|
||||
- Live API accepted 33K; rejected 33.5K and 1025K. Engine launch argument tests cover 4K through 1024K, including non-power-of-two values.
|
||||
- Browser: context ArrowRight moved 32K → 33K; test draft discarded, saved context remains 32K.
|
||||
- Browser: Mode menu client height and scroll height both 297px. Model menu client height and scroll height both 306px; all model rows 42px.
|
||||
- Browser: available version opens Download; installed version opens Switch; running version remains first.
|
||||
- Browser: dashboard tabs and periods, model family menu, removed labels, hardware cards, API key layout, skill glyphs, message hover and Time-skip arrow checked.
|
||||
- Rewind test branch `s_l1uci3r3idc9` was archived. The original `give me timeskip` transcript and its `Show me multi` draft were preserved.
|
||||
|
||||
## Screenshots
|
||||
|
||||
Evidence is in `docs/evidence/annotations-32-2026-10-09/`:
|
||||
|
||||
- `usage-overview.jpg`, `usage-models.jpg`
|
||||
- `model-picker.jpg`, `mode-menu.jpg`
|
||||
- `models.jpg`, `installed-versions.jpg`
|
||||
- `engine.jpg`, `monitor.jpg`, `skills.jpg`, `serving.jpg`
|
||||
- `subagents.jpg`, `message-hover-timeskip.jpg`, `rewind-branch.jpg`
|
||||
@@ -0,0 +1,30 @@
|
||||
# Browser annotations 1–9
|
||||
|
||||
Implemented in the restored Strata source served at `http://localhost:5160`.
|
||||
|
||||
1. Workspace chat timestamps share a fixed, right-aligned column.
|
||||
2. The chat header displays the loaded model family without its quantization.
|
||||
3. The header counts working subagents. Its dropdown displays names, descriptions, statuses, tokens and live elapsed times. Queued and finished agents are excluded from the running count. No Standard mode label is displayed.
|
||||
4. Task creation and editing use Instructions and Schedule steps. Both fit within the existing 560px modal; long instructions scroll inside the text field.
|
||||
5. The Add menu contains Add files or photos, Add folder and Slash commands. Cmd/Ctrl+Shift+A opens the file picker.
|
||||
6. The composer places the microphone after Add, followed by Auto/Manual/Accept edits/Plan/Bypass permissions modes.
|
||||
7. The right composer control displays Off/Low/Medium/High/Max reasoning effort. Its menu identifies the loaded model family.
|
||||
8. Skills, Monitor, Engine, Model and Settings use the chat header's surface, bottom border and height.
|
||||
9. The area surrounding the composer uses the page background and has no glass backdrop.
|
||||
|
||||
## Verification
|
||||
|
||||
- `npm run typecheck` and `npm run build` passed.
|
||||
- `node --test tests/agent-updates.test.mjs tests/tasks-and-sharing.test.mjs`: six tests passed.
|
||||
- Browser checks confirmed timestamp right edges at x=207, all six headers at 64px with matching background and border, and both task steps with equal scroll/client heights (400px).
|
||||
- Checked preferences across a reload, all requested menu choices, slash commands, microphone preview, file and folder pickers, split-view composer fit, light/dark themes, and advancing subagent durations.
|
||||
- No browser console errors or warnings were observed.
|
||||
- Screenshots are in `docs/evidence/annotations-followup-2026-10-09/`.
|
||||
|
||||
## Current engine boundaries
|
||||
|
||||
- The subsequent [19-annotation review](annotations-19-2026-10-09.md) connected dictation to browser speech recognition. It requires microphone permission and browser service support.
|
||||
- Mode and reasoning selections persist per chat as frontend preferences. Backend permission and inference policies are not changed by these controls.
|
||||
- Subagent data can arrive as `agent` SSE events or NDJSON chat frames with `sessionId` and an `agent` object. Agent fields are merged by `id`; supported statuses are working, queued, completed, failed and cancelled. Tokens and durationMs are nonnegative numbers; optional updatedAt is a timestamp in milliseconds. The current demo engine does not orchestrate real subagents.
|
||||
- In demo mode, `/subagents` creates a clearly labeled example chat to inspect the dropdown.
|
||||
- Text files and supported folder contents are added to the prompt. Photos and PDFs open local previews; multimodal inference is not implemented.
|
||||
@@ -0,0 +1,31 @@
|
||||
# Chat shell and rich-content showcase — 6 October 2026
|
||||
|
||||
## Delivered
|
||||
|
||||
1. Integrated the chat and preview headers into one aligned top bar. Browser and document tabs share a single horizontally scrolling row; the selected tab scrolls into view. Removed the duplicate document heading.
|
||||
2. Added the visible chat title, subagent details (description, status, elapsed time, output tokens), Chat template and Download Session Log options, and preview fullscreen/collapse controls. Templates populate an editable composer draft. Session-log download/save is deliberately not connected yet.
|
||||
3. Split attachment cards into a main sidebar-preview action and a menu with sidebar, file explorer and default-app actions. Local examples reveal/open their actual files. Text/blob previews open an exported local copy. Remote websites open in the browser and explain why no local file is available.
|
||||
4. Sidebar Tasks + opens the shared task modal without changing the route.
|
||||
5. Removed Manage tasks. Task leaves have visible edit/delete icons; editing prefills the same modal, and deletion requires confirmation. Archived tasks remain recoverable.
|
||||
6. Added three independent anchored popovers for tokens/second, total chat tokens and context utilization. Statistics use session data, with active monitor context accepted only for the matching session. Missing usage is shown as unavailable. Compaction is explicitly not connected in this build.
|
||||
7. More sits at the left of the navigation footer, with the theme toggle at the far right.
|
||||
|
||||
## Showcase
|
||||
|
||||
Open: http://localhost:5199/#/chat/s_tvgo6un2muia
|
||||
|
||||
Title: **Chat showcase · code, tools & media**. Includes a TypeScript block, completed and pending example tool calls, an SVG image, an original four-second MP4, an animated GIF with pause/resume, a Markdown table/quote/list, and six existing website/document/file previews. Agent and metric fixtures are labeled as examples; approving the example does not execute a tool. Recreate via composer **+ → Try chat showcase**.
|
||||
|
||||
Media assets are local and authored by `scripts/assets/make-chat-media.py` (Pillow and imageio-ffmpeg; generation-only dependencies). Video responses support byte ranges and media MIME types.
|
||||
|
||||
## Verification
|
||||
|
||||
- `npm run typecheck`, `npm run audit`, `npm run build`: pass.
|
||||
- `node --test tests/*.test.mjs`: 30 pass.
|
||||
- Added tests for session-stat isolation and native file-action path/symlink validation, using a mock launcher.
|
||||
- Browser: add/edit/delete with unchanged chat URL, prefilled schedule, confirmation, persistent task icons, subagent details, templates, session-log placeholder, unified tabs, expand/collapse, all three independent popovers, and 390 px responsive layout.
|
||||
- Native: PDF revealed and selected in Finder, then opened in Preview by the default-app action. Test windows closed afterward.
|
||||
- Media: four-second video loaded and played to its end; GIF pause swaps to the still poster and resumes to the GIF. HTTP range request returned 206 with `video/mp4` and the expected byte count.
|
||||
- Task mutations were performed only on an isolated host. The main app retains its previous chats and adds the requested showcase.
|
||||
|
||||

|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,297 @@
|
||||
# Design-system notes
|
||||
|
||||
How the app maps onto the Strata UI kit (`../ui`), plus the places where the kit
|
||||
and the app still disagree. Measurements here are computed, not eyeballed —
|
||||
contrast ratios use the WCAG 2.1 relative-luminance formula, with translucent
|
||||
tints composited over `--st-surface` first.
|
||||
|
||||
## 1. How the app consumes the kit
|
||||
|
||||
`src/styles/kit/{tokens,components}.css` are synced verbatim from `../ui` by
|
||||
`npm run sync:kit` (the only rewrite is making the `@font-face` URLs absolute).
|
||||
`src/styles/app.css` sits on top and contains, in order: extensions to the kit's
|
||||
classes, app shell layout, utilities, app-only components, and the first-run
|
||||
takeover. There are no gradients in it and no literal colours — every value is
|
||||
either a kit token or a layout constant.
|
||||
|
||||
```
|
||||
npm run sync:kit # re-import tokens/components/fonts/icons from ../ui
|
||||
```
|
||||
|
||||
Every component the kit defines is in use:
|
||||
|
||||
| Kit class | Where the app uses it |
|
||||
| --- | --- |
|
||||
| `.st-header` | screen headers (`Screen`, Chat) |
|
||||
| `.st-card` / `__head` / `__body` | every panel — 55 call sites |
|
||||
| `.st-btn` (+ `--primary/--secondary/--danger/--ghost/--icon`) | all actions |
|
||||
| `.st-pill` / `.st-badge` | status lines vs. table cells and tool scopes |
|
||||
| `.st-progress` | context, VRAM, RAM, temperature, downloads |
|
||||
| `.st-metric` / `__label` / `__value` / `__unit` / `__spark` | every number tile |
|
||||
| `.st-tabs` / `.st-tab` | Beginner/Expert, All parameters/Raw config |
|
||||
| `.st-table` | request log, expert parameter table |
|
||||
| `.st-input` / `.st-select` / `.st-toggle` / `.st-slider` / `.st-field` / `.st-label` | forms |
|
||||
| `.st-collapse` | model thinking |
|
||||
| `.st-code` | fenced code blocks |
|
||||
| `.st-gauge` / `__track` / `__fill` | GPU load, context fill |
|
||||
| `.st-drawer` | sampling, request detail |
|
||||
| `.st-composer` | chat composer |
|
||||
| `.st-msg` / `.st-bubble` | conversation |
|
||||
| `.st-toast` / `.st-toasts` | notifications |
|
||||
| `.st-icon` | all 32 Anron duotone icons |
|
||||
|
||||
Two things the app adds that the kit does not define, both built only from kit
|
||||
tokens: `.st-btn--sm` / `--lg` / `--block` / `--active` / `--ghost` (the kit ships
|
||||
one button size) and `.st-progress--sm` / `--lg` / `--indeterminate`.
|
||||
|
||||
## 2. Findings in the kit itself
|
||||
|
||||
### 2.1 Light-mode primary colour fails contrast — `blocker` — **corrected in the app layer**
|
||||
|
||||
`--st-accent-ink` on `--st-accent` is the pairing behind **every primary button
|
||||
and the user's own chat bubble**.
|
||||
|
||||
| Theme | Pair | Idle | Hover | AA (4.5:1) |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| light, kit as shipped | `#ffffff` on `#10b981` | **2.54** | 2.97 | fails |
|
||||
| dark, kit as shipped | `#052e20` on `#34d399` | 7.70 | 8.50 | passes |
|
||||
|
||||
Dark mode is fine. Light mode — the theme the kit treats as default — is not, and
|
||||
the label is 14px/700, so the 4.5:1 threshold applies rather than the large-text 3:1.
|
||||
|
||||
**What the app does now.** `src/styles/app.css` overrides two tokens in light mode
|
||||
and nothing else, adopting the relationship the kit's own dark palette already
|
||||
uses (dark ink on the accent fill):
|
||||
|
||||
```css
|
||||
:root:not([data-theme='dark']) {
|
||||
--st-accent-ink: #05261b; /* idle 6.37:1 */
|
||||
--st-accent-hover: #12c68e; /* hover 7.31:1 */
|
||||
}
|
||||
```
|
||||
|
||||
The hover had to move too: with a dark ink, darkening the fill on hover drops the
|
||||
ratio to 3.71:1, so the fill lifts instead. Blast radius is three surfaces
|
||||
(primary buttons, user bubble, brand mark) plus one hover rule; `--st-accent`
|
||||
itself is untouched, so progress bars, gauges, toggles, sparklines and pills look
|
||||
exactly as before. Delete that block to return to the kit verbatim.
|
||||
|
||||
**The alternative — option B.** Deepen the accent and keep the white label:
|
||||
|
||||
```css
|
||||
:root:not([data-theme='dark']) {
|
||||
--st-accent: #0a7a55; /* idle 5.35:1 */
|
||||
--st-accent-hover: #086a4a; /* hover 6.62:1 */
|
||||
}
|
||||
```
|
||||
|
||||
Both were rendered on real screens for comparison —
|
||||
`strata/.shots/cmp-accent-options.png`. A keeps the bright green that the rest of
|
||||
the app is built on and changes the label; B keeps white labels and deepens every
|
||||
green surface in the app. A is what is currently in place, because it changes the
|
||||
fewest things; B is two lines away.
|
||||
|
||||
### 2.2 `--st-accent-text` on `--st-accent-tint` is marginally under AA — `minor`
|
||||
|
||||
`#0c8a60` on `#ecfdf5` = **4.14:1**, used by accent pills and badges at 12–13px.
|
||||
Every other tint pairing clears AA comfortably:
|
||||
|
||||
| Pairing | light | dark |
|
||||
| --- | --- | --- |
|
||||
| info-text on info-tint | 4.99 | 7.74 |
|
||||
| warn-text on warn-tint | 5.51 | 8.87 |
|
||||
| danger-text on danger-tint | 6.07 | 6.70 |
|
||||
| accent-text on accent-tint | **4.14** | 8.02 |
|
||||
| ink-muted on surface | 5.02 | 5.90 |
|
||||
| ink-muted on surface-2 | 4.69 | 5.41 |
|
||||
|
||||
Lowering `--st-accent-text` from `#0c8a60` to about `#0a7a55` clears 4.5:1.
|
||||
|
||||
### 2.3 The icon set has no file or folder glyph — `minor`
|
||||
|
||||
The 32 Anron icons cover hardware, engine, chat and status, but nothing for a
|
||||
document or a directory. The workspace tree currently gives folders the `layers`
|
||||
icon and leaves files without one, which reads acceptably but is a workaround.
|
||||
Two additions to `ui/icons/` (`file.svg`, `folder.svg`, same 24-grid / 1.5px
|
||||
round / 12% duotone recipe) would let the tree say what it means.
|
||||
|
||||
## 3. DSH surfaces and where they live
|
||||
|
||||
The kit supplies the surface; DSH supplies the shape of the product:
|
||||
|
||||
| DSH behaviour | In this app |
|
||||
| --- | --- |
|
||||
| sessions in the sidebar | sidebar → Recent, with rename and delete |
|
||||
| status line for the engine | sidebar engine chip + header pill |
|
||||
| ⌘K command surface | `CommandPalette` (net-new; DSH has only `/` and `Mod+/`) |
|
||||
| slash commands | composer `/` menu |
|
||||
| tool approval takeover | `ToolCard`, Enter approves / Esc denies |
|
||||
| per-conversation sampling | `SamplingDrawer`, bound to engine expert params |
|
||||
| right-hand rail | `ContextPanel` — context window, tools in reach, engine |
|
||||
| file browsing | `Workspace`, a tree with a detail pane |
|
||||
| keyboard shortcuts dialog | `Shortcuts`, every listed binding wired |
|
||||
|
||||
## 3b. Motion, fluidity and focus
|
||||
|
||||
The interaction layer added on top of the kit — see
|
||||
[`interaction-guidelines.md`](interaction-guidelines.md) for the rules themselves.
|
||||
|
||||
- **One motion scale**, fusing the kit's single pair (`--st-ease` / `--st-dur`,
|
||||
left untouched so the kit's own classes keep their timing) with DSH's .1/.2/.3s
|
||||
vocabulary: five duration tokens and five easings. Twenty-three bespoke
|
||||
keyframes collapsed onto two shared recipes (`st-enter`, `st-exit`) whose
|
||||
direction comes from custom properties.
|
||||
- **Reduced motion substitutes opacity for movement** instead of the previous
|
||||
blanket `0.01ms`, which had also removed state feedback. The distance
|
||||
properties are zeroed on the elements themselves — a value set on `:root` is
|
||||
only inherited, so a rule declaring its own `--st-from-x` would have won over
|
||||
it. There is a manual override in Settings for people who want stillness
|
||||
without changing an OS setting.
|
||||
- **Interruptible overlays**: drawers, palettes and dialogs stay mounted and are
|
||||
driven by `[data-open]` transitions, so closing mid-open reverses rather than
|
||||
restarting. `visibility` flips discretely, which keeps a closed overlay out of
|
||||
the tab order.
|
||||
- **Capabilities verified before use, not assumed**: `corner-shape:
|
||||
superellipse()`, `interpolate-size`, `startViewTransition`, `scroll-timeline`,
|
||||
`timeline-scope`, `@starting-style`, `::details-content` and
|
||||
`transition-behavior: allow-discrete` were each confirmed present in the app's
|
||||
own browser. Every one is behind `@supports` or a feature check, so the layout
|
||||
is identical without it.
|
||||
- **Focus mode** (`⌘⇧F`) withdraws the chrome to an ambient bar, dims earlier
|
||||
turns, and narrows the column. Escape unwinds one layer at a time.
|
||||
|
||||
## 3c. Materials and the dark accent
|
||||
|
||||
- **Materials**: three blur tiers over six surfaces, each token-gated so reduced
|
||||
transparency and the Settings override both collapse them to flat with
|
||||
identical geometry (verified). Specular 1px inset edges, not gradients.
|
||||
- **The dark accent is a material now, not a fill.** A solid `#34d399` button was
|
||||
luminance 0.496 against a page at 0.005 — a 9.9:1 jump, making the brightest
|
||||
object in the UI the one you are invited to click. Large accent surfaces are
|
||||
now a 26% tint (luminance 0.055, 1.90:1 against the page) with an accent label
|
||||
at 5.73:1. Thin strokes keep the bright accent. `npm run luminance` guards it.
|
||||
- **Elevation is rationed**: shadows only on surfaces that genuinely overlap
|
||||
content. Cards keep the hairline alone; a card on a flat background does not
|
||||
float. Audit-enforced with an allowlist.
|
||||
- **Separators align with the content** rather than running edge to edge.
|
||||
- **The header lifts by fading a hairline in**, not by animating `box-shadow`,
|
||||
which repainted the strip on every scroll frame. The subtitle retires past 64px
|
||||
of scroll; both ride the existing scroll timeline.
|
||||
|
||||
## 3d. Liquid Glass geometry
|
||||
|
||||
- **Capsules for controls, the kit's scale for surfaces.** Seven control classes
|
||||
take `--st-r-pill`; cards, drawers, modals and toasts keep 8/14/20/24. The kit
|
||||
itself is untouched and still sync-checked, so this is an app-layer override —
|
||||
all departures now live in one `6. system overrides` section at the end of
|
||||
`app.css`, because an override of an app-layer class has to come after it.
|
||||
- **Concentric corners** via `--st-r-nested` (outer − gap, floored at zero).
|
||||
- **Press compresses** (`scale(0.97)`), and the header title collapses on scroll
|
||||
by cross-fading two stacked copies rather than animating `font-size`, which
|
||||
would reflow every frame.
|
||||
- **Edge fade** under the header is a `mask-image`, not a gradient background.
|
||||
- **Glass-on-glass was a real defect and is fixed.** `.slashmenu` sat inside the
|
||||
material on `.composer`, so it sampled an already-blurred backdrop. It now
|
||||
renders as a sibling in `.slashmenu-host`, which repeats the composer's padding
|
||||
so the menu keeps its column. Verified: no material has a material ancestor,
|
||||
and `npm run luminance` fails if one appears.
|
||||
- **Lensing was prototyped, measured and declined** — it executes fine and costs
|
||||
1.03× at p95, but changes **zero pixels** over the composer because the backdrop
|
||||
is uniform. Full reasoning and numbers in
|
||||
[`interaction-guidelines.md` §10](interaction-guidelines.md).
|
||||
|
||||
## 3e. The focused shell
|
||||
|
||||
- **The primary button is a material in both themes now.** Light was a solid
|
||||
`#10b981` carrying a colour-matched green glow — paint, not glass. It is a 20 %
|
||||
tint with an accent hairline, a specular top edge and a *neutral* shadow;
|
||||
`#086a4a` on that fill measures **5.48:1**. The glow is deleted in both themes.
|
||||
- **The toggle was missed by that same fix** — a pure-white knob with a hard
|
||||
shadow sitting on the loud solid accent. It now shares `--st-accent-surface`
|
||||
with the buttons, carries a hairline, and presses with a knob scale.
|
||||
- **The accent border was bound to the white specular token**, which is an
|
||||
invisible border on a near-white page. Border and specular highlight are now
|
||||
separate tokens. This is why `npm run contrast` asserts *definition* rather
|
||||
than fill-vs-page in light mode: a tinted control on white gets its edge from
|
||||
the hairline, and the check composites that border (79/255 against the page)
|
||||
instead of comparing a raw declared value, which would let a 2 %-alpha border
|
||||
pass.
|
||||
- **Eight icons authored** in the kit's duotone recipe — a `0.12`-opacity
|
||||
`currentColor` fill plus a `1.5`-stroke path — because the kit had none of:
|
||||
panel, search, sliders, folder, folder-plus, file, ellipsis, x. Sprite is now
|
||||
40 symbols, and the audit fails if `<Icon name>` references a missing one.
|
||||
- **Navigation restructured** to the harness shape: collapse row under the logo,
|
||||
New session, Skills, a Workspaces tree with search / collapse-all / add-folder,
|
||||
and a footer of Monitor, Serving and **… More** (Models, Engine tuning,
|
||||
Settings). Home is gone; Chat is the landing screen.
|
||||
- **Workspaces are real, not decorative.** The host gained a persisted registry
|
||||
(`data/workspaces.json`), `GET/POST/DELETE /api/workspaces`, `?root=` on the
|
||||
workspace listing, and `POST /api/workspaces/pick` which borrows the *system*
|
||||
folder chooser via `osascript`. The seed root cannot be removed and a stale id
|
||||
falls back to it, so a deleted folder cannot break a saved session.
|
||||
- **First run is a modal over the live shell.** The wizard was a
|
||||
`position: fixed; inset: 0` takeover, which contributes no height when nested —
|
||||
it had to become static inside the surface before the modal would render. Its
|
||||
stacking context also meant the scrim's `z-index: 60` covered a surface at
|
||||
`z-index: 1`; the surface now outranks it.
|
||||
- **Session telemetry** under the composer: turns, steps, tok/s, tokens and
|
||||
memory used, in tabular figures so the numbers do not jitter.
|
||||
|
||||
## 4. Verification
|
||||
|
||||
The evidence for this document is the running app, not the source:
|
||||
|
||||
- `strata/.shots/design-system-index.png` — every screen in both themes, side by
|
||||
side, captured at 1512×1110. Light is the default. (Split for reading as
|
||||
`index-1.png` / `index-2.png`.)
|
||||
- Overlay surfaces: `120-palette`, `121-palette-filtered`, `122-shortcuts`,
|
||||
`100-context-panel`, `96-sampling-changed`, `80-slash-menu`, `70-tool-approval`.
|
||||
- `npm run typecheck` and `npm run build` both clean.
|
||||
- Every tour run reports **no console errors**.
|
||||
|
||||
Two checks are scripted rather than eyeballed, so they can be re-run after any
|
||||
change: an off-scale audit over `app.css` (radii, type sizes, shadows, literal
|
||||
colours, gradients) and a contrast probe that composites translucent tints and
|
||||
measures each interactive state separately. Both are described in §2 and §4.
|
||||
|
||||
## 5. Detail pass
|
||||
|
||||
A zoomed review of every screen (2× crops, not whole-page glances) turned up four
|
||||
things that only show at real size:
|
||||
|
||||
| Symptom | Cause | Fix |
|
||||
| --- | --- | --- |
|
||||
| Metric rows lost their rhythm — one card's value wrapped to two lines and pushed its caption out of line with its neighbours | the kit's `.st-metric__value` is the 32px *stat* size, used for names like "Apple M4 (8-core GPU)" | `Metric compact` renders text values at `--st-fs-lg`, so names stay on one line and captions align |
|
||||
| The composer's context meter was invisible — just a hairline on white | `.st-progress` uses `--st-surface-2` for its track, which disappears on the white composer | the composer swaps the track to `--st-line`, the token meant for visible rules |
|
||||
| The engine chip repeated itself: "Loaded and ready · engine idle" | title and subtitle both described load state | title carries the model, subtitle carries readiness — the engine process itself belongs on Monitor |
|
||||
| Two values sat off the type scale (12.5px) | hand-written sizes | moved to the kit's 13px mono step |
|
||||
| Modal search fields drew a focus ring around an invisible box | the global `:focus-visible` outline, on a borderless autofocused input | `.st-input--bare`: the field loses its border and marks focus with a rule underneath |
|
||||
| "Keyboard shortcuts" was listed twice — once for `⌘/`, once for `?` | the shortcut model assumed one binding per action | a shortcut now carries a list of *bindings*, rendered in one row as `⌘ / or ?` |
|
||||
|
||||
Also fixed earlier in the same pass: the setup wizard showed two competing primary
|
||||
CTAs on the basics step ("Continue" and "Download & install" both advanced), now a
|
||||
single action per step.
|
||||
|
||||
|
||||
## Settings panels and API models — 10 October 2026
|
||||
|
||||
Settings now has four independent panels: Appearance (General and Reading & focus), Models, Storage, and About (Privacy and About). The settings search is removed. Arrow keys and Home/End move between tabs; an unfinished model connection stays intact when switching panels. The dialog still opens over the current page.
|
||||
|
||||
Models supports OpenAI, Anthropic, DeepSeek and OpenRouter presets, plus custom servers over HTTP/HTTPS. Connections can use OpenAI Chat Completions, OpenAI Responses or Anthropic Messages. Fetch available models retrieves the API catalog; users choose which models appear in chat, or add IDs and display names manually. Custom servers can be addressed by another computer’s network address. The API base URL includes the server’s API prefix, without a completion endpoint suffix.
|
||||
|
||||
Saved connections appear in the chat picker alongside local versions. Selecting an API model routes text conversations to that connection without requiring a local model to be loaded. Conversation history, text attachments already included in the conversation, and enabled skill instructions are sent to the selected API. API models use provider defaults for sampling and reasoning. Local Engine tuning and local tool execution remain separate. The app reports API token usage only when supplied by the provider and does not substitute local engine context limits for remote models.
|
||||
|
||||
Credentials are written atomically to `model-providers.json` in the host data directory with owner-only file permissions (0600). This is a local credentials file, not encrypted keychain storage. The browser receives only `apiKeySet`; editing a connection never reveals the saved key. An unchanged blank key retains the current key, while changing the API destination requires re-entering it. Redirects are rejected. Raw provider error responses are excluded from UI errors to avoid exposing credentials or request content.
|
||||
|
||||
Protocol references: [OpenAI streaming](https://developers.openai.com/api/docs/guides/streaming-responses), [Chat Completions events](https://developers.openai.com/api/reference/resources/chat/subresources/completions/streaming-events), [Anthropic streaming](https://platform.claude.com/docs/en/build-with-claude/streaming), [DeepSeek API](https://api-docs.deepseek.com/), and [OpenRouter API](https://openrouter.ai/docs/quickstart).
|
||||
|
||||
Verification uses an isolated local mock API and host, with fake keys and test conversations. It covers discovery, pagination, saved key retention/redaction, all three stream formats, history, cancellation and incomplete responses. UI checks cover adding a provider, manual custom models, picker integration, text chat without a loaded local model, keyboard tabs, light/dark themes and phone widths. Screenshots are under `docs/evidence/settings-models-2026-10-10`.
|
||||
|
||||
|
||||
## Downloaded model picker and compact model header — 10 October 2026
|
||||
|
||||
The chat picker groups downloaded local versions by model family. A family row shows its running version, or its smallest downloaded version when idle; the adjacent arrow reveals other downloaded versions. Available catalog entries and unfinished downloads stay in the Model library. Installed files remain visible through loading, unloading and recoverable load errors. Existing switch confirmations and engine lifecycle checks still apply. Saved API connections appear in the same picker under their provider names. Expanding a group scrolls within the available viewport height.
|
||||
|
||||
The Model hero uses the authored family icon without its surrounding tile. Its title and current quantization/file size share a line where space permits, with responsive wrapping on phones. The redundant family eyebrow and running-status row are removed. Opening the family selector with a pointer leaves its border transparent; keyboard focus remains visible.
|
||||
|
||||
Verification: 10 focused tests passed, plus TypeScript and production build. Manual UI checks covered actual downloaded Qwen versions, keyboard expansion and cancelled switch confirmation, multiple model families and API selection using a read-only fixture, pointer versus keyboard focus, and 320-pixel layouts. Screenshots are under `docs/evidence/model-picker-2026-10-10`; files named `fixture` use disposable model/provider data.
|
||||
@@ -0,0 +1,378 @@
|
||||
# DSH packaged-app reconnaissance
|
||||
|
||||
Source: `/Applications/DeepSeek Harness.app/Contents/Resources/app.asar` (read-only; version `0.2.0-rc.2`, `dsh/desktop-runtime.json` → `hostProtocolVersion: 4`, node `24.18.1`, platform `darwin/arm64`).
|
||||
Method: asar header parsed (`dataOffset = align4(16 + uint32@12)`), 288 `@deepseek-ai/*` packages extracted to `/tmp/dsh-recon/`, READMEs + `lib/*.js` + `lib/*.css` read and grepped. Every claim below cites a package/file. "not discoverable" = not present in the packaged code.
|
||||
|
||||
---
|
||||
|
||||
## 1. Runtime topology
|
||||
|
||||
**One CLI, layered "profiles", one web surface.** `dsh` is "the sole supported Node application launcher: profiles are ordered stacks of plugin-bundle patch layers" (`dsh/README.md`). Profiles live under `$DSH_HOME/profiles/<name>` (`$DSH_HOME` else `~/.dsh` — `lib/main.js:25` `DSH_HOME_DIR_NAME = ".dsh"`, `dsh-home-paths`). Layer order: bundle patches in `dsh.profile.bundles` order → profile `cordis.patch.yml` → `$DSH_HOME/cordis.patch.yml` → `--patch` overlays. Shipped bundles: `dsh-base`, `dsh-web-app`, `dsh-headless`, `dsh-sdk-app`, `dsh-sdk-minimal`, `dsh-acp-app`. The `desktop` profile name is reserved for Electron and rejected by the npm CLI.
|
||||
|
||||
| Surface | Entry | Notes |
|
||||
|---|---|---|
|
||||
| Web | `dsh web` / `dsh --profile web` | `dsh-web-app/lib/startup.js`: flags `--host <host>`, `--port <port>` (0 = OS-assigned), `--trusted-host <authority...>`, `--no-open`. `--host 0.0.0.0` is a **usage error**: "it would expose remote code execution to the network; use 127.0.0.1 instead". |
|
||||
| Desktop | Electron `lib/main.js` | Spawns a child Node process, does not embed the host. |
|
||||
| Headless / SDK / ACP | `dsh --profile headless\|sdk\|sdk-minimal\|acp` | Same plugin kernel, no browser. |
|
||||
|
||||
### Host: HTTP server
|
||||
`dsh-host-webserver` is a plain `node:http` server that "knows no harness concepts and serves no files". Config `{host: 127.0.0.1 | 0.0.0.0, port: 3000, compression: 'gzip'}` (README example uses port **3000**; `port: 0` → OS-assigned, read back via `ctx.webServer.port`). Matching: **exact table → longest prefix → single fallback handler**; `register(route)` / `registerUpgrade(route)`; duplicate path throws. Index rendering = two layers: `collectIndexInjections()` gathers structured `IndexInjection` rows (one `webserver/index-inject` emit per call), then `applyIndexTaps(html)` raw transforms. No TLS/auth/origin policy of its own — route owners enforce theirs. Shipped web bundle uses gzip level 1 with a 1024-byte threshold.
|
||||
|
||||
### Frontend: the built web shell
|
||||
`@deepseek-ai/dsh-web-frontend` — package description: *"Web application entry: vite build over the `@deepseek-ai/dsh-client-web` shell library; `dist/` served by apps/cli's `dsh web`"* (repo `apps/web`). Contents: `dist/index.html` (825 B, `<div id="root">`, KaTeX fonts under `dist/assets/fonts/`), `assets/index-5SrrfWpU.js` (633 KB), `assets/vendor-CCJJTK99.js` (740 KB), `assets/index-BPHePDI_.css` (76 KB), `assets/vendor-BNsW4eBh.css` (29 KB).
|
||||
|
||||
Served by `dsh-host-frontend-static`, which claims the fallback seat: root/configured index render `index.html` through `ctx.webServer.renderIndex`; other existing files served with MIME; unknown extension → `application/octet-stream`; traversal → **403**; missing → empty **404** (no silent SPA fallback); non-GET/HEAD → **405**. It injects `<base href="./">` ahead of every injected row. Index access needs `ctx.connection.authorizeIndex`: a valid process token gets **303 + persistent browser cookie**, a valid cookie serves the index, everything else gets the Connection-owned **401**. Static assets stay public.
|
||||
|
||||
### `window.__DSH_BOOT__`
|
||||
Composed by `dsh-client-modules` (host half): it "scans the host Loader's entries for packages declaring `dsh.client`, composes the `window.__DSH_BOOT__` entry graph … in module-graph order, serves one-or-more-plugin combo scripts …, contributes the registration facade, application preloads, bootstrap scripts, and graph to the webserver's index injection table". The graph is emitted as one injection row:
|
||||
|
||||
```
|
||||
{ kind: "global", name: "__DSH_BOOT__", value: graph }
|
||||
```
|
||||
|
||||
which `dsh-host-webserver/lib/index.js` renders verbatim as
|
||||
`<script>globalThis["__DSH_BOOT__"] = {…}</script>` (placed in `<head>`, `<` escaped to `\u003c`). Companion rows: `script-preload` for `application`-phase batches, `script-src` for `bootstrap`-phase batches, and a raw `script` row carrying the module-loader queue. The browser bundle then reads it: `await globalThis.__DSH_BOOT_READY__?.promise; const o = n.__ModuleLoader__; const s = globalThis.__DSH_TRANSPORT__; this.modules = o.create({ boot: n.__DSH_BOOT__, staticModules: rM(), ...s?.loadBundle && { loadBundle: s.loadBundle } })` (`dsh-web-frontend/dist/assets/index-5SrrfWpU.js`).
|
||||
|
||||
### Client plugin model (slots + `/plugins`)
|
||||
- A browser plugin declares `dsh.client` in its `package.json` (`platform: 'web'`, exports `./client`, optional `dsh.client.external`). Host bundles are served under **`/plugins`**; `<id>/client` and bare id resolve to the same exports. Boot scripts register factories; module bodies run lazily at first materialization. Failed combo → one retry, then per-row one-resource combo (≤3 requests per missing row).
|
||||
- Shared baseline module table `PLATFORM_MODULES` (React, Cordis, static UI libraries) is frozen by the shell; only `dsh.client.external` entries may resolve elsewhere. Rejects malformed requests, missing suppliers, self-requests, sync cycles.
|
||||
- UI composition is **typed slots**: `dsh-client-ui-slots` provides `single` / `list` / `keyed` / `chain` slots plus Component Factories. "Declaring a slot is claiming it" — the only entry allowed to render a key is its declarer; registering into an undeclared slot throws at load. `ChainSelect` elects by ascending `priority`, ties by registration order. The React implementation and install contract live in `dsh-client-ui-renderer` ("after the complete client plugin roster settles, the boot kernel calls `ctx…`").
|
||||
- Live updates: `dsh-client-hmr` "keeps open Web pages in sync with the Host plugin graph and reloads rebuilt browser bundles"; ordinary enable/disable needs no page reload. The `dsh-client-connection` package carries browser→Host Remote calls, exact Fetch responses and "connection generations" over the `/api` bridge (`dsh-api-gateway` owns the two-sided RPC endpoint and `REMOTE_STREAM_MUX_PATH` websocket mux).
|
||||
|
||||
### Desktop boot chain
|
||||
`app.asar/lib/main.js` → `spawn(node, ["--expose-internals", …, "<runtimeDir>/node_modules/@deepseek-ai/dsh-desktop-host/lib/index.js", runtimeDir, projectDir, primaryRuntime, pnpm, nodeBin], {stdio: [ignore, pipe, pipe, ipc]})`. The child (`@deepseek-ai/dsh-desktop-host`, *"Private Node-mode host process for the Electron desktop application"*, mounts `dsh-host-webserver`, `dsh-agent`, `dsh-client-connection`, `dsh-jobs`, `dsh-schedule`, `dsh-workspace`, `dsh-skill-office`, `dsh-deepseek-account`) replies over IPC `{type:'ready', url, injections}`; main then `window.loadURL(<that url>)`. Other IPC events: `platform-session`, `shutdown-complete`, `fatal`, plus a request/response control channel. Preloads shipped: `preload-app.cjs`, `preload-mandatory.cjs`, `preload-platform-account.cjs`, `preload-update-dialog.cjs`, `preload-welcome.cjs`; separate renderer documents for welcome / mandatory-update / update-dialog. The preload sets `html[data-platform='darwin']` (macOS) and `data-windows-titlebar` (Windows); these switch frame geometry.
|
||||
|
||||
URL announcement: `dsh web: <authenticatedUrl> (LAN: …)`, `DSH_WEB_URL` is exported to the model's shell env, and `webRuntime` service + `web-app` plugin add the "You are interacting with the user through the DeepSeek Harness Web GUI at <url>" system-prompt section.
|
||||
|
||||
**Ports:** config example 3000; `--port 0` for ephemeral; Electron takes whatever the desktop-host reports; loopback host is hardcoded `127.0.0.1` for the canonical URL (`LOOPBACK_HOST`).
|
||||
|
||||
---
|
||||
|
||||
## 2. Client package map
|
||||
|
||||
### Shell / sidebar / layout
|
||||
| Package | Responsibility | UI region |
|
||||
|---|---|---|
|
||||
| `dsh-client-ui-layout` | Three-column `AppFrame`, edge-column widths, `ctx.layout.selectPanel/toggleSidebar/openRightbar/closeRightbar`, theme presenter | whole frame |
|
||||
| `dsh-client-ui-renderer` | Mounts the assembled client GUI, React slot renderer + install contract | app root |
|
||||
| `dsh-client-ui-slots` | Slot/factory registry (React-free) | infra |
|
||||
| `dsh-client-ui-sidebar` | Brand mark+name, New Session, `sidebar.panellist` global entries, collapse/rail, bottom-pinned Settings | left column |
|
||||
| `dsh-client-ui-workspace` | Workspace + Session catalog: grouped/flat lists, add/rename/reorder/search/fork/archive/delete, row hover menus | left column body |
|
||||
| `dsh-client-ui-sidebar-right` | Right dock: one surface per session, two presentations (docked/fullscreen), expand button, `rightbar` controller | right column |
|
||||
| `dsh-client-ui-sidebar-files` | Workspace file tree with watched auto-refresh | right tab |
|
||||
| `dsh-client-ui-sidebar-terminal` | Shell picker + persistent terminals, rename, recovery | right tab |
|
||||
| `dsh-client-ui-sidebar-browser` | HTTP(S) browsing: iframe+managed history (web) / `<webview>` (desktop) | right tab |
|
||||
| `dsh-client-ui-sidebar-documentpreview` | File preview + renderer choice (Markdown/code/PDF/HTML/images/sheets) | right tab |
|
||||
| `dsh-client-ui-theme` | light/dark/system, content font size 10–22 px, token stylesheets | global presentation |
|
||||
| `dsh-client-ui-brand-official` | Swaps DSH mark+name into the sidebar for an `official` build | sidebar brand |
|
||||
| `dsh-client-ui-open-in-app` | Session-header split button: open `cwd` in remembered app | header |
|
||||
|
||||
### Conversation / chat
|
||||
| Package | Responsibility | UI region |
|
||||
|---|---|---|
|
||||
| `dsh-client-ui-conversation` | Target-neutral assembly: event/view registries, per-session bindings, input state, image URL cache, composer shell | center |
|
||||
| `dsh-client-ui-chat` | The Chat target: recorded-conversation rendering, historical images, scroll restore, "work details" modes | center |
|
||||
| `dsh-client-ui-trajectory` | Turn-aware ledger + timing overview + record inspector | center (tab) |
|
||||
| `dsh-client-ui-tool` | Renders every tool call, dispatched by `conversation.tool-call` key | inside chat |
|
||||
| `dsh-client-ui-primitives` | Controls, icons, overlays, Markdown/TeX, terminal, read, diff, search, web, JSON renderers | everywhere |
|
||||
| `dsh-client-ui-attachment` | Draft rail under composer, full-viewport drop invitation, durable images, lightbox | composer + messages |
|
||||
| `dsh-client-ui-commands` | `/` command popups, client actions, host command input; `/model`, `/permission` popupSelect specs | composer |
|
||||
| `dsh-client-ui-input-trigger` | `/` and `@` grouped menu at caret (commands, files, sessions) with drill-down | composer |
|
||||
| `dsh-client-ui-reference` | `@` completion ordering: files before sessions | composer |
|
||||
| `dsh-client-ui-message-feedback` | Like/Dislike in the assistant action strip + feedback dialog + `/feedback` | message actions |
|
||||
| `dsh-client-ui-approval` | Approval presentation; takes over the composer; Enter=allow, Escape=reject | composer takeover |
|
||||
| `dsh-client-ui-user-questions` | Agent question panel beside the input: options, text, skip, batch submit | beside composer |
|
||||
| `dsh-client-ui-plan` | Plan mode chip, plan review card, plan preview resource | composer + card |
|
||||
| `dsh-client-ui-goal` | Durable goal + activation: edit/pause/resume/clear, `/goal` bubbles | chat node |
|
||||
| `dsh-client-ui-jobs` | Session background jobs: one header control, lifecycle/elapsed/progress, expandable output | header |
|
||||
| `dsh-client-ui-deliverables` | Turn-end changed-files card, delivered-file cards, inline-code links into the sidebar | turn tail |
|
||||
| `dsh-client-ui-skill` | `/skill` and `/name` skill invocation surface | composer |
|
||||
| `dsh-client-ui-model-selection` | `/model` popup + composer model control (provider-grouped, reasoning effort) | composer |
|
||||
| `dsh-client-ui-agent-preset` | Preset chooser + new-task default + Creator-mode authoring | hero / settings |
|
||||
| `dsh-client-ui-permission-presets` | Preset picker for session (composer, `/permission`) vs future default (settings) | composer + settings |
|
||||
| `dsh-client-ui-subagent` | Browse descendant conversations, running state, tokens, active-turn duration | overlay/panel |
|
||||
| `dsh-client-ui-workflow-run` | One durable workflow run per Chat node; phases → members | chat node |
|
||||
| `dsh-client-ui-schedule` | Automation tasks page + right-sidebar task tab | overlay/tab |
|
||||
| `dsh-client-ui-cordis` | Historical generated-plugin cards + process-local control panel | chat node |
|
||||
| `dsh-client-ui-directory-picker-browse` / `-native` | In-app directory browser / OS chooser, filling `ui-workspace` directory-flow slots | modal |
|
||||
|
||||
### Settings
|
||||
| Package | Responsibility |
|
||||
|---|---|
|
||||
| `dsh-client-ui-settings` | Transport+schema layer: `ctx.configForms` namespaces, atomic multi-field updates, concurrent-write protection, `whileServed` |
|
||||
| `dsh-client-ui-settings-general` | The Settings shell: `sidebar.settings` occupant, navigation, modal panel, onboarding steps, connection pill, config-file action |
|
||||
| `dsh-client-ui-settings-models` | Models page: API keys (write-only), per-provider model lists, hand-declared custom routes |
|
||||
| `dsh-client-ui-settings-plugins` | "Built-in plugins" section shell owning the tab row (`settings.plugins.tab`) |
|
||||
| `dsh-client-ui-settings-plugin-inventory` | Read-only "Plugin list" tab: agent presets (open) + collapsed global inventory + search |
|
||||
| `dsh-client-ui-settings-account` | Account/login section (STRIP for Strata) |
|
||||
| `dsh-client-ui-settings-shell` / `-agent-loop` / `-subagent` / `-web-search` / `-session-log` | Official plugin pages: Shell, Agent loop, Subagent, Web search, session-log upload |
|
||||
| `dsh-client-ui-shortcuts` | "Keyboard shortcuts" dialog (Mod+/): search, recorder, restore defaults |
|
||||
| `dsh-client-ui-plugin-manager` | Plugins sidebar entry: install/enable bundles, pnpm output, install-script approval |
|
||||
|
||||
### Infra (non-visual)
|
||||
`dsh-client-store` (React-free observables/snapshot stores, Immer updates, optional persistence), `dsh-client-modules` (boot graph + `/plugins` bundles), `dsh-client-shortcuts` (per-device keybinding registry/persistence), `dsh-client-locale` (en/zh + plugin locales), `dsh-client-connection` (Remote calls + connection generations), `dsh-client-resources` (`dsh-resource://` addressing), `dsh-client-file-upload` (Blob/stream intake per Session), `dsh-client-hmr`.
|
||||
|
||||
---
|
||||
|
||||
## 3. Screen & navigation inventory
|
||||
|
||||
### Left sidebar (`dsh-client-ui-sidebar`, `-workspace`)
|
||||
Top→bottom: **brand row** (`sidebar.brand.mark` + `sidebar.brand.name`; fallback is the fish mark + localized `common.brand.localBuild` "local build"; a complete build stacks a `version[-commit][-dirty]` badge from `DSH_CLIENT_VERSION` / `DSH_CLIENT_COMMIT_HASH` / `DSH_CLIENT_GIT_DIRTY`) → **New Session** button (label `session.new.label` = "New session"; effective binding shown as trailing grey text on hover/focus) → **global panel entries** (`sidebar.panellist`; *"The shipped composition registers no example panel"*, labels still present: "Global panels") → **workspace/session list** → bottom-pinned **Settings**.
|
||||
Sidebar labels: "New Session", "Open sidebar", "Collapse sidebar", "Settings", "Global panels".
|
||||
Session list (`ui-workspace` copy): "Search session names", "Filter sessions", "Group by", "Order by", "Last updated", "Show archived" / "Archived only" / "All conversations (show archived)", "Hide archived", "No sessions yet", "No matching sessions", "No archived sessions yet", "Archived sessions cannot be opened. Unarchive it to view.", "Selecting or adding a workspace", "Loading workspaces…". Row hover buttons + row menu: **Rename session**, **Fork session** ("Could not fork the session. Try again."), **Archive session**, **Pin session** ("Pin failed. Try again later."), "Plan awaiting review" badge. Subagent-origin sessions are hidden; pending interactions show warning dots.
|
||||
Collapse: 264–420 px (default 280), **56 px rail**, auto-collapse below **1024 px**, macOS desktop hides the column entirely and mounts reopen/New-Session controls into the frame's `shell.leading` seat beside the traffic lights. Scrollbars are pointer affordances: thumb transparent when the pointer is outside the column, drawn for 2 s after it leaves.
|
||||
|
||||
### Conversation header (top bar)
|
||||
`conversation.session.header` with `leading` / `actions` / `corner` / `lineage` / `utilities` slots. Known occupants: open-in-app split button (`workspace.openLocal`, "Open requested", "Opening containing folder…"), **jobs control** ("Background jobs"), **context-occupancy ring + percentage** ("the button stays hidden until context usage and capacity are available"), right-sidebar expand button, more-actions menu (contains **Download session log**, `dsh-session-log-export`), subagent/workflow lineage chips, the View tab bar (**Chat** / **Trajectory**, hidden when fewer than two views are available).
|
||||
|
||||
### Settings dialog
|
||||
Opened from the sidebar's bottom control or the Settings command (desktop `Mod+,`, web `Mod+Alt+,`); a modal panel using the frame's overlay inset with ≥24 px viewport margin; navigation scrolls independently of content; exactly one onboarding step mounts at a time.
|
||||
Sections = `settings.section` contributions. Observed: **General**, **Models**, **Account**, **Plugins** ("Built-in plugins"), **Keyboard shortcuts** (entry labeled "Edit shortcuts", "follows Coding Tools"). The Plugins section owns a tab row: **Plugin list** (read-only; agent presets open, global inventory collapsed, "Search plugins"), plus the **Official** group pages **Shell**, **Agent loop**, **Subagent**, **Web search**, **Session log**.
|
||||
General contains: **Coding Tools** switch (`ui-settings.enabled`, default `true`), **Appearance** row (from ui-theme), **Current version** at the bottom, **Open configuration file** (loopback browser only, host-confirmed), **Upload Session Log when using the official model API**, and rows registered into `settings.general.item`.
|
||||
Shell page copy: "Command timeout (ms)", "Output cap per stream (bytes)", "Overridden" badge, "Reset to default", "Nothing is written until **Save**".
|
||||
Models page copy: "Add model provider", "Custom model API", "API protocol", "Base URL", "API key", "Display name", "Context window", "Add model", "Delete model", "A capacity must be a number, optionally suffixed K or M.", "Context window must be a positive count, like 131072, 256K, or 1M.", "Anthropic Messages", "Configured — enter a new value to replace", "Customized model catalog".
|
||||
|
||||
### Overlays / modals
|
||||
| Overlay | Evidence |
|
||||
|---|---|
|
||||
| Generic modal (mask + card) | `Modal.module.css`: fixed inset 0, `z-index: 1000`, `padding: max(24px, var(--dsh-frame-overlay-top, 24px)) 24px`, dialog `width: min(380px, 100%)`, mask uses `--dsw-mask-blur` + `--dsw-alias-bg-mask-1` |
|
||||
| Menus | `Menu` / `MenuSurface` / `MenuGroup` modules; menu surface fill `--dsw-menu-surface-fill: #f8f9fa94` |
|
||||
| Keyboard shortcuts dialog | 480×600 CSS px card, header + search fixed, internally scrolling list, inline recorder, "Restore All Defaults" footer with override count |
|
||||
| Approval | composer takeover; "Waiting for approval", "Approval details", "Allow once"; Enter allows, Escape rejects |
|
||||
| Ask-user question panel | "Ask question", "Waiting until you answer", "Type your answer", "Take time", "Skip", "Dismiss all questions" |
|
||||
| Directory picker | "Select Workspace Directory" browse dialog (list/navigate/create) or the native OS chooser |
|
||||
| Plugin manager | install guide, pnpm output panel, "Install scripts need permission" dialog, "Allow these scripts and retry" |
|
||||
| Risk confirmation | `RiskConfirmation.module.css`; "I understand the risks and want to continue" (Full access / Auto review) |
|
||||
| Image lightbox | `ImageLightbox.module.css`, "Close original image preview" |
|
||||
| Toasts / hover cards / tooltips | `Toast.module.css`, `HoverCard.module.css` (`--dsw-hovercard-bg: #2C2C2E`), `Tooltip.module.css` |
|
||||
| Plan review card | "Plan review", "View full plan", "Open plan in sidebar", "Request changes" |
|
||||
| Update dialogs (desktop only) | renderer/update-dialog.html, renderer/mandatory-update.html |
|
||||
|
||||
### Keyboard shortcuts (defaults read from registration code)
|
||||
| Keys (desktop / web) | Action | Source |
|
||||
|---|---|---|
|
||||
| `Mod+N` / `Mod+Alt+N` | New session (`session.new`, aliases "new session", "new chat") | `ui-workspace` |
|
||||
| `Mod+K` / `Mod+Alt+K` | Search sessions (`session.search`) | `ui-workspace` |
|
||||
| `Mod+O` / `Mod+Alt+O` | Add workspace / open folder (`workspace.add`) | `ui-workspace` |
|
||||
| `Mod+Alt+G` | Rename session (`session.rename`) | `ui-workspace` |
|
||||
| `Mod+Alt+F` / `Mod+Shift+F` | Fork session (`session.fork`) | `ui-workspace` |
|
||||
| `Mod+Shift+A` / `Mod+Alt+A` | Archive session (`session.archive`) | `ui-workspace` |
|
||||
| `Mod+B` / `Mod+Alt+B` | Toggle left sidebar (`shell.overlay`, label "Toggle left sidebar") | `ui-layout` |
|
||||
| `Mod+Alt+B` / `Mod+Shift+B` | Toggle right sidebar float/fullscreen | `ui-sidebar-right` |
|
||||
| `Mod+,` / `Mod+Alt+,` | Open/close Settings (`settings.open`) | `ui-settings-general` |
|
||||
| `Mod+/` | Open/close Keyboard shortcuts (`settings.general.item`) | `ui-shortcuts` |
|
||||
| `Mod+P` / `Mod+Alt+P` | Files sidebar | `ui-sidebar-files` |
|
||||
| `Ctrl+\`` | Terminal | `ui-sidebar-terminal` |
|
||||
| `Mod+T` / `Mod+Alt+T` | Browser tab in right sidebar | `ui-sidebar-browser` |
|
||||
| `Mod+Alt+O` / `Mod+Shift+O` | Open workspace in app (`workspace.openLocal`) | `ui-open-in-app` |
|
||||
| `Enter` | Send/approve; `Shift+Enter` newline; `Mod+Enter` steers all queued messages | `ui-conversation` |
|
||||
| `Escape` | Stop response (`response.stop`); also closes top dialog / stops menu | `ui-conversation` |
|
||||
| double `Escape` | Host `stopSequenceMs` setting, default **500 ms**, range 1…2,147,483,646 | `dsh-client-shortcuts` |
|
||||
| `Mod+2` / arrows / Enter | segmented-tab & menu navigation | `ui-conversation`, `ui-shortcuts` |
|
||||
|
||||
Binding rules: each command declares defaults per profile `desktop:{macos,windows,linux}` and `web:{macos,windows,linux}`; an omitted profile is unbound. Web persists overrides in origin-local `localStorage` key **`dsh.keybindings.v1`**; Desktop in **`userData/keybindings.json`** (v1 → v2 adds optional `secondCode`). Only overrides are stored; **`null` clears a binding**; Restore All affects the current profile only. Effective bindings take priority over native actions, editors, terminals and embedded pages.
|
||||
|
||||
### Command palette
|
||||
**There is no command palette.** The nearest equivalents are (a) the `/` slash popup — `dsh-client-ui-commands` + `ui-input-trigger`, grouped commands / files / sessions with drill-down and a "Loading options…" state, and "a command line is never silently downgraded to a plain prompt"; (b) the searchable **Keyboard shortcuts** dialog (`Mod+/`) which lists every registered command, its English alias and its key, matching "an ordered subsequence within one label, English alias, or key combination, ignoring case"; (c) the `/model` popup for model+effort selection.
|
||||
|
||||
---
|
||||
|
||||
## 4. Conversation / chat UX mechanics
|
||||
|
||||
**Assembly.** `ui-conversation` consumes `SessionEventLikeEntry` feeds (outer `type` = durable vs client-only transient; inner `event` = `{type, seq, time, data}`), with match/start/update Definitions, Turn/Step location, and Group Definitions that own segmentation. Views are pluggable targets; **Chat** and **Trajectory** are the shipped ones (`conversation.view`). "With Coding Tools off, the shell hides only Trajectory; other plugin-contributed Views remain available."
|
||||
|
||||
| Mechanic | Behaviour | Evidence |
|
||||
|---|---|---|
|
||||
| Message list | Turn/step-grouped timeline with incremental append/prepend, replacement-window rebuilds, "Click to load earlier history" / "Load earlier history…", "Back to bottom", restored scroll position | `ui-conversation`, `ui-chat`, `ui-trajectory` |
|
||||
| Streaming | Assistant deltas arrive as transient `assistant/live-chunk` entries; settlement removes transient matches and applies one durable entry; text renders token-by-token; stop is `response.stop` (Escape) | `ui-conversation` |
|
||||
| Reasoning / thinking | "Deep diving" + shimmer tokens (`--dsw-alias-label-deep-diving`, `-shimmer`), "Analyzing the request", disclosure rows; work-details modes: `settings.transcript.{compact,standard,detailed,verbose}` and `settings.performance.{compact,detailed}` | `ui-chat`, `ui-theme`, slot keys |
|
||||
| Tool calls | One renderer per `conversation.tool-call` key via `ui-tool`; strings: "Called tools" / "Calling tools", "Execution requested", "Result cap reached.", "Content truncated", "Collapse output", "Command failed", "Collapse diff", "Inspect call", "Edited files" / "Editing files" | `ui-tool`, `ui-chat` |
|
||||
| Approvals | The approval plugin takes over the composer and publishes the pending request through `ctx.uiSession`; `approval.allow` = Enter, `approval.reject` = Escape; copy: "Waiting for approval", "Approval details", "Allow once"; one pending-request lock shared by keyboard and pointer | `ui-approval` |
|
||||
| Permissions | Presets **Read Only**, **Workspace Write**, **Full access**, **Auto review**; session-scoped pickers in the composer and `/permission`, future-session default in General settings; "Enable Full access?", "I understand the risks and want to continue" | `ui-permission-presets` |
|
||||
| Edit / retry / branch | Assistant action strip (`conversation.chat.assistant-actions`), "Branch into a new conversation", "Available only on the last message of a completed turn", copy actions, "Cancel editing" | `ui-chat`, `ui-conversation` |
|
||||
| Feedback | Like/Dislike pair in the finalized assistant strip; both open a dialog collecting a category + optional description; `/feedback` decoration; toasts on ack/failure | `ui-message-feedback` |
|
||||
| Composer | One Lexical editor per Session (`DraftEditorRuntime` / `DraftEditor`), attachments as an ordered draft rail + full-viewport drop invitation, `@` references (files before sessions, `@"path with spaces"`), `/` commands claimed/highlighted while only arguments change, IME-safe hints, `Cmd/Ctrl+Enter steers all queued messages` | `ui-conversation`, `ui-attachment`, `ui-reference`, `ui-input-trigger` |
|
||||
| Attachments | Browser stores a Blob / exact bytes / ReadableStream per Session and gets an opaque receipt for a later prompt; durable images render in Chat, Trajectory and Tool results with a lightbox | `dsh-client-file-upload`, `ui-attachment` |
|
||||
| Context / token metering | Context-occupancy **ring + percentage** below the input card, opening a token breakdown panel; session stats add "Avg time to first token (TTFT)", "Cache hit", "Cache write", "Cached input", decode wall time; compaction: "Compacting context…", "Context compacted", "Compaction summary unavailable", `/compact` | `ui-conversation`, `dsh-session-stats`, `dsh-compaction` |
|
||||
| Session titles | First eligible human message → title, with optional async LLM generator (`dsh-session-title-llm`, `-first-prompt-llm`), explicit user rename, `session.untitled` fallback | `dsh-session-title*` |
|
||||
| Session list / persistence | Append-only JSONL per session with checksummed Zstandard frames (raw lines when compression off), versioned format generations v0→v4 with migrations, projection cache for history lists/stats/goals, FTS5 search | `dsh-session-persistence-jsonl`, `dsh-session-format*`, `dsh-session-projection*`, `dsh-session-query-sqlite` |
|
||||
| Plan mode | Enter with `/plan`, leave with the composer chip ("Plan mode on — click to turn off (/plan off)"), submitted plan becomes a review card ("Plan review", "View full plan", "Request changes"), plan preview is a sidebar resource ("Plan · Markdown") | `ui-plan`, `ui-sidebar-right` |
|
||||
| Goals | Durable objective across resume/fork/restart plus process-local activation; states "Ongoing Goal", "Paused Goal", "Blocked Goal", "Inactive Goal"; actions Edit / Pause / Resume / Clear / Save goal; `/goal` runs render as "Command input" bubbles; `dsh-goal-round-driver` auto-continues while idle and rounds remain | `ui-goal`, `dsh-goal`, `dsh-goal-round-driver` |
|
||||
| Jobs | One header control for the session's background jobs with lifecycle, elapsed time and progress; live and settled-with-output jobs expand; **collapsing stops the stream**; "Confirm stop", "Click again to confirm", "no exit code" | `ui-jobs`, `dsh-jobs-local` |
|
||||
| Deliverables | Turn-end changed-files card with host line counts, each opening the turn's review tab in that file; explicit delivered-file cards; inline-code references in closing prose become links; split/unified diff, "Enable line wrap", "Binary file; changes cannot be shown", "File too large; changes cannot be shown" | `ui-deliverables` |
|
||||
| User questions | Agent question card beside the chat input: choose options, enter text, skip, submit one answer batch; timeout/abort copy ("ask_user_question timed out before the user answered") | `ui-user-questions` |
|
||||
| Trajectory | Turn-aware ledger (User/Assistant/Tool/Subtool/compaction), turn+step boundaries, record inspector for tokens, duration, input, output, timing, images, attachment summaries, "Drag to resize. Double-click to reset." | `ui-trajectory` |
|
||||
| Subagents / workflows | Descendant browsing with running state, token usage, active-turn duration; completed one-shot conversations open read-only; workflow runs render as Chat nodes with phases→members | `ui-subagent`, `ui-workflow-run` (both STRIP for Strata) |
|
||||
|
||||
---
|
||||
|
||||
## 5. Settings model
|
||||
|
||||
**Host side (`dsh-settings`).** "Edit fields that plugins declare with `.settings`…" Forms expose **only volatile fields from active, uniquely addressed profile entries**; ordinary configuration stays editable through Cordis configuration files. Composition:
|
||||
|
||||
```yaml
|
||||
- id: settings
|
||||
name: '@deepseek-ai/dsh-settings'
|
||||
```
|
||||
|
||||
On first start after the Loader settles, a legacy harness-home `settings.yaml` is imported once — each section is written into the entry of the same id (`ui-developer-tools` → `ui-settings`, `ui-onboarding` → `ui-settings-general`, `shell` → the platform shell executor entry) — then renamed to `settings.yaml.imported`. **Reset restores the value beneath the profile override (including schema defaults); home patches and command-line overlays take precedence and a form write they would override is refused.** Each form reports `autoGenerate` (default on) for schema-driven pages — "no shipped client does so yet". A plugin with its own page registers `configure({ auto: false }, ctx.fiber)` inside an optional `ctx.inject(['settings'], …)` child from `apply`.
|
||||
|
||||
**Schema & persistence.** Declared by plugins with `schemastery` (`z.object({...})`) — e.g. `dsh-web-app` config `{openBrowser, printUrl, surfaceContext, trustedHosts}`, `dsh-host-webserver` `{host, port, compression}`, `dsh-llm-pi-ai` `{providers: {...}}`. Values live in the composed Cordis tree: bundle patch → profile `cordis.patch.yml` → **`$DSH_HOME/cordis.patch.yml`** → `--patch` overlays. Credentials never enter the settings document — they go through `dsh-credentials` and appear to the UI only as write-only descriptions ("Stored outside the settings file. Leave blank to keep the current key.").
|
||||
|
||||
**Client side (`dsh-client-ui-settings`).** One `settings.describe` reader per browser; feature adapters get a per-entry handle:
|
||||
|
||||
- `ctx.configForms.get(entryId)` → snapshot `{ value, base, user, revision, writable, persistence }` and one write queue shared by every editor of that entry.
|
||||
- `set` / `unset` submit one operation; `mutate` submits **one atomic operation list**; staged editors pass the revision they read, and conflicts preserve drafts.
|
||||
- `ctx.configForms.whileServed(namespaces, register)` registers a page only while the host actually serves one of its namespaces ("A deployment that never composed the owner therefore shows no trace of the page").
|
||||
- Validation is two-stage: browser validates against the serialized Config schema, the host validates the complete configuration including non-serializable checks.
|
||||
|
||||
**Pane contributions (slots).** `settings.section` (a page), `settings.plugins.tab` (a tab inside Built-in plugins), `settings.onboarding` (one mounted step at a time), `settings.general.item` (a row inside General), `settings.links.*`, `settings.header`, `settings.launcher`, plus named surfaces `settings.models`, `settings.account`, `settings.plugins`, `settings.pluginInventory`, `settings.shell`, `settings.agentLoop`, `settings.subagent`, `settings.webSearch`, `settings.sessionLog`, `settings.theme`, `settings.permission`, `settings.transcript.*`, `settings.performance.*`.
|
||||
|
||||
**Namespaces seen in the wild:** `ui-theme` (theme + content font size, persisted by the local provider into `$DSH_HOME/cordis.patch.yml`; remote Web keeps it browser-local), `ui-settings` (`ui-settings.enabled` Coding Tools switch), `subagent`, `subagent-model-selection`, `shell`, plus keybindings which are **not** settings at all (they live in localStorage / `userData/keybindings.json`). There is **no versioned settings-migration system** for the settings document itself (only session-format migrations exist); "not discoverable" for a settings schema version field.
|
||||
|
||||
---
|
||||
|
||||
## 6. Design language
|
||||
|
||||
All values quoted from `dsh-client-ui-theme/lib/client.js` (embedded stylesheet bundle: `base.css`, `design-platform.css`, `corner-shape.css`, `focus.css`, `onboarding.css`, `scrollbar.css`, `gradient-shadow-text.css`, `shiki.css`) and the CSS-module files under `dsh-client-ui-primitives/lib/`.
|
||||
|
||||
**Token layering.** Three tiers: `--dsw-static-*` (raw palette) → `--dsw-alias-*` (semantic) → `--dsw-specific-*`, plus `--dsh-*` (app/layout), `--dsl-*` (markdown/terminal blocks), `--ds-*` (motion/fonts). 483 distinct `--dsw/--dsh/--ds/--dsl/--shiki` tokens are defined in the bundle.
|
||||
|
||||
**Palette (light / dark are two blocks: `body{…}` and `body[data-ds-dark-theme]{…}`).** Neutrals are "neutral-bluish": `--dsw-static-neutral-bluish-00:#fff`, `-50:#f9fafb`, `-75:#f1f3f5`, `-100:#ebeef2`, `-150:#e9ecf2`, `-200:#e1e5ee`, `-300:#cfd3d6`, `-400:#adb2b8`, `-500:#979da6`, `-600:#81858c`, `-700:#61666b`, `-750:#43454a`, `-800:#353638`, `-850:#2c2c2e`, `-875:#232324`, `-900:#1b1b1c`, `-950:#151517`, `-1000:#0f1115`. Brand/accent: `--dsw-static-deepseek-500:#4176e6` (light) / `#4176e6` also `--dsw-alias-brand-primary-new-colorprimary-new-color:#4176e6`; deepseek ramp `-50:#edf3fe`, `-100:#e4edfd`, `-200:#d3e2ff`, `-300:#b7c8fe`, `-400:#7aaaff`, `-450:#5686fe`, `-500:#4176e6`, `-600:#4868b2`, `-800:#34415b`, `-900:#283142`. State: green `-400:#4ed17e` / `-500:#22c55e` / `-900:#233c2c`; amber `-400:#f7ad31` / `-500:#f59e0b`; red `-400:#f25a5a` / `-500:#ef4444` / `-600:#ec1313`; blue `-400:#60a5fa` / `-450:#4d93f8` / `-500:#3b82f6` / `-600:#2563eb` / `-900:#0e3074` / `-950:#172554`.
|
||||
Surfaces: `--dsw-alias-bg-base` = `neutral-bluish-00` (light) / `neutral-bluish-950` (dark); `bg-layer-1/2/3` = `neutral-bluish-00` (light); masks `--dsw-alias-bg-mask-1/2/3` = `#0000003d` / `#0000001f` / `#0000007a` (drop mask `#ffffffb3`); skeleton `#0000000a`. Text: `--dsw-alias-label-primary` = `neutral-bluish-1000` / (dark) inverted; `-secondary` = `-700`; `-tertiary` = `-600`; `-caption` = `-400`; `-dimmed` = `-200`; `-primary-foreground` = `-00`. Borders: `--dsw-alias-border-l1:#0000000a`, `-l2:#0000001a`, `-l2-darkmode-thin:#0000001a`, `-l3:#0000001f`, `-l4:#00000029`. Sidebar: `--dsw-specific-sidebar-fill: var(--dsw-static-neutral-bluish-50)`, nav hover `-75`, active `-100`, active accent `deepseek-100`. Tooltip `--dsw-alias-tooltip-bg: neutral-bluish-850`; toast `-800` with `-00` label; menu surface `#f8f9fa94`; hover card `#2C2C2E`. Diff: added `#e6f4e7` / gutter `#edf7ed` / marker `#01a241`; deleted `#fce6e2` / `#fdece9` / `#ba2723`; `--dsw-alias-code-diff-added: green-500-a08 (#22c55e14)`, deleted `red-600-a08 (#ec131314)`. Shiki token colors are inlined (e.g. `--shiki-token-string:#8ce99a`, `--shiki-token-punctuation:#ced4da`, `--shiki-token-link:#74c0fc`).
|
||||
|
||||
**Theme mechanism.** `html { color-scheme }` + `body[data-ds-dark-theme]` attribute; theme ids `light` / `dark` / `system` (`THEME_PREFERENCES = ["light","dark","system"]`); third-party themes register alias-layer overrides. Content font size is a variable: `--dsh-content-font-size` (setting range **10–22 px**, `Only affects conversation content`), with `--dsh-content-font-delta: calc(var(--dsh-content-font-size,14px) - 14px)` driving markdown line-height and secondary size.
|
||||
|
||||
**Typography.**
|
||||
- UI: `--dsw-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif`
|
||||
- Brand: `--dsw-font-family-brand: "Montserrat", var(--dsw-font-family)` (with `brand-font.css` in `ui-theme/lib/styles/`)
|
||||
- Code: `--ds-font-family-code: "SF Mono", "JetBrains Mono", "Fira Code", Consolas, "Liberation Mono", Menlo, Courier, "PingFang SC", "Microsoft YaHei"`
|
||||
- Composite steps: `--dsw-font-base-16: 16px/24px var(--dsw-font-family)` (weight 400), `--dsw-font-base-strong-16: 500 16px/24px`, `--dsw-font-l-20: 500 20px/28px`, `--dsw-font-m-18: 500 16px/28px`, `--dsw-font-markdown-base: 400 var(--dsh-content-font-size,14px)/calc(24px + var(--dsh-content-font-delta))`, markdown strong 600, italic variant, `--dsw-font-markdown-code-block: 11px/19px var(--ds-font-family-code)`; block banner `11px/18px`.
|
||||
- Component sizes: buttons `font-size: 14px; line-height: 22px; padding: 0 14px; height: 36px` (`.md`) and `12px/18px; padding: 0 10px; height: 28px; radius sm` (`.sm`); sidebar `--dsh-sidebar-inline-padding: 12px`.
|
||||
|
||||
**Radii / shape.** `--dsw-radius-xs:4px`, `-sm:8px`, `-md:12px`, `-lg:16px`, `-xl:20px`, `-panel:28px`. Windows content corner `--dsh-windows-content-radius:16px` ("only the content area's top-left corner has a 16px radius; the other corners and the internal divider remain square"). Progressive enhancement: `@supports (corner-shape:superellipse(1.5)){ :root{--dsw-corner-shape:superellipse(1.5)} *,:before,:after{corner-shape:var(--dsw-corner-shape)} }`.
|
||||
|
||||
**Elevation / shadows.** `--dsw-shadow-lv1: 0 2px 4px 0 #0000000d`, `-lv1-blur: 0 4px 12px 0 #00000005`, `-lv2: 0 4px 12px 0 #00000005, 0 2px 8px 0 #0000000a`, `-lv3: 0 0 1px 0 #0003, 0 0 4px 0 #00000005, 0 12px 32px 0 #00000014`; composed elevations `--dsw-elevation-stroke: 0 0 0 .5px var(--dsw-elevation-stroke-color)`, `-soft: stroke, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008`, `-panel: stroke, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005`, `-prominent: stroke, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d`. Borders are hairlines: `0.5px solid var(--dsw-alias-border-l3)` on outlined buttons; `--dsw-alias-border-l2-darkmode-thin` exists precisely so dark mode can thin a stroke.
|
||||
|
||||
**Motion.** `--ds-ease-in-out: cubic-bezier(.4, 0, .2, 1)`; durations `--ds-transition-duration: .2s`, `-fast: .1s`, `-slow: .3s`. Reconnection loader dots advance every **500 ms** and an attempt stays visible ≥ **800 ms**; the Connected pill fades out over **150 ms**; "Dragging has no transition delay"; discrete open/close sets `data-animating` so the track and the occupant's slide share one duration/easing; fullscreen presentation suppresses transitions; reduced-motion disables sidebar transitions.
|
||||
|
||||
**Layout metrics.**
|
||||
| Metric | Value | Source |
|
||||
|---|---|---|
|
||||
| Sidebar width | clamp **264–420 px**, default **280 px**, rail **56 px**, auto-collapse below **1024 px** | `ui-layout/lib/client.js` (`clampWidth(sidebar, 264, 420)`, `sidebar: 280`, `SIDEBAR_AUTO_COLLAPSE = 1024`) |
|
||||
| Right panel | first open **45 %** of frame (`RIGHTBAR_DEFAULT_RATIO = .45`), capped **70 %** (`RIGHTBAR_MAX_RATIO = .7`), floor 300 px, centre protected at 400 px | `ui-layout` |
|
||||
| Frame clearances | `--dsh-frame-top-clearance: 48px`, `--dsh-frame-overlay-top: calc(var(--dsh-frame-top-clearance) + 20px)`, `--dsh-frame-leading-clearance: 160px`, `--dsh-frame-chrome-top: var(--dsh-windows-titlebar-height)` | `ui-layout` |
|
||||
| Chat content | `--dsh-chat-content-width: min(calc(100% - 32px), 920px)`, user column `clamp(680px, …)`; other literal caps found in the client bundles: `max-width: 960px`, `843px`, `760px`, `720px` | `ui-conversation`, `ui-chat` |
|
||||
| Composer | `--dsh-composer-card-max-width: calc(var(--dsh-chat-content-width) + 32px)` (≈952 px), `--dsh-composer-text-max-height: 336px`, `--dsh-composer-dock-inset: 8px`, `--dsh-composer-side-clearance: 16px` (8 px narrow), `--dsh-composer-stack-gap: 6px` | `ui-conversation` |
|
||||
| Scrollbars | `--dsh-scrollbar-width: 5px \| 6px \| 9px`, session list `--dsh-session-list-scrollbar-width: 5px` | primitives / `ui-workspace` |
|
||||
| Modal | full-viewport layer `z-index: 1000`, padding `max(24px, var(--dsh-frame-overlay-top,24px)) 24px`, dialog `min(380px,100%)`, gap 20px | `Modal.module.css` |
|
||||
| Shortcut dialog | 480 × 600 CSS px; rows 42 px high; settings-control grey key blocks | `ui-shortcuts` README |
|
||||
| z-index ladder (observed values) | 0,1,2,5,10,11,15,100,1000,1004,1100 | grep over all CSS/JS |
|
||||
| macOS chrome | 52 px top strip in the expanded sidebar; caption icon buttons = 16 px glyphs in 28 px circular controls; `--dsh-windows-menu-start: 84px` collapsed / 48 px expanded | `ui-sidebar` README |
|
||||
| Focus | `focus.css` (298 B) defines the ring; automatic entry/return focus deliberately omits outlines while Tab/directional navigation keeps visible indicators | `ui-theme`, `ui-shortcuts` |
|
||||
|
||||
**Icons / assets.** No icon-font or third-party icon package: hand-written inline SVGs, named exports like `IconPanelLeftOutlineRegular`, `IconNewChatOutlineRegular` (`ui-sidebar/lib/client.js`). Product mark assets: a fish mark slot + wordmark; `ui-brand-official` swaps in the DeepSeek Harness mark for an `official` build; the conversation hero always uses the animated fish. Frontend ships `favicon.svg` / `favicon-dark.svg`, `manifest.webmanifest`, and KaTeX woff/woff2/ttf subsets.
|
||||
|
||||
---
|
||||
|
||||
## 7. Strip list vs keep list
|
||||
|
||||
| Capability | Verdict | Why / replacement |
|
||||
|---|---|---|
|
||||
| Profile/bundle boot model (`dsh.profile.bundles` + patch layers, `$DSH_HOME/cordis.patch.yml`) | **KEEP** | It is the extension spine; Strata needs one `strata` profile, not a cloud account. Simplify to 2–3 bundles. |
|
||||
| Slot/factory client composition (`ui-slots` + `ui-renderer`) | **KEEP** | Lets Models / Engine / Serving / Monitor be separate panes without touching the shell. This is the single most reusable idea in the codebase. |
|
||||
| `dsh.client` + `/plugins` + `__DSH_BOOT__` boot graph | **KEEP** | Free plugin discovery and lazy bundles; Strata can serve one prebuilt graph. |
|
||||
| Web-first host (`host-webserver` + `host-frontend-static` + `web-app` flags) | **KEEP** | Exactly Strata's deployment shape; keep `--host/--port/--no-open` and the loopback default, add an explicit LAN opt-in later. |
|
||||
| Electron desktop shell | **DEFER** | Large surface (updater, welcome, mandatory-update, platform login, tray). Strata is web-first; ship `strata serve` and let the browser be the app. |
|
||||
| Sign-in / accounts / DeepSeek cloud API | **STRIP** | Remove `dsh-llm-deepseek*`, `dsh-api-account-controller`, `ui-settings-account`, `dsh-deepseek-account`. Replace with the local engine as the only provider. |
|
||||
| Session-log upload + OTel telemetry + product analytics | **STRIP** | Remove `dsh-session-log-deepseek`, `dsh-session-telemetry*`, `dsh-host-product-telemetry-otel`, `dsh-client-product-analytics`, `ui-settings-session-log`. Strata's Monitor dashboard replaces the *visibility* need locally. |
|
||||
| Subagents / workflows / agent teams / schedules | **STRIP** | Remove `dsh-subagent*`, `ui-subagent`, `ui-workflow-run`, `dsh-experimental-agent-team*`, `dsh-schedule`, `ui-schedule`. A single local model cannot serve parallel agents usefully. |
|
||||
| Provider abstraction `ctx.llm` + chunk protocol (`finish`, `BlockAssembler`) | **KEEP** | This is the seam Strata plugs the local engine into; keeping it means the loop, titles and compaction all work unchanged. |
|
||||
| `dsh-llm-pi-ai` "custom route" config (`api: openai-completions`, `baseURL`, `models[]`) | **KEEP (repurpose)** | It already reaches llama.cpp/MLX-style servers. Strata's Engine/Models tabs should write this config shape. |
|
||||
| Settings model (`ctx.settings` forms + `configForms` handles + revision-checked writes) | **KEEP** | Schema-driven panes, atomic updates, conflict protection — exactly what Engine tuning needs (beginner/expert). |
|
||||
| Credentials seam (`dsh-credentials`) | **DEFER** | A local engine needs no API key; keep the seam for remote fallback but ship without a secrets UI. |
|
||||
| Permission presets (Read Only / Workspace Write / Full access / Auto review) + approvals | **KEEP** | Local models still write files; the Enter/Escape approval takeover is cheap and high-trust. Drop "Auto review" (it is an LLM call). |
|
||||
| Capability gating (`ui-settings.enabled` Coding Tools switch) | **KEEP** | Free simple/expert mode switch for Strata; extend it to gate Engine-expert controls. |
|
||||
| Context metering + session stats + Trajectory | **KEEP (adapt)** | Essential for small local context windows; Trajectory's token/timing inspector becomes the Monitor foundation. |
|
||||
| Compaction (`/compact`, `dsh-compaction-basic`) | **KEEP** | Non-negotiable with 8–32 k local contexts; keep `/compact` and the "Compacting context…" affordances. |
|
||||
| Artifacts/office skills, `libreoffice-kit`, PTC runtime, MCP, web search/fetch | **DEFER** | Large optional trees; keep the skill *loader* (`dsh-skill-filesystem`, `/skill`) and drop the bundled office/search plugins initially. |
|
||||
| HMR of client plugins | **DEFER** | Nice for plugin authors; adds a websocket path. Keep the boot graph, enable HMR behind a dev flag. |
|
||||
| Session persistence (JSONL + zstd frames + format migrations + FTS5 search) | **KEEP (simplify)** | Durable sessions are the product; keep append-only JSONL, one format version, and FTS-less listing at first. |
|
||||
| Command palette | **ADD (gap)** | DSH has none; Strata should add one — the registry (`ctx.shortcuts` catalog with labels, aliases, keys) already exists to populate it. |
|
||||
| OpenAI-compatible **serving** (Serving tab + request log) | **ADD (net-new)** | Nothing in the packaged code serves `/v1/*` outbound; only pi-ai *consumes* it. Build the server + log. |
|
||||
| First-run hardware onboarding wizard | **ADD (net-new)** | The onboarding ledger (`settings.onboarding`, sequential, one step mounted) is the ready-made container. |
|
||||
| Engine tuning beginner/expert | **ADD** | Render as a `settings.section` page plus a Start-page card; reuse the staged-draft + Save + "Overridden" pattern from `ui-settings-shell`. |
|
||||
| Monitor dashboard | **ADD** | Reuse `dsh-session-stats` (turns/steps/TTFT/decode), context-occupancy ring, and the Trajectory timing overview as the data layer. |
|
||||
|
||||
---
|
||||
|
||||
## 8. Local-engine integration points
|
||||
|
||||
### Where the provider abstraction lives
|
||||
`dsh-llm` is the only supported path into a model: *"Any composition that calls a model provider — an agent loop, a session-title generator, a compaction summarizer — streams its requests through this service. Mount it together with at least one provider adapter; the service itself has no configuration and no provider wire code."* Adapters: `dsh-llm-deepseek` (own Messages transport + capabilities), `dsh-llm-deepseek-api-key` / `-account` (auth + model discovery), `dsh-llm-pi-ai` (routes through `@earendil-works/pi-ai` — *"design-verification twin of dsh-llm-deepseek"*), `dsh-llm-retry` (retries at the agent's failed-step extension point), `dsh-deepseek-llm-api-extensions` (provider-specific top-level request fields).
|
||||
|
||||
**Interface (from `dsh-llm/README.md`):**
|
||||
```
|
||||
for await (const chunk of ctx.llm.stream({
|
||||
provider: 'deepseek-official',
|
||||
model: 'deepseek-v4-flash',
|
||||
messages: [{ role: 'user', content: [{ type: 'text', text: 'Hello' }] }],
|
||||
})) { /* block-start, text-delta, …, usage, finish */ }
|
||||
```
|
||||
- `ctx.llm.listProviders()` → registered routes in registration order; duplicate route registration fails `DUPLICATE_ADAPTER`.
|
||||
- `ctx.llm.listModels()` is required for GUI selection ("The GUI requires catalog membership for selection and submission"; base returns an empty list).
|
||||
- Resolution: per-model **context window, output default, reasoning efforts, input modalities, system-prompt update mode** (`'in-history'` when any-position `system` message is effective); `normalizeModelInfo` rejects anything else with `INVALID_MODEL_INFO`.
|
||||
- Reasoning effort is validated against the exact model **before any provider I/O**; an adapter output cap is materialized when the request omits one.
|
||||
- **Every stream ends in exactly one terminal `finish` chunk:** `{kind:'error', failure}` or `{kind:'aborted', failure}`. Stable failure codes: `NO_ADAPTER`, `MISSING_CREDENTIAL`, `INVALID_CREDENTIAL`, `AUTH`, `RATE_LIMIT`, `CONTEXT_WINDOW_EXCEEDED`, `QUOTA`, `ACCOUNT_QUOTA`, `DISCOVERY_FAILED`, `IMAGE_OFFLOAD_REQUIRED`. "Consumers route on the code, never on message text."
|
||||
- Compaction of the stream: `BlockAssembler` / `AssistantStreamAccumulator`, timestamps + token boundaries preserved in one durable attempt settlement.
|
||||
|
||||
### Wire protocol actually spoken
|
||||
`dsh-llm-pi-ai` → `@earendil-works/pi-ai` → **OpenAI Chat Completions via the `openai` SDK client**:
|
||||
`dsh/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js:557`
|
||||
```js
|
||||
return new OpenAI({ apiKey, baseURL: model.baseUrl, dangerouslyAllowBrowser: true, defaultHeaders: headers … })
|
||||
…
|
||||
const { data: openaiStream, response } = await retryProviderRequest(
|
||||
() => client.chat.completions.create(params, requestOptions).withResponse(), …)
|
||||
```
|
||||
Request shaping observed in the same file: `params.stream_options = { include_usage: true }` (line 582), `params.max_completion_tokens = options.maxTokens` (592), reasoning/thinking compatibility switches `thinkingFormat` ∈ `zai | qwen | qwen-chat-template | chat-template | baseten | deepseek | openrouter | ant-ling | together | string-thinking` (619–712), instruction role `model.reasoning && compat.supportsDeveloperRole ? "developer" : "system"` (896).
|
||||
|
||||
Stream parsing (same file): `choice.delta.tool_calls[]` → `{ id, function.name, function.arguments }` accumulated with `partialArgs` and re-parsed per delta via `parseStreamingJson` (425–455); reasoning read from `["reasoning_content","reasoning","reasoning_text"]`, first non-empty wins — **the comment names llama.cpp explicitly**: *"Some endpoints return reasoning in reasoning_content (llama.cpp), or reasoning (other openai compatible endpoints)"* (395–399). Usage mapping (1167–1183): reads `usage.cached_tokens` (Kimi-style top-level) as well as the OpenAI nested form, and `completion_tokens_details.reasoning_tokens`; "OpenAI completion_tokens already includes reasoning_tokens" — i.e. it does not double-count.
|
||||
|
||||
Model discovery (`dsh-llm-pi-ai/lib/index.js:2130–2180`): OpenAI protocols list at **`GET {baseURL}/models`** with bearer auth; Anthropic Messages at `{root}/v1/models` with `x-api-key` + `anthropic-version`. Response capped at **4 MiB**; reads `data[]` and "the enriched `models` map some compatible gateways expose"; any other protocol reports it cannot be interrogated so the UI falls back to hand-entry.
|
||||
|
||||
### Tool-call format
|
||||
Tools are declared with JSON-schema-style `{ name, description, parameters }` (pi-ai passes an OpenAI `tools` array; a comment notes `tools` must be present "when messages include tool_calls or tool role messages" — line 22, needed by LiteLLM/Anthropic proxies). Calls come back as streaming `tool_calls` deltas (id → name → partial arguments). Results are returned as `role: "tool"` messages correlated by `tool_call_id`, with assistant replay metadata kept on the durable messages. DSH-side, `dsh-system-prompt` supplies "one ordered system prompt and the available tool schemas for each model step"; workspace guidance comes from `dsh-agent-instructions` (user-global + project `AGENTS.md`); history pressure is handled by `dsh-compaction` (`/compact`) plus `dsh-compaction-image-offload`.
|
||||
|
||||
### Model-selection flow
|
||||
1. Adapters register routes and advertise models; configured-provider adapters declare a settings namespace so "configuration surfaces can activate dormant providers and edit connection facts without a restart".
|
||||
2. `dsh-agent-default-model` answers exactly one question for fresh agents — `currentSelection()` → `{provider, model, reasoningEffort?}`; `saveSelection()` persists it via the config editor (a no-op without one). Config shape: `{ provider: required, model: required, reasoningEffort?: optional }`.
|
||||
3. Selection UI: `/model` popup and the composer's model control both show "the same provider-grouped choices, and the selected model determines the available effort names and default" (`dsh-client-ui-model-selection`); page copy "Select the model for this conversation", "Model and reasoning effort", "This model provides no reasoning effort levels."
|
||||
4. The chosen selection enters the session and each request names `provider` + `model` + optional `reasoningEffort`; capability resolution (context window, output cap, modalities, reasoning efforts) happens in `ctx.llm` before I/O.
|
||||
5. `dsh-client-ui-settings-models` is where a human declares a route by hand: "Add model provider", "Custom model API", "API protocol", "Base URL", "API key", "Display name", "Context window", "Add model".
|
||||
|
||||
### Checklist: what an OpenAI-compatible local server must satisfy for Strata
|
||||
| Requirement | Detail | Why (from DSH code) |
|
||||
|---|---|---|
|
||||
| `POST {baseURL}/chat/completions` | OpenAI Chat Completions schema; `model`, `messages[]`, `tools[]`, `max_tokens`/`max_completion_tokens`, `stream: true` | `openai-completions.js:557` uses the `openai` SDK with `baseURL` |
|
||||
| `GET {baseURL}/models` | `{"data":[{"id":…,"name"?,"context_window"?,"max_tokens"?}]}`; extra `models` map tolerated; ≤4 MiB | pi-ai discovery `LISTABLE_PROTOCOLS` |
|
||||
| SSE streaming | `text/event-stream`, one JSON object per `data:` line, terminating `data: [DONE]` | pi-ai reads `openaiStream` async-iterable |
|
||||
| `stream_options.include_usage` | Must honor it and emit a final chunk carrying `usage` | `params.stream_options = { include_usage: true }` |
|
||||
| Usage fields | `usage.prompt_tokens`, `usage.completion_tokens`, `usage.total_tokens`, optional `prompt_tokens_details.cached_tokens` and `completion_tokens_details.reasoning_tokens`; `completion_tokens` **must** already include reasoning tokens | usage mapping 1167–1183 |
|
||||
| Tool-call deltas | `choices[0].delta.tool_calls[]` with `index`, `id`, `type:"function"`, `function.name`, `function.arguments` fragments (concatenated, JSON parsed incrementally) | `ensureToolCallBlock` + `partialArgs` |
|
||||
| Reasoning channel | Emit thinking text in `reasoning_content` (llama.cpp convention) — `reasoning` and `reasoning_text` also accepted, first non-empty wins | 395–399 |
|
||||
| Tool-call correlation | Accept `role:"tool"` messages with `tool_call_id`, and tolerate `tools` being present even when only tool history exists | line 22 comment |
|
||||
| Error shape | HTTP error + JSON body the adapter can classify into `AUTH` / `RATE_LIMIT` / `CONTEXT_WINDOW_EXCEEDED` / `QUOTA`; never rely on message text | failure-code contract |
|
||||
| Capability metadata | Local model must know its own context window; otherwise `defaultContextWindow: 262,144` / `defaultMaxTokens: 32,768` fallbacks apply, which are far too large for local models — Strata must set these per model | `dsh-llm-pi-ai` config table |
|
||||
| Shims likely needed | (a) `reasoning` vs `reasoning_content` choice, (b) effort mapping into chat-template thinking flags, (c) prompt-cache fields (`openai-prompt-cache.js`) are OpenAI-specific, (d) `image` content parts must be plain base64 data URLs, (e) `systemPromptUpdate: 'in-history'` only if the engine honors mid-history system messages | adapter compat switches |
|
||||
| Config entry Strata should write | `providers.local: { displayName: "Local", api: "openai-completions", baseURL: "http://127.0.0.1:8080/v1", models: [{ id, name, contextWindow, maxTokens, reasoningEfforts }] }` | `dsh-llm-pi-ai` provider dictionary |
|
||||
|
||||
**Not discoverable in the packaged code:** an outbound OpenAI-compatible *serving* endpoint (nothing registers `/v1/chat/completions` as a route; `dsh-host-webserver` consumers are file/UI routes only), any GPU/hardware detection, any engine-process supervision (llama.cpp/MLX lifecycle), and any request-log store. All four are net-new Strata surfaces.
|
||||
|
||||
---
|
||||
|
||||
### Appendix — evidence shortcuts
|
||||
- Host/boot: `dsh/README.md`, `dsh-base/README.md`, `dsh-web-app/{README.md,lib/startup.js,lib/index.js}`, `dsh-host-webserver/README.md` + `lib/index.js`, `dsh-host-frontend-static/README.md`, `dsh-client-modules/README.md` + `lib/index.js`, `dsh-desktop-host/{package.json,lib/cli.js}`, `lib/main.js:3656-3730`, `dsh-web-frontend/{package.json,dist/index.html,dist/assets/index-5SrrfWpU.js}`.
|
||||
- IA/strings: per-package `lib/client.js` literals (e.g. `ui-workspace`, `ui-settings-*`, `ui-shortcuts`, `ui-chat`, `ui-conversation`, `ui-trajectory`, `ui-deliverables`), plus the slot-key census (231 keys) gathered across `dsh-client-*/lib/client.js`.
|
||||
- Design tokens: `dsh-client-ui-theme/lib/client.js` (embedded `design-platform.css` + friends), `dsh-client-ui-primitives/lib/*.module.css`, `dsh-web-frontend/dist/assets/*.css`.
|
||||
- Engine: `dsh-llm/README.md`, `dsh-llm-pi-ai/{README.md,lib/index.js}`, `dsh-agent-default-model/README.md`, `dsh-settings/README.md`, `@earendil-works/pi-ai/dist/api/openai-completions.js`.
|
||||
@@ -0,0 +1,115 @@
|
||||
# Engine Models and Onboarding implementation
|
||||
|
||||
Implemented on 5 October 2026 in the existing React application. Engine, Models and the five onboarding steps now share model recommendations, performance previews and tuning controls. This report records the implementation and its verification, and supplements the [consolidated design report](design-improvements-2026-10-05.md).
|
||||
|
||||
The current host remains a UI test adapter. Speed previews and simulated operations are visibly labelled Demo. Real benchmark execution, production Strata configuration parity and native engine hookup remain deferred, as requested. No real model was downloaded or run for this work.
|
||||
|
||||
## What changed
|
||||
|
||||
### Engine
|
||||
|
||||
- Kept the existing tuning route and renamed the visible destination Engine, including sidebar, command palette, Settings and inspector links.
|
||||
- Added context and prompt batch dials with SVG detents, a saved-position marker, pointer dragging, click positioning, arrow keys, Home/End, direct numeric entry and recommendation reset.
|
||||
- Kept values stable while dragging; the pointer tracks movement and the value settles on release. Unsupported Expert values remain visible without an invalid slider range.
|
||||
- Added Automatic batch selection and an explanation when the adapter cannot apply batch settings.
|
||||
- Kept CPU allocation, GPU placement and cache settings under More controls. Sampling has its own disclosure; choosing a recommendation profile does not alter temperature.
|
||||
- Added a shared expected-experience panel with reading and answer ranges, sample workload, memory segments and saved-to-draft memory differences. Unified memory is one pool; discrete graphics and system budgets remain separate.
|
||||
- Preserved the existing shared Beginner, Expert and Raw draft, validation, import/export and per-field reverts. Added a compact Expert performance disclosure.
|
||||
- Kept Save for next load primary and Apply now explicit. Draft, saved and currently applied state remain distinct. Debounced validation rejects stale responses.
|
||||
- Added a cancellable Preview test · Demo flow with warm-up, reading, answering and results states. It performs no benchmark and writes no measured results.
|
||||
|
||||
### Models
|
||||
|
||||
- Added the running model summary and hardware details above three profile recommendations.
|
||||
- Recommendations identify the exact model and quantization, both speeds where available, memory, fit, download size, tradeoff and evidence explanation.
|
||||
- Agentic selection gates on approved tool/agent capability before comparing reading throughput. Performance compares answer throughput. Balanced uses the catalog's reviewed-order field and comfortable memory fit.
|
||||
- Missing evidence produces provisional choices. Missing hardware and no fitting approved candidate have explicit states. The same variant can win multiple profiles without creating duplicate downloads.
|
||||
- Hardware/evidence updates request a recommendation refresh instead of moving cards beneath the pointer. Profile browsing never switches the running model.
|
||||
- Added Family → Version → Quantization grouping, reversible expansion, Installed/Discover, search, capability/quantization/fit filters and an explicit incompatible-variant option.
|
||||
- Added comparison of up to three exact variants, aligned on desktop and stacked on narrow screens, with a shared workload selector. A fourth selection is disabled until one is removed.
|
||||
- Kept download and model-operation progress in one activity section. Model switching reviews the selected configuration and active-request consequences before applying it.
|
||||
- Limited initial family rendering to 30 groups with Show more. Variant detail rows mount only when expanded.
|
||||
|
||||
### Onboarding
|
||||
|
||||
1. **Computer:** actual detected processor, accelerator, memory and storage; capacity illustration; uncertainty/details disclosure; retry and browsing with fit unknown.
|
||||
2. **Profile and model:** keyboard-accessible Agentic/Balanced/Performance choices, Balanced for a new setup, one exact recommendation and the shared comparison picker.
|
||||
3. **Tune:** recommended setup summary and optional shared dials. Retained adjustments are validated after a model change; invalid values are explained.
|
||||
4. **Prepare:** download, supported verification, load and readiness stages reflect host state. Errors, cancellation and retry remain local to the operation. Installed files remain completed while loading.
|
||||
5. **Ready:** selected model/profile/context, Start chatting and optional Demo test. Entry requires successful loading; benchmarking never blocks Chat.
|
||||
|
||||
Profile, context, batch and Automatic selection persist with setup progress. Finish later and browser reload resume the saved step. Preparation preserves unrelated engine and sampling settings. Backend validation now checks the chosen candidate variant rather than only the previously loaded model.
|
||||
|
||||
## Shared data and evidence rules
|
||||
|
||||
The common provider is `src/lib/experience.ts`; the controls and preview live in `src/components/EngineExperience.tsx`. `src/components/ModelCatalog.tsx` supplies recommendations, catalog browsing, comparison and selection to Models, Engine and onboarding.
|
||||
|
||||
| Data | Behavior |
|
||||
|---|---|
|
||||
| Sample workload | Short 1K, Document 4K, Long agent context 16K input tokens, each with 256 output tokens. Document is the initial sample. Options exceeding context plus output allowance are unavailable. |
|
||||
| Speed evidence | Ranges carry source, workload, hardware/backend/configuration identity, cold-prompt cache condition, attribution and date. Only compatible evidence supplies real numeric speeds. |
|
||||
| Demo speed | Separate illustrative fixtures. Always labelled Demo; not a measurement or hardware prediction. Never stored as benchmark evidence. |
|
||||
| Missing speed | Not estimated. No zero, accuracy score, temperature prediction or invented first-token latency. |
|
||||
| Duration | Reading and output durations derive from their own rates. Reasoning and scheduling remain unknown; the display does not claim total task time. |
|
||||
| Memory | Catalog weights plus context/cache and a baseline runtime allowance. Estimates explain the execution budget. Partial GPU offload and batch workspace are not numerically predicted. |
|
||||
| Capability review | The real test catalog has no newly invented agent approval. Demo choices are isolated; production approval and benchmark curation still need actual review. |
|
||||
| Preferences | Recommendation profile is separate from sampling priority. Existing configurations, unknown raw keys and unsaved drafts remain preserved. |
|
||||
|
||||
The same inputs use the same provider across all screens. Browsing defaults may differ from a user's retained custom tuning; each preview exposes its exact configuration. A recommendation applies to that displayed configuration, not merely the model's filename.
|
||||
|
||||
## Design and interaction
|
||||
|
||||
Retained supplied Strata identity, GT Walsheim, Anron symbols, green accent and existing token system. Light remains the default. Reading surfaces, numbers and model rows are opaque. Floating controls use the existing restrained material tokens.
|
||||
|
||||
The implementation uses React, SVG and CSS without new dependencies, WebGL or continuous animation loops. Existing 100/160/240/320/460ms timing tokens remain in use. Narrow layouts stack controls, previews, recommendations and comparisons. Reduced motion disables dial travel; reduced transparency removes translucent materials; increased contrast remains supported.
|
||||
|
||||
## Verification
|
||||
|
||||
Used a disposable demo host and state directory on localhost. The user's native engine configuration and actual model files were not used for lifecycle testing.
|
||||
|
||||
| Check | Result and scope |
|
||||
|---|---|
|
||||
| TypeScript | `npm run typecheck` passed on final source. |
|
||||
| UI source audit | `npm run audit` passed: valid tokens/classes/icons, kit in sync, five timing tokens, 11 approved material surfaces and no native selects. |
|
||||
| Production build | `npm run build` passed: 64 modules; JS 419.02 kB / 128.27 kB gzip; CSS 99.24 kB / 18.26 kB gzip. Bundle size is not a RAM or responsiveness measurement. |
|
||||
| Automated tests | `node --test tests/*.test.mjs`: 14 passed. Includes six new estimator/recommendation/catalog tests and extended setup persistence assertions. The final follow-up changes only adjusted presentation and memory-impact wording; typecheck/audit/build were rerun. |
|
||||
| Evidence logic | Tested unknown hardware, invalid drafts, unsupported workload/context, unified memory, unknown partial offload, capability gating, incompatible evidence, provisional choices, no fit and one winner across profiles. |
|
||||
| Large catalog | Pure grouping test covers 3,000 variants. UI mounts detail only on expansion and pages families. A 3,000-row browser performance benchmark was not performed. |
|
||||
| Engine interaction | Dragged the context pointer; exercised arrows, Home/End and direct entry; confirmed shared Raw values; validated/saved/reloaded settings; checked unsupported workload selection and completed Demo test. |
|
||||
| Models interaction | Clicked filters, incompatible variants, family/version expansion and reversible quantization expansion. Compared three variants; verified fourth-choice limit and the wide comparison dialog. |
|
||||
| Onboarding interaction | Walked all five steps through simulated successful loading and Chat. Changed profile/context/batch, used Finish later, resumed, reloaded and confirmed retained step/choices. |
|
||||
| Recovery | Host contract tests cover failed lifecycle outcomes and cancellation; setup resume was exercised in the browser. Exhaustive browser fault injection and native download-resume validation remain outstanding. |
|
||||
| Responsive layout | Engine checked at 390, 768, 1024 and 1512px; document width matched viewport. Models and onboarding were also inspected at 390px, with no document overflow. Desktop comparison inspected at 1512px. |
|
||||
| Preferences | Light/Dark inspected. Reduced motion, Opaque and Increased contrast selected through Settings; rendered dial transition duration was 0s. Defaults restored after the check. |
|
||||
| Contrast sample | Ten Engine text pairings passed in each theme: minimum 4.81:1 Light, 5.73:1 Dark. This samples text, not every control boundary or interaction state. |
|
||||
| Console | No warnings or errors in the inspected final preview log. |
|
||||
|
||||
The repository's external-browser `contrast`, `measure`, `luminance`, `flow`, `flows`, `motion` and `motion:budget` launchers were not run. Browser interactions used the supported browser API; the contrast result reused the repository's read-only probe body with added Engine selectors.
|
||||
|
||||
## Saved evidence
|
||||
|
||||
Screenshots show development verification states; values labelled Demo must not be read as machine benchmarks.
|
||||
|
||||
| Evidence | View |
|
||||
|---|---|
|
||||
| [Engine Light](evidence/instrument-redesign-2026-10-05/01-engine-light.png) | Dials and shared expected experience. |
|
||||
| [Engine Dark](evidence/instrument-redesign-2026-10-05/05-engine-dark.png) | Dark reading surfaces and controls. |
|
||||
| [Engine mobile](evidence/instrument-redesign-2026-10-05/04-engine-mobile-light.png) | Stacked tuning at 390px. |
|
||||
| [Accessibility preferences](evidence/instrument-redesign-2026-10-05/06-engine-accessible.png) | Reduced motion, opaque surfaces, increased contrast. |
|
||||
| [Models](evidence/instrument-redesign-2026-10-05/07-models-light.png) | Exact recommendation names, no fitting Agentic candidate and shared winner. |
|
||||
| [Variant comparison](evidence/instrument-redesign-2026-10-05/08-variant-comparison.png) | Three exact variants and visible memory constraints. |
|
||||
| [Onboarding profile](evidence/instrument-redesign-2026-10-05/09-onboarding-profile.png) | Profile selection and one recommendation. |
|
||||
| [Onboarding mobile](evidence/instrument-redesign-2026-10-05/10-onboarding-mobile.png) | Stacked choices and compact step progress. |
|
||||
| [Computer](evidence/instrument-redesign-2026-10-05/02-onboarding-computer.png), [Ready](evidence/instrument-redesign-2026-10-05/03-onboarding-ready.png) | Earlier captures from the completed walkthrough, before final spacing refinement. |
|
||||
| [Browser checks](evidence/instrument-redesign-2026-10-05/browser-checks.json) | Raw contrast samples, responsive widths and accessibility style observation. |
|
||||
|
||||
## Remaining integration and verification
|
||||
|
||||
1. Connect actual Strata capabilities and supported parameter ranges. The current adapter catalog is not a complete native Strata configuration contract.
|
||||
2. Curate approved agent/tool candidates and Balanced ordering with reviewed capability evidence. Collect comparable throughput data; do not turn the demo curves into a production recommendation formula.
|
||||
3. Implement native, user-initiated, cancellable benchmarks. Before persisting production evidence, add engine build/driver identity and explicit measurement validity/invalidation rules to the existing evidence identity.
|
||||
4. Calibrate memory estimates, including real batch workspace, GPU placement and cache allocation. The current memory strip is an explained approximation, not an out-of-memory guarantee.
|
||||
5. Verify true 200% browser zoom, full screen-reader operation, forced colors and all focus/disabled/hover contrast states. These are not implied by sampled contrast and keyboard checks.
|
||||
6. Measure drag, scrolling and streaming together on representative hardware. No FPS, CPU/RAM, compositor or native throughput performance claim has been made.
|
||||
|
||||
The requested UI redesign is implemented. These remaining items concern production evidence, native integration and broader platform/performance acceptance.
|
||||
@@ -0,0 +1,256 @@
|
||||
# Interaction guidelines
|
||||
|
||||
The rules behind the app's motion, fluidity and focus behaviour. Every one of
|
||||
them is checked by `npm run audit` (static) or `npm run contrast` / `npm run
|
||||
measure` / `npm run motion` (runtime), so a violation fails a command rather than
|
||||
a code review.
|
||||
|
||||
Companion documents: [`design-system-notes.md`](design-system-notes.md) for how
|
||||
the app maps onto the kit, [`dsh-recon.md`](dsh-recon.md) for the product this
|
||||
one is modelled on.
|
||||
|
||||
---
|
||||
|
||||
## 1. Motion is feedback, not decoration
|
||||
|
||||
Every animation must answer one of three questions: *what changed*, *where did it
|
||||
come from*, *what should I do next*. If it answers none of them, it does not
|
||||
ship. There are no animated backgrounds, no parallax, no scroll-jacking, no
|
||||
idle loops.
|
||||
|
||||
## 2. Duration is chosen by distance, not by taste
|
||||
|
||||
| Band | Token | Travel | Used for |
|
||||
| --- | --- | --- | --- |
|
||||
| micro | `--st-t-micro` 100 ms | ≤ 4 px | hover, press, colour and opacity on controls |
|
||||
| control | `--st-t-control` 160 ms | ≤ 16 px | menus, rows appearing, small transforms |
|
||||
| local | `--st-t-local` 240 ms | ≤ 24 px | drawers, sheets, disclosure |
|
||||
| surface | `--st-t-surface` 320 ms | — | a whole panel or screen |
|
||||
| choreographed | `--st-t-choreo` 460 ms | — | multi-element sequences, first paint only |
|
||||
|
||||
No raw millisecond value may appear in a `transition` or `animation` outside the
|
||||
loop allowlist. If a duration is not on this scale, the scale is wrong — change
|
||||
the scale, not the rule.
|
||||
|
||||
## 3. One easing family
|
||||
|
||||
- `--st-ease-standard` — `cubic-bezier(.4, 0, .2, 1)`, the default for everything
|
||||
- `--st-ease-enter` — decelerate in
|
||||
- `--st-ease-exit` — accelerate out
|
||||
- `--st-ease-spring` — direct manipulation only (a toggle, a drag release). Never
|
||||
on an entrance.
|
||||
- `--st-ease-in-out` — loops only
|
||||
|
||||
## 4. One moving thing at a time
|
||||
|
||||
Per region, one thing animates. Two panels sliding at once reads as noise, and on
|
||||
a machine that is also running a local model it costs real frames.
|
||||
|
||||
**Nothing animates during generation** except the caret and the status dot. The
|
||||
generation path is the one place where motion competes with the work.
|
||||
|
||||
## 5. Everything the user triggers is interruptible
|
||||
|
||||
Overlays are driven by `[data-open]` transitions, not one-shot keyframes, so
|
||||
closing mid-open reverses from wherever it got to. `visibility` flips discretely
|
||||
at the correct end of each run, which also keeps a closed drawer out of the tab
|
||||
order.
|
||||
|
||||
## 6. Reduced motion substitutes opacity for movement
|
||||
|
||||
It never silences the interface. Distances collapse to zero and durations to a
|
||||
single frame; opacity and colour still transition, so a state change remains
|
||||
perceivable. Loops that carry no state stop entirely.
|
||||
|
||||
The OS preference is honoured by default, with a manual override in
|
||||
**Settings → Reading & focus → Motion** for people who want stillness without
|
||||
changing a system setting. `data-motion="full"` deliberately wins over the OS.
|
||||
|
||||
## 7. Continuity over re-painting
|
||||
|
||||
Route changes morph (`view-transition`), a disclosure eases open
|
||||
(`interpolate-size` with `::details-content`), and the header's elevation follows
|
||||
the scroll position through a CSS scroll timeline — no scroll listener, no layout
|
||||
read on the main thread. `timeline-scope` hoists the timeline so a *sibling* of
|
||||
the scroller can use it.
|
||||
|
||||
Transitions are skipped while a response is streaming: snapshotting a transcript
|
||||
that is being appended to on every token would fight the SSE updates.
|
||||
|
||||
## 8. Focused views
|
||||
|
||||
- **One hero per screen.** Each screen names its primary object and gives it the
|
||||
only large type. Everything else drops a step.
|
||||
- **Focus mode** (`⌘⇧F`) is a reading mode, not a different app: the same
|
||||
conversation with the chrome withdrawn. An ambient bar keeps what you need
|
||||
while reading — what is loaded, what it is doing, and the way out.
|
||||
- Escape unwinds one layer at a time: an overlay first, then focus mode. A
|
||||
pending tool approval outranks both.
|
||||
- Navigating to another screen leaves focus mode, rather than stranding a bare
|
||||
shell.
|
||||
|
||||
## 9. Long sessions
|
||||
|
||||
- **Prose is capped at a comfortable measure** — 68 characters per line, verified
|
||||
at every text size in the 10–22 px range. Code blocks, tables and metric grids
|
||||
keep the full width, because a wide table beats a wrapped one.
|
||||
- **Text size affects the conversation only.** The interface keeps its own scale;
|
||||
a reader who wants larger prose does not want larger chrome.
|
||||
- **Density** trades row height for rows on screen, for the screens you scan
|
||||
rather than read.
|
||||
- **Follow the reader, not the stream.** New output scrolls into view only when
|
||||
you are already at the bottom. Scrolling back through a long conversation is
|
||||
never yanked forward by the next token.
|
||||
- **Scroll position is remembered per conversation**, so returning to one puts
|
||||
you back where you were reading.
|
||||
- **Large surfaces are never pure white or black.** `#f9fafb` and `#0e1113` are
|
||||
the extremes; the off-scale audit enforces that no literal colour sneaks in.
|
||||
- `prefers-contrast: more` raises muted text and strengthens hairlines.
|
||||
|
||||
## 10. Liquid Glass: capsules, concentricity, and one hard rule
|
||||
|
||||
Apple's Liquid Glass has three principles — **Hierarchy, Harmony, Consistency** —
|
||||
and one rule that overrides enthusiasm:
|
||||
|
||||
> **Glass is for the floating navigation/control layer only. Never apply it to
|
||||
> content.** Glass cannot sample glass.
|
||||
|
||||
**Strata complies, and the audit keeps it that way.** The surfaces carrying a
|
||||
material are exactly six, all control-layer: `.main__head`, `.focusbar`,
|
||||
`.composer`, `.slashmenu`, `.scrim`, `.st-toast--toned`. No card, list, table or
|
||||
media container has one. `npm run luminance` walks every route and fails if a
|
||||
material is ever found inside another material.
|
||||
|
||||
- **Capsules are for controls; the kit's 8/14/20/24 scale is for surfaces.** A
|
||||
button, field, nav row or menu item is something you press or type into and is
|
||||
a capsule; a card, drawer, modal or toast is something content sits on and
|
||||
stays a rounded rectangle. Capsule-on-a-surface reads as a chip floating in a
|
||||
box. `npm run audit` fails if a control is not a capsule.
|
||||
- **Concentric corners.** A rounded element inside a padded rounded parent takes
|
||||
the parent's radius minus the gap, floored at zero (`--st-r-nested`), so the
|
||||
two curves share a centre instead of merely nesting.
|
||||
- **Press compresses the control** (`scale(0.97)`) rather than nudging it. Under
|
||||
reduced motion the scale is dropped; nothing else about the press changes.
|
||||
- **The title collapses on scroll** by cross-fading two stacked copies. Animating
|
||||
`font-size` would reflow the header every frame; opacity is compositor-only.
|
||||
- **Content dissolves under the bar** via a `mask-image` fade rather than meeting
|
||||
a hard rule. A mask is not a gradient, so the flat-surface rule still holds.
|
||||
- **`.clear` glass is not implemented.** Apple reserves it for bold foreground
|
||||
over media-rich content; Strata has no media.
|
||||
|
||||
### Lensing: measured, then declined
|
||||
|
||||
Refraction is the material's signature, and it *is* reachable here:
|
||||
`backdrop-filter: url(#svgfilter)` executes in this runtime — verified with both
|
||||
an `feTurbulence` displacement (13.6% of pixels changed over text) and an
|
||||
`feImage` displacement map (20.6%).
|
||||
|
||||
It was still declined, on evidence:
|
||||
|
||||
| Finding | Result |
|
||||
| --- | --- |
|
||||
| Frame cost while scrolling | p95 **1.03×** — entirely affordable |
|
||||
| Visual change over `.composer` | **mean delta 0.00/255, zero pixels changed** |
|
||||
| Why | the composer sits over a *uniform* backdrop — there is nothing to refract |
|
||||
| Where it *would* show | over the suggestion cards behind the slash menu — a text menu, where a 40px displacement hurts legibility |
|
||||
| Portability | Chromium-only, and the displacement map is shape- and size-specific, so it must be rebuilt on every resize |
|
||||
|
||||
The effect works and costs nothing; it simply has nothing to act on. Shipping it
|
||||
would add a per-resize canvas rebuild and a Chromium-only code path for a change
|
||||
no one can see. Revisit if Strata ever puts glass over media.
|
||||
|
||||
## 11. Materials are rationed
|
||||
|
||||
Blur is the only decorative device the system allows itself, and only where it
|
||||
does something. Three tiers, six surfaces, every one of them overlaying content
|
||||
that moves underneath:
|
||||
|
||||
| Tier | Value | Surfaces |
|
||||
| --- | --- | --- |
|
||||
| thin | `blur(12px)` | screen header, focus bar |
|
||||
| regular | `blur(24px)` | composer, slash menu, toasts |
|
||||
| thick | `blur(40px)` | scrim behind modals and the drawer |
|
||||
|
||||
**Excluded on purpose:** the sidebar (never overlaps anything), every card (flat
|
||||
background — a blur would cost a compositor pass and show nothing), and the
|
||||
transcript (repaints on every streamed token; the one place blur genuinely
|
||||
hurts).
|
||||
|
||||
Every material pairs its blur with `saturate(180%)` — without it blurred content
|
||||
goes grey — and a **specular edge**, a 1px inset highlight that reads as light
|
||||
catching the surface. A hairline, not a gradient.
|
||||
|
||||
The blur value must be a `--st-material-*` token, and the audit enforces it: the
|
||||
token is what collapses to `none` under reduced transparency, so gating cannot be
|
||||
forgotten. `prefers-reduced-transparency` and the manual override in Settings
|
||||
both produce a flat surface with **identical geometry**.
|
||||
|
||||
## 12. A large bright fill is what fatigues
|
||||
|
||||
Brightness is a function of *area*, not just colour. A 2px progress bar at full
|
||||
saturation is fine; the same green filling a 9,700px² button is glare.
|
||||
|
||||
In dark mode, large accent-filled surfaces — the primary button and the reader's
|
||||
own message bubble — are therefore a **tinted material** rather than a solid
|
||||
fill, with the accent showing as light through the surface:
|
||||
|
||||
| | Luminance | vs page | Label |
|
||||
| --- | --- | --- | --- |
|
||||
| solid fill (before) | **0.496** | 9.86:1 | 7.70:1 |
|
||||
| tinted, at rest | **0.055** | 1.90:1 | 5.73:1 |
|
||||
| tinted, hover | 0.079 | 2.33:1 | 4.67:1 |
|
||||
|
||||
Thin accent strokes — progress bars, gauge arcs, toggles, dots, sparklines —
|
||||
keep the bright accent in both themes. Light mode keeps the solid fill: 2.5:1
|
||||
against its background is gentle, and solid reads as confident on white.
|
||||
|
||||
`npm run luminance` fails the build if any surface over 4,000px² exceeds
|
||||
luminance 0.15 in dark mode.
|
||||
|
||||
## 13. Navigation makes the hierarchy obvious
|
||||
|
||||
Drawn from the harness this app is modelled on, and written for someone who finds
|
||||
computers daunting: **every row says what it does, and configuration lives one
|
||||
level down.**
|
||||
|
||||
- The collapse control gets its own row under the logo. Wedged beside the
|
||||
wordmark it read as a peer of the brand rather than a window control.
|
||||
- One obvious action at the top — **New session** — in the accent material.
|
||||
- Daily destinations are flat rows. Configuration (Models, Engine tuning,
|
||||
Settings) lives behind **… More**, so eight rows became three and a menu.
|
||||
- **Workspaces group conversations by the folder they belong to**, which is the
|
||||
mental model a person already has. Search filters them; the folder-plus opens
|
||||
the *system* folder chooser, because asking someone to type an absolute path is
|
||||
not a real option.
|
||||
- The footer holds what is live: the engine chip, Monitor, Serving.
|
||||
|
||||
## 14. Controls own their own popups
|
||||
|
||||
A native `<select>` popup is drawn by the operating system — on macOS a dark
|
||||
system menu with a blue highlight that shares nothing with the rest of the app.
|
||||
`Select` replaces it with a real listbox: capsule trigger, glass popup rendered
|
||||
through a **portal** so it can never become glass-inside-glass, full keyboard
|
||||
support (↑/↓, Home/End, Enter, Escape, typeahead), `aria-activedescendant`
|
||||
tracking, and focus returned to the trigger on close.
|
||||
|
||||
`npm run audit` fails the build if a native `<select>` reappears anywhere in
|
||||
`src/`. It strips comments first — the component's own doc comment *describes*
|
||||
the element it replaces, and matching that prose would be a permanent false
|
||||
alarm.
|
||||
|
||||
## 15. Contrast is a property of the pairing, not the token
|
||||
|
||||
The failures are always pairings — a label on a filled button, text on a
|
||||
translucent tint, muted copy on a quiet panel. So contrast is measured on the
|
||||
rendered result, with translucent backgrounds composited over their ancestors,
|
||||
and every interactive state measured separately. The kit's primary button once
|
||||
passed at rest and failed on hover; a single measurement would have missed it.
|
||||
|
||||
Minimums: **4.5:1** for body text, **3:1** for text ≥ 24 px or ≥ 18.66 px bold.
|
||||
Current status: all pairings pass, light and dark, in every state — see
|
||||
`npm run contrast`.
|
||||
|
||||
One measurement trap worth knowing: Chrome serialises a `color-mix()` result as
|
||||
`color(srgb 0.117 0.29 0.24)` with 0–1 components. Reading those as 0–255 makes
|
||||
a tinted fill look almost black, which silently defeats both the contrast and
|
||||
luminance checks. Both probes parse that form explicitly.
|
||||
@@ -0,0 +1,112 @@
|
||||
# Native Strata UI integration handover
|
||||
|
||||
Implemented 14 October 2026 in the React/Node app under `backups/strata`.
|
||||
|
||||
## Consumer flow
|
||||
|
||||
The default is one model at a time. First launch uses the visual `GuidedSetup` funnel: **Welcome → Your model → Prepare → Make it yours → Chat**. Welcome has animated vector artwork and one expert skip at the bottom. Model selection offers friendly version cards, context, RAM/VRAM inventory with an aggregate total, and an existing-folder browser. Unified CPU/GPU memory counts once. Memory verdicts are guidance: **May run slower** does not block selection or Continue. There is no compatibility alternatives panel or picture-reading question at this stage. The preparation screen confirms the download size before **Download model**, then shows engine-reported progress alongside a clickable Chat / Files / Your setup tour. Vision-capable families always prepare their mmproj/encoder files. Preparation does not load the model automatically.
|
||||
|
||||
After preparation, users choose **Leave 20% for my work** or **Full performance**, and choose whether to **Read pictures when this model loads** (off initially). The optional longer native calibration measures engine settings for approximately 5–10 minutes. **Tune & start chatting** applies the resource and vision preferences, loads one model, performs a short benchmark, and completes setup only when that model is healthy. Chat opens automatically with starter prompts for a new user; selecting a prompt fills the composer without sending it. Progress, choices and operation IDs survive reloads. Finish later preserves the current stage and keeps completed files available.
|
||||
|
||||
Normal Models shows Version, optional picture reading, context, Computer use and Load model. The resource preference can be changed here after onboarding. Image generation is a separate collapsed option. The selected model and context remain visible in the toolbar; saved setups and Manage models are available there. Local GGUF import is a secondary entry in Version. Imported models retain the existing metadata/shard validation and reference their files without copying them.
|
||||
|
||||
### Guided setup integration
|
||||
|
||||
- `choices.onboarding` stores the step, family/version, context, vision, folder, resource preference, calibration choice and operation IDs through the existing setup API. It uses four persisted setup steps; chat is the exit.
|
||||
- `POST /api/native/directory` accepts `{directory}`. The controller validates an existing readable/writable folder and persists it for native downloads. Existing installed configurations retain their file locations. The official installer checks and reuses matching native files/shards; custom GGUF import remains the separate local-model path.
|
||||
- `POST /api/native/operations` with `kind: "install"` and `loadAfter: false` prepares files. The UI sends `vision: "yes"` for vision-capable families, regardless of the future loading choice. `kind: "tune"` accepts `{model, profile: "work" | "performance", calibrate: boolean, vision: "yes" | "no", guided: true}` and orchestrates native calibration, resource settings, loading and a measured benchmark. This operation is cancellable.
|
||||
- `kind: "load"` accepts `vision: "yes" | "no" | "cpu" | "gpu"`. Source configurations retain the prepared vision section and files; only the instance configuration omits vision when disabled. `ui_vision_enabled` and `ui_vision_device` persist the preference after a healthy load. Installed model metadata exposes `visionEnabled`/`visionDevice`, while `images` continues to describe prepared capabilities. An install with `loadAfter: true` passes the separate `loadVision` preference to loading. Changing vision activation reuses the prepared files.
|
||||
- Apple and SSD/NVMe spilling are part of the requested handover target. Wire this UI to the newest engine's actual backend and out-of-core preparation/load contract. The development checkout at v0.1.38 still rejects Apple preparation in its official installer; removing UI memory gates does not change that older engine or expand supported model architectures. Physical RAM + dedicated VRAM is an inventory total, not a promise of one interchangeable allocation pool. Actual preparation errors and disk-space checks remain visible.
|
||||
- Headroom caps CPU expert workers to at most 80% of detected physical cores and reserves at least 20% of the selected GPU's memory. It preserves calibrated lower worker counts and the model/vision safety reserve. This is a worker/memory budget, not a hard utilisation or RAM cap. Performance restores the baseline budget while retaining system safety reserves. Values and a baseline are saved in the prepared configuration with an atomic write and `.bak` backup.
|
||||
- Native `load` also accepts `resourceProfile` for the later Models control. Resource changes are saved only after the engine becomes ready. Cancelling during a health check unloads the cancelled instance.
|
||||
- Artwork and the tour use SVG/CSS animation with reduced-motion support; no video renderer or animation dependency is required. Radio choices and tour tabs support arrow-key navigation, and the dialog focuses each stage's title.
|
||||
- Verification: 157 Node tests pass, TypeScript/build pass, and browser checks cover expert skip, folder selection, keyboard choices, reload, stop/resume, tuning and automatic chat handoff. Screenshots in `docs/evidence/guided-onboarding-2026-10-14` use a disposable supported-hardware fixture. No actual weights, calibration or native update ran on the Mac host.
|
||||
|
||||
## Expert flow
|
||||
|
||||
1. Open Models → Expert mode → Model execution.
|
||||
2. Turn on **Run multiple models**.
|
||||
3. Choose a native family/version, select **Run on → GPU 1**, and Load model.
|
||||
4. Choose another version/family, select **GPU 2**, and Load model. The first instance stays loaded.
|
||||
5. Use **Split across GPUs…** and layer split points when one model needs several cards.
|
||||
6. Use in chat changes the default chat instance. An identical load is idempotent; changed settings reload that placement while preserving its public ID.
|
||||
|
||||
The native catalog determines supported architectures. Arbitrary GGUF imports use the separate local engine adapter; importing a compatible-looking file does not grant Strata-native optimization. CPU-only native text inference is not offered by this adapter. CPU vision encoding is available when the installed native version supports it. Qwen-Image generation remains its own optional model flow; the public Strata text engine does not provide an image-generation backend.
|
||||
|
||||
Preparing new native files unloads managed native instances because the installer can replace shared engine files. The confirmation explains this. Download/prepare all needed versions before loading them concurrently.
|
||||
|
||||
## Connecting the native installation
|
||||
|
||||
Set `STRATA_NATIVE_REPO` to the absolute path to the official Strata checkout. It must contain `setup.py`, `tools/strata_mcp.py` and `serve/server.py`. Settings → Engine can connect a different existing installation. The source checkout is separate from this UI app.
|
||||
|
||||
The catalog adapter requires Python 3.10+. `STRATA_NATIVE_PYTHON` selects it explicitly; otherwise the installed virtual environment or an available system Python is used. The native installer creates the model's `.venv`. Loading uses that environment, rather than installing packages into a random system interpreter.
|
||||
|
||||
For desktop distribution, bundle the tested native source and a supported Python runtime, set these paths from the launcher, and retain the installer’s platform checks. Consumers should receive this installation as part of the app; manual source-folder connection is the fallback. The current relative development fallback locates the sibling `Strata` checkout in this workspace.
|
||||
|
||||
The native adapter works independently of `STRATA_REAL_ENGINE`. That flag continues to select real versus simulated behavior for the older GGUF/llama adapter. Set it to `1` for actual imported GGUF inference. The existing preview conversations and design demonstrations are retained. Switching into the native execution group stops an owned real GGUF engine; concurrent placement applies to native instances.
|
||||
|
||||
## Backend boundaries
|
||||
|
||||
| Module | Responsibility |
|
||||
| --- | --- |
|
||||
| `server/native-control.mjs` | Official MCP catalog/status/install bridge, job persistence, native configuration copies, process lifecycle, measured benchmark, calibration and updates. |
|
||||
| `server/native-settings.mjs` | Allowed settings, bounds, MCP configuration validation and credential masks. |
|
||||
| `server/native-gateway.mjs` | Transparent Chat Completions, Anthropic and Responses forwarding to the selected native instance. |
|
||||
| `server/chat-images.mjs` | Attached image validation: PNG/JPEG/WebP, maximum 3 × 2 MiB. |
|
||||
| `src/lib/native.ts` | Shared native state and polling. |
|
||||
| `src/components/NativeModels.tsx` | Consumer setup, Expert device assignment, version management and load flow. |
|
||||
| `src/components/NativeSettings.tsx`, `NativeMcpEditor.tsx` | Per-model parameters, JSON and tool server configuration. |
|
||||
| `src/components/NativeMonitor.tsx` | All-instance rates, per-instance details and shared host measurements. |
|
||||
|
||||
Each instance runs `serve/server.py` on a distinct private loopback port with a random private API key and a configuration copy in the UI data directory. The public API URL remains the single URL shown in Serving. Its existing API key and local-network/tunnel access controls still apply. Private host controls are not exposed through the sharing proxy.
|
||||
|
||||
The public ID is added to the private native config as an alias, including suffixes for repeated versions on different GPUs. Clients put that exact ID in `model`. Unknown and ambiguous IDs fail before streaming. Responses input, client tool schemas, tool results, reasoning fields and protocol events are preserved. Public clients cannot opt into the host’s configured MCP servers; only local chat's explicit Tools opt-in sends `strata_mcp: true`.
|
||||
|
||||
## Settings and tools
|
||||
|
||||
Expert parameters include thinking budget, output fitting, Anthropic thinking, GPU/layer order, VRAM reserve, elastic cache, concurrent requests, idle unload, lazy loading, stall timeout, API monitoring, image tokens and MCP limits. Sampling includes temperature, top-p/k, min-p, penalties and seed. JSON also exposes engine arguments and `STRATA_` environment flags. Fields absent from the installed server source are disabled with an update hint; the server rejects newly configured unsupported fields.
|
||||
|
||||
Saving validates first, preserves unrelated config keys and non-Strata environment values, writes a `.bak`, and atomically replaces the config. Existing env/header credentials are masked and preserved when the mask is submitted. Clearing a normal field restores its native default. New settings apply on the next load. Context/KV/vision/low-RAM preparation changes go through the official installer so dependent native flags stay consistent.
|
||||
|
||||
MCP servers can be local programs or HTTP connections. Arguments are separate argv entries. Add/Edit/Remove and enabled state are available without using JSON; advanced credentials, working directory and raw configuration remain accessible. Saving a server does not run its tools. In chat, **Enable connected tools** explicitly opts into automatic calls and Bypass permissions; calls/results become visible tool traces. Tools stay off by default.
|
||||
|
||||
Native images are stored as browser IndexedDB blobs with message references, then sent as image content to an enabled native vision model. They are separate from artifact previews. Photos are not silently sent to text-only/API models: queued photos require a local vision target; earlier photos become filename notes when switching to a model without that target. At most three recent pictures, including the current attachments, are sent per request so repeated photo messages fit the request limit. Older pictures stay in IndexedDB and can be reattached.
|
||||
|
||||
## Monitor and Serving
|
||||
|
||||
With multiple instances, Monitor opens All models and shows each model's generating TPS, prompt reading TPS, state and queue. Current rates are labelled Now; idle rates are labelled Last request. Missing measurements show —. Select an instance for its speed history, context and expert cache. GPU readings are device measurements, and host RAM is shown once. Speeds and context are not added across independent models.
|
||||
|
||||
Serving shows one base URL and all available model IDs/devices. Requests can be filtered by model. The connection guide has Chat Completions, Responses and Anthropic templates and a model selector. Responses is capability-gated to native versions that implement it. Cancelling a request aborts only its forwarded call.
|
||||
|
||||
## Files, failures and recovery
|
||||
|
||||
Storage retains the existing configurable model directory and rescan flow. New installations default to the user’s Documents/Strata/Models folder. Windows resolves the known Documents folder (including redirected/OneDrive locations); Linux honors XDG_DOCUMENTS_DIR; macOS uses Documents. Saved custom libraries and legacy libraries with real weights remain selected. STRATA_MODELS_DIR is an explicit override for tests and custom deployments. For the default folder, native preparation uses Documents/Strata as data_dir so its models/<variant> layout lands in Models. On case-sensitive volumes, the host creates a relative models → Models alias; existing conflicting folders are never replaced. The native checkout remains unchanged. Existing native configs retain their original paths; retuning and repair target that model’s original data folder rather than the default folder for new downloads. Completed native downloads and partial SDK downloads are retained for resume. SDK preparation running across a host restart is rediscovered and its progress reattached; interrupted UI operations are recorded with a retry message.
|
||||
|
||||
Settings → Engine provides the original engine/preparation logs and export. Managed native process groups are stopped on unload and host shutdown; temporary instance configs are removed. Servers started outside this UI are detected and preserved; loading/updating here asks the user to stop that server or connect its API first.
|
||||
|
||||
**Tune model** runs a fixed, greedy, thinking-off benchmark and saves reported engine timings. Stop benchmark aborts its request. NVIDIA calibration invokes the installed native `calibrate_config` for the selected existing model; failures are surfaced rather than accepted as a successful measurement.
|
||||
|
||||
About checks release availability inline. Explicit update actions run the official native update path; Strata source updates require a clean checkout and the official origin, and use `git pull --ff-only`. Updates require unloading native instances. Engine rollback is enabled only when the installer supports it and a saved `.previous` engine exists. UI-source rollback is not fabricated. These buttons manage the configured native installation; updating the React app itself belongs to the desktop distribution updater.
|
||||
|
||||
## Verification and deployment limits
|
||||
|
||||
TypeScript and production build pass. The complete Node suite passed **149 tests**. Native fixtures cover independent devices/ports/keys, single-mode switching, idempotence/reload identity, invalid placement preservation, busy-instance guards, settings/backups/masks, benchmarks and aborts, calibration target, dirty-checkout refusal, three-protocol routing, native errors, disconnect cancellation, vision payloads and MCP traces. Browser evidence is in `docs/evidence/native-feature-parity-2026-10-14`.
|
||||
|
||||
The real read-only adapter was verified against the local official checkout at **v0.1.38**. This Apple M4/16 GB machine has no native weights/environment installed; that checkout does not offer a supported GPU here. Multi-GPU screenshots and performance values use disposable fixtures, not measurements from this Mac. Before release, run the actual supported GPU test: install/resume, prepare vision, load two placements, send simultaneous requests through all supported protocols, benchmark/calibrate, update/rollback and test process cleanup on Windows as well as Linux. No native weights, calibration, source update or rollback were run during this UI implementation.
|
||||
|
||||
|
||||
## Guided onboarding annotation pass
|
||||
|
||||
The guided flow removes the duplicate Step N header, groups the model and context selectors above a RAM/VRAM inventory, and uses independent interactive version cards. Primary buttons inherit the same visual treatment as New chat. The modal scrolls vertically with a sticky action footer, including while browsing folders.
|
||||
|
||||
Preparation is headed “Downloading the model...” and has one model/version/quant identity row. Its gently floating counter reads native download.done_gb / total_gb, showing GB left in the current file, rather than multiplying shard progress by the whole-model size. Unknown progress stays indeterminate. Counter interpolation and CSS motion respect reduced motion. Storage shortages show required and free GB with a folder-change action; raw paths and flags are removed from this notice. A resumed setup refreshes the plan before enabling download.
|
||||
|
||||
The four interactive tour topics are Time-skip (labelled Preview), Goal (Coming soon), Loop and Subagents. /loop is now a slash alias for opening Tasks; schedules are chosen there. The Goal tour describes future outcome-driven work and does not implement /goal. Subagents explains the natural-language request to spawn agents and bring parallel results together.
|
||||
|
||||
This pass passed 39 focused directory, progress, memory, native control, vision and chat tests, plus TypeScript and production build. Browser checks verified shared memory counted once, two GPUs aggregated, exact New chat/Continue computed styling, shard countdown 13.7 → 6.2 GB, all tour tabs and keyboard navigation, /loop → Tasks, readable real disk-space feedback, and modal scrolling. Download progress in the evidence is simulated; no model weights or real calibration were run.
|
||||
|
||||
|
||||
The final resource-choice screen now uses an animated computer and resource-budget bar rather than the priority ring. Both budget modes update the illustration immediately. Native semantics are unchanged: headroom remains a CPU worker / GPU memory preference, not a live utilisation throttle. Onboarding checkbox marks retain native input semantics and keyboard operation while rendering a consistent black tick in light mode.
|
||||
|
||||
|
||||
The first-chat screen now places a concise welcome above the real message box. Starter task cards are removed. When setup closes and a model is ready, the first-chat input receives focus without changing a saved draft. This layout also applies when no conversation exists yet. It returns to the standard transcript layout once a message is present. Dark-mode evidence for all onboarding stages, tuning and first chat is in `docs/evidence/onboarding-dark-2026-10-14`.
|
||||
@@ -0,0 +1,26 @@
|
||||
# Persona 01 — PC gamer, round-two debate
|
||||
|
||||
Read all eight independent reports and the complete shared ballot. These votes are simulated design judgments from GPT-6.1 Sol at Medium effort, not human-test findings. Only this reviewer’s debate and vote files were created.
|
||||
|
||||
## Challenges to peers
|
||||
|
||||
1. **Mac M05: one profile selector and one recommendation.** I disagree with hiding the other winners until a profile is selected. I want to see the difference between an everyday choice and the speed choice before interacting. One card per unique exact winner with profile chips gives simultaneous comparison without repeating an identical download. I vote **B06 UNIQUE**, rather than SELECTOR. This accepts M05’s concern about duplication while rejecting its default presentation.
|
||||
2. **Newcomer N02 and N04: move Engine rates and most card speed information into Details.** Fit matters, but visible separate reading and answer ranges explain the performance tradeoff that brought me to Engine or Models. The screenshot’s excessive prose and giant layout can be reduced without hiding the facts. I vote **B03 RATES and B08 BOTH**. Clear Demo/source labels remain necessary; this is a preference for qualified facts, not a claim that illustrative rates predict hardware.
|
||||
3. **Teacher T06: “Show other file formats (quantizations)”.** Quantizations are not file-format choices, and this replacement risks teaching the wrong mechanism. Keep exact quantization names and use a compact expansion label. I support **B07** and B10’s retained exact hierarchy; I oppose that particular friendly wording.
|
||||
4. **Tinkerer proposal 12: show batch/cache/placement/threads in the Ready summary.** Those are useful in Loaded setup, but putting them all on completion repeats an expert execution summary at the point I want to start chatting. I vote **B16 YES** with the brief profile/context summary and technical details disclosed.
|
||||
|
||||
## Concessions and changed stance
|
||||
|
||||
**Teacher T11 and Newcomer N11 persuaded me to strengthen cancellation disclosure.** My G11 mostly preserved the existing Preparation details. They correctly point out that restart-from-beginning behavior belongs beside cancellation before the decision, because the operation could cost time. I support **B15 YES** with that consequence visible and stage-specific retry. No download-resume guarantee is inferred.
|
||||
|
||||
**Mac M10 and Newcomer N10 changed my stance on the setup path.** Round one kept all five steps and merely shortened Tune. Their argument that the default route should review the commitment without requiring a tuning stop is useful. Ballot B12 OPTIONAL explicitly preserves a configuration/download review and optional tuning, so I now vote **OPTIONAL**. This does not authorize removing fit or retained-value validation.
|
||||
|
||||
**Parallel reviewer proposals 1 and 4 add a useful operational point.** I had emphasized performance and memory; their source-based concern about inconsistent lifecycle checks warrants a concise shared-engine scope and known blockers. I support **B17 YES**. I would keep idle zero counts and repeated global scope out of ordinary scan surfaces, as the ballot specifies.
|
||||
|
||||
I hold my original stance on **two visible dials**, **both rates**, exact identities and complete Expert access. Most peers favor a context-only Beginner surface; I still prefer direct tangible adjustment, and my vote is **B02 TWO**. Concise instructions and disclosed mechanisms address the current text complaint. This preference has no measured usability advantage behind it.
|
||||
|
||||
I also hold the need for visible capability uncertainty. Office #5 and Research #4 strengthen the distinction between throughput and actual usefulness, but I favor the ballot’s short metadata-based status line rather than new generic task paragraphs. **B19 VISIBLE** does not establish spreadsheet, legal, research, privacy or tool-quality capability.
|
||||
|
||||
## Decisive ballot summary
|
||||
|
||||
All B01–B20 are recorded in `01-gamer-vote.json`, without conditional votes or abstentions. Choices diverging from general YES are **B02 TWO, B03 RATES, B06 UNIQUE, B08 BOTH, B12 OPTIONAL, B13 KEEP and B19 VISIBLE**. My top three are **B01** (cut repeated copy), **B06** (one card per exact winner) and **B11** (aligned comparison). Root should count the submitted choices as written, with amendments kept separate.
|
||||
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"reviewer": "01",
|
||||
"persona": "PC gamer",
|
||||
"model": "gpt-6.1-sol",
|
||||
"effort": "medium",
|
||||
"votes": {
|
||||
"B01": {
|
||||
"choice": "YES",
|
||||
"reason": "Remove repetition while retaining concise control meaning and configuration state."
|
||||
},
|
||||
"B02": {
|
||||
"choice": "TWO",
|
||||
"reason": "Both dials expose tangible tuning tradeoffs; shorter hints solve the prose problem."
|
||||
},
|
||||
"B03": {
|
||||
"choice": "RATES",
|
||||
"reason": "Separate reading and answer ranges are useful feedback alongside memory fit."
|
||||
},
|
||||
"B04": {
|
||||
"choice": "YES",
|
||||
"reason": "Saving and applying deserve prominence; reset, validation and Demo preview remain reachable."
|
||||
},
|
||||
"B05": {
|
||||
"choice": "YES",
|
||||
"reason": "Dense expert rows should keep precise scope and recommendations, with optional descriptions."
|
||||
},
|
||||
"B06": {
|
||||
"choice": "UNIQUE",
|
||||
"reason": "Exact duplicate winners need one action; profile chips preserve their different priorities."
|
||||
},
|
||||
"B07": {
|
||||
"choice": "YES",
|
||||
"reason": "Exact variant identity is essential for a deliberate, reproducible choice."
|
||||
},
|
||||
"B08": {
|
||||
"choice": "BOTH",
|
||||
"reason": "Both labelled rates fit a compact row and expose different performance tradeoffs."
|
||||
},
|
||||
"B09": {
|
||||
"choice": "YES",
|
||||
"reason": "Compact no-fit recovery and shared-winner identity remove wasted height and duplicate actions."
|
||||
},
|
||||
"B10": {
|
||||
"choice": "YES",
|
||||
"reason": "Installed first supports daily management; remembered tabs preserve deliberate discovery."
|
||||
},
|
||||
"B11": {
|
||||
"choice": "YES",
|
||||
"reason": "Aligned facts make variant differences clearer than three repeated panels."
|
||||
},
|
||||
"B12": {
|
||||
"choice": "OPTIONAL",
|
||||
"reason": "Optional tuning in an explicit review preserves control and shortens the default path."
|
||||
},
|
||||
"B13": {
|
||||
"choice": "KEEP",
|
||||
"reason": "Short descriptors explain the established names without replacing technical profile terminology."
|
||||
},
|
||||
"B14": {
|
||||
"choice": "YES",
|
||||
"reason": "Compact facts and an explicit download review retain consequential information."
|
||||
},
|
||||
"B15": {
|
||||
"choice": "YES",
|
||||
"reason": "Actual progress and local recovery matter more than repeated stage narration."
|
||||
},
|
||||
"B16": {
|
||||
"choice": "YES",
|
||||
"reason": "Ready should lead to Chat; the illustrative test remains accessible in Setup details."
|
||||
},
|
||||
"B17": {
|
||||
"choice": "YES",
|
||||
"reason": "Known request blockers and global scope belong beside lifecycle actions."
|
||||
},
|
||||
"B18": {
|
||||
"choice": "YES",
|
||||
"reason": "One scoped source badge removes repetition without masking mixed evidence."
|
||||
},
|
||||
"B19": {
|
||||
"choice": "VISIBLE",
|
||||
"reason": "A short factual review-status line prevents speed from implying established capability."
|
||||
},
|
||||
"B20": {
|
||||
"choice": "YES",
|
||||
"reason": "Explicit text samples and token amounts describe the performance workload accurately."
|
||||
}
|
||||
},
|
||||
"top_three": [
|
||||
"B01",
|
||||
"B06",
|
||||
"B11"
|
||||
],
|
||||
"amendments": [
|
||||
"B02: keep a short batch hint that larger values may use more memory and are not always faster; no invented speed scale.",
|
||||
"B06/B09: merge only identical exact variant and execution setups; preserve profile-specific rationales and a compact actionable no-fit state.",
|
||||
"B17: show activity counts when relevant and known; put full lifecycle scope in confirmation rather than repeating idle operational prose.",
|
||||
"B19: derive the visible review-status line from actual metadata; never invent task approval or treat Demo fixtures as production capability review."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
# Persona 01 — PC gamer
|
||||
|
||||
## Goals and evidence
|
||||
|
||||
I want a quick, attractive settings interface that tells me what changing a value buys me and what it costs in memory. I am comfortable with hardware, performance settings and exact technical names, but I do not want to read introductory paragraphs every time I tune. This is a simulated persona perspective, not user research.
|
||||
|
||||
Inspected the implementation report `docs/engine-models-onboarding-2026-10-05.md`; design-system notes; interaction guidelines, particularly focused views, density, interruptibility, reduced motion and content surfaces; and actual `Tuning.tsx`, `Models.tsx`, `Setup.tsx`, `EngineExperience.tsx` and `ModelCatalog.tsx`. Visually inspected saved screenshots 01 Engine, 07 Models, 08 comparison, 09 onboarding profile, plus 02 Computer, 03 Ready and 10 mobile onboarding. Current source/screenshots take precedence over historical design-system claims. No app launched, source changed or model run.
|
||||
|
||||
## First impression
|
||||
|
||||
**Evidence:** The dials and large speed numbers make Engine attractive and scannable. The same screen also displays a promotional heading, draft reassurance, two interaction instructions, two long dial explanations, three duration stages, memory explanation and a long impact sentence. Models puts the same exact variant and repeated metrics in two large recommendation cards. Mobile onboarding visibly repeats Performance's purpose immediately after the selected profile tile; the recommendation begins near the bottom of the captured viewport.
|
||||
|
||||
**Persona hypothesis:** I would trust the interface more when concise facts dominate. The heavy explanatory layer makes a relatively simple adjustment feel like a tutorial. I would still open details before committing a model change or interpreting a benchmark. These reactions are hypotheses; no completion-time, preference or comprehension test was performed.
|
||||
|
||||
## Proposals
|
||||
|
||||
P1 = must address in this pass; P2 = useful follow-up; P3 = optional. Values below are examples from screenshots, never measured hardware results.
|
||||
|
||||
| ID / area | Exact current text or component | Concise visible replacement / interaction | Move into details | Benefit | Risk / safeguard | Priority |
|
||||
| --- | --- | --- | --- | --- | --- | --- |
|
||||
| G01 Engine Beginner | `Tuning.tsx` heading: “A little adjustment. A clearer tradeoff.”; “Explore freely. Changes stay in your draft.”; status “Draft retained while you navigate” | Heading “Tune your engine”; status “Unsaved draft”. Keep the status beside the mode switch and show saved/applied states distinctly. | Persistence explanation in a draft-status disclosure accessible by click and keyboard. | Controls become the hero; removes repeated reassurance. | “Unsaved” alone could imply navigation loses changes; details must explicitly explain retention. | P1 |
|
||||
| G02 Engine Beginner dials | `TuningDials`: “How much text can it consider? Longer context leaves more room for documents and uses more memory.”; batch paragraph; repeated “Drag up to increase · arrow keys to adjust” | Context: “More text · more memory”. Batch: “Prompt processing batch · may use more memory”. One shared “Drag or use arrow keys” instruction; keep exact input, Reset and “Automatic · recommended 2,048”. | Full effects and the fact that bigger batches are not always faster in an accessible “Control details” disclosure. | Less prose while keeping the tactile controls and precision I want. | Short batch copy must not imply predictable speed gains; do not add a faster/slower scale. | P1 |
|
||||
| G03 Engine preview | `PerformancePreview` “See the tradeoff.”; `impact-sentence`: “Saved → Draft: +0.09 GB estimated memory. Less room remains within your memory budget.” | Heading “Expected performance”; impact “Draft: +0.09 GB estimated memory”. Keep Reading/Answer labels, ranges, Demo estimate badge, fit and memory pool/remaining amount. Keep any over-budget warning visible. | Redundant consequence sentence and memory legend explanation; duration breakdown under “Timing details”, explicitly stating total task time is unknown. | Relates settings to tangible outcomes without a wall of qualifiers. | Hiding stages must not turn reading/output durations into total-time claims; no combined task-time metric. | P2 |
|
||||
| G04 Engine Expert | Adapter paragraph: “This build uses a llama.cpp adapter. Additional settings are preserved; native Strata configuration uses a different adapter and is a documented integration dependency.”; per-row `p.effect`, key, applies and recommended value | Compact visible “Adapter: llama.cpp · native hookup pending” with details. Retain key, editable value, recommended value, application timing and per-field Revert. Put effect behind row disclosure. Keep Parameters / Raw config, import/export, search, changed-only and validation. | Full adapter caveat and field explanation; unknown keys remain visibly “Preserved only” when applicable. | Familiar dense tuning table with complete expert access. | Hiding support status is unacceptable; “Preserved only” and errors remain in row. | P2 |
|
||||
| G05 Models recommendations | `RecommendationCard` purpose paragraph; `v.name` (“Starter” in capture); generic tradeoff paragraph; “Also selected for another profile · one download.” | Card anatomy: profile, exact family + quant, labelled primary speed with Demo estimate, secondary speed, memory, download, fit, one short tradeoff, action. Example Performance tradeoff “Capability tradeoffs need review”. Shared-winner chip “Also Balanced · one download”. | Purpose rationale and catalog nickname into existing “Why this choice?”; full evidence/provenance stays there. Keep “Provisional” and no-approved-fit states visible. | Smaller cards expose library sooner and preserve the facts needed to pick. | Do not hide capability uncertainty merely because generic prose is cut. No invented quality rating. | P1 |
|
||||
| G06 Models library | `ModelBrowser`: “{n} variants · {context}K context · exact quantization names. Smaller files do not guarantee faster or better answers.”; family/version expansion and “Show all … quantizations” | Visible “{n} variants · {context}K context”; keep exact variant rows, search, filters, reversible expansion and explicit incompatible option. Shorten toggle to “All {n} quantizations” / “One variant”. | Smaller-file caution in accessible “About quantization” disclosure near filters. | Library feels like a hardware inventory I can scan. | Avoid making file size a speed proxy; keep Reading / Answer and memory columns. This assessment is source-based; library was not visible in supplied Models capture. | P2 |
|
||||
| G07 Models comparison | `variant-comparison` embeds three full `PerformancePreview compact` cards, repeating “EXPECTED EXPERIENCE”, “Performance”, duration path, legend and shared-pool paragraph | Aligned compact comparison rows: exact model/quant, Reading, Answer, estimated memory/remaining, download and fit. One shared Demo banner: “Demo estimates · illustrative, not measured”; repeat Demo on cards when individually reused. One shared workload/config line. | Per-variant timing, memory breakdown and provenance under each “Details”. | Makes differences across three variants easy to see, closer to comparing GPU specs. | Over-budget amount and unsupported/unknown states must remain visible per variant; never replace unknown evidence with zero or a score. | P2 |
|
||||
| G08 Onboarding 1 Computer — keep + small change | `SetupScreen` verdict, processor/accelerator/storage, “{n} reported available · current snapshot”; pictured “Free storage is a limit — Strata will pick a lighter model.” | Keep detected hardware, unified/system distinction, capacity illustration, Check again and fit-unknown escape. Short warning “Storage limited · lighter model suggested”. | Driver and other-app caveats remain in existing Computer details. | Confirms the app sees my hardware without another tutorial. | Recommendation must remain a suggestion; do not promise fit. Computer capture predates final spacing refinement. | P2 |
|
||||
| G09 Onboarding 2 Profile & model | `ProfileChoice` purpose: “Generate answers faster, accepting capability tradeoffs.” repeated in `RecommendationCard` beneath selected Performance | Keep three tiles, shorten purposes to “Large prompts + tools”, “Everyday use”, “Faster answers · capability tradeoffs”. Selected recommendation omits repeated profile-purpose paragraph; exact variant, metrics, fit and details stay. | Longer role explanation and rationale under Why this choice. | On mobile, brings selected model into view earlier. | “Agentic” still needs explanation; short tool purpose must not imply tool approval when no approved candidate fits. | P1 |
|
||||
| G10 Onboarding 3 Tune — keep structure | “A good place to start.”; Context / Prompt batch / Setup summary; `MemoryBudget`; “Adjust controls” | Heading “Your setup”; keep recommended summary and optional Adjust controls. Compact memory line “1.8 GB estimated · comfortable fit”; visible warnings replace that line when blocked. Keep Download and load / Simulate download and load explicit. | Memory segments and explanation in “Memory details”; full controls remain available. | Lets me accept defaults quickly and still tune before a large download. | Do not hide retained-context errors or silently reset custom values; preparation button retains truthful simulation wording. Source-only assessment of this step. | P2 |
|
||||
| G11 Onboarding 4 Prepare — keep | “Bringing your model online.”; stage list, progress, Preparation details; retry/cancel actions | Short heading “Preparing model”; keep Download files, supported file-size check, Load model, Check readiness, progress and operation-local cancel/retry. | Already appropriate: interruption/restart behavior and retained-file explanation in Preparation details, auto-open on error. | The stages tell me what is happening with little reading. | Do not simplify into false “verified” claims or hide download-restart behavior at cancellation; show it in cancellation flow. Source-only assessment of this step. | P2 |
|
||||
| G12 Onboarding 5 Ready | “Your next idea starts here.”; full `MemoryBudget`; “Preview speed test · Demo”; “Start chatting” | Heading “Ready to chat”; exact model/quant + profile/context and readiness badge; memory as optional “Setup details”. Keep Start chatting primary and “Preview speed test · Demo” secondary. | Repeated memory breakdown/legend and caveat into Setup details. | Completion feels complete; primary action is easy to spot. | Entry still requires successful load; benchmark preview never blocks Chat and never implies actual measurement. Ready capture predates final spacing refinement. | P2 |
|
||||
|
||||
## Three must-do changes
|
||||
|
||||
1. **G05:** Reduce recommendation cards to exact identity, metrics, fit, concise uncertainty and action; use the existing rationale disclosure.
|
||||
2. **G01 + G02 as one Engine pass:** Remove the marketing header and repeated dial prose while retaining precise inputs and a clear draft state.
|
||||
3. **G09:** Eliminate repeated profile explanation in the selected onboarding recommendation, especially on mobile.
|
||||
|
||||
## Two changes I oppose
|
||||
|
||||
1. Hiding exact quantization names or collapsing all variants into an opaque “best model” choice. I want to compare files and retain direct Expert/Raw access; concise UI should not reduce the available controls.
|
||||
2. Removing Demo, unsupported, provisional, fit or capability warnings to make cards prettier, or adding a single performance/quality score. Numeric speed ranges already look convincing; their evidence status needs visible labels. Native hookup remains deferred.
|
||||
|
||||
## Round-one recommendation
|
||||
|
||||
Use progressive disclosure to remove repetition, with numbers and controls remaining prominent. Keep fit problems and evidence status visible. My preference for quick scanning is a persona hypothesis; the duplicated text and tall cards are directly observable evidence.
|
||||
@@ -0,0 +1,29 @@
|
||||
# Mac persona — round 2 debate
|
||||
|
||||
Read all eight independent reports and the common ballot. These are simulated design judgments, not human research. This round changes only my debate and vote documents. My goal remains a useful default, one clear next action and deliberate access to every expert setting.
|
||||
|
||||
## Specific challenges
|
||||
|
||||
1. **01-gamer G02 and 06-parallel proposal 2:** Keeping both large dials visible optimizes frequent throughput experimentation at the expense of the Beginner starting point. Context has an everyday consequence; prompt batch is a mechanism. I vote **B02 CONTEXT**, preserving the exact Automatic/Custom summary, labelled Adjust and complete Expert access. The parallel review's “Not a parallel-chat count” is useful inside batch help, but it does not justify making batch a peer primary control for everyone.
|
||||
|
||||
2. **03-teacher T06 and 01-gamer G05:** Three profile result regions still make the user inspect multiple candidates and duplicate-winner relationships before choosing. A linked “Same model as Balanced” state is shorter than a full duplicate but adds an indirection. I vote **B06 SELECTOR**: three visible priorities, one selected exact recommendation, shared-winner note and no-fit recovery. Separate profile rationale remains available without displaying three full cards. UNIQUE is a reasonable comparison-oriented alternative, but SELECTOR best supports my single starting-choice goal.
|
||||
|
||||
3. **04-newcomer N02/N04:** Moving every rate into details removes a useful explanation of the speed tradeoff after changing context or priority. I keep **B03 RATES** and **B08 BOTH**. Two small labelled ranges do not require enormous numerals, duration stages or allocation legends. Fit, memory and source should be easy to read beside them. I accept the concern that demo numerals can overpower their qualification; the remedy here is restrained emphasis and adjacent evidence labels.
|
||||
|
||||
4. **05-tinkerer proposals 10 and 12:** Showing batch/cache/placement/threads throughout both review and Ready preserves precision but adds facts that most users need only when tuning or troubleshooting. Show the exact variant, context, fit and Custom status in the initial view; retain the full applied execution identity in details. A summary must never claim draft settings are applied. This is compatible with **B14/B16 YES**.
|
||||
|
||||
## Concessions and changed positions
|
||||
|
||||
**03-teacher T04/T11** makes the strongest recovery case. I concede that Discard should stay visible when changed and recommended values should stay readable in Expert. My M03 considered moving Discard into More actions and my M04 moved recommendation values into row Details. **B04/B05 YES** explicitly improves those choices. Cancellation restart consequences also belong beside cancellation, rather than requiring someone to discover them after an interruption.
|
||||
|
||||
**08-office #5** and **07-research #4** expose a qualification my original compact-card proposal placed mainly inside Why this model. I now support **B19 VISIBLE**: one short actual capability-review state can replace generic tradeoff prose. It must say unknown/pending when metadata is absent and never imply research, office or contract reliability. This is a change from emphasizing a fully disclosed rationale, not acceptance of invented task claims.
|
||||
|
||||
I also change **M09's canonical profile-label preference** to **B13 RENAME** after 04-newcomer N09 and 03-teacher T09: the plain labels state a goal directly, while canonical names remain in Details. This does not make Tools and agents a verified capability claim; no-approved-fit remains explicit.
|
||||
|
||||
My round 1 kept all five steps. I now vote **B12 OPTIONAL** because the ballot explicitly preserves a compulsory download/configuration review, optional controls, preparation, resume and successful-readiness gate. That safeguard resolves the concern behind retaining Tune as a separate step. The tune panel should expand on invalid retained settings; the download commitment must remain visible before Prepare. Peers largely preferred keeping the existing structure, so this is a real disagreement, not claimed consensus or a measured conversion gain.
|
||||
|
||||
## Held positions and priorities
|
||||
|
||||
I hold the single context adjustment, one selected-priority recommendation, compact paired rates and aligned comparison view. My top three are **B02, B06 and B11**. I support evidence consolidation only within a genuinely common source scope. Exact variant access, Expert/Raw, errors, no-fit states and Demo truth remain part of the interface. Existing Strata typography, readable sizes, opaque content and restrained Apple-inspired control materials need no decorative expansion. Native integration remains deferred.
|
||||
|
||||
The JSON contains one unconditional allowed choice for every B01–B20. Amendments are refinements for later discussion, not conditions attached to votes.
|
||||
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"reviewer": "02",
|
||||
"persona": "Mac user seeking polished defaults and easy actions",
|
||||
"model": "gpt-6.1-sol",
|
||||
"effort": "medium",
|
||||
"votes": {
|
||||
"B01": {
|
||||
"choice": "YES",
|
||||
"reason": "Remove repeated introductions while retaining the one consequence and current configuration state."
|
||||
},
|
||||
"B02": {
|
||||
"choice": "CONTEXT",
|
||||
"reason": "Context is the useful everyday adjustment; a visible Automatic or Custom batch summary preserves discoverability."
|
||||
},
|
||||
"B03": {
|
||||
"choice": "RATES",
|
||||
"reason": "Two compact labelled ranges explain performance tradeoffs without requiring a second panel opening."
|
||||
},
|
||||
"B04": {
|
||||
"choice": "YES",
|
||||
"reason": "A clear Save action and explicit Apply review are easier to predict than six peer actions."
|
||||
},
|
||||
"B05": {
|
||||
"choice": "YES",
|
||||
"reason": "Experts need recommendations and applicability in the scan; general explanations can disclose."
|
||||
},
|
||||
"B06": {
|
||||
"choice": "SELECTOR",
|
||||
"reason": "One chosen priority and one recommendation minimize repeated cards while retaining deliberate access to all priorities."
|
||||
},
|
||||
"B07": {
|
||||
"choice": "YES",
|
||||
"reason": "Readable exact identity is necessary to recognize and confirm the file being selected."
|
||||
},
|
||||
"B08": {
|
||||
"choice": "BOTH",
|
||||
"reason": "Reading and answer speed describe different behavior; two small labelled values avoid an extra disclosure."
|
||||
},
|
||||
"B09": {
|
||||
"choice": "YES",
|
||||
"reason": "Compact no-fit recovery and shared-winner identification remove empty space and duplicated actions."
|
||||
},
|
||||
"B10": {
|
||||
"choice": "YES",
|
||||
"reason": "Existing usable models are the natural daily default; Discover remains one visible tab away."
|
||||
},
|
||||
"B11": {
|
||||
"choice": "YES",
|
||||
"reason": "Aligned facts make differences easier to compare than three nested narrative panels."
|
||||
},
|
||||
"B12": {
|
||||
"choice": "OPTIONAL",
|
||||
"reason": "The explicit review and readiness gates survive, so optional adjustment does not need its own mandatory named step."
|
||||
},
|
||||
"B13": {
|
||||
"choice": "RENAME",
|
||||
"reason": "The plain labels express the choice directly; canonical names remain available for continuity."
|
||||
},
|
||||
"B14": {
|
||||
"choice": "YES",
|
||||
"reason": "The default route needs detected capacity, exact selection and commitment facts rather than mechanism explanations."
|
||||
},
|
||||
"B15": {
|
||||
"choice": "YES",
|
||||
"reason": "One truthful progress display and local recovery make preparation understandable."
|
||||
},
|
||||
"B16": {
|
||||
"choice": "YES",
|
||||
"reason": "Successful readiness should culminate in one clear Start chatting action."
|
||||
},
|
||||
"B17": {
|
||||
"choice": "YES",
|
||||
"reason": "Known shared-engine consequences and consistent request checks prevent surprising interruptions."
|
||||
},
|
||||
"B18": {
|
||||
"choice": "YES",
|
||||
"reason": "Scoped consolidation reduces repetition without turning estimates or mixed evidence into measurements."
|
||||
},
|
||||
"B19": {
|
||||
"choice": "VISIBLE",
|
||||
"reason": "One actual review-status line usefully qualifies a recommendation without reinstating generic tradeoff paragraphs."
|
||||
},
|
||||
"B20": {
|
||||
"choice": "YES",
|
||||
"reason": "Text-sample labels retain precision while reducing the implication of verified document-task support."
|
||||
}
|
||||
},
|
||||
"top_three": [
|
||||
"B02",
|
||||
"B06",
|
||||
"B11"
|
||||
],
|
||||
"amendments": [
|
||||
"Use restrained normal metric sizing for B03/B08; retaining both rates does not require the current oversized hero numerals.",
|
||||
"For B06 preserve a visible no-fit cue on an unavailable priority and identify shared winners; selecting a priority never loads a model.",
|
||||
"For B12 label the compulsory commitment section Review setup, show exact custom state and actual download size, and expand invalid settings without overwriting them.",
|
||||
"For B19 use only actual metadata; a missing review remains unknown or pending and never implies all ordinary tasks were tested.",
|
||||
"Keep native integration limitations in accessible adapter details and simulated readiness explicitly labelled Demo."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
# Persona 02 — polished defaults, easy actions
|
||||
|
||||
Independent round 1. This is a simulated goal-based review, not a user study or evidence that Mac users share these preferences. My goals: start a useful chat with a sensible model, understand whether a change will interrupt work, adjust document capacity when needed, and reach every technical setting deliberately. I expect the app to choose a sound starting point and give me one clear next action.
|
||||
|
||||
## Inspected evidence
|
||||
|
||||
Read `engine-models-onboarding-2026-10-05.md`, the relevant identity/material/focus/navigation sections of `design-system-notes.md` and `interaction-guidelines.md`, and actual `Tuning.tsx`, `Models.tsx`, `Setup.tsx`, `EngineExperience.tsx` and `ModelCatalog.tsx`. Viewed screenshots 01 Engine light, 07 Models light, 09 onboarding profile, 08 comparison, 04 Engine mobile and 10 onboarding mobile. Current source/screenshots/report take precedence over historical design-system notes. No interaction, model execution, server or browser launch occurred.
|
||||
|
||||
The current materials, GT Walsheim, Anron symbols, green accent and quiet opaque reading surfaces already support this goal. The obstacle is simultaneous explanation: Engine presents two large instruments, multiple headings, speeds, durations, memory taxonomy, instructions and six footer actions. Models repeats the same winner in two full cards; the profile step repeats the selected profile's purpose below the profile choices. On mobile, screenfuls pass before the consequential action. Simplification should reduce visible objects and words without reducing truth or expert access.
|
||||
|
||||
## Twelve proposals
|
||||
|
||||
| ID / priority | Current text or control | Exact replacement / interaction | Details relocation | Benefit and risk |
|
||||
|---|---|---|---|---|
|
||||
| M01 / P1 | Beginner: “A little adjustment. A clearer tradeoff.”, “Explore freely. Changes stay in your draft.”, two equally prominent Context / Prompt batch dials, repeated “Exact value” and drag instructions | Heading **“Context”**; hint **“More room for documents uses more memory.”** Show the existing context instrument, with value entry opened by activating its value. Put Prompt batch under **“Advanced controls”**, showing **“Prompt batch · Automatic”** in its collapsed summary when supported. Keep Beginner/Expert switch. | Batch, threads, GPU placement and cache in Advanced controls; keyboard/drag guidance in accessible help, retaining a persistent help trigger. Exact-value editing remains keyboard reachable. | A beginner sees one meaningful adjustment. Risk: hidden batch reduces discovery; its visible summary and Expert preserve access. A custom retained batch must say **“Prompt batch · Custom”**, never silently become Automatic. |
|
||||
| M02 / P1 | Expected experience: “See the tradeoff.”, speed pair, three-stage timing path, memory strip/legend/pool prose and Saved → Draft paragraph | Title **“Expected experience”**; retain clearly qualified reading and answer ranges and **“Memory · 1.9 GB estimated”** / **“Estimated fit · Comfortable”**. Changed draft line: **“Draft uses +0.09 GB estimated memory.”** Show **“Demo estimate”** beside the speed block. | Timing path, segment strip/legend, pool explanation and exact workload/config/source under **“Estimate details”**. Keep workload selector visible. Too-large/unsupported/unknown fit stays visible and actionable. | Removes parallel explanations of the same values. Risk: speed numbers may dominate perceived certainty; Demo must remain adjacent to them, and unknown readings must remain **“No comparable evidence”**. Never imply total task time. |
|
||||
| M03 / P1 | Footer: Preview test · Demo, Recommended defaults, Discard changes, Validate, Apply now, Save for next load plus timing paragraph | Primary **“Save for next load”**; secondary **“Apply now…”** when available; changed-state text **“Unsaved changes”**, saved pending text **“Saved · next load”**. Group Reset/Discard/Validate/Preview in a labeled **“More actions”** menu. Save performs validation and shows errors before any write. | Sampling timing explanation next to sampling controls; **“Save and restart”** plus interruption consequences remain in the Apply confirmation. Explicit Validate stays one menu action away. | Clear action hierarchy while preserving distinct draft/saved/applied states. Risk: menu hides useful actions; expose Discard inline when a draft exists if usability checks show it is missed. Demo Apply limitation stays available at the disabled action, with focusable explanation. |
|
||||
| M04 / P2 | Expert rows always show effect paragraph, technical key, timing and recommended value; always-visible adapter paragraph | Keep Parameters / Raw config, search, groups, Changed only and per-field Revert. Each row shows label, key, control and concise timing badge **“Next load”**, **“Next request”** or **“Preserved only”**. Add **“Details”** per row. Adapter label: **“llama.cpp adapter · Details”**. | Effect, recommendation and longer scope in row Details; native Strata hookup limitation in adapter Details. Errors remain inline and automatically visible. Raw retains extra-key warning next to its editor. | Expert mode becomes a scannable editor rather than a reference manual. Risk: detail controls add navigation cost; preserve search over effects/keys and allow an optional **“Show all details”** view. |
|
||||
| M05 / P1 | Models three tall recommendations; “Three priorities. Exact variants. Clear tradeoffs.”; purpose plus later tradeoff prose; “Also selected for another profile · one download.” on duplicate cards | Replace three full model cards with one priority segmented control and one selected recommendation, default **Balanced** for a new visit. Keep **Agentic / Balanced / Performance** visible. If winners coincide, one exact model card says **“Recommended for Balanced and Performance”**. Card shows exact family + quantization, one qualified speed pair, **“Memory · 1.9 GB estimated”**, **“Download · 0.5 GB”**, fit and one action. | Purpose/tradeoff/source/config under **“Why this model?”**; no subtitle slogan or duplicate purpose. Agentic no-fit appears when selected with **“No approved fit”** and **“Try Balanced”**. | Dramatically reduces text and duplicated objects. Risk: loses simultaneous priority comparison; users can switch priorities without loading, and comparison remains available. Must not imply an unavailable agent recommendation exists. |
|
||||
| M06 / P2 | Model library defaults Discover, “Find a family, then explore its versions and quantizations.”, “Choose a model” opens a second copy of the browser | Default to **Installed** when files exist, otherwise **Discover**. Remove library subtitle and duplicate Choose a model action on Models. Search placeholder **“Search models…”**. Keep family → version → exact quantization expansion and Filters. | Quantization explanation under Filters help; retained context/config visible in concise library reference line. Incompatible option remains explicit under Filters. | Makes daily model management immediate and removes two apparent paths to the same destination. Risk: users miss Discover; retain equally visible Installed/Discover tabs and remember deliberate tab selection. |
|
||||
| M07 / P1 | Comparison embeds three complete PerformancePreview cards, each with identical headings/path/legend/explanation | Title **“Compare models”**. Exact family + quantization column headers; aligned rows **“Reading · tok/s”**, **“Answer · tok/s”**, **“Memory · GB estimated”**, **“Estimated fit”**, **“Download · GB”**; source badge adjacent to each numeric speed group; one shared sample selector and settings summary. Mobile uses compact stacked groups with the same row order. | Memory segmentation, stage timings and per-variant provenance in **“Details”** per column/group. Preserve unsupported/over-budget notice adjacent to disabled action. | Gives comparison one purpose: see differences. Risk: aligned metrics can look like quality rankings; preserve ranges and sources, never add a composite score or winner badge unsupported by evidence. |
|
||||
| M08 / P2 | Computer step shows memory capacity graphic, hardware specs including memory again, verdict prose, details and Check again | Keep step. Title **“Your computer”**; one memory capacity summary, processor and accelerator inline; **“Storage available · 120 GB”** where actual detection supplies it. Primary **“Find my models”**. **“Check again”** inside Computer details except unknown/error detection. | Redundant specs, individual checks and fit limitations under existing **“Computer details”**. Unknown state keeps **“Browse with fit unknown”** and Retry visible. | A reassuring detection step becomes quick to scan. Risk: headline can overpromise capability; keep **“Estimated fit”** qualification and avoid promising model performance from detected hardware. |
|
||||
| M09 / P1 | Profile step “What matters to you?” plus three large purpose cards and recommendation repeating selected profile/purpose, card Selected model and footer Use this model | Keep step. Title **“Choose your priority”**. Profile purpose lines: Agentic **“Tools and long prompts”**; Balanced **“Everyday work”**; Performance **“Faster answers”**. Balanced is selected only for fresh setup. Use compact recommendation from M05 with selection state **“Selected”**, no second button. Primary remains **“Use this model”**; secondary **“Compare models”**. | Longer capability/quantization tradeoffs under recommendation **“Why this model?”**. Keep truthful qualification there; no fit stays visible and Continue unavailable until valid selection. | Removes repeated decision and moves the main action closer on mobile. Risk: Faster answers can sound guaranteed; source remains visible and profile help explains the ranking criterion and provisional evidence. |
|
||||
| M10 / P1 | Tune: “A good place to start.”, Context / Prompt batch / Setup summary, full MemoryBudget and Adjust controls | Keep step. Title **“Review your setup”**. Summary **“Recommended setup”**, **“Context · 32K”**, **“Memory · 1.9 GB estimated”**, visible fit. Disclosure **“Adjust settings”** exposes shared controls and preview. Primary **“Download and load · 0.5 GB”**, or existing **“Load model”** if installed; demo **“Simulate download and load”**. | Automatic batch and memory segments inside Adjust settings/details. Preserve custom-state label **“Custom setup”** and auto-open adjustments on validation errors. | Makes this a review before download, with optional customization. Risk: download size must reflect actual candidate, never an illustrative fixed value. |
|
||||
| M11 / P1 | Prepare: “Bringing your model online.”, four stages, repeated progress stage text, disabled Working… primary while active | Keep step. Title **“Preparing your model”**. Keep actual four stages and one active-stage progress line, Cancel download when supported. Replace repeated disabled action with one status **“Downloading · 42%”** (actual state); show **“Continue”** only when ready, Retry download/loading on corresponding error. | Full restart/resume behavior under Preparation details, but cancellation confirmation or adjacent help must disclose **“Retry starts this download again.”** before cancellation when that is the adapter behavior. | The user can follow progress and act when needed. Risk: removing duplicate text must not remove stage announcements or verification truth. No unsupported verification checkmark, fake ETA or automatic continuation. |
|
||||
| M12 / P1 | Ready: “Your next idea starts here.”, model/profile/context and full MemoryBudget, Preview speed test · Demo next to Start chatting | Keep step. Title **“Ready to chat”**. Exact model + quantization, **“Balanced · 32K context”**, loaded/Demo status, one primary **“Start chatting”**. Optional disclosure **“Setup details”**, with **“Preview test · Demo”** inside. | Memory breakdown and demo preview relocate to Setup details; successful real loading remains the entry gate. Failed load keeps **“Return to loading”**. | Ends setup with a single obvious action. Risk: apparent Ready in demo can be mistaken for a real loaded model; **“Demo model ready”** stays prominent and demo strip remains honest. |
|
||||
|
||||
## Must-do and opposed
|
||||
|
||||
My three must-do changes are **M01** (Beginner shows one meaningful adjustment), **M05** (one selected recommendation without duplicate winners), and **M07** (comparison is an aligned compact metric view). These address the most visible density while retaining precise variant identity and a deliberate advanced path.
|
||||
|
||||
I oppose **removing Expert/Raw or exact quantization identity to appear friendly**: ordinary defaults and complete expert access are compatible; filenames and settings must remain inspectable and reversible. I also oppose **replacing all provenance/fit/demo information with a generic green “Works great” badge**: this prototype cannot honestly assert native readiness or measured performance, and uncertainty should remain adjacent to the relevant decision.
|
||||
|
||||
No proposal calls for new decorative motion, glass on cards, gradients, extra shadows, different typography or a new identity. Retain the existing opaque surfaces and restrained control materials. Simplification is information hierarchy and disclosure, with errors, consequential actions and demo truth kept visible.
|
||||
@@ -0,0 +1,33 @@
|
||||
# Round 2 — teacher debate and ballot rationale
|
||||
|
||||
I read all eight independent reports and the common ballot. This remains a simulated older teacher's judgement, not observed human behavior. My criterion is whether shorter screens still let a capable PC user learning local AI predict the consequences and find help. No application work or execution was performed.
|
||||
|
||||
## Challenges to precise peer proposals
|
||||
|
||||
1. **02-mac M05: one selected recommendation with Agentic no-fit appearing only when selected.** That reduces the visible model objects, but hides a useful constraint until someone explores a priority. I prefer **B06 UNIQUE**: show one card per exact winner with profile chips and a compact no-approved-fit row. The row can explain why tools are unavailable without consuming a full-height empty card. The explicit compact no-fit requirement in B06 is stronger than M05's conditional visibility. Keep different configurations distinct even when a filename matches.
|
||||
|
||||
2. **01-gamer G02: keep both equally available dials with terse batch hint.** “Prompt processing batch · may use more memory” still asks a new user to interpret a technical adjustment. Learning it is possible, but it need not be mandatory before making the understandable context choice. I vote **B02 CONTEXT**, with Automatic or the exact custom batch visible and a labelled Adjust disclosure. This challenges the default hierarchy, not the gamer's access to batch tuning; Expert and direct values remain available.
|
||||
|
||||
3. **05-tinkerer proposal 12: Ready shows batch/cache/placement/threads in its loaded summary.** This repeats technical information at the point where the user is ready to begin a lesson-planning conversation. Accurate loaded configuration matters, but that accuracy can be preserved in Setup details. I support **B16** with exact model, profile/context and truthful readiness visible; complete successful-load configuration goes one disclosure deeper. A disclosure must show the loaded configuration, not simply the saved draft.
|
||||
|
||||
4. **04-newcomer N10: hide context/batch numbers and title the review Use recommended settings.** An easy default is useful, but custom retained settings make this title misleading. My preference is Review your setup, showing context and a Custom summary when retained, with optional adjustment. B14's explicit review and invalid-control expansion are better than making every review sound recommended.
|
||||
|
||||
## Useful opposing points and changed positions
|
||||
|
||||
**I concede 05-tinkerer proposal 3 and 07-research proposal 3 on Expert descriptions.** My T04 kept effects visible while proposing to hide recommended values on unchanged rows. Expert users need the recommended baseline for comparison; full effect paragraphs can be optional when applicability and unique limitations remain visible. I changed to **B05 YES**: keep recommendations visible and use a reversible Show descriptions control. This is a real change from round one, not a claim of agreement on every Expert detail.
|
||||
|
||||
**I also concede 06-parallel proposals 1 and 4 on global scope and lifecycle consistency.** My original review emphasized the individual's draft and recovery. A teacher may have several lesson chats open, so restarting a shared engine needs a concise global scope and known activity blockers. I support **B17 YES** without requesting a scheduling or concurrency feature.
|
||||
|
||||
**I correct two of my own phrases after 08-office proposal 7 and the source sequence.** My T06's “file formats (quantizations)” was inaccurate: say file variants, retain exact quantization codes and define the term in help. T09's “Downloads start on the next step” was too early; the next Tune step reviews settings, and its preparation action starts the operation. Say “Downloads start after reviewing your setup.”
|
||||
|
||||
## Positions held
|
||||
|
||||
- Keep **five named setup steps**. Tune is already optional within a distinct review stage. B12 FIVE preserves a clear commitment point and resume orientation; shorter content is enough without changing the step structure.
|
||||
- Keep ordinary **Engine reading/answer ranges visible** with modest emphasis and source, fit and memory meaning. I reject B03 MEMORY for my persona: tuning should show its expected performance consequence without an additional search for the speed panel. This is a preference to validate, not a measured benefit.
|
||||
- Keep only the **primary recommendation rate** by default. Recommendation selection and Engine exploration are different tasks; B08 PRIMARY reduces ordinary card reading while comparison still provides both rates.
|
||||
- Keep existing profile names with short ordinary descriptors (**B13 KEEP**) rather than the offered rename. My round-one preferred label was Tools & long prompts; the offered Tools and agents still contains unfamiliar terminology and loses the long-prompt cue. I am choosing the better offered option, not recording a conditional rename vote.
|
||||
- Keep one visible actual capability-review status (**B19 VISIBLE**), plus Demo/provisional/unknown/fit blockers. The office and research reviewers reinforce why throughput cannot stand in for task evidence.
|
||||
|
||||
## Priorities and limits
|
||||
|
||||
My top three remain **B04** (saving/restarting and recovery), **B14** (exact setup and download review), and **B15** (cancellation and retry consequences). The submitted JSON records one allowed choice for every B01–B20. Amendments are wording refinements, not conditional votes. No reductions in text size, icon-only actions, unsupported benchmark claims or hidden decision blockers are endorsed. Recommendations still require real user testing.
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"reviewer": "03",
|
||||
"persona": "Older teacher exploring local AI",
|
||||
"model": "gpt-6.1-sol",
|
||||
"effort": "medium",
|
||||
"votes": {
|
||||
"B01": { "choice": "YES", "reason": "A useful hint and clear configuration state can replace repeated introductions without removing meaning." },
|
||||
"B02": { "choice": "CONTEXT", "reason": "Context is the first understandable adjustment; a labelled Automatic or Custom batch summary keeps further tuning discoverable." },
|
||||
"B03": { "choice": "RATES", "reason": "Two modest labelled ranges alongside fit explain the consequence of tuning; timing and allocation mechanisms can disclose." },
|
||||
"B04": { "choice": "YES", "reason": "Save, explicit Apply and visible Discard give a clear decision and recovery path; infrequent actions can use a labelled menu." },
|
||||
"B05": { "choice": "YES", "reason": "Scope, recommended values and errors remain visible, while Show descriptions makes complete help available without mandatory reading." },
|
||||
"B06": { "choice": "UNIQUE", "reason": "One exact winner with profile chips avoids duplicate facts and actions while the compact no-fit row stays visible." },
|
||||
"B07": { "choice": "YES", "reason": "Readable exact identity is needed to know which files and variant are being selected." },
|
||||
"B08": { "choice": "PRIMARY", "reason": "One labelled priority rate with fit, memory and download is enough for an ordinary recommendation; comparison exposes both." },
|
||||
"B09": { "choice": "YES", "reason": "A short actionable no-fit state and explicit shared-winner note reduce repetition without disguising unavailable capability." },
|
||||
"B10": { "choice": "YES", "reason": "Installed models are the useful daily starting point when present, with equally discoverable Discover and remembered intent." },
|
||||
"B11": { "choice": "YES", "reason": "Aligned labelled rows make the differences readable and retain per-variant evidence and memory consequences." },
|
||||
"B12": { "choice": "FIVE", "reason": "A named review step gives the download commitment a clear place and supports orientation and resume without requiring tuning." },
|
||||
"B13": { "choice": "KEEP", "reason": "The short descriptors explain the existing names; Tools and agents still requires explanation and loses long-prompt meaning from the visible descriptor." },
|
||||
"B14": { "choice": "YES", "reason": "Verdict, resource facts, exact variant and actual download amount preserve the necessary review before commitment." },
|
||||
"B15": { "choice": "YES", "reason": "Cancellation restart behavior and local retry instructions belong beside the affected action, with technical logs disclosed." },
|
||||
"B16": { "choice": "YES", "reason": "Loaded or Demo status and Start chatting make completion clear; repeated memory and optional demo testing can move to details." },
|
||||
"B17": { "choice": "YES", "reason": "Global consequences and honest activity blockers must be understandable before restarting or switching a shared engine." },
|
||||
"B18": { "choice": "YES", "reason": "A visibly scoped shared source label removes duplicate wording while estimated memory and mixed evidence remain distinct." },
|
||||
"B19": { "choice": "VISIBLE", "reason": "One actual review-status line helps prevent an everyday or fast recommendation from being mistaken for evaluated task quality." },
|
||||
"B20": { "choice": "YES", "reason": "Text-sample labels and exact token amounts explain the selector without promising document-file or task capabilities." }
|
||||
},
|
||||
"top_three": ["B04", "B14", "B15"],
|
||||
"amendments": [
|
||||
"B04: retain sampling next-request timing beside edited sampling controls; label the confirmation Save and restart model and distinguish Revert to saved from Use recommended settings.",
|
||||
"B06/B09: merge an exact winner only when execution settings and evidence are also equivalent; otherwise keep distinct configuration summaries rather than implying one interchangeable setup.",
|
||||
"B03/B18: use modest rate typography and one short qualifier that thinking and scheduling time are unknown; scope the source badge to rates and keep Estimated memory separate.",
|
||||
"B05: Show descriptions should be a labelled reversible toggle that reveals row effects in place; unique support limitations remain inline under the universal constraints.",
|
||||
"B13: prefer Tools and long prompts as the ordinary descriptor; Faster answers identifies a priority, not a guaranteed speed improvement or equal capability.",
|
||||
"Correct my T06: quantizations are file variants, not different file formats. Correct T09: say Downloads start after reviewing your setup, since the following Tune step is still a review."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
# Persona review 03 — teacher learning local models
|
||||
|
||||
## Perspective and goals
|
||||
|
||||
This is a simulated perspective of an older teacher who handles ordinary PC tasks comfortably and is learning local LLMs. It is not a report of an observed participant. I would want to prepare lessons and discuss documents, know which choices consume computer resources, and recover from an experiment without losing a working setup. Familiar language and readable text matter more than hiding all technical terms. Age does not imply inability to learn the controls.
|
||||
|
||||
My recommendation is to reduce mandatory reading by removing repeated explanations and disclosing technical mechanisms, while keeping the immediate consequence and recovery action beside each consequential control.
|
||||
|
||||
## Evidence reviewed
|
||||
|
||||
- Implementation report: `docs/engine-models-onboarding-2026-10-05.md`.
|
||||
- Actual source: `src/screens/Tuning.tsx`, `Models.tsx`, `Setup.tsx`, `src/components/EngineExperience.tsx`, `ModelCatalog.tsx`.
|
||||
- Interaction guidelines, especially focused views, readable measure, disclosure, contrast, keyboard support and reduced motion; relevant design-system notes. Historical notes are not treated as current verification.
|
||||
- Viewed actual screenshots: `01-engine-light.png`, `07-models-light.png`, `09-onboarding-profile.png`, `08-variant-comparison.png`, `02-onboarding-computer.png`, `03-onboarding-ready.png` in `docs/evidence/instrument-redesign-2026-10-05/`.
|
||||
|
||||
Observed facts: Engine places two large dials alongside two rates, three timing stages, memory segments, fit prose and a memory change sentence. The Models screenshot repeats the exact same model and statistics for Balanced and Performance, with repeated purpose/tradeoff sentences. Onboarding Profile repeats the selected profile description above and inside its recommendation. Comparison repeats the full preview three times. Computer and Ready are earlier captures; Tune, Prepare and Expert were assessed from source, not screenshot interaction. No live usability test, model run, browser session or accessibility verification was performed for this review.
|
||||
|
||||
## Proposed changes
|
||||
|
||||
P0 means necessary for understandable consequences or recovery; P1 means the first simplification pass; P2 means a useful refinement. Each proposal preserves ordinary text size and visible action labels.
|
||||
|
||||
| ID / area | Current wording or control and friction | Concise replacement or interaction | What moves to Details | Risk and priority |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| T01 Engine Beginner heading | “TUNE YOUR ENGINE”, “A little adjustment. A clearer tradeoff.” and “Explore freely. Changes stay in your draft.” make the first task compete with introductory copy. | One heading, “Adjust your setup”, followed by “Changes are a draft until you save.” Keep the visible draft/saved/applied status, using “Unsaved changes”, “Saved for next load” and “Currently applied”. | No essential state moves; remove the marketing repetition. | “Draft” alone is ambiguous to first users; keep the save relationship explicit. **P1** |
|
||||
| T02 Engine Beginner controls | Context has a useful consequence but a three-line explanation. Prompt batch has an equally prominent technical dial, long mechanism explanation and Automatic checkbox. | Keep Context visible with “Room for conversation and documents. More uses more memory.” Keep exact entry and keyboard operation. Show “Prompt processing: Automatic” with a labelled “Adjust” disclosure containing the batch dial. If custom, show “Custom batch: 1,024 · Reset to automatic”. | Batch mechanism, detents, direct batch entry and “Bigger batches are not always faster” belong inside this disclosure, alongside the control. More controls and Response settings remain available. | Hiding a custom state would undermine recoverability, so custom batch must stay visible in the summary. Do not replace the dial with an unexplained icon. **P1** |
|
||||
| T03 Engine preview | “See the tradeoff” panel has large tok/s rates, timing triplet including “Start answering: Not estimated”, segmented memory and repeated estimate labels. | Primary summary: labelled Demo/source badge, reading and answer rates, “Estimated memory: 1.9 GB · Fits”, and live change sentence “Draft uses 0.09 GB more than saved”. Keep over-budget/unknown/sample-too-long messages inline. | Sample timing stages, memory breakdown/legend, shared-pool explanation and full configuration/provenance move into “Performance and memory details”. Keep the workload selector visible because it changes the preview. | Rates cannot imply total response time; retain “Rates exclude thinking time” beside the rates. Demo stays adjacent to numeric values. **P1** |
|
||||
| T04 Engine actions and Expert | Beginner footer presents Preview, Recommended defaults, Discard, Validate, Apply and Save; Expert rows repeat technical effect plus application timing. Reset and Revert have different destinations. | Keep primary “Save for next load”; label restart action “Save and restart model”. Keep “Discard changes” when dirty, and rename whole reset “Use recommended settings”; show a changed-values review before replacing a custom draft. Expert keeps Parameters, Raw config, search, Changed only, import/export and per-field “Revert to saved”. Expert rows keep effect and application timing visible; add concise adapter badge “llama.cpp adapter”. | Adapter integration paragraph to “Adapter details”; per-row recommended values to expandable parameter details if the row is unchanged. Keep validation errors and preserved-only status inline. | Never hide when changes take effect or silently replace raw keys. Sampling changes apply next request, so preserve that sentence wherever sampling was edited. **P0** |
|
||||
| T05 Models recommendation cards | Purpose above model, tradeoff paragraph below facts, duplicate-profile paragraph, two speed presentations and explanation disclosure produce tall cards. | Card anatomy: profile + Demo/Provisional, one purpose line, exact model/version/quantization, one primary speed, estimated fit/memory, download size, labelled action and “Details”. Short purposes: “Tools and long prompts”, “Everyday work”, “Faster answers; assess capability tradeoffs”. Keep “No approved fit yet” with “Try Balanced or reduce context”. | Secondary throughput, provenance and rationale to Details. Remove the second generic tradeoff paragraph when the purpose already says it. Keep an important unreviewed capability warning visible. | Shortening “Performance” must not imply equal quality or approval. Exact variant identity and Demo status remain visible. **P1** |
|
||||
| T06 Models library and shared winners | Balanced and Performance show the same model with duplicate statistics. Browser has Family → Version → Quantization plus a warning sentence and many variant facts. | Keep three profile choices, but show “Same model as Balanced · one download” in Performance with its priority sentence and a link to the shared model card. Keep Installed/Discover, search, Filters and reversible expansion. Expanded variant rows show exact quantization, fit, memory, file size, Compare and Load/Download; use “Show other file formats (quantizations)” for expansion. | Secondary throughput and general quantization explanation to variant Details; keep incompatible rows explicitly marked and opt-in. | Sharing a card must not erase profile meaning or confuse selection. Different exact variants must never be merged just because the family name matches. **P1** |
|
||||
| T07 Models comparison | Three columns repeat Performance hero, timing stages, memory legend and shared-pool paragraph. “Empty readings” description does not match “Not estimated” displayed content. | Keep three exact variants, shared workload/configuration and source labels; use aligned rows for Reading speed, Answer speed, Estimated memory, Memory fit and Download. Show “No comparable evidence” explicitly. Put “3.8 GB over budget” immediately above the disabled action with labelled “Adjust context” recovery. | Timing stages, breakdown bars and provenance per variant under “Details”; a single shared explanation of memory budgeting above the grid. | Do not turn Demo numbers into a ranked performance claim; preserve ranges and labelled unknowns. **P1** |
|
||||
| T08 Setup 1 Computer — keep/change | Keep detection, Check again, unknown-fit browsing and Computer details. Screenshot says “16 GB unified memory”, “4 GB reported available” and “Free storage is a limit” without a short explanation connecting them. | Keep overall verdict and capacity; label “16 GB total memory · 4 GB currently available”. Add one outcome sentence “We’ll suggest models that leave room for your other apps.” Where storage limits selection, say “19 GB free storage limits downloads.” | Processor/accelerator technical checks and driver detail to Computer details; keep free storage and uncertainty in the main summary. | Current available memory changes; retain “current snapshot” and approximate-fit wording. Do not claim every recommended model will load successfully. **P1** |
|
||||
| T09 Setup 2 Profile & model — keep/change | Keep Balanced default, three keyboard-accessible priorities, one exact recommendation and Compare models. The chosen purpose is repeated in ProfileChoice and RecommendationCard; “Agentic” is unfamiliar. | Rename visible priority “Tools & long prompts” with “Agentic” in Details; “Balanced” gets “Everyday work”; “Performance” gets “Faster answers; assess capability tradeoffs”. Use compact T05 model summary without repeating selected purpose. Keep “Use this model” as advancing selection, with “Downloads start on the next step” beside the action. | Full profile rationale, tool approval explanation and benchmark provenance to Details. | Selection must not appear to download immediately; do not imply tools are approved merely by a profile name. **P1** |
|
||||
| T10 Setup 3 Tune — keep/change | Keep recommended summary, optional Adjust controls and invalid retained-value handling. Default summary uses “Context”, “Prompt batch” and “Recommended” plus full memory breakdown. “Download and load” is the first real resource commitment. | Headline “Review your setup”. Main summary: selected exact model, “Conversation capacity: 16K”, “Prompt processing: Automatic”, estimated memory fit and “Download: 0.5 GB”. Button “Download 0.5 GB and load”; keep “Simulate” in Demo. Use optional controls from T02. | Memory segments and batch mechanism to Details; preserve retained invalid values and recovery instructions inline. | File size is download/storage, not working memory; keep separate labels. Never quietly overwrite a retained choice. **P0** |
|
||||
| T11 Setup 4 Prepare — keep/change | Keep stages, stage-local progress, cancellation, retry and retained completed files. Restart-from-beginning consequence is buried in Preparation details unless an error opens it. | Keep concise stages and human duration/progress. Beside “Cancel download”, say “Cancelling keeps your choices; this host restarts unfinished downloads.” After loading error: “Files are ready. Retry loading” with same explicit action. Finish later remains disabled during active operation only with visible reason “Cancel download to finish later.” | Technical stage output and full error cause to Preparation details; keep actionable error and retained-file status visible. | Cancellation must not promise byte resume; real-host behavior may differ, so copy must use host capability. **P0** |
|
||||
| T12 Setup 5 Ready — keep/change | Keep loaded readiness gate, exact selected model and Start chatting. Full memory breakdown and optional “Preview speed test · Demo” compete with completion. | Headline “Your model is ready” (or “Demo model ready”). Show exact model/quantization, selected profile and context as one concise summary. Primary “Start chatting”; labelled secondary “View Demo test” under an optional “Explore performance” disclosure. Add “You can change this in Models or Engine.” | Memory segments and test explanation to Details; keep load failure and Return to loading visible. | Moving demo test must not hide demo status or make benchmarking appear required; no readiness claim before load succeeds. **P2** |
|
||||
|
||||
## Three must-do changes
|
||||
|
||||
1. **T04 — make saving, restarting and recovery unambiguous.** Distinct draft/saved/applied states and explicit destinations for revert/reset are the foundation for exploring safely.
|
||||
2. **T10 — review download and memory consequences before preparation.** File size, fit and exact selected variant belong at the commitment point.
|
||||
3. **T11 — show cancellation/retry consequences beside the action.** Restarting an unfinished download is essential information before cancelling, not optional technical background.
|
||||
|
||||
## Two proposals to oppose
|
||||
|
||||
1. **Make the interface fit by shrinking text or removing labels from controls.** This reduces legibility and teaches no useful meaning; instead remove repeated sentences and disclose mechanisms.
|
||||
2. **Hide all warnings, evidence status and consequences in a universal Details drawer.** Demo status, unknown evidence, over-budget state, effect timing and cancellation consequences must remain where the user decides. They are short decision information, not optional documentation.
|
||||
|
||||
## Independent round 1 conclusion
|
||||
|
||||
The screens already offer substantial recovery and expert access. The strongest improvements reduce duplicate reading and move secondary mechanisms behind clearly named disclosures. Retain enough immediate meaning that a new local-model user can predict what saving, downloading, loading and cancelling will do. Any later ballot should treat these as design judgements from a simulated perspective, not empirical user findings.
|
||||
@@ -0,0 +1,30 @@
|
||||
# Round 2 — reviewer 04: newcomer from TikTok
|
||||
|
||||
I read all eight original reports and the complete shared ballot independently. I did not consult peer votes or debate documents. This remains a simulated perspective of a first-time visitor curious to try Strata; gender supplies no assumptions about competence or preference. No observed usability findings, app changes, browser launch or model execution are claimed.
|
||||
|
||||
## Specific challenges
|
||||
|
||||
1. **01-gamer G02 and 05-tinkerer proposal 2 — retaining two visible Beginner dials.** Both reviewers value precise tuning and shorten the hints. Shortening prose alone still leaves Prompt batch as an apparently necessary first choice. From this newcomer perspective, Automatic is sufficient until a specific need arises. I vote **B02 CONTEXT** and preserve a visible Custom summary, exact-entry alternatives and Expert access. This challenges the default hierarchy, not the availability of the control.
|
||||
|
||||
2. **02-mac M02, 03-teacher T03 and 07-research proposal 2 — keeping both rates and the sample selector visible in default Engine feedback.** Smaller type and a nearby Demo badge help, but a first-time visitor still has to interpret reading versus answer throughput and token samples before deciding whether settings fit. The memory decision is more immediately useful. I vote **B03 MEMORY** and **B08 FIT**. Deliberate comparison retains both rates; Speed details remains discoverable with its evidence status.
|
||||
|
||||
3. **05-tinkerer proposals 10 and 12 — adding cache/placement/threads to initial setup review and Ready.** These facts belong in execution/loaded-setup details. A first chat should require understanding the exact selected model, actual download amount and fit, without extra parameter vocabulary. Scope or a meaningful custom-state warning can stay visible. I vote **B14 YES** and **B16 YES**, whose compact defaults preserve technical access.
|
||||
|
||||
4. **03-teacher T06 — “Show other file formats (quantizations)”.** Quantizations are exact model variants, and that label could be read as accepted document or file-format support. “Show other variants” is a better default label with quantization explained in Details. I support **B07 YES** and **B20 YES**; neither implies supported input formats.
|
||||
|
||||
## Concessions and changed positions
|
||||
|
||||
**Expert recommendations should remain visible.** My N03 moved recommended values to field Details. **05-tinkerer proposal 3, 01-gamer G04 and 07-research proposal 3** make a useful opposing point: Expert is already an intentional detailed editor, and a recommended value supports a quick comparison and safe recovery. I change this part of N03 and vote **B05 YES**, retaining recommendation, application timing, errors and per-field revert while collapsing general effects.
|
||||
|
||||
**One selected recommendation is clearer than unique-winner cards.** N05 proposed a shared card with profile tabs and N04 retained compact cards. **02-mac M05** clarifies a stronger consistent structure: choose the priority, inspect one result, then act. I adopt **B06 SELECTOR** instead of making the number and arrangement of cards depend on current winners. A concise shared-winner note still explains identical results, and no-fit recovery stays visible.
|
||||
|
||||
**Capability status deserves a concise visible line.** N04 focused on fit/download and one relevant caveat. **08-office #5 and 07-research proposal 4** persuaded me to prefer **B19 VISIBLE** using actual metadata. This replaces generic prose; it does not add a list of hypothetical workplace or research warnings. A default recommendation must not read as proof of task quality.
|
||||
|
||||
**Four core steps are sufficient when review remains explicit.** Round 1 covered and preserved the existing five-step path. The ballot's OPTIONAL alternative retains the hardware/model decisions, commitment review, preparation, readiness and resume behavior while making Tune expandable. I now vote **B12 OPTIONAL** because tuning need not be a separate required stop. No peer report established a tested advantage for changing the step count; this is my design judgment about the exact ballot wording. It requires resume mapping and visible download/configuration review, not bypassing review.
|
||||
|
||||
## Positions retained
|
||||
|
||||
I retain N01/N02's context-first, memory-first Beginner hierarchy despite peers who prefer visible rates and both dials. I retain N09's plain profile names through **B13 RENAME**; short descriptors help, but do not make the unfamiliar word Agentic necessary in the initial choice. I retain N10/N11's explicit download commitment and local recovery, reinforced by **03-teacher T10/T11**. I retain expert controls, exact identity, truthful Demo/unknown states and a successful-load gate.
|
||||
|
||||
My top three are **B08 FIT**, **B13 RENAME**, and **B14 YES**: compact decision facts, understandable choices and a concrete download review before preparation. All twenty choices and separate amendments are recorded in `04-newcomer-vote.json`; none is a conditional yes. Real newcomers should later test first-chat completion, understanding of Demo/download expectations, and cancellation/load-failure recovery.
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"reviewer": "04",
|
||||
"persona": "Woman trying Strata for the first time after hearing about it on TikTok",
|
||||
"model": "gpt-6.1-sol",
|
||||
"effort": "medium",
|
||||
"votes": {
|
||||
"B01": {
|
||||
"choice": "YES",
|
||||
"reason": "Remove repetition while keeping the short control meaning and clear configuration state."
|
||||
},
|
||||
"B02": {
|
||||
"choice": "CONTEXT",
|
||||
"reason": "Conversation length is understandable first; labelled Automatic or Custom keeps batch discoverable without demanding adjustment."
|
||||
},
|
||||
"B03": {
|
||||
"choice": "MEMORY",
|
||||
"reason": "Fit and memory answer the immediate setup question; speed samples belong in an explicit optional section."
|
||||
},
|
||||
"B04": {
|
||||
"choice": "YES",
|
||||
"reason": "One primary save action and an explicit available apply action clarify what happens next; secondary tools remain reachable."
|
||||
},
|
||||
"B05": {
|
||||
"choice": "YES",
|
||||
"reason": "Expert is a deliberate working view where recommendations and application scope help recovery; effects can be disclosed."
|
||||
},
|
||||
"B06": {
|
||||
"choice": "SELECTOR",
|
||||
"reason": "One selected recommendation follows a straightforward choice without comparing duplicate cards or decoding shared-winner chips."
|
||||
},
|
||||
"B07": {
|
||||
"choice": "YES",
|
||||
"reason": "The exact selected download must stay identifiable even when technical explanation is optional."
|
||||
},
|
||||
"B08": {
|
||||
"choice": "FIT",
|
||||
"reason": "Fit, memory and download cost are useful first-chat decisions; optional speed does not need to dominate ordinary cards."
|
||||
},
|
||||
"B09": {
|
||||
"choice": "YES",
|
||||
"reason": "A compact actionable no-fit state and one action for a shared winner prevent apparent dead ends and duplicate downloads."
|
||||
},
|
||||
"B10": {
|
||||
"choice": "YES",
|
||||
"reason": "Show what is already usable, keep Discover visible and respect a deliberate tab choice."
|
||||
},
|
||||
"B11": {
|
||||
"choice": "YES",
|
||||
"reason": "Aligned facts make an optional deliberate comparison easier than three repeated instrumentation panels."
|
||||
},
|
||||
"B12": {
|
||||
"choice": "OPTIONAL",
|
||||
"reason": "A required download and configuration review can contain optional tuning without making tuning a separate mandatory step."
|
||||
},
|
||||
"B13": {
|
||||
"choice": "RENAME",
|
||||
"reason": "Everyday work and Faster answers communicate the choice immediately; technical profile names remain available."
|
||||
},
|
||||
"B14": {
|
||||
"choice": "YES",
|
||||
"reason": "Compact detection and one exact recommendation let a first-time visitor review fit and download amount before commitment."
|
||||
},
|
||||
"B15": {
|
||||
"choice": "YES",
|
||||
"reason": "A real stage and specific recovery action explain waiting and failures; cancellation restart consequences must be visible."
|
||||
},
|
||||
"B16": {
|
||||
"choice": "YES",
|
||||
"reason": "Ready should lead directly to first chat with honest load or Demo status and optional technical depth."
|
||||
},
|
||||
"B17": {
|
||||
"choice": "YES",
|
||||
"reason": "Known lifecycle consequences matter when work exists; concise scope and real blockers prevent disruptive surprises."
|
||||
},
|
||||
"B18": {
|
||||
"choice": "YES",
|
||||
"reason": "One correctly scoped source label reduces repetition without losing evidence honesty or mixed-source distinctions."
|
||||
},
|
||||
"B19": {
|
||||
"choice": "VISIBLE",
|
||||
"reason": "A short actual review status prevents a starting recommendation being read as established capability."
|
||||
},
|
||||
"B20": {
|
||||
"choice": "YES",
|
||||
"reason": "Text-sample names distinguish speed testing from document support while preserving exact limits."
|
||||
}
|
||||
},
|
||||
"top_three": [
|
||||
"B08",
|
||||
"B13",
|
||||
"B14"
|
||||
],
|
||||
"amendments": [
|
||||
"Under B03 and B08, the Speed details trigger should expose a concise unavailable or illustrative status so discovery never implies a real benchmark. Any displayed demo numbers keep a local Demo label.",
|
||||
"Under B06 SELECTOR, show a shared-winner note inside the selected recommendation and a direct Try Everyday work recovery for a no-fit tools profile. Choosing a profile does not start a download or load.",
|
||||
"Under B12 OPTIONAL, keep an explicit download and configuration review visible before Prepare; optional tuning auto-opens for invalid retained values. Preserve completed choices and resume mapping when changing the step count.",
|
||||
"Under B13, Faster answers states the ranking priority, not a promised measured speed; keep relevant capability and Provisional warnings visible.",
|
||||
"Under B17, use operational counts only when reliable and relevant. A genuinely empty first setup needs no extra lifecycle confirmation, and unknown counts must never become zero.",
|
||||
"Under B19, use actual review metadata in one short line; avoid listing hypothetical untested tasks or introducing a new capability score.",
|
||||
"Retain current font sizes, focus handling, keyboard alternatives and errors. These votes are simulated design judgments, not evidence of real-user success."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
# Round 1 — reviewer 04: newcomer from TikTok
|
||||
|
||||
## Perspective and limits
|
||||
|
||||
I am simulating a woman who heard about Strata on TikTok and wants to try her first conversation. Her prior experience with local AI is unknown; no technical knowledge is assumed. Gender supplies no assumptions about ability, taste or behavior. The relevant motivation is curiosity and a quick first successful chat, with an understandable download commitment and a safe way back when something fails.
|
||||
|
||||
This is a persona-based design critique, not observed usability research. Statements about confusion, hesitation or abandonment are hypotheses to test with actual newcomers. I reviewed independently, without reading other persona reports. No browser, server, engine or model was run.
|
||||
|
||||
## Evidence and assessment
|
||||
|
||||
Reviewed `docs/engine-models-onboarding-2026-10-05.md`, interaction guidelines (especially one hero per screen, readable prose, keyboard/focus handling, interruptible actions and reduced motion), and current `Tuning.tsx`, `Models.tsx`, `Setup.tsx`, `EngineExperience.tsx`, `ModelCatalog.tsx` plus the profile constants in `experience.ts`.
|
||||
|
||||
Inspected screenshots `01-engine-light.png`, `07-models-light.png`, `09-onboarding-profile.png`, `08-variant-comparison.png`, `10-onboarding-mobile.png` in `docs/evidence/instrument-redesign-2026-10-05/`. Current source takes precedence when screenshots differ: setup defaults to Balanced, although the captured selection is Performance; source includes the Response settings disclosure. Steps 1, 3, 4 and 5 were assessed from source, not interactive observation.
|
||||
|
||||
The design already has valuable safeguards: optional setup tuning; a default Balanced profile; explicit simulation labels; saved progress; cancellation; exact model variants; a distinct load action; and loading required before Chat. Keep these. The friction is the amount of simultaneous explanation and technical data. Engine presents two unfamiliar controls, exact inputs, instructions, memory segments and both speed metrics at once. Models repeats the same exact variant and statistics across Balanced and Performance. Setup repeats the selected profile purpose inside the recommendation. On the 390px screenshot, the recommendation begins near the bottom and its action is out of view. Comparison repeats whole performance cards instead of presenting aligned decision facts.
|
||||
|
||||
## Concrete proposals
|
||||
|
||||
Each proposal identifies visible text or behavior, what stays, what changes, what moves into Details, and its benefit, risk and priority. P1 is necessary for a clearer first-use path; P2 is valuable follow-up.
|
||||
|
||||
| ID / scope | Current text or control | Keep / proposed replacement or behavior | Move to Details | Benefit / risk / priority |
|
||||
|---|---|---|---|---|
|
||||
| N01 — Engine Beginner | “A little adjustment. A clearer tradeoff.”; Context and Prompt batch dials; exact inputs, stops and drag captions | **Change:** heading to “Engine settings”. Show Context as “Conversation length” with one hint: “More room for chats and documents uses more memory.” Keep the dial, keyboard operation, reset and current recommendation. Put Prompt batch under “Advanced controls”, with Automatic selected as applicable. Provide “Exact values” disclosure for numeric entry. | Batch explanation and dial, exact inputs and interaction instructions; retain accessible descriptions on controls. | One understandable adjustment replaces two equal demands. Risk: people tuning prompt throughput need an extra click; Expert remains direct. **P1**. |
|
||||
| N02 — Engine preview | “See the tradeoff.”; enormous reading/answer tok/s ranges, three timing stages, memory legend, “Saved → Draft…” | **Change:** default preview to “Estimated memory”, fit status, total GB and changed-memory line only after an actual change. Add “Speed and memory details”. Keep a visible “Demo · illustrative” marker wherever simulated numbers appear; otherwise “Speed not measured” when evidence is missing. | Reading/answer ranges, sample selector, stages, segment legend, provenance/configuration and timing limits. | Default answers “Can this setup fit?” without making demo speed the hero. Risk: speed-focused visitors need expansion. **P1**. |
|
||||
| N03 — Engine Expert and save bar | Parameters / Raw config; repeated `p.effect`, technical key, recommended value and scope; Validate / Apply now / Save for next load | **Keep:** Expert and Raw, search, Changed only, import/export, per-field Revert, shared draft and validation. **Change:** rows show label, technical key, value and application timing; field-specific “Details” opens effect/recommendation. Beginner save bar shows primary “Save for next load”, “Discard” only when changed, and “More actions” for Validate/demo preview. Keep Apply now explicit with restart review. | Adapter-integration paragraph into “Engine support”; parameter effect/recommendation into field Details. Errors and preserved-only status stay visible. | Expert access survives text reduction; beginners understand when a save matters. Risk: action-menu keyboard/focus handling must match guidelines. **P2**. |
|
||||
| N04 — Models recommendation cards | Profile purpose, family, name, quant, primary speed, secondary speed, memory, download, fit, context, tradeoff, repeated-winner note | **Change:** card default to profile name, one short purpose, exact model + variant on one compact identity line, estimated fit and download size, then action. Put answer speed in an optional facts row when genuine compatible evidence exists. Collapse the repeated purpose/tradeoff into one sentence. Keep Demo/Provisional visible. | Full speed pair, configuration, tradeoff detail and “Why this choice?” evidence. | Download and fit become the decision facts; exact choice remains identifiable. Risk: hiding capability caveats could overpromise; leave one meaningful caveat visible when relevant. **P1**. |
|
||||
| N05 — Models duplicate winners / no fit | Balanced and Performance show the same model and two “Review this setup” actions; Agentic card says “No approved fit yet” | **Change:** display one model card with “Suggested for Balanced and Performance” when winners match, alongside compact profile tabs. A profile without a candidate shows “No tool-ready model fits this setup” and a direct “Try Balanced” control. Keep profile selection distinct from loading. | Detailed approval/fit explanation and why multiple profiles chose the same variant. | Prevents apparent duplicate downloads and gives an actionable route out of a dead end. Risk: shared card must visibly preserve which profile is selected; do not imply agent capability approval. **P2**. |
|
||||
| N06 — Models library | “Find a family, then explore its versions and quantizations”; “Search models, versions, quantizations…”; Discover default; variant facts in each expanded row | **Keep:** search, Installed/Discover, reversible grouping, filters and exact variants. **Change:** placeholder “Search models…”; explanation “Choose a model. More file options are available inside each family.” With installed models, consider Installed as the initial tab and show “Find more models” as a clear Discover action. Default variant rows show identity, fit, download and action; add “Details”. | Reading/answer rates, working-memory breakdown and quantization explanation; retain all quantization filters and “Show all file variants” with exact names. | The library feels searchable before technical exploration. Risk: Installed default can obscure discovery, so retain a prominent visible entry. **P2**. |
|
||||
| N07 — Models comparison | “Compare exact variants”; repeated PerformancePreview cards, memory strips and timing paths | **Change:** title “Compare models”; use aligned rows for exact variant, estimated fit, download, memory required and answer speed with its evidence label. One shared sample/configuration control in “Comparison settings”. Keep a three-selection limit and per-model action. Over-budget status stays above any action. | Timing stages, memory components, reading throughput and full estimate provenance; exact labels remain in header. | Decision facts fit together and mobile comparison needs less repeated scrolling. Risk: reduced speed emphasis must not hide missing evidence or transform demo estimates into benchmarks. **P2**. |
|
||||
| N08 — Setup 1 Computer | “Your computer. Your model. Your pace.”; hardware verdict, capacity blocks, Processor / Accelerator / Memory / Available storage; “Find my models” | **Keep:** detected verdict, memory/storage, Check again, Details and “Browse with fit unknown” recovery. **Change:** add one plain line “Strata uses a model on your computer. We’ll help you choose one that fits.” Use detected values only. Show memory and storage as the default facts. | Processor/accelerator names, check rows and capacity illustration; keep approximation caveat adjacent to fit. | Explains why setup asks about the computer and what comes next. Risk: avoid unsupported offline/privacy promises. **P2**. |
|
||||
| N09 — Setup 2 Profile & model | “What matters to you?”; Agentic / Balanced / Performance choices; selected card repeats profile name/purpose; card selection and footer “Use this model” | **Keep:** Balanced default, keyboard radio behavior, one exact recommendation, optional Compare models. **Change:** labels to “Tools & agents”, “Everyday chat”, “Faster answers”, with existing technical names in Details. Heading “Choose your starting model”. Remove repeated profile purpose inside the selected card and redundant selected-model button; footer “Continue with this model”. Keep download/fit visible and exact variant concise. | Quantization definition, speeds, evidence, longer tradeoff. | A newcomer can accept a sensible default without interpreting “Agentic”; less vertical repetition on mobile. Risk: “Faster answers” needs the visible caveat “May trade capability for speed” and evidence honesty. **P1**. |
|
||||
| N10 — Setup 3 Tune | “A good place to start.”; Context / Prompt batch / Setup summary and full MemoryBudget; “Download and load” | **Keep:** recommended settings by default, optional Adjust controls, retained choices and validation. **Change:** heading “Use recommended settings”; one line “Estimated fit: [status]”. Before the primary action show “Download: [actual size] · Available storage: [actual value]”. Primary “Download [size] and prepare” for real uninstalled files; retain “Simulate download and load” in demo and Load model when installed. Explain “You can change settings later.” For invalid retained settings add “Use recommended settings” recovery with an explicit visible change. | Context/batch numbers, memory segments and tuning preview. Do not hide blockers. | Makes the download commitment concrete and keeps optional tuning optional. Risk: storage requirement must reflect actual host requirements rather than assume download size equals total space needed. **P1**. |
|
||||
| N11 — Setup 4 Prepare | “Bringing your model online.”; “Working…”; Preparation details contains restart-from-beginning warning; Retry loading/download; Finish later disabled while active | **Keep:** truthful progress, live stage list, measured ETA only when provided, Cancel download, separate retries and retained completed files. **Change:** heading “Preparing your model”; primary status/action describes active stage: “Downloading…” or “Loading…”. Beside Cancel show “Cancelled downloads restart from the beginning” for this host. Error shows “Files saved; retry loading” or “Download stopped; retry download” as appropriate. No generic Try again. | Technical progress details and raw error detail, while actionable error and retention consequences stay visible. | Prevents a costly surprise and makes recovery understandable. Risk: do not claim true resume, background operation or cancellation of loading until supported. **P1**. |
|
||||
| N12 — Setup 5 Ready | “Your next idea starts here.”; model/profile/context summary, MemoryBudget, “Preview speed test · Demo”, “Start chatting” | **Keep:** loaded gate, Start chatting primary, Return to loading if not ready, visible Demo state. **Change:** heading “Ready for your first chat”; exact selected model in compact secondary line. Place optional demo preview under “Details”. Consider optional starter prompt suggestions after opening Chat; no auto-send. Demo message remains “Demo model ready”, never implies an actual local model ran. | Profile/context/quant definitions, memory budget and demo test. | The final step celebrates readiness with one obvious action. Risk: a suggested starter must remain optional and must not promise model abilities unsupported by evidence. **P2**. |
|
||||
|
||||
## Three must-do choices
|
||||
|
||||
1. **N04 — Shorten model cards around exact choice, fit, download and action.** This directly addresses the complaint and establishes a reusable card for onboarding.
|
||||
2. **N09 — Simplify setup step 2 and remove duplicated purpose/selection controls.** The mobile screenshot is concrete evidence of the vertical cost; the predicted reduction in hesitation still needs research.
|
||||
3. **N10 — Make the download commitment visible before it starts, with recommended settings as the easy path.** First chat depends on downloading/loading successfully, so the action should describe that commitment.
|
||||
|
||||
N01/N02 and N11 are also high priority, but these three give the smallest coherent improvement to the first-use path.
|
||||
|
||||
## Two proposals I oppose
|
||||
|
||||
1. **Oppose replacing evidence with friendly invented labels such as “Instant answers” or “Fast on your computer”, and hiding Demo badges for visual simplicity.** Screenshots show illustrative ranges, not a machine benchmark. Friendly copy cannot turn simulation into measured performance. Keep unknown first-answer delay unknown; no fabricated download ETA.
|
||||
2. **Oppose deleting Expert/Raw, exact variants or comparison to make the app “beginner friendly”.** A first-time user may grow into those controls or arrive with a specific recommendation. Progressive disclosure reduces the initial burden while preserving access, recovery and transparency.
|
||||
|
||||
## Validation to request later
|
||||
|
||||
Ask actual first-time visitors to choose a starter model, explain what will download and what “Demo” means, reach a first chat, then recover from a cancelled download and a failed load. Compare current and shortened cards for task success and comprehension; do not use this simulated review as proof of a measured usability gain. Native hookup remains deferred.
|
||||
@@ -0,0 +1,33 @@
|
||||
# Reviewer 05 — round 2 debate
|
||||
|
||||
Local AI tinkerer perspective, GPT-6.1 Sol, Medium. Read all eight original reports (`01-gamer.md` through `08-office.md`) and `ballot.md`. This review changes only my two round-two documents. No app/model/server/browser execution or source edits. These are simulated design judgments; predicted scanning and comprehension benefits have not been measured.
|
||||
|
||||
## Specific challenges
|
||||
|
||||
**02 Mac, M05: one profile selector with one recommendation.** I agree that three tall cards are wasteful, but selector navigation removes a useful comparison: whether different priorities actually select different exact variants. My round-one proposal 5 and B06 UNIQUE provide one card per real winner, profile chips and compact no-fit recovery. If all priorities choose different models, those are three meaningful objects. A selector works well in onboarding, where the user makes one choice, but Models also serves repeat inventory/comparison work. I vote UNIQUE, not SELECTOR; reducing object count does not automatically improve that task.
|
||||
|
||||
**04 Newcomer, N02 and N07: hide Engine rates and comparison reading throughput.** Fit must remain explicit and demo rates should lose their oversized hero treatment, but removing reading throughput conceals the bottleneck that matters when I feed a long prompt to a model. Answer throughput alone cannot substitute for it. Two normal-size, labeled ranges with source and compact memory are useful; the three timing stages and memory taxonomy are the repetition. I vote RATES for B03 and YES for B11's both-rate comparison. This does not turn speed into answer quality or task ETA.
|
||||
|
||||
**03 Teacher, T04: keep full effect paragraphs in Expert and disclose unchanged recommendations.** The outcome/timing of a parameter is important, but label/key/value/scope/recommended value/error/revert already form the working row. A full effect paragraph on every row makes a large changed-values scan harder. B05's Show descriptions gives a deliberate learning view without repeated reading in routine tuning. I vote YES. I retain T04's distinction between Revert to saved and recommended reset, and agree with T10/T11 that download and cancellation consequences belong beside the commitment.
|
||||
|
||||
**08 Office, proposal 7: “Show N file variants.”** I prefer the precise quantization term in the library because variants can differ in ways other than quantization. Friendly language should not make technical distinctions less clear. Exact names can remain readable with a short explanation in Details. This is a wording disagreement, not a request for more visible mechanism prose.
|
||||
|
||||
## Concessions and changed positions
|
||||
|
||||
**Changed on Beginner batch visibility.** My round-one proposal 2 kept both dials visible. After 02 M01, 03 T02, 04 N01 and 07 proposal 1, I accept B02 CONTEXT: Automatic/Custom status, exact custom number, shared draft and full Expert access preserve the relevant experiment state. Equal visual prominence is unnecessary in Beginner. Batch is useful when I deliberately adjust it; it need not be an initial decision. I do not abandon precision or let a custom batch silently become Automatic.
|
||||
|
||||
**Changed on ordinary capability review placement.** My round-one card proposal sent approval/review rationale into Why this choice. 08 proposal 5 and 07 proposal 4 make a useful opposing point: qualified speeds and Provisional are still insufficient to tell me whether capability was reviewed. I vote B19 VISIBLE for one short status derived from actual metadata, replacing generic tradeoff text. A tool review does not establish translation, spreadsheets or contract reliability, so its scope must be named. Longer rationale stays in Details.
|
||||
|
||||
**Changed on setup structure.** Round one retained the five existing steps. I now vote B12 OPTIONAL. All peers identify that Tune controls are optional and the consequential event is download/load. The ballot explicitly preserves configuration review before Prepare, so making Tune an expandable review avoids a compulsory navigation step. This is my inference from their optional-tuning arguments; I do not claim those reviewers explicitly proposed four steps. Invalid retained settings still need immediate adjustment access and successful readiness remains a gate.
|
||||
|
||||
**Concede hardware detail placement.** My round-one Computer proposal kept precise processor/accelerator facts on the surface. 07 proposal 7 and 08 proposal 9 reasonably put memory/storage and the detection verdict first. B14 keeps full detection accessible in Computer details, so I vote YES. Details are valuable for diagnosing a mismatch; they need not dominate every setup.
|
||||
|
||||
**Concede global action scope.** 06 proposals 1 and 4 identify that shared-engine lifecycle consequences are operational facts. I support B17's consistent scope and request checks, with unknown state honest and idle zeroes omitted. The observations do not establish backend queue behavior; no new concurrency or automatic drain promise follows.
|
||||
|
||||
## Held positions and ballot reasoning
|
||||
|
||||
I retain unique exact-winner cards (B06 UNIQUE), both compact card rates (B08 BOTH), stable Agentic/Balanced/Performance labels with short descriptors (B13 KEEP), and the main save/apply/discard distinction (B04 YES). A primary rate alone saves very little space compared with removing duplicate purposes, nicknames and complete preview panels. A unique-card layout makes both rates particularly useful when one winner carries multiple profile chips.
|
||||
|
||||
I support hiding derived timing, memory taxonomy, illustrative tests and general explanations. None is automatically useful because it is technical. Conversely, exact identities, fit blockers, configuration scope, evidence source and review gaps affect a concrete decision and must remain legible. B18's single scoped source badge is sufficient when the metric group truly shares a source; it is not permission to hide Demo or treat estimated memory as measured speed.
|
||||
|
||||
Top three are B01, B05 and B06: remove repeated introductions, make Expert/Raw a concise working draft editor, and compact Models around unique exact choices. All twenty votes are recorded without abstention or conditional yes in `05-tinkerer-vote.json`. Amendments refine implementation wording; they do not change the submitted choices. Final recommendations remain pending actual user testing and deferred native integration.
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"reviewer": "05",
|
||||
"persona": "Local AI tinkerer",
|
||||
"model": "gpt-6.1-sol",
|
||||
"effort": "medium",
|
||||
"votes": {
|
||||
"B01": { "choice": "YES", "reason": "Repeated teaching and slogans obscure controls; concise state and one useful hint suffice." },
|
||||
"B02": { "choice": "CONTEXT", "reason": "Beginner can show one dial because explicit Automatic/Custom batch summary and direct Expert access preserve deliberate adjustment." },
|
||||
"B03": { "choice": "RATES", "reason": "Reading and answer throughput describe distinct bottlenecks; compact qualified rates are useful alongside memory." },
|
||||
"B04": { "choice": "YES", "reason": "Save, Apply and Discard deserve the surface; occasional reset, manual validation and demo fit a labeled menu." },
|
||||
"B05": { "choice": "YES", "reason": "Technical keys, scope and revert support work; optional descriptions reduce reference prose without hiding errors." },
|
||||
"B06": { "choice": "UNIQUE", "reason": "Exact unique winners allow immediate cross-priority scanning and avoid duplicate facts without selector navigation." },
|
||||
"B07": { "choice": "YES", "reason": "Version and quantization identify the actual experiment; redundant aliases add little." },
|
||||
"B08": { "choice": "BOTH", "reason": "A compact pair exposes prompt/output tradeoffs that a primary rate alone conceals." },
|
||||
"B09": { "choice": "YES", "reason": "Compact no-fit recovery and one exact shared winner communicate the result without empty card height." },
|
||||
"B10": { "choice": "YES", "reason": "Installed is useful for repeat work; deliberate tab memory and visible Discover preserve exploration." },
|
||||
"B11": { "choice": "YES", "reason": "Aligned differences and scoped evidence are more useful than repeated full preview panels." },
|
||||
"B12": { "choice": "OPTIONAL", "reason": "A mandatory named Tune step adds little when adjustments are optional and explicit configuration review remains before Prepare." },
|
||||
"B13": { "choice": "KEEP", "reason": "Stable technical profile names with short plain descriptors serve quick recognition and understandable choice." },
|
||||
"B14": { "choice": "YES", "reason": "Memory, storage, exact selection and commitment matter first; hardware specifications remain inspectable." },
|
||||
"B15": { "choice": "YES", "reason": "One truthful stage/progress display with local recovery communicates operations without duplicate status text." },
|
||||
"B16": { "choice": "YES", "reason": "Ready should confirm loaded identity and offer Chat; repeated estimates and illustrative tests are optional." },
|
||||
"B17": { "choice": "YES", "reason": "Consistent global scope and known blockers protect experiments and other chats from surprise lifecycle changes." },
|
||||
"B18": { "choice": "YES", "reason": "A genuinely shared source label removes repetition while keeping memory and mixed evidence separately qualified." },
|
||||
"B19": { "choice": "VISIBLE", "reason": "One actual review-status line distinguishes capability evidence from throughput without generic tradeoff prose." },
|
||||
"B20": { "choice": "YES", "reason": "Text sample names with exact token amounts avoid implying file support or verified document-task ability." }
|
||||
},
|
||||
"top_three": ["B01", "B05", "B06"],
|
||||
"amendments": [
|
||||
"For B02, show the exact retained custom batch number in the collapsed summary and keep adjustment state during navigation.",
|
||||
"For B06, merge only an identical exact variant under an identical displayed execution configuration; distinct settings need distinguishable recommendations.",
|
||||
"For B12, the explicit review must name download versus working memory and show the configuration being committed; optional Tune must open for invalid retained values.",
|
||||
"For B19, state the actual scope of the review, such as tool review pending, rather than implying catalog review establishes all task capability.",
|
||||
"For B17, absent or incomplete request state must remain unknown; a Serving link and consistent checks must not imply a new scheduler or parallel inference support.",
|
||||
"These are simulated persona judgments, not measured usability improvements or production capability evidence."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,157 @@
|
||||
# Persona 05 — local AI tinkerer, independent round 1
|
||||
|
||||
## Perspective and goals
|
||||
|
||||
I spend much of my day changing local inference configurations. I understand quantization, context, prompt batching and cache formats. I want to compare exact variants quickly, understand which configuration produced a number, keep an experiment reversible, and reach technical parameters without introductory prose. I still need plain labels, understandable failures and trustworthy evidence; familiarity with local AI does not make an ambiguous state acceptable.
|
||||
|
||||
Review only. No application/source changes, model runs, downloads, servers or browser launches. I did not read other persona reports. Production and native integration remain deferred.
|
||||
|
||||
## Evidence and current friction
|
||||
|
||||
Read `docs/engine-models-onboarding-2026-10-05.md`, relevant focus/density/disclosure/keyboard guidance in `docs/interaction-guidelines.md`, `Tuning.tsx`, `Models.tsx`, `Setup.tsx`, `EngineExperience.tsx`, `ModelCatalog.tsx` and `experience.ts`. Visually inspected `01-engine-light.png`, `07-models-light.png`, `09-onboarding-profile.png` and `08-variant-comparison.png` in `docs/evidence/instrument-redesign-2026-10-05/`. Screenshots and source take precedence over historical claims.
|
||||
|
||||
Observed:
|
||||
|
||||
- Engine has a two-line promotional heading, introductory reassurance, two repeated gesture captions, long dial hints, a three-stage duration path, memory prose and a savebar explanation. The exact inputs and state labels are useful; the surrounding prose competes with them.
|
||||
- Models repeats one exact variant across Balanced and Performance, with full identity, facts, purpose, tradeoff, repeated-winner sentence and disclosure in each card. The Agentic empty card occupies the same large footprint.
|
||||
- Comparison repeats the complete performance panel three times, including its heading, memory legend and identical unified-memory explanation. Exact family/version names and quantizations are visible and must survive a reduction.
|
||||
- Expert is accessible from the mode switch; Raw is a second switch within Expert. Parameter rows already retain technical keys, scope and individual Revert controls. Raw's editable draft is described as “Saved configuration only,” which is unclear beside the shared draft behavior.
|
||||
- Profile onboarding repeats the selected profile's purpose inside its recommendation after the same purpose appeared in the profile choice. Tune already hides adjustment controls initially. Prepare and Ready behavior is supported by source; their current appearance was not visually inspected.
|
||||
- `experience.ts` accepts speed evidence only for matching hardware/backend/configuration/workload/cold-prompt condition and valid ranges. Demo curves are separate. Missing data remains unavailable. Memory is an approximation with baseline runtime and no numeric batch-workspace or partial-offload prediction. Recommendation confidence is provisional unless the required evidence/review conditions hold.
|
||||
|
||||
Hypotheses, not measured findings: shorter cards would improve scan speed; remembering Expert mode would save repeat navigation; an aligned comparison table would make quantization tradeoffs easier to inspect. This review does not establish timing, comprehension or native performance gains.
|
||||
|
||||
## Proposed changes
|
||||
|
||||
Priority: P1 = must address in the next design revision; P2 = useful subsequent improvement. Every proposal keeps exact variant identities and distinguishes illustrative, estimated, measured and unavailable evidence.
|
||||
|
||||
### 1. Engine Beginner: remove the second introduction — P1
|
||||
|
||||
**Current:** “TUNE YOUR ENGINE,” “A little adjustment. A clearer tradeoff.” and “Explore freely. Changes stay in your draft.” sit above the dials; top-right says “Draft retained while you navigate.”
|
||||
|
||||
**Replacement/interaction:** Drop the marketing heading and eyebrow. Keep the screen title, exact loaded variant subtitle, mode switch and a single status: “Unsaved draft” / “Saved for next load” / “Currently applied” / “Saved defaults · Demo.” Show “Draft retained” when relevant beside status rather than as another paragraph. Keep the full “Save for next load,” “Apply now” and “Discard changes” labels.
|
||||
|
||||
**Disclosure:** A keyboard-accessible “Configuration status” disclosure explains draft retention and separates saved settings from the loaded model's applied configuration. Show the active operation (“Saving…” / “Applying…”) in the same status region without prematurely claiming it is applied.
|
||||
|
||||
**Benefit/risk:** Controls move into the initial scan; less reassurance repeats the same fact. Risk: “Unsaved draft” could sound temporary, so retention remains directly accessible and discard remains explicit.
|
||||
|
||||
### 2. Engine Beginner dials: terse hints, precise reset — P2
|
||||
|
||||
**Current:** Each dial repeats “Drag up to increase · arrow keys to adjust”; context and batch have multi-sentence explanatory hints. Batch has “Reset” plus “Automatic · recommended 2,048.”
|
||||
|
||||
**Replacement/interaction:** Keep exact numeric entry, detents, saved marker and keyboard controls. Use “Context · tokens” with “More context uses more cache memory.” Use “Prompt batch · tokens” with “Larger batches may need more memory.” Offer one “Dial help” affordance for gestures. Batch reset should say “Use Automatic” and show “Automatic (2,048)” when active; context reset can say “Recommended.”
|
||||
|
||||
**Disclosure:** “Dial help” explains keyboard/direct-entry behavior. Per-control “Details” contains the longer explanation, supported values and the fact that bigger batches are not always faster.
|
||||
|
||||
**Benefit/risk:** Retains precision while reducing repeated instruction. Risk: shared help may be less discoverable; retain accessible descriptions and never move an input error into disclosure.
|
||||
|
||||
### 3. Engine Expert and Raw: compress guidance, retain technical scope — P1
|
||||
|
||||
**Current:** Expert displays an adapter integration paragraph, full `p.effect` on every row, “recommended …,” scope, technical key and Revert. Raw says “Configuration JSON,” “Edit values, validate, then save,” and “Saved configuration only. Extra JSON keys remain preserved…”
|
||||
|
||||
**Replacement/interaction:** Keep Parameters / Raw config, technical keys, scope, recommendation values, search, Changed only and Revert. Collapse row effects behind a row “Details” control; leave validation messages inline. Use a compact “Adapter: llama.cpp” disclosure. Raw title becomes “Configuration draft”; caption “Edits share the Engine draft.” Keep Import/Export/Reload saved; label export “Export draft” if that matches its actual payload. Remember the chosen mode/view after navigation without changing values.
|
||||
|
||||
**Disclosure:** Adapter details hold native-integration context. Raw “Schema and scope” says extra keys are preserved and unsupported keys are not applied. Revert continues to restore saved values; recommended reset remains a distinct action.
|
||||
|
||||
**Benefit/risk:** Makes Expert a working surface and clarifies Raw's state. Risk: removing effect text makes unfamiliar parameters harder; row disclosures must be keyboard accessible and stable, with scope always visible.
|
||||
|
||||
### 4. Engine preview: two rates, memory and evidence first — P2
|
||||
|
||||
**Current:** “EXPECTED EXPERIENCE,” “See the tradeoff,” source pill, two speeds, Read prompt / Start answering / Generate path, memory block, delta sentence and “Estimate details.”
|
||||
|
||||
**Replacement/interaction:** Title “Performance preview”; retain source badge, workload, reading/answer rates with tok/s, memory requirement/fit and “Saved → Draft: +0.09 GB estimated.” Move the three-stage durations behind “Timing details,” with unknown time explicitly shown there. Keep source labels attached to metrics even if the panel is reused elsewhere.
|
||||
|
||||
**Disclosure:** Rename “Estimate details” to “Evidence & configuration.” Include full model/version/quantization identity, hardware, backend, context, batch, cache, placement, CPU threads, workload, cache condition, source/date/attribution and available evidence identity. Preserve the approximation exclusions. Do not imply driver/build identity exists when the adapter does not supply it.
|
||||
|
||||
**Benefit/risk:** Main surface shows decision facts without repeating derived values. Risk: rates alone can hide task duration; timing is one deliberate disclosure away, and no total-time or first-token claim is introduced.
|
||||
|
||||
### 5. Models recommendation cards: remove duplicated narrative — P1
|
||||
|
||||
**Current:** Cards include profile purpose, model family/version, friendly name, quantization, hero rate, other rate, memory/download, fit/context, tradeoff sentence, duplicate-winner sentence and “Why this choice?”
|
||||
|
||||
**Replacement/interaction:** Keep profile name, confidence/source badge, complete family/version plus quantization, both labeled rate ranges, memory/fit, download size and explicit action. Remove the friendly alias when it adds no distinguishing information. Use one line of profile purpose in the section's accessible help. If two profiles choose the same exact variant, show one card with “Balanced · Performance” profile chips and one action; preserve separate rationale entries. Agentic becomes a compact “No approved fit at 32K” notice with “Review context” action, rather than an empty full-height card.
|
||||
|
||||
**Disclosure:** “Why this choice?” contains purpose/tradeoff, profile-specific ranking rule, approval/review status and speed provenance. Demo choice stays visible on every result; no fitting Agentic candidate must never be relabeled as an approved alternative.
|
||||
|
||||
**Benefit/risk:** Substantially reduces text and duplicate downloads/actions. Risk: merging winners can blur distinct priorities; both profile labels and separate rationales must remain inspectable.
|
||||
|
||||
### 6. Model library: quick exact-variant expansion — P2
|
||||
|
||||
**Current:** Family → Version → preferred quantization, “Show all … quantizations,” repeated family purpose/capabilities and the catalog footer warning “Smaller files do not guarantee faster or better answers.” Discover is the initial tab.
|
||||
|
||||
**Replacement/interaction:** Keep the grouping and exact quantization labels. Add “Expand quantizations” to the library toolbar for this session, and remember Installed/Discover choice. Condense family subtitle to capability chips. Show “N variants · 32K context” plus an accessible configuration disclosure. Keep compare checkboxes and explicit incompatible-variant toggle.
|
||||
|
||||
**Disclosure:** “Catalog details” holds the file-size caveat and full comparison configuration. Variant details hold review/capability evidence. Installed variants remain available even when their current setup does not fit.
|
||||
|
||||
**Benefit/risk:** Experts can compare quantizations without repeatedly opening version controls. Risk: expansion creates too many rows; retain paging and reversible collapse, and avoid forcing all families open.
|
||||
|
||||
### 7. Comparison: aligned facts, shared assumptions — P2
|
||||
|
||||
**Current:** Three full preview panels repeat “EXPECTED EXPERIENCE / Performance,” timing path, source badge, memory legend and pool explanation.
|
||||
|
||||
**Replacement/interaction:** Use aligned desktop rows: exact variant, reading tok/s, answer tok/s, estimated working memory, fit/headroom or over-budget amount, download and action. One shared configuration bar shows workload, context, batch, cache, placement and threads. Keep source/confidence for each variant. Preserve stacked labeled rows on narrow screens and the three-variant limit.
|
||||
|
||||
**Disclosure:** Per-variant “Evidence” shows provenance and configuration identity; shared “Memory method” explains pool/baseline/exclusions. Optional “Timing” adds derived prompt/output duration rows with unknown scheduling/reasoning shown explicitly.
|
||||
|
||||
**Benefit/risk:** Direct comparison occupies fewer lines and separates actual differences from common assumptions. Risk: shared assumptions can imply all evidence matches; per-variant unavailable/mismatch states and source labels remain visible.
|
||||
|
||||
### 8. Onboarding Computer: keep detection, shorten verdict — P2
|
||||
|
||||
**Current:** Hardware verdict headline/detail, capacity illustration, available snapshot, Processor/Accelerator/Memory/Available storage, “Computer details,” retry/browse controls.
|
||||
|
||||
**Replacement/interaction:** Keep this step and precise processor/accelerator/memory/storage facts. Title “Your computer”; one status line “Hardware detected” or “Hardware unavailable · fit unknown.” Keep reported available memory explicitly marked “snapshot,” never relabel it as the model budget. Keep “Check again” and “Browse with fit unknown.”
|
||||
|
||||
**Disclosure:** Computer details holds fit caveats and detailed hardware checks; actionable detection failures stay outside it.
|
||||
|
||||
**Benefit/risk:** Less narrative before useful hardware facts. Risk: broad status obscures limitations; accelerator support failures and fit unknown must remain visible.
|
||||
|
||||
### 9. Onboarding Profile & model: selection is a draft choice — P2
|
||||
|
||||
**Current:** “What matters to you?”, three purpose paragraphs, repeated selected-profile purpose/tradeoff in the recommendation, “Compare models,” “Use this model.”
|
||||
|
||||
**Replacement/interaction:** Title “Choose a model priority.” Short purposes: “Tools & long prompts,” “Everyday use,” “Faster output.” Reuse the compact recommendation from proposal 5 with exact identity. Footer “Continue with this model” plus “Compare exact variants”; small status “Selection only · loads in Prepare.” Keep changing profile reversible and capability approval meaningful.
|
||||
|
||||
**Disclosure:** Profile help and “Why this choice?” contain original detail and provisional/demo rationale.
|
||||
|
||||
**Benefit/risk:** Makes the consequence of Continue clear and removes repeated explanations. Risk: “Tools & long prompts” can sound like capability approval; selected candidate's approval status remains explicit.
|
||||
|
||||
### 10. Onboarding Tune: keep optional adjustment, show full setup — P2
|
||||
|
||||
**Current:** “A good place to start,” exact model/quantization, context/batch/setup summary, MemoryBudget, “Adjust controls,” download/load action.
|
||||
|
||||
**Replacement/interaction:** Title “Review setup.” Keep collapsed adjustments, exact identity, context and batch; mark “Automatic (2,048)” distinctly from manual 2,048. Add a compact cache/placement/threads line because those are also saved in preparation. Keep “Download and load” / “Load model” / “Simulate download and load” explicit. Surface retained-setting errors alongside the relevant control; never silently replace values after a variant change.
|
||||
|
||||
**Disclosure:** “Execution details” shows all saved values and scope; expandable adjustment retains current dials and preview evidence.
|
||||
|
||||
**Benefit/risk:** Expert sees what will actually be saved without opening every control. Risk: added facts increase density; use one concise settings line instead of another paragraph.
|
||||
|
||||
### 11. Onboarding Prepare: literal stage title and scoped recovery — P2
|
||||
|
||||
**Current:** “Bringing your model online,” stage list, progress, “Preparation details,” Cancel download and Retry loading/download; details say interrupted downloads restart in this host.
|
||||
|
||||
**Replacement/interaction:** Title “Preparing [exact model]”; retain quantization/files, completed/current stages, progress and cancel/retry. A load failure reads “Loading failed · files retained,” with “Retry loading.” Keep check naming literal: “Check downloaded file size” must not become “Verified” or “Integrity verified.” During download show “Cancel download”; before cancel, make restart behavior accessible beside that action.
|
||||
|
||||
**Disclosure:** Preparation details contains host restart limitation, retained settings/files and operation error detail; the actionable error remains inline.
|
||||
|
||||
**Benefit/risk:** Recovery is clear with fewer ambient sentences. Risk: shortening verification wording can overclaim security/integrity; literal stage names are required.
|
||||
|
||||
### 12. Onboarding Ready: confirm loaded configuration, then chat — P2
|
||||
|
||||
**Current:** “Your next idea starts here,” model-ready pill, family, quantization/profile/context, full MemoryBudget, “Preview speed test · Demo,” “Start chatting.”
|
||||
|
||||
**Replacement/interaction:** Title “Model ready” only after successful loading; preserve “Demo model ready” where appropriate. Show exact family/version/quantization and loaded execution summary including batch/cache/placement/threads. Keep “Start chatting” primary; move full memory breakdown behind “Loaded setup.” Put “Preview speed test · Demo” in an optional Tests disclosure with the visible Demo label retained.
|
||||
|
||||
**Disclosure:** Loaded setup includes memory/evidence details; Tests opens the existing explicitly illustrative flow. Ready must not claim saved/draft values are applied unless they correspond to the successful load.
|
||||
|
||||
**Benefit/risk:** Clear endpoint without another large repeated panel. Risk: hiding the test reduces discovery, but it is optional and produces no measurement; error/readiness gates remain visible.
|
||||
|
||||
## Vote
|
||||
|
||||
**Three must-do:** 1 (remove Engine's second introduction while preserving state), 3 (make Expert/Raw concise and unambiguous), 5 (compact recommendation cards and consolidate identical winners). These address the text complaint directly without sacrificing precision or evidence.
|
||||
|
||||
**Two opposed proposals:**
|
||||
|
||||
1. Oppose removing quantization/version/backend/configuration details or replacing exact identities with friendly aliases alone. “Qwen3” is insufficient for selection, evidence matching or a reversible experiment. Identity should remain in the main row/card; longer provenance can disclose.
|
||||
2. Oppose one “Optimize”/“Save” action that silently applies or restarts a model, or a profile selection that changes sampling. Preserve draft, saved and applied state, next-request versus next-load scope, explicit Apply now, per-field revert and recommendation selection as separate operations.
|
||||
|
||||
No requested change depends on invented benchmark numbers or deferred native integration. The vote is a design judgment; the scan/comprehension benefits remain hypotheses until users try the revised surfaces.
|
||||
@@ -0,0 +1,27 @@
|
||||
# Persona 6 — round-two debate
|
||||
|
||||
Read all eight independent reports and the ballot. Votes are independent simulated design judgments from GPT-6.1 Sol, Medium; no human usability evidence, model execution or source changes. My task remains managing fourteen chats with one loaded model and requests that can queue, not fourteen simultaneous inference jobs.
|
||||
|
||||
## Challenges
|
||||
|
||||
1. **02-mac, M05: one selected recommendation with no-fit shown only on selecting Agentic.** I challenge the selector as the default recommendation layout for this operator. It makes me toggle priorities to discover that two choices are identical and the tool-oriented option is unavailable. A compact unique-winner card with profile chips plus an always-discoverable no-fit row exposes that relationship in one scan. I vote **B06 UNIQUE**, preserving all profile meanings and explicit load. A merge must compare execution settings as well as variant identity, because a shared file is not necessarily a shared setup.
|
||||
|
||||
2. **04-newcomer, N07: comparison hides reading throughput and moves sample/configuration into settings.** Reading rate is a decision fact for repeatedly feeding long agent prompts. Comparing answer rate alone can conceal the relevant bottleneck. I vote **B11 YES** with both labelled rates and shared visible workload context. Phase timings and memory taxonomy can disclose. This challenges the proposed comparison hierarchy, not the need for beginner defaults; no throughput figure predicts total fourteen-chat completion time.
|
||||
|
||||
3. **05-tinkerer, proposals 10 and 12: full cache/placement/threads summary in both Tune and Ready.** I challenge repeating this configuration line at completion. Exact variant, loaded state, profile and context plus a Loaded setup disclosure suffice in Ready. Full configuration belongs at commitment or troubleshooting; it does not need to compete with Start chatting. I vote **B16 YES**. Applied values must still be truthful in that disclosure.
|
||||
|
||||
## Concessions and changed opinions
|
||||
|
||||
**Useful opposing point:** 02-mac M01 and 03-teacher T02 preserve a visible Automatic/Custom batch state while placing its dial behind Adjust. My first round kept both instruments visible. I now vote **B02 CONTEXT**: fourteen open chats do not make batch a concurrency control, and a truthful compact summary preserves discovery while removing a routine technical decision. Exact entry and Expert remain intact.
|
||||
|
||||
**Changed queue position:** My initial proposal 1 suggested active/queued counts in the Engine status line. Reading the repeated-object objections across the reports, I narrow this: compact global draft/saved/applied state is sufficient at idle. Show activity when known work exists, at a relevant busy state, or beside a consequential lifecycle action. Existing Serving holds request detail. **B17 YES** captures this better than permanent zero-count chrome. Global state alone is insufficient at the moment of switching: a known blocker and consistent checks must remain visible then. Unknown telemetry cannot mean clear to switch.
|
||||
|
||||
**Changed onboarding structure:** First round reviewed all five steps without requesting consolidation. I now choose **B12 OPTIONAL** because the ballot retains explicit download/configuration review, preparation, readiness and resume. Optional tuning can expand within that review; the gate and its consequences matter more than a separate numbered Tune stop. Invalid retained controls must open for recovery.
|
||||
|
||||
## Held opinions
|
||||
|
||||
I retain visible compact reading and answer rates (**B03 RATES**, **B08 BOTH**), exact identities, local evidence labels and explicit switching. Reading throughput is useful to this persona even though it says nothing about tool reliability. I support one short actual review-status line (**B19 VISIBLE**) because high throughput and approved capabilities answer different questions; expanded rationale remains optional.
|
||||
|
||||
I retain the three priorities' canonical labels with short descriptors (**B13 KEEP**). Office/newcomer arguments improve their explanations, but renaming them adds vocabulary changes without evidence that this operator needs them. This is a preference hypothesis, not a claim that current labels are empirically understood.
|
||||
|
||||
Top priorities are **B17** consistent global lifecycle consequences, **B11** aligned comparison facts, and **B01** removal of repeated introductions. I oppose turning this revision into a scheduler, queue dashboard, per-chat engine system or parallel-capacity promise. Existing state can explain scope and blockers in fewer words.
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"reviewer": "06",
|
||||
"persona": "Man managing fourteen agentic chats sharing one loaded model",
|
||||
"model": "gpt-6.1-sol",
|
||||
"effort": "medium",
|
||||
"votes": {
|
||||
"B01": { "choice": "YES", "reason": "Remove repetition while retaining concise global draft/saved/applied facts." },
|
||||
"B02": { "choice": "CONTEXT", "reason": "Automatic/Custom batch summary preserves operational awareness without making a technical mechanism a peer decision." },
|
||||
"B03": { "choice": "RATES", "reason": "Reading and answer throughput support long-prompt work decisions; compact memory and scoped evidence prevent overclaiming." },
|
||||
"B04": { "choice": "YES", "reason": "A small action hierarchy preserves deliberate saving and reviewed restart while hiding infrequent actions." },
|
||||
"B05": { "choice": "YES", "reason": "Scope and application timing remain scannable; descriptions can expand deliberately." },
|
||||
"B06": { "choice": "UNIQUE", "reason": "Unique exact winners expose meaningful alternatives together without duplicate actions or tall cards." },
|
||||
"B07": { "choice": "YES", "reason": "Exact identity prevents wrong-variant switching and enables later evidence inspection." },
|
||||
"B08": { "choice": "BOTH", "reason": "Both rates fit one row and reveal whether a candidate favors prompt processing or answer generation." },
|
||||
"B09": { "choice": "YES", "reason": "Compact actionable no-fit and shared-winner states reclaim space without implying approval." },
|
||||
"B10": { "choice": "YES", "reason": "Installed-first supports repeated model management; remembered deliberate choice retains discovery access." },
|
||||
"B11": { "choice": "YES", "reason": "Aligned rows show throughput, memory blockers and evidence differences without three repeated panels." },
|
||||
"B12": { "choice": "OPTIONAL", "reason": "Optional tuning can live inside explicit pre-download review; a mandatory separate tuning stop adds navigation." },
|
||||
"B13": { "choice": "KEEP", "reason": "Short descriptors clarify established profile names without changing an operator's vocabulary across surfaces." },
|
||||
"B14": { "choice": "YES", "reason": "Compact actual fit/download review retains commitment facts and expands invalid retained settings." },
|
||||
"B15": { "choice": "YES", "reason": "Actual stage and local recovery are useful; duplicated progress text is not." },
|
||||
"B16": { "choice": "YES", "reason": "Ready should confirm loaded identity and offer chat, with repeated breakdown and demo test optional." },
|
||||
"B17": { "choice": "YES", "reason": "Relevant known activity and consistent lifecycle checks protect shared work without idle queue chrome." },
|
||||
"B18": { "choice": "YES", "reason": "Scoped shared source labels remove duplication while retaining mixed and unknown evidence locally." },
|
||||
"B19": { "choice": "VISIBLE", "reason": "A short actual capability-review status helps distinguish tool evidence from high reading throughput." },
|
||||
"B20": { "choice": "YES", "reason": "Exact text-sample sizes preserve throughput context without suggesting document or tool capability." }
|
||||
},
|
||||
"top_three": ["B17", "B11", "B01"],
|
||||
"amendments": [
|
||||
"B17: compact global state is enough at idle; show known activity when busy or before consequential actions. Do not equate open chats with concurrent requests or invent counts, queue positions or wait ETAs.",
|
||||
"B17: lifecycle checks should account for known chat streaming and serving active/queued work consistently; absent telemetry is unknown, not zero.",
|
||||
"B06/B09: merge only identical exact variants with identical proposed execution settings; different context/batch/cache/placement/threads are different setups even if downloads are shared.",
|
||||
"B03/B08/B11: keep a short visible per-request qualifier near rates or their group: queue wait and reasoning are unknown. No aggregate fourteen-chat completion estimate.",
|
||||
"B12: optional Tune still requires an explicit exact-variant, configuration, download and fit review before preparation; expand controls on invalid retained choices.",
|
||||
"B19: show literal available review metadata or pending status, never infer approved tool quality, task safety or parallel capacity."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
# Persona 6 — fourteen agentic chats
|
||||
|
||||
Independent first-round review, 5 October 2026. Review only; no source changes or running models.
|
||||
|
||||
## Goals and evidence
|
||||
|
||||
Persona hypothesis: I am a man managing fourteen open agentic chats. I need to scan which work needs attention, return to the right conversation, and avoid changing the shared engine while other work depends on it. Fourteen chats are fourteen contexts to manage; they do not imply fourteen inference jobs running simultaneously. I favor compact facts over explanatory paragraphs, but a global change needs an unmistakable scope label.
|
||||
|
||||
Observed: inspected `01-engine-light.png`, `07-models-light.png`, `09-onboarding-profile.png`, and `08-variant-comparison.png` via image viewing, plus current Tuning, Models, Setup, EngineExperience, ModelCatalog, experience, and the relevant Serving/store sections. Engine's dials and memory impact are clear, but their captions, introduction, and preview story consume substantial space. Models repeats the exact Balanced/Performance winner in two tall cards. Comparison repeats an entire expected-experience card three times. Onboarding repeats profile purpose in both the selector and the selected recommendation.
|
||||
|
||||
Observed: Models explicitly says “one model runs at a time”; Serving says requests take turns and exposes active/queued counts. ModelAction gates its switch confirmation on running plus waiting requests. The store's shared lifecycle guard checks streaming/running requests, not waiting counts; Tuning's restart dialog only says to wait for active requests and does not disable its confirmation based on request activity. These are UI/guard observations, not proof that the backend interrupts queued jobs. Native integration is deferred. The performance estimator omits scheduling and reasoning; memory is one configuration estimate, not fourteen-chat aggregate memory.
|
||||
|
||||
Relevant interaction rules: one hero per screen, density for scanning, no decorative motion during generation, navigation and per-conversation reading continuity. An orchestration dashboard, automatic scheduler, or new parallel execution promise would exceed this review.
|
||||
|
||||
## Friction
|
||||
|
||||
- The loaded-model summary, draft status, and queue facts live in different places; the user must reconstruct the scope of an action.
|
||||
- “Prompt batch” plausibly reads as a parallel-jobs control to this persona. It actually concerns prompt text processed together.
|
||||
- Large speed numbers lack a nearby scheduling qualifier. The current qualifier exists inside Estimate details, too far from a quick throughput decision.
|
||||
- “Save for next load” is clear for resource settings, but the same save can change sampling defaults for the next request across chats.
|
||||
- Repeated prose obscures actionable differences among exact model variants.
|
||||
|
||||
## Twelve proposals
|
||||
|
||||
Each proposal is a design recommendation. Counts must come from existing host state; absence of reliable state must read “Request status unavailable,” never invented zeroes.
|
||||
|
||||
| # / area | Current text or control | Concise replacement or behavior | Disclosure destination | Benefit / risk / priority |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| 1. Engine Beginner — **change** | “A little adjustment. A clearer tradeoff.” and “Explore freely. Changes stay in your draft.”; separate draft status | Single heading “Engine setup”; compact line “Global · Draft” / “Global · Saved for next load” / “Global · Applied.” Add factual “N active · N queued” using available request state, linking to existing Serving. Keep loaded variant beside it. | State explanation in a “Setup details” disclosure; queue details in Serving. | Makes scope and activity scannable while removing slogan text. Risk: request stats may omit a chat stream; use known stream activity conservatively and avoid pretending counts cover all clients. **P0, must-do**. |
|
||||
| 2. Engine Beginner — **change** | Context and Prompt batch each have gesture caption, exact entry, and multi-sentence hint; “Adjust a control to explore its effect.” | Keep dials and exact entry. Use “Context · text limit” and “Prompt batch · tokens per pass”; hints “Longer context uses more memory.” / “Not a parallel-chat count.” Show only a short changed-state line such as “Draft memory +0.09 GB · less headroom”; omit the idle instruction. | Gesture guidance and fuller batch tradeoff in control help, reachable by keyboard; shared memory assumptions in Estimate details. | Prevents a critical concurrency misunderstanding and lowers reading load. Risk: terse hints need accessible help; do not hide invalid-value errors or Automatic. **P1**. |
|
||||
| 3. Engine Expert — **change** | Every parameter shows effect text plus “Next request · all requests” / “Next model load … recommended”; adapter paragraph precedes rows | Use concise timing/scope badges “Global · next request,” “Global · next load,” or “Preserved only”; keep technical key, value, recommended value, Revert and Changed only. Group repeated effects behind “Parameter help.” | Parameter help per row; adapter compatibility in “Configuration support” disclosure near Raw config. | Expert can scan changed settings and identify cross-chat consequences. Risk: effect text may contain a unique limitation; keep that limitation inline when it determines availability. **P1**. |
|
||||
| 4. Engine/Models switching — **change** | Apply now → Save and restart; load dialog says “Wait for active and queued requests…”; Unload is not visibly gated by those counts | Make restart/load/unload consistently show “Global · all chats” and current active/queued state. Disable destructive engine lifecycle confirmation while known streaming, active, or queued work exists, with “Waiting for requests to finish” and a Serving link. Use one compact configuration summary in the confirmation. Keep switching explicit, with Keep current. | Confirmation contains affected model, timing, scope and blocker; fuller configuration inside “Setup details.” | Aligns visible gates across routes and prevents fourteen-chat surprise. Risk: sustained incoming requests may keep the gate blocked; expose existing Serving controls without adding automatic cancellation, drain scheduling, or deferred-switch features. **P0, must-do**. |
|
||||
| 5. Models recommendations — **change** | Tall cards repeat profile purpose, exact winner, fit sentence, tradeoff, duplicate-winner sentence, Why this choice | Compact rows/cards: profile, exact variant, reading/answer, estimated memory + fit, state/action. Replace repeated winner paragraph with “Also Balanced”/“Also Performance” chip; retain each profile's identifiable choice. “No approved agent fit” remains explicit. Keep Demo/provisional visible. | Purpose, tradeoff, approval rationale and provenance in Why this choice. | Reclaims screen height for the library and reduces false impression of two distinct downloads. Risk: duplicate chip must remain understandable; never disguise capability approval gaps. **P1**. |
|
||||
| 6. Models library — **keep/change** | Family → version → quantization, Installed/Discover, “Profile choice”, download/memory/speed fields, full purpose sentence per family | Keep hierarchy, filters and exact quantization. Replace repeated purpose prose with short capability chips; distinguish Running / Installed / Downloading in each visible variant row. Keep Load and Download distinct. Compact metadata line to “32K reference · N variants.” | Family purpose in expandable family details; size-versus-speed caveat in variant help. | Fast scanning of existing usable models while downloads continue. Risk: overcompacting the model name can cause wrong-variant selection; preserve version and quantization in identity and confirmation. **P1**. |
|
||||
| 7. Models comparison — **change** | Three full expected-experience cards with repeated headers, memory legends and start-answering unknown stage | Aligned comparison rows for Reading, Answer, Estimated memory, Headroom/over budget, Fit, Download and State; shared context/workload header. Retain evidence label per variant. Show one concise qualifier: “Per request · queue wait and reasoning unknown.” No overall task ETA. | Per-variant Estimate details for provenance and allocation breakdown; optional phase durations there. | Makes bottlenecks and unsafe memory choices immediately comparable; throughput cannot be mistaken for fourteen-chat completion time. Risk: one shared qualifier must stay visible at narrow widths. **P0, must-do**. |
|
||||
| 8. Onboarding 1 Computer — **keep/change** | Large capacity illustration, repeated memory specification, processor/accelerator/storage, Computer details | Keep detected hardware, reported-available snapshot, storage, retry and fit-unknown continuation. Consolidate duplicate memory facts; use “This computer” title and compact spec grid. Add “Fit estimated” beside capacity rather than more prose. | Existing Computer details holds checks and effects of other apps/configuration. | Fast readiness check with honest uncertainty. Risk: available memory is transient; preserve “current snapshot” instead of treating it as queue capacity. **P2**. |
|
||||
| 9. Onboarding 2 Profile & model — **keep/change** | “What matters to you?”; three full purpose sentences; same purpose repeated in selected recommendation; “Use this model” | Keep three choices and Balanced default. Short purposes “Tools & long prompts,” “Everyday work,” “Faster answers”; selected recommendation uses compact facts from proposal 5. Footer “Continue with [short exact variant]” selects setup only. | Why this choice carries capability tradeoffs and approval explanation; Compare models retains exact variant selection. | Reduces repetition and clarifies that profile choice does not launch extra engines. Risk: “Agentic” must not suggest concurrency; keep “No approved agent fit” when applicable. **P1**. |
|
||||
| 10. Onboarding 3 Tune — **keep/change** | “A good place to start”; summary, MemoryBudget, Adjust controls; Download and load / Load model | Keep recommended summary, optional controls and validation. Heading “Review setup”; concise scope line “One shared engine · all chats.” Preserve context/batch values and visible memory fit. Load CTA enters the explicit busy/switch check from proposal 4 when an engine is already serving work. | Expanded controls supply hints; Estimate details supplies memory assumptions. | Users can keep recommended setup without studying dials; existing-chat users see global effects before preparation. Risk: avoid an unnecessary confirmation for genuinely empty first setup. **P1**. |
|
||||
| 11. Onboarding 4 Prepare — **keep/change** | “Bringing your model online”; Download/Check file size/Load/Readiness list; generic “Working…” button | Keep real stages, progress, retry/cancel locality and completed-files preservation. Use active-stage heading “Downloading model” / “Loading model”; when requests block load, show “Waiting for requests · N active · N queued” rather than generic failure or Working. Do not show a queue position or wait ETA without evidence. | Preparation details retains restart-from-beginning and error detail; Serving link for blocking activity. | User can return to other work knowing the actual blocker. Risk: queued work must not be presented as a new scheduled-switch implementation; this is status and manual retry. **P1**. |
|
||||
| 12. Onboarding 5 Ready — **keep/change** | “Your next idea starts here”; model/profile/context; full MemoryBudget; Preview speed test · Demo and Start chatting | Keep successful-load gate and Start chatting. Use “Model ready” with exact variant, profile, context, “Shared by your chats” and brief memory fit. Move full memory breakdown and optional demo test under “Setup details”; Demo status remains visible. | Setup details contains memory strip and “Preview test · Demo”; no benchmark claim. | Finishes quickly and prepares the user for fourteen conversations sharing one model. Risk: do not relabel demo readiness as native readiness or make test a required step. **P2**. |
|
||||
|
||||
## Vote and opposition
|
||||
|
||||
Three must-do votes: **1** compact global state/activity, **4** consistent explicit switching gates, and **7** comparable rows with visible per-request/scheduling limits. I support reducing card prose through progressive disclosure; I would ship these before adding any new session-management features.
|
||||
|
||||
Oppose: (a) hiding global scope, active/queued blockers, memory fit or Demo status in the pursuit of less text; these are operational facts, not optional education. (b) a “14 parallel agents” capacity dial, per-chat model promise, aggregate ETA, or automatic queue/switch scheduler. The present host exposes one loaded model with requests taking turns, and current evidence cannot substantiate such claims.
|
||||
|
||||
Remaining persona hypotheses to validate later: whether a single shared activity line adequately reassures a fourteen-chat operator, and whether “tokens per pass” is sufficiently understandable. Neither is a reason to invent a concurrency model or run models during this review.
|
||||
@@ -0,0 +1,33 @@
|
||||
# Persona 07 — casual research/work, round-two debate
|
||||
|
||||
Read all eight original reports (`01-gamer.md` through `08-office.md`) and `ballot.md`. These are simulated design judgments, not human usability findings. This round writes only my vote and debate; it does not change or run the app, a server, or a model. Native integration remains deferred.
|
||||
|
||||
## Specific challenges
|
||||
|
||||
1. **Gamer G02 and Tinkerer proposal 2: retain two equally available Beginner dials.** Their direct-adjustment goal is valid, but I disagree that prompt batch needs peer prominence for someone coming to summarize a document. Exact entry and keyboard operation remain available in Expert and Adjust. A visible Automatic/Custom summary addresses the discovery cost without creating a second immediate technical decision. I vote **B02 CONTEXT**.
|
||||
|
||||
2. **Mac M05: one selected recommendation and Agentic no-fit only when selected.** I prefer to see whether the three priorities produce different exact choices before interacting with a selector. The screenshot's problem is duplicated winners and large cards, not three priorities existing. Tinkerer proposal 5 and Office #6 supply a better compromise: one card per exact winner, profile chips, one action, and a compact visible no-fit row. I vote **B06 UNIQUE**, challenging M05's SELECTOR presentation. This avoids both duplicate reading and extra selector exploration.
|
||||
|
||||
3. **Gamer G05 and Tinkerer proposal 5: both rates on normal recommendation cards.** Those numbers help compare performance, but they cannot answer whether research outputs are useful or dependable. For an ordinary model commitment, estimated fit, working memory, download, exact identity and actual review status deserve the initial surface. I vote **B08 FIT** and **B19 VISIBLE**. This does not invent a research-quality measure: the review line must describe the actual metadata and its limits. Both rates remain in comparison and accessible Details.
|
||||
|
||||
4. **Teacher T06: “Show other file formats (quantizations).”** I reject this simplification because it supplies an inaccurate conceptual explanation. A shorter label such as All variants can retain the exact quantization names and disclosure explanation without calling quantization a file format. B07's exact readable identity and B10's preserved hierarchy address this need.
|
||||
|
||||
## Concessions and changed views
|
||||
|
||||
**Newcomer N02 has a useful opposing point about demo speed emphasis.** The large illustrative figures can draw attention away from actual fit. I nevertheless vote **B03 RATES**, holding my original Engine proposal 2: reducing metric size, putting fit first, and removing the timing path/taxonomy gives immediate adjustment feedback with less reading. Opening speed details on every adjustment is a real interaction cost. The rates' source must stay locally visible; compact speed is not a claim of total duration or reliable answers.
|
||||
|
||||
**Tinkerer proposal 5 and Office #6 changed my recommendation layout preference.** Round one proposed compact individual profile cards with shared-winner notes. I now support **UNIQUE** cards because simultaneous exact choices survive while repeated actions disappear. Distinct rationale and configuration identity must remain inspectable.
|
||||
|
||||
**Mac M10 and Newcomer N10 changed my setup structure preference.** My original report shortened all five existing steps. B12 OPTIONAL explicitly retains the download/configuration review, tuning access, preparation, resume and successful-readiness gate. I now favor **OPTIONAL**: a required visit named Tune suggests optimization is needed even when defaults suffice. Invalid retained values still need visible intervention.
|
||||
|
||||
**Teacher T04's concern about explanation and recovery is useful.** I originally proposed per-row Details in Expert. B05's Show descriptions gives someone investigating several settings a single action to expose explanations, avoiding one click per row. I support B05 while keeping scope, preserved-only status, errors and revert visible.
|
||||
|
||||
**Parallel proposals 1 and 4 add evidence outside my original emphasis.** Shared engine actions affect ongoing work, and the reported differing lifecycle guards justify consistent concise scope and blocker checks. B17 earns YES without adding idle counts, inferred concurrency or a new scheduling feature.
|
||||
|
||||
## Held positions and priorities
|
||||
|
||||
I hold the context-first Beginner hierarchy, exact variant access, qualified unknowns, honest cancellation consequences and a clear Ready finish. I also hold that speed, fit, model size and Balanced rank cannot establish research accuracy. B19 VISIBLE is one short actual review-status line replacing generic prose, not a new universal research checklist.
|
||||
|
||||
The card and Engine choices deliberately differ: Engine provides compact feedback for tuning (**B03 RATES**), ordinary recommendations lead with commitment and suitability evidence (**B08 FIT**), and comparison exposes both rates (**B11 YES**). The cost of speed disclosure is justified on a model card when it leaves space for facts that govern the decision; it is less justified while adjusting an Engine control repeatedly.
|
||||
|
||||
My top three are **B02, B06 and B11**, targeting the two-dial hierarchy, repeated winners and nested comparison panels. All twenty votes are explicit in `07-research-vote.json`. Amendments record wording/evidence refinements separately and do not condition any vote. Claimed usability benefits remain hypotheses for real-user validation.
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"reviewer": "07",
|
||||
"persona": "Casual local AI research and ordinary work",
|
||||
"model": "gpt-6.1-sol",
|
||||
"effort": "medium",
|
||||
"votes": {
|
||||
"B01": { "choice": "YES", "reason": "Remove repetition while retaining one useful hint and truthful configuration state." },
|
||||
"B02": { "choice": "CONTEXT", "reason": "Document context is the ordinary decision; labelled custom batch and Adjust preserve discovery." },
|
||||
"B03": { "choice": "RATES", "reason": "Compact qualified reading and answer ranges provide immediate tuning feedback without the repeated timing story." },
|
||||
"B04": { "choice": "YES", "reason": "Save and available Apply remain clear; less frequent actions can use a labelled menu with validation preserved." },
|
||||
"B05": { "choice": "YES", "reason": "Show descriptions avoids repeated row disclosures for readers who need explanations while preserving Expert scope." },
|
||||
"B06": { "choice": "UNIQUE", "reason": "One exact winner with profile chips prevents duplicate actions and keeps other winners and no-fit visible without selector exploration." },
|
||||
"B07": { "choice": "YES", "reason": "Exact variant identity supports choosing and reproducing a setup; wrapping is preferable to opaque aliases." },
|
||||
"B08": { "choice": "FIT", "reason": "Fit, working memory and download govern commitment; speed details and comparison remain available without suggesting suitability." },
|
||||
"B09": { "choice": "YES", "reason": "Compact no-fit recovery and an explicit shared winner reduce redundant card height and download confusion." },
|
||||
"B10": { "choice": "YES", "reason": "Installed-first daily access and remembered choice reduce repeated browsing while retaining Discover and exact variants." },
|
||||
"B11": { "choice": "YES", "reason": "Aligned rows expose differences and per-variant evidence with much less repetition than three nested panels." },
|
||||
"B12": { "choice": "OPTIONAL", "reason": "A preserved download/configuration review can contain optional tuning without another compulsory setup stop." },
|
||||
"B13": { "choice": "RENAME", "reason": "Plain purposes make the three priorities easier to choose; canonical names remain accessible in Details." },
|
||||
"B14": { "choice": "YES", "reason": "Compact detected facts, exact choice, fit and actual download amount retain the information needed before commitment." },
|
||||
"B15": { "choice": "YES", "reason": "Stage-local recovery and visible cancellation consequences matter more than duplicated progress narration." },
|
||||
"B16": { "choice": "YES", "reason": "Ready should confirm actual loaded or Demo state and lead directly to Chat with optional technical depth." },
|
||||
"B17": { "choice": "YES", "reason": "Known shared-engine scope and consistent lifecycle blockers prevent disruption of ordinary ongoing work." },
|
||||
"B18": { "choice": "YES", "reason": "A correctly scoped source badge removes repetition while local mixed, estimated and unknown states preserve meaning." },
|
||||
"B19": { "choice": "VISIBLE", "reason": "One actual review-status line prevents a qualified starting recommendation from appearing to establish research suitability." },
|
||||
"B20": { "choice": "YES", "reason": "Text sample labels retain exact token assumptions without implying document-format or research-task capability." }
|
||||
},
|
||||
"top_three": ["B02", "B06", "B11"],
|
||||
"amendments": [
|
||||
"B13: Explain long prompts in Tools and agents help; Faster answers names a priority, not a measured guarantee for this setup.",
|
||||
"B19: Use existing capability-review metadata only; do not expand a general review into a verified research, accuracy or task-specific claim.",
|
||||
"B03: Keep memory and fit visually prior to the compact rates; do not promote demo ranges into a hardware prediction.",
|
||||
"B12: Auto-open optional tuning when retained values are invalid, showing their exact values and an explicit recovery action.",
|
||||
"B06: Merge only the same exact variant and compatible displayed configuration; preserve separate priority rationales when winners coincide."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
# Persona 07 — Casual research and ordinary work
|
||||
|
||||
Independent round 1, 5 October 2026. Review only; no other persona reports were consulted.
|
||||
|
||||
## Goals and evidence
|
||||
|
||||
I want to summarize documents, draft ordinary work, and explore questions without learning hardware tuning. I want a useful starting choice and a clear path back to my work. I need to know what is actually established about a model; speed is not evidence that its research answers are accurate or reliable.
|
||||
|
||||
Evidence inspected: current `Tuning.tsx`, `Models.tsx`, `Setup.tsx`, `EngineExperience.tsx`, `ModelCatalog.tsx`, and `experience.ts`; implementation report and interaction guidelines; captures `01-engine-light.png`, `07-models-light.png`, `09-onboarding-profile.png`, and `08-variant-comparison.png`. Current source supplies details absent from the captures, including all five setup steps and Expert mode. This is a simulated persona review, not a usability study or a benchmark. Likely confusion and expected benefits below are hypotheses.
|
||||
|
||||
Observed: Beginner presents two equally prominent dials, multiple explanatory paragraphs, throughput, three timing stages, and a memory breakdown. Model cards repeat profile purpose and tradeoff text, and two cards repeat the same exact choice. Comparison repeats an entire performance panel three times. Onboarding repeats the selected profile purpose inside its recommendation. These are visible density problems; task failure or abandonment has not been measured.
|
||||
|
||||
Useful existing behavior to preserve: Balanced is the new-setup default; optional tuning is disclosed in setup; exact variants remain accessible; fit and evidence have explicit unknown states; selection does not silently switch the running model; preparation preserves completed files and errors; readiness gates entry into Chat. No recommendation here depends on native hookup or invented quality measurements. Keep current body size and allow wrapping rather than shrinking text.
|
||||
|
||||
## Concrete proposals
|
||||
|
||||
### 1. Engine Beginner: make context the main decision — P0, must-do
|
||||
|
||||
**Observed control/copy:** `Context` and `Prompt batch` are peer dials, with `Exact value`, drag instructions, and long hints beneath each. Batch also has `Automatic · recommended 2,048`.
|
||||
|
||||
**Change:** Keep context as the visible dial, labelled `Context · text the model can consider`, with the shorter hint `More context holds longer documents and uses more memory.` Put batch under `Advanced controls`, showing `Prompt batch: Automatic (2,048)` as its collapsed summary. Retain the explicit automatic toggle, batch dial, exact numeric inputs, recommendation reset, saved marker, and keyboard behavior inside the disclosure. Preserve a visible `Custom batch: 1,024` summary when applicable.
|
||||
|
||||
**Details destination:** `Context details` holds token definition, supported limits, and numeric entry; `Advanced controls → Prompt batch` holds `Larger batches use more working memory and may not be faster.`
|
||||
|
||||
**Benefit/risk:** Likely makes the document-related setting recognizable and removes an unnecessary first decision. Risk: custom batch changes become easier to overlook; visible custom summary and shared draft state mitigate it.
|
||||
|
||||
### 2. Engine expected experience: lead with fit, keep speed evidence explicit — P0, must-do
|
||||
|
||||
**Observed copy:** `EXPECTED EXPERIENCE`, `See the tradeoff.`, two large throughput figures, `Read prompt / Start answering / Generate`, memory legend, shared-memory explanation, and saved-to-draft sentence.
|
||||
|
||||
**Change:** Title `Estimated fit and speed`. First show `Comfortable fit · estimated`, `1.9 GB required`, and `Draft uses +0.09 GB estimated memory` when changed. Keep separate reading and answer ranges with their units and `Demo estimate`, `Measured`, or unavailable status directly adjacent, at normal metric size. Replace repeated source text with one scoped source label only when both values truly share it. Move the timing path and memory segment legend behind `Details`; if timing is expanded, retain `Start answering: Not estimated` and `Durations exclude reasoning and scheduling.`
|
||||
|
||||
**Details destination:** Existing `Estimate details`, expanded to include the timing path, allocation explanation, workload/configuration identity, and estimation limitations. Keep workload selector visible.
|
||||
|
||||
**Benefit/risk:** Likely helps answer “will this fit?” without making demo throughput the screen's hero. Risk: hidden timing limitations could imply total task time; the expanded timing path must retain its qualifier, and the collapsed surface must never label speed as total task duration.
|
||||
|
||||
### 3. Engine Expert: shorten repeated explanations, preserve applicability — P1
|
||||
|
||||
**Observed copy/control:** Each parameter row shows label, technical key, full effect, applicability, recommendation, input, and `Revert`; the view also has a build-adapter paragraph.
|
||||
|
||||
**Change:** Keep parameter label, technical key, input, recommendation, `Next model load` / `Next request` / `Preserved only`, and `Revert` visible. Put full `p.effect` text behind per-row `Details`. Replace the build paragraph with `Adapter: llama.cpp · Details`.
|
||||
|
||||
**Details destination:** Row Details contains effect/support information; adapter Details retains native integration dependency and the distinction between preserved keys and supported options. Raw config retains its scope explanation and import/export controls.
|
||||
|
||||
**Benefit/risk:** Likely makes occasional troubleshooting scan-friendly. Risk: users may miss consequences; applicability and validation errors must stay visible. Do not collapse warnings merely because they are lengthy.
|
||||
|
||||
### 4. Models recommendations: one explanation and one compact identity — P0, must-do
|
||||
|
||||
**Observed copy:** Profile purpose appears before the model; the card repeats `A practical starting point for everyday work.` or the performance/tool tradeoff later. Exact family, name, quantization, speed, fit, memory, download, duplicate-winner sentence, and disclosure all occupy separate blocks.
|
||||
|
||||
**Change:** Keep profile title, one short purpose (`Everyday work`, `Tools and long prompts`, `Answer speed; capability tradeoffs`), full exact variant identity, `Comfortable fit · estimated · 32K context`, memory, download, compact reading/answer ranges with source, and one action. Remove the second purpose paragraph for Balanced. For Performance/Agentic keep one visible limitation: `Capabilities need evaluation` / `Tool reliability needs evaluation`. Use `Same variant as Balanced · one download` for repeated winners instead of repeating a generic sentence. Keep unavailable Agentic state with `No approved fit yet` and `Try Balanced or shorter context`.
|
||||
|
||||
**Details destination:** Rename `Why this choice?` to `Choice details`; retain full selection explanation, review evidence, speed provenance, quantization tradeoff, and demo approval caveat there.
|
||||
|
||||
**Benefit/risk:** Likely reduces reading while preserving the purchase/download decision. Risk: `Everyday work` could sound like verified research suitability; Details must explain the catalog-based starting choice, and the card must not acquire an accuracy or quality badge without evidence.
|
||||
|
||||
### 5. Models library: keep exact hierarchy; reduce repeated row metrics — P1
|
||||
|
||||
**Observed control/copy:** Family → Version → Quantization, reversible `Show all … quantizations`, filters, and rows carrying download, working memory, paired speeds, source and fit.
|
||||
|
||||
**Change:** Keep this hierarchy and exact search. Default variant row shows exact quantization, state, `Fit · estimated/unknown`, download size, Compare, and action. Add `Variant details` for working-memory breakdown and speed ranges/source. Shorten `Show all 4 quantizations` to `All 4 variants`; keep the exact names on expansion. Preserve a clear filter for incompatible variants and show its active state.
|
||||
|
||||
**Details destination:** Per-variant disclosure within its version, with the complete exact label, capability evidence and configuration-specific estimates. Keep `Exceeds memory budget` and `Context not supported` visible rather than hiding them there.
|
||||
|
||||
**Benefit/risk:** Likely makes browsing manageable without removing specialist choice. Risk: extra disclosure slows metric-based browsing; comparison remains the direct route for that task.
|
||||
|
||||
### 6. Comparison: aligned decision rows instead of three full panels — P1
|
||||
|
||||
**Observed copy/control:** `Compare exact variants` repeats `EXPECTED EXPERIENCE`, `Performance`, all timing stages and memory allocation legends in three columns.
|
||||
|
||||
**Change:** Keep exact model/version/quantization headers and actions. Show aligned rows for Fit, Required memory, Download, Reading speed, Answer speed, and Evidence status. Shared header: `Same workload and settings · speed does not assess answer quality.` Preserve separate unavailable values and over-budget numbers. Use a single workload selector and `Comparison details` rather than three repeated panel headings.
|
||||
|
||||
**Details destination:** Shared settings/limitations disclosure plus per-variant provenance and memory allocation disclosures. On narrow screens use identical labelled rows per variant; preserve all three choices and removal controls.
|
||||
|
||||
**Benefit/risk:** Likely makes real differences easier to see. Risk: common Evidence status could mask different sources, so retain a source cell per variant and never use a shared demo label for mixed sources.
|
||||
|
||||
### 7. Setup 1 Computer: keep the check; make its conclusion concise — P1
|
||||
|
||||
**Observed copy/control:** Capacity illustration plus processor, accelerator, memory, storage, checks disclosure, `Check again` and `Find my models`.
|
||||
|
||||
**Keep/change:** Keep the check, memory/storage available values with `current snapshot`, retry, and `Browse with fit unknown`. Change the primary detected-state action to `Continue to models`. Keep one verdict sentence; move processor/accelerator rows into `Computer details`, retaining the compact memory capacity display and available storage in the initial view.
|
||||
|
||||
**Details destination:** Existing Computer details includes all detected specifications, checks, and `Fit is approximate; other apps and configuration can change it.`
|
||||
|
||||
**Benefit/risk:** Likely avoids making me assess CPU and accelerator specs. Risk: hiding detector mistakes; keep device identity in the details summary when useful and retain easy retry.
|
||||
|
||||
### 8. Setup 2 Profile & model: one selected recommendation, fewer repeated choices — P1
|
||||
|
||||
**Observed copy/control:** Three large profile cards then a large recommendation restating the selected profile and purpose; `Compare models` and `Use this model`.
|
||||
|
||||
**Keep/change:** Keep Balanced default and all three accessible choices. Replace large profile cards with a labelled choice group `Priority` using `Balanced · everyday work`, `Agentic · tools`, `Performance · answer speed`. Show the selected profile's single full purpose sentence directly below. The recommendation uses proposal 4 without repeating that purpose. Keep `Compare models` and `Use this model`, including unavailable-candidate blocking.
|
||||
|
||||
**Details destination:** `Profile details` explains tradeoffs and provisional/demo evidence; `Choice details` retains exact model selection reasoning.
|
||||
|
||||
**Benefit/risk:** Likely shortens a screen that asks for one decision. Risk: novice users may not understand Agentic; visible `tools` plus its selected explanation must preserve the long-prompt meaning, not rename it to “Research.”
|
||||
|
||||
### 9. Setup 3 Tune: keep optional controls and strengthen the default route — P1
|
||||
|
||||
**Observed copy/control:** `A good place to start.`, context/batch/setup summary, full MemoryBudget, `Adjust controls`, then download/load action.
|
||||
|
||||
**Keep/change:** Keep optional adjustments and retained-value validation. Title `Your starting settings`. Show `32K context · Automatic batch` and `Comfortable fit · estimated · 1.9 GB required` by default; for custom values show their exact values. Change `Adjust controls` to `Adjust settings`. Keep the explicit `Download and load` / `Load model` / `Simulate download and load` action, with download size next to it.
|
||||
|
||||
**Details destination:** `Settings details` holds memory segments and configuration identity; Adjust settings exposes the shared accessible controls and preview. Blocking context/memory messages remain inline and actionable.
|
||||
|
||||
**Benefit/risk:** Likely lets me proceed with a reviewed starting point. Risk: concealing limitations behind a cheerful default; estimated/unknown/too-large fit wording must stay prominent.
|
||||
|
||||
### 10. Setup 4 Prepare: keep honest stages and local recovery — P1
|
||||
|
||||
**Observed copy/control:** `Bringing your model online.`, file identity/size, stage list, Bar label plus a repeated stage/percentage sentence, Preparation details, cancellation/retry.
|
||||
|
||||
**Keep/change:** Title `Preparing your model` (online could suggest a network requirement after download). Keep all actual stages, exact variant, download size, cancellation, progress, and specific retry action. Show the active stage once, then `42% · about 3 min left` when host values exist; transfer rate moves to Details. Keep error text near its retry control once instead of repeating it in both disclosure and the trailing global error for the same failure.
|
||||
|
||||
**Details destination:** Existing Preparation details retains transfer rate, verification scope, and restart behavior. At Cancel download, show `Partial downloads restart from the beginning` before committing the cancellation when applicable.
|
||||
|
||||
**Benefit/risk:** Likely gives a clearer sense of waiting and recovery. Risk: over-simplifying “verification”; keep `Check downloaded file size` rather than claiming integrity verification the host does not perform.
|
||||
|
||||
### 11. Setup 5 Ready: make starting work the obvious finish — P1
|
||||
|
||||
**Observed copy/control:** `Your next idea starts here.`, ready pill, exact model/profile/context, full MemoryBudget, `Preview speed test · Demo`, `Start chatting`.
|
||||
|
||||
**Keep/change:** Title `Ready to chat` only when load succeeded; keep the not-ready route. Keep ready/demo status, exact variant, profile/context summary, and Start chatting. Replace the full memory panel with the short estimated fit line. Put the demo preview in `Setup details` as `View speed-test demo`.
|
||||
|
||||
**Details destination:** Setup details holds memory explanation and optional demo entry, with `No benchmark runs` immediately attached. Entry into Chat continues to require loading; preview never becomes a gate.
|
||||
|
||||
**Benefit/risk:** Likely ends setup cleanly. Risk: some users want testing before entry; disclosure preserves it without competing with the finish action.
|
||||
|
||||
### 12. Shared evidence language: make unavailable scope understandable — P1
|
||||
|
||||
**Observed copy:** `No comparable evidence`, `Unavailable`, and `No comparable speed evidence for this configuration.` are correct but technical; the current demo fixture can present large numeric ranges.
|
||||
|
||||
**Change:** In speed-only contexts use `Speed not established for this setup` and in demos retain `Demo estimate · illustrative`. Add one shared Details sentence: `These figures describe speed and memory, not research accuracy or answer quality.` Do not replace absent evidence with ratings or inferred reliability. Keep actual review text separate from speed evidence.
|
||||
|
||||
**Details destination:** Engine Estimate details, recommendation Choice details, and comparison evidence disclosure use the same scope explanation with exact source, date, workload and configuration identity retained.
|
||||
|
||||
**Benefit/risk:** Likely prevents a casual researcher reading speed as a quality recommendation. Risk: boilerplate grows again; use one scoped sentence per surface and keep the source/fit qualifiers next to the applicable facts.
|
||||
|
||||
## Ballot for the next round
|
||||
|
||||
Must-do: **1** (Beginner hierarchy), **2** (fit/evidence hierarchy), **4** (compact recommendation cards). These address the visible density complaint without requiring new evidence or native work.
|
||||
|
||||
Oppose **removing exact quantizations/versions and comparison access** to make the app “simple.” A casual default can coexist with exact access; variant identity matters for download and reproduction.
|
||||
|
||||
Oppose **a “Best for research” or reliability/accuracy score inferred from Balanced rank, fit, speed, model size, or demo estimates**. The inspected implementation supplies no verified evidence for that claim. Use a qualified starting choice and allow later real capability evidence to justify a narrower claim.
|
||||
|
||||
No implementation, browser/server launch, download, or model run was performed. The recommended outcomes remain usability hypotheses to validate after the review process.
|
||||
@@ -0,0 +1,29 @@
|
||||
# Reviewer 08 — workplace user, round 2
|
||||
|
||||
Read all eight original reports and ballot.md. These are simulated design judgments, not findings from eight human participants. I remain a frequent workplace AI user interested in document revision, translation, spreadsheets, chat and contracts, with predictable setup and little jargon. No app edits, browser/server/model execution or delegation occurred. Native integration and production task evidence remain deferred.
|
||||
|
||||
## Challenges to peers
|
||||
|
||||
1. **02-mac M05: one selected recommendation hides too much of the available choice.** I oppose SELECTOR in B06 and vote UNIQUE. One selected card is compact, but it makes me visit each priority to discover that two names produce one exact model or that no reviewed tool candidate fits. One card per unique winner plus profile chips and a compact no-fit row removes duplication while keeping those decision facts visible. I accept M05's removal of repeated slogans and purposes; I challenge its selector-only presentation, not its simplification goal.
|
||||
|
||||
2. **05-tinkerer proposal 5: moving approval/review status entirely into Why this choice is insufficient for ordinary recommendations.** I vote VISIBLE in B19. Provisional describes confidence without telling me whether the missing evidence concerns speed or capabilities. A single actual review-status line can replace the generic tradeoff paragraph already occupying space. I do not want another paragraph or a task checklist. The line should be scoped to the real metadata, such as Tool review pending, and cannot say spreadsheet-ready or safe for contracts. Detailed evaluation, rationale and absent task evidence belong in Why this model.
|
||||
|
||||
3. **03-teacher T06: “Show other file formats (quantizations)” is misleading vocabulary.** Quantization is not an XLSX/PDF-style file-support choice. Keep exact quantization readable, but use Show file variants or Show quantizations with a short definition in help. My round-one file-variant proposal already required that distinction; I hold it after this wording comparison.
|
||||
|
||||
## Concession and changed positions
|
||||
|
||||
**04-newcomer N02 persuades me to move Engine's rates and sample controls into Speed details.** I originally kept modest reading/answer rates visible (#4). N02's argument that default feedback should answer whether the setup fits applies to repeated workplace use as well as first use. The numbers in the current captures are illustrative, and my ordinary capacity change does not require comparing throughput. I therefore vote MEMORY for B03 and FIT for B08. Comparison still presents both rates because comparing differences is its explicit task. This is a genuine change, not agreement manufactured for the ballot.
|
||||
|
||||
**06-parallel proposals 1 and 4 add a useful consequence I underweighted.** Even my ordinary document chats share an engine. Concise global scope and known active/queued blockers belong beside lifecycle actions, with unknown state kept honest. I support B17 without adding idle counts or promising parallel inference.
|
||||
|
||||
**03-teacher T04 also exposes an error in my own #1 wording.** “Changes take effect after saving” overgeneralizes next-request and next-load behavior. I withdraw that phrase. The amendment states draft/save state accurately and preserves effect timing beside edited response controls and explicit restart review.
|
||||
|
||||
## Held positions
|
||||
|
||||
I retain a separately named five-step flow (B12 FIVE). The third step can be Review setup with adjustment collapsed; it gives the exact model, estimated fit and actual download amount a predictable commitment point. B14 shortens that review without deleting it. I retain plain visible profile names (B13 RENAME), exact variant identity (B07), shared winners (B06 UNIQUE), aligned comparison (B11) and the loaded readiness gate (B16).
|
||||
|
||||
**B19 remains VISIBLE despite the extra-text objection.** The ballot replaces generic tradeoff prose rather than appending more teaching. A short review status is more informative than “A practical starting point for everyday work.” It must faithfully scope actual metadata; absent workplace evaluations cannot become a universal unreviewed verdict or a positive office guarantee. I hold the information hierarchy principle from #5 while narrowing the wording to what has actually been reviewed. This is a held position with a scope refinement.
|
||||
|
||||
## Priorities and limits
|
||||
|
||||
Top three: **B19** distinguishes recommendation from reviewed task capability; **B11** removes repeated comparison panels; **B14** keeps a compact, explicit download/configuration review. All twenty exact votes and non-voting amendments are in 08-office-vote.json. No vote is conditional. These recommendations need real user testing; none establishes XLSX manipulation, translation quality, tool safety, legal reliability, confidentiality or measured native performance.
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"reviewer": "08",
|
||||
"persona": "Regular workplace AI user",
|
||||
"model": "gpt-6.1-sol",
|
||||
"effort": "medium",
|
||||
"votes": {
|
||||
"B01": { "choice": "YES", "reason": "Remove repeated teaching while retaining useful hints and actual configuration state." },
|
||||
"B02": { "choice": "CONTEXT", "reason": "Text capacity is my ordinary decision; custom batch stays discoverable without a second primary dial." },
|
||||
"B03": { "choice": "MEMORY", "reason": "Fit answers the immediate setup question; deliberate speed disclosure avoids making demo rates the hero." },
|
||||
"B04": { "choice": "YES", "reason": "Save, explicit restart and changed-state discard deserve priority over occasional preview and validation actions." },
|
||||
"B05": { "choice": "YES", "reason": "Expert keeps operational facts and exact controls while descriptions remain deliberately accessible." },
|
||||
"B06": { "choice": "UNIQUE", "reason": "One exact winner with profile chips removes duplication while keeping no-fit and different winners in view." },
|
||||
"B07": { "choice": "YES", "reason": "Readable exact identities prevent selecting a different variant under a friendly model name." },
|
||||
"B08": { "choice": "FIT", "reason": "Fit, working memory and download determine commitment; rates are available when I want to compare speed." },
|
||||
"B09": { "choice": "YES", "reason": "Compact actionable no-fit states and shared winners avoid apparent duplicate choices or downloads." },
|
||||
"B10": { "choice": "YES", "reason": "Daily use should begin with available files and remember my deliberate library choice." },
|
||||
"B11": { "choice": "YES", "reason": "Aligned facts reveal differences with much less repeated instrumentation and preserve local evidence." },
|
||||
"B12": { "choice": "FIVE", "reason": "A separately named review before download makes resource commitment predictable; tuning within it stays optional." },
|
||||
"B13": { "choice": "RENAME", "reason": "Everyday work and Faster answers are clearer decision labels; technical names remain available." },
|
||||
"B14": { "choice": "YES", "reason": "Detected capacity and exact download consequences are sufficient default facts before commitment." },
|
||||
"B15": { "choice": "YES", "reason": "One truthful progress state with adjacent recovery consequences tells me what action remains possible." },
|
||||
"B16": { "choice": "YES", "reason": "Successful readiness and Start chatting should end setup without another full memory panel." },
|
||||
"B17": { "choice": "YES", "reason": "Global scope and known request blockers prevent surprising interruption of other workplace chats." },
|
||||
"B18": { "choice": "YES", "reason": "One genuinely shared source badge reduces repetition without conflating memory estimates or mixed evidence." },
|
||||
"B19": { "choice": "VISIBLE", "reason": "A short actual review-status line replaces vague tradeoff prose and distinguishes recommendation from task validation." },
|
||||
"B20": { "choice": "YES", "reason": "Text samples with token amounts describe performance scope without promising file handling." }
|
||||
},
|
||||
"top_three": ["B19", "B11", "B14"],
|
||||
"amendments": [
|
||||
"B19 status wording should describe the actual reviewed scope: Tool review pending is preferable to a general Capability reviewed claim when metadata only covers tools. Specific task evidence belongs in Why this model; no office, XLSX, legal or confidentiality guarantees are implied.",
|
||||
"For B12 retain the name Review setup for the third step rather than Tune, since download/configuration commitment is required while adjustment is optional.",
|
||||
"Withdraw my round-one phrase Changes take effect after saving: use Changes stay in your draft until saved and retain the actual next-request versus next-load scope. Saving alone does not apply all engine settings.",
|
||||
"B13 Tools and agents needs its short descriptor to explain reviewed tool capability and long prompts; it cannot imply trustworthy tool actions.",
|
||||
"B20 should show tokens explicitly in the sample choices, not leave K looking like a file-size unit; retain the output allowance and file-support distinction in help."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
# Persona 08 — regular workplace user
|
||||
|
||||
Round 1 independent review. No other persona reports consulted. Review only; no model, server or browser execution, source edits or delegation. Reviewed the implementation report, interaction guidelines, current Tuning/Models/Setup source, shared EngineExperience/ModelCatalog/experience source, and screenshots 01, 07, 09, 08 plus earlier Computer/Ready captures 02/03. Current source takes precedence over earlier captures.
|
||||
|
||||
## Goals and evidence
|
||||
|
||||
Simulated persona goals: get a stable setup for chat, revising prose, translation, spreadsheets and contracts; understand document capacity; choose with little jargon; avoid repeatedly tuning before ordinary work. This is a simulated judgment, not a usability test or observed user behavior.
|
||||
|
||||
Observed: Engine Beginner gives Context and Prompt batch equal visual weight, followed by a large speed/memory panel and six savebar controls (01; Tuning.tsx). Expert retains searchable parameters, Raw config and a shared draft. Models has three tall recommendation cards; Balanced and Performance show the same exact model and repeated facts while Agentic has no approved fit (07). Comparison repeats three complete preview cards, including unavailable start-answer timing (08). Profile onboarding repeats profile purpose in the choice tiles and recommendation (09).
|
||||
|
||||
Observed source: `Document` means a 4,096-input-token timing sample with 256 output tokens; it does not describe accepted file formats. Recommendations use memory fit, catalog review/order and compatible speed evidence; no spreadsheet or contract evaluation is established by those inputs. Setup defaults to Balanced, preserves choices, offers optional tuning, separates preparation stages and permits Chat only after loading. Demo operations are explicitly simulated; native engine integration and production evidence remain deferred.
|
||||
|
||||
Simulated friction: “Agentic,” “quantization,” token rates and batch tuning require interpretation before I can answer “Will this help me revise this document?” The demo label is valuable but its placement does not stop the very large rates from feeling like a recommendation quality score. Nothing here establishes XLSX handling, tool safety, legal reliability or confidentiality. My proposals must not invent those guarantees.
|
||||
|
||||
## Precise proposals
|
||||
|
||||
Each Details destination below is an existing disclosure/dialog or a compact disclosure on the same screen, not a new enterprise feature.
|
||||
|
||||
| # | Current text/control and exact replacement or behavior | Details destination | Benefit / risk | Priority |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Beginner: “A little adjustment. A clearer tradeoff.” → **“Document capacity”**; “Explore freely. Changes stay in your draft.” → **“Changes take effect after saving.”** Keep Context dial and exact value visible. Context hint → **“Text considered at once, including chat and documents.”** | Context **Details**: tokens, model limit, memory consequence, and “File support is separate.” Preserve that save timing differs for response settings. | Gives the main control a task meaning. Risk: capacity is not a page/file guarantee; do not convert tokens to pages. | P1 |
|
||||
| 2 | Beginner Prompt batch dial and long explanation → collapsed **“Processing settings · Automatic”** by default. Expanding preserves dial, exact input, supported-state message and reset. Expert continues to expose batch directly. | Existing More controls, renamed **“Processing settings”**; include full batch explanation there. | Removes a technical decision from ordinary document setup. Risk: custom batch must show **“Custom”** in the collapsed summary so retained tuning stays discoverable. | P1 |
|
||||
| 3 | Expert: keep **Parameters / Raw config**, search, Changed only, per-field Revert and shared draft. Adapter paragraph → **“Adapter: llama.cpp · native integration pending.”** | **Adapter details** with the present preservation/support limitations; Raw scope note remains beside the editor. | Expert remains useful without permanent implementation prose. Risk: preserved-only keys must retain visible state; disclosure cannot imply they apply. | P2 |
|
||||
| 4 | Preview: “See the tradeoff.” → **“Speed and memory”**. Default Beginner view shows sample selector, fit and memory total, plus modest reading/answer rates. Move the three timing stages and memory legend out of the default view. “Document · 4K tokens” → **“Text sample · 4K tokens”**; “Long agent context” → **“Long text sample”**. Keep **Demo estimate** beside any demo rate. | Existing **Estimate details**: timing stages, 256-output assumption, full configuration, memory breakdown and “Not total task time.” | Stops sample size looking like supported document capacity and reduces repeated prose. Risk: sample change must retain token count and unavailable state. | P1 |
|
||||
| 5 | Recommendations / profile choices: **Agentic → Tools**, **Balanced → Everyday**, **Performance → Faster replies** (internal profile IDs may stay). Purposes → **“Prioritize reviewed tool capability.” / “Start with the catalog’s everyday choice.” / “Prioritize answer speed.”** Add one concise evidence line **“Task review: [catalog review or Not reviewed]”** above the action, instead of “A practical starting point…” / capability tradeoff paragraph. | **Why this choice?** includes current rationale and available task/capability review; if no XLSX, translation or contract evidence exists, state **“These tasks have not been evaluated here.”** No inferred labels from model names. | Connects choice to evidence while admitting unknowns. Risk: Tools is not a tool-safety guarantee; retain “reviewed” and demo qualification. | P0 — must do |
|
||||
| 6 | Models: when two profiles select one variant, show one full exact-model card with chips **“Everyday · Faster replies”**, one action and **“Same model for both priorities.”** Keep no-fit Tools as a compact state **“No reviewed tool model fits”**, with existing shorter-context guidance. | Profile rationale in **Why this choice?**; all three priorities remain selectable. | Removes duplicated facts and reduces scrolling before library. Risk: do not merge genuinely different configuration recommendations or hide no-fit status. | P1 |
|
||||
| 7 | Library: “Find a family, then explore its versions and quantizations.” → **“Browse models and file variants.”** Search placeholder → **“Search models…”**; “Show all N quantizations” → **“Show N file variants”**. Keep the exact quant code, Installed/Discover and compare controls. | Variant **Details** explains quantization and retains fit/evidence/configuration; keep technical quantization filter in Filters. | Less jargon without losing exact identity. Risk: “file variant” must not imply file format or equivalent answer quality. | P2 |
|
||||
| 8 | Comparison: “Compare exact variants” → **“Compare models”**; replace repeated full preview cards with aligned rows **Model / File variant / Task review / Memory fit / Download / Reading speed / Answer speed**. Give fit rows visual priority; source badges remain on rates. | Per-column **Details** holds duration stages, cache/runtime strip, provenance and exact settings. Keep shared workload selector and three-choice limit. | Easier to compare suitability than three instrumentation panels. Risk: no ranking by speed when task evidence is unknown; no accuracy score. | P0 — must do |
|
||||
| 9 | Onboarding 1 Computer — **keep** Check again, storage visibility, fit-unknown browsing and Computer details. **Change** default specs to a compact **“16 GB memory · 19 GB storage available”** summary (using detected values) beneath the actual verdict; move processor/accelerator and capacity blocks into details. Visible helper: **“Fit is approximate.”** | Existing **Computer details** retains detected hardware, snapshot, checks and uncertainty. | One decision: proceed with this computer. Risk: the verdict cannot guarantee stable performance with other apps; storage limitations remain visible. | P2 |
|
||||
| 10 | Onboarding 2 Profile & model — **keep** Everyday/Balanced as new-setup default, exact selected model, Compare models and explicit selection. **Change** “What matters to you?” → **“Choose your starting model”**; apply concise labels/evidence from #5. Remove repeated purpose from recommendation when already shown in selected tile. | **Why this choice?** and comparison retain tradeoffs; demo strip stays visible. | Clarifies that choosing a priority produces a model, not verified office functionality. Risk: selected custom models must keep the current custom-choice explanation. | P0 — must do |
|
||||
| 11 | Onboarding 3 Tune — **keep** optional controls and blocking validation, with retained values shown. **Change** “A good place to start.” → **“Review your setup”**; default summary shows **“Text capacity: 32K tokens · Recommended”** and fit; Prompt batch joins Adjust controls. Onboarding 4 Prepare — **keep** download/load/readiness stages, cancel, local retry and completed-file retention. **Change** “Bringing your model online.” → **“Preparing your model”**. | Tune: Adjust controls and Estimate details. Prepare: Preparation details; retain explicit current-host restart-from-beginning behavior and no implied integrity verification beyond supported file-size check. | Tune asks for review rather than compulsory optimization; Prepare describes actual operation. Risk: custom batch summary must remain visible and errors must auto-open details as today. | P1 |
|
||||
| 12 | Onboarding 5 Ready — **keep** readiness gate, Start chatting primary, selected model/profile/context and demo badge. **Change** “Your next idea starts here.” → **“Ready to chat”**; move memory strip and **“Preview speed test · Demo”** into a collapsed **“Setup details”**. | Setup details contains full memory estimate, exact file variant/context and optional Demo test. Keep unavailable ready state and Return to loading. | A clear finish with less technical material. Risk: “ready” means loaded, not reliable contracts, private processing or supported XLSX editing. | P1 |
|
||||
|
||||
## Three must-do votes
|
||||
|
||||
1. **#5 — visible task-review evidence and plain profile labels.** Speed and model name cannot answer my workplace capability question.
|
||||
2. **#8 — concise comparison rows.** Comparing three repeated panels makes the decision harder than it needs to be.
|
||||
3. **#10 — model-first onboarding choice.** Keep a sensible default and exact model, remove duplicate purpose text, preserve access to evidence.
|
||||
|
||||
## Two opposed changes
|
||||
|
||||
1. **Oppose deleting Demo / provisional / fit-unknown states to shorten the UI.** These are decision facts. Keep compact, visible labels; move explanatory paragraphs into details. Production curation and native execution remain pending.
|
||||
2. **Oppose “Office-ready,” “Spreadsheet model,” “Safe for contracts,” or “Private” badges derived from speed, fit or profile.** Those claims need separate task/integration evidence. Use the existing review metadata and explicit unknowns; this review does not request an enterprise features expansion.
|
||||
|
||||
## Round 1 conclusion
|
||||
|
||||
Keep the shared draft, exact variants, loading consequences, fit checks and resumable five-step flow. Reduce default content around the decision to one model, one fit summary and one task-evidence cue. My preference is compact default screens with optional technical depth, not removal of information required to distinguish simulation from a working native engine.
|
||||
@@ -0,0 +1,58 @@
|
||||
# Shared debate and decision ballot
|
||||
|
||||
This is round two of eight simulated persona reviews. All reviewers use GPT-6.1 Sol with Medium effort. These are design judgments from AI reviewers, not observations from eight human participants. The current task changes review documents only.
|
||||
|
||||
## Debate rules
|
||||
|
||||
Read the eight independent reports in this directory before voting. Compare the actual arguments, not demographic stereotypes. Explicitly challenge at least two other reviewers by report/proposal reference, concede at least one useful opposing point, and identify any position you changed after reading them. It is acceptable to keep a position; do not manufacture consensus or a change of mind.
|
||||
|
||||
Vote on every item exactly as written. Each vote has one allowed choice and a short reason. You may record an amendment, but a vote against the current wording remains against it. No abstentions or conditional yes votes: choose the best stated option and describe concerns separately. Ties or lack of a majority remain unresolved; the coordinator will not invent a deciding persona vote. Decisions remain recommendations pending real user testing.
|
||||
|
||||
Universal constraints: retain current font sizes/contrast/accessibility, supplied identity and motion rules; preserve Expert/Raw controls and exact variant access; keep actionable errors, unknowns and capability limitations visible when they affect a decision; never invent benchmark, quality, privacy, document-tool or concurrency capabilities. Native integration remains deferred.
|
||||
|
||||
## Proposals
|
||||
|
||||
| ID | Decision | Allowed choices |
|
||||
|---|---|---|
|
||||
| B01 | Remove decorative introductory copy and repeated teaching text: Engine slogan/eyebrow/reassurance, Models section slogans, repeated selected-profile purpose and duplicate gesture captions. Retain one short useful control hint and a concise draft/saved/applied state. | YES / NO |
|
||||
| B02 | Engine Beginner primary controls. All choices retain shared draft, full Expert access, keyboard and exact-entry alternatives, and a visibly identified custom batch. | TWO = keep both dials visible; CONTEXT = context dial visible, batch defaults to a labelled Automatic/Custom summary with Adjust disclosure. |
|
||||
| B03 | Engine default feedback. Neither option includes the full timing path, memory taxonomy or explanatory paragraphs by default; those remain in Details. Source, fit blockers, memory requirement/headroom and workload meaning remain explicit. | RATES = both labelled reading/answer ranges plus compact memory visible; MEMORY = memory/fit visible, speed ranges and sample controls under Speed details. |
|
||||
| B04 | Engine actions: primary Save for next load, secondary Apply now when available, Discard when changed; put defaults reset, manual validation and demo preview in a labelled More menu. Save validates; restart remains explicit with scope and interruption review. | YES / NO |
|
||||
| B05 | Expert rows retain label/key/value, recommended value, applicability/scope, preserved-only state, errors and per-field revert. Collapse general effect paragraphs by default; offer Show descriptions for those who want them. Raw is labelled Configuration draft; adapter narrative moves to Details. | YES / NO |
|
||||
| B06 | Recommendation presentation on Models. Every option keeps all three priorities accessible and does not change the loaded model on selection. No-fit is explicit, with a recovery action. | THREE = three compact profile cards; SELECTOR = profile selector with one recommendation for the selected priority; UNIQUE = one compact card per unique exact winner with profile chips and a compact no-fit row. |
|
||||
| B07 | Keep exact model/version and quantization visibly readable on recommendation cards, variant rows, comparison and selection confirmation; remove redundant nicknames. Long identity may wrap. Full filename/source remains copyable in Details. | YES / NO |
|
||||
| B08 | Normal recommendation card metrics, alongside visible fit, working memory and download size. Comparisons still show both rates. Mixed evidence labels remain locally scoped. | BOTH = both rates in a compact row, priority metric emphasized; PRIMARY = only the profile's primary rate, secondary in Details; FIT = fit/download first, all speed information in Details. |
|
||||
| B09 | Avoid full-height empty recommendations and duplicate downloads/actions. Show no approved fit in a compact actionable state. When winners match, identify that exact match once with profile chips or a short shared-winner note appropriate to B06. | YES / NO |
|
||||
| B10 | Library defaults to Installed when files exist and Discover otherwise, remembers deliberate tab choice, and removes the redundant Choose a model button on the Models page. Keep family/version/quantization grouping, search, filters and exact comparison. | YES / NO |
|
||||
| B11 | Replace three nested performance panels in comparison with aligned rows: exact identity, fit, memory/headroom, download, reading, answer and per-variant evidence. Share workload/configuration controls; disclose timing, memory method and provenance. Stack equivalent labelled rows on mobile. | YES / NO |
|
||||
| B12 | Onboarding structure. Both retain hardware detection, profile/model selection, an explicit download/configuration review, optional tuning, preparation, successful-readiness gate and resume behavior. | FIVE = keep all five named steps; OPTIONAL = four core steps, with Tune as an optional expandable review before Prepare. |
|
||||
| B13 | Profile naming. Descriptions stay short and capability warnings remain relevant and visible; these labels never constitute a claim of verified tool quality. | KEEP = Agentic / Balanced / Performance with short descriptors Tools and long prompts / Everyday work / Faster answers; RENAME = Tools and agents / Everyday work / Faster answers, canonical technical profile names in Details. |
|
||||
| B14 | Compact setup steps 1–3: one detection verdict and memory/storage facts, other specifications in Computer details; remove repeated profile purpose; summarize selected exact variant, estimated fit and actual download amount before commitment; optional controls remain collapsed until requested or invalid. | YES / NO |
|
||||
| B15 | Prepare shows actual stage once, one progress visual and stage-specific retry/cancel. Keep partial-download restart consequences and actionable error beside the affected action. Put raw progress/log detail in disclosure; no fake verification/ETA/background continuation. | YES / NO |
|
||||
| B16 | Ready shows loaded or Demo state, exact selected variant, brief profile/context summary and Start chatting. Move repeated memory breakdown and optional Demo test into Setup details. Failed readiness still offers Return to loading. | YES / NO |
|
||||
| B17 | Engine and model lifecycle actions show concise global scope. Show active/queued counts when relevant and known, otherwise unknown; use consistent checks before reload/switch/unload and link to Serving for blockers. Avoid idle zero-count clutter and any promise of parallel inference. | YES / NO |
|
||||
| B18 | Consolidate duplicate evidence wording into one visibly scoped source badge for a metric group only when all numbers share that source. Keep Estimated memory separate and mixed/unavailable/Provisional states local. Detailed provenance stays accessible. Never hide all Demo/evidence labels. | YES / NO |
|
||||
| B19 | Capability review on ordinary recommendation cards. Both options keep no-approved-tool-fit and relevant known limitations visible, and never infer spreadsheet/translation/research/contract quality from speed. | VISIBLE = one short review-status line replaces generic tradeoff prose, such as Capability review pending, using actual metadata; DETAILS = review status/rationale in Why this model except decision-blocking gaps, with existing Provisional label visible. |
|
||||
| B20 | Sample workloads use Short text · 1K / Document text · 4K / Long context · 16K, keeping exact token amounts, 256-output allowance and invalid-sample handling. Help explains these are text performance samples, not file-format or document-task capability promises. | YES / NO |
|
||||
|
||||
## Submission
|
||||
|
||||
Create only your own `NN-name-vote.json` and `NN-name-debate.md` in this directory. Do not change source, other reviewers' files or the ballot.
|
||||
|
||||
JSON format:
|
||||
|
||||
```json
|
||||
{
|
||||
"reviewer": "01",
|
||||
"persona": "PC gamer",
|
||||
"model": "gpt-6.1-sol",
|
||||
"effort": "medium",
|
||||
"votes": {
|
||||
"B01": { "choice": "YES", "reason": "One brief reason." }
|
||||
},
|
||||
"top_three": ["B01", "B02", "B11"],
|
||||
"amendments": ["Any non-voting wording refinement or evidence limitation."]
|
||||
}
|
||||
```
|
||||
|
||||
Include B01 through B20. The debate Markdown records two or more specific challenges, at least one concession and any changed/held position. Finish your turn after saving and summarizing; the coordinator will count the actual submitted votes.
|
||||
@@ -0,0 +1,190 @@
|
||||
# Persona review and UI simplification decisions
|
||||
|
||||
**Implementation update — 2026-10-05:** the adopted decisions and two provisional coordinator choices have now been implemented. See [implementation, verification and screenshots](implementation-verification.md). The review and original votes below are preserved as the historical decision record.
|
||||
|
||||
Eight subagents reviewed Engine, Models and onboarding, each using **GPT-6.1 Sol at Medium effort**. They first reviewed independently, then read each other's reports, challenged specific proposals and voted on a common ballot.
|
||||
|
||||
The main recommendation is to **remove repeated explanations and duplicate objects, keep useful facts compact, and reveal mechanisms on request**. The review supports a context-first Engine, one recommendation card per unique model setup, a compact comparison table and optional tuning during onboarding.
|
||||
|
||||
**Result:** 160 valid votes across 20 decisions; 18 decisions have a majority, including 14 unanimous decisions. Two remain unresolved. No application code changed during this review. These are simulated persona judgments, not results from eight human participants.
|
||||
|
||||
## Review scope and method
|
||||
|
||||
Each reviewer inspected current source and actual saved captures for Engine, Models, comparison and onboarding. Their individual reports identify which additional states were assessed from source rather than screenshots. Expert/Raw, the library, all five existing setup steps, mobile implications and important failure/unknown states were considered. No browser, server or local inference engine was launched for this review.
|
||||
|
||||
The eight first-round reports contain 12 proposals each: **96 overlapping proposals, not 96 distinct defects**. The coordinator consolidated these into [20 ballot decisions](ballot.md). Reviewers supplied individual reasons, peer challenges, concessions and changed or held positions. All eight votes carry equal weight; at least five votes are required for a majority. No deciding vote was added by the coordinator.
|
||||
|
||||
Saved screenshots and current source take precedence over historical design notes. Supplied identity, GT Walsheim, Anron, readable text sizes, opaque content surfaces and restrained control motion remain the baseline. This review focuses on information hierarchy; it does not propose another visual identity or more animation.
|
||||
|
||||
## The main votes
|
||||
|
||||
| Change | Vote | Disposition |
|
||||
|---|---|---|
|
||||
| Remove slogans, duplicate purposes and repeated instruction text | **8–0** | Do |
|
||||
| Engine Beginner shows context first; batch moves to Automatic/Custom summary with Adjust | **7–1** | Do; gamer prefers both dials |
|
||||
| Keep compact reading and answer rates visible in Engine | **6–2** | Do; newcomer and office prefer memory-first with speeds disclosed |
|
||||
| One card per unique recommended model setup | **6–2** | Do; Mac and newcomer prefer a profile selector with one result |
|
||||
| Exact model/version/quantization remains readable | **8–0** | Keep |
|
||||
| Replace nested comparison panels with aligned facts | **8–0** | Do |
|
||||
| Four core onboarding steps, with tuning optional before Prepare | **6–2** | Do; teacher and office prefer a separate Review setup step |
|
||||
| Short capability-review status replaces generic tradeoff prose | **8–0** | Do using actual metadata, without new capability claims |
|
||||
| Put both rates on ordinary model cards | **4 both / 1 primary only / 3 speeds in Details** | No majority |
|
||||
| Rename Agentic / Balanced / Performance | **4 keep / 4 rename** | No majority |
|
||||
|
||||
The most frequent top-three priorities were compact comparison (**5 reviewers**), unique recommendation cards (**4**), and removing repeated copy / clearer download review (**3 each**). These priority mentions are separate from approval votes.
|
||||
|
||||
## What the debate changed
|
||||
|
||||
- **Tinkerer and multi-chat operator conceded batch disclosure.** Both initially preferred two visible dials. They accepted a context-first Beginner view once Automatic/Custom state, exact values and immediate Expert access were protected.
|
||||
- **Gamer conceded optional tuning in onboarding.** The download/configuration review matters more than requiring a separate Tune stop. The teacher and office reviewers still favor that separate checkpoint.
|
||||
- **Mac conceded visible Discard and recommended Expert values.** Those support recovery and comparison; they should not disappear into a generic menu.
|
||||
- **Several reviewers changed from duplicate profile cards to unique model cards.** The Mac and newcomer retained their preference for one selected result. The majority wanted simultaneous visibility of genuinely different winners and unavailable profiles.
|
||||
- **Office changed to memory-first Engine feedback; research did not.** Research distinguished choosing a model from adjusting it: compact rates help while tuning, while ordinary recommendation cards can prioritize fit. This disagreement remains visible in the vote.
|
||||
- **Teacher corrected two proposed simplifications.** Quantization is not a file format, and selecting a model does not immediately begin its download. Friendlier wording must remain accurate.
|
||||
- **Multi-chat operator narrowed the queue proposal.** Relevant activity and consequences belong near lifecycle actions; idle zero counters and a new scheduling dashboard would add noise.
|
||||
|
||||
These are recorded positions and concessions, not an invented consensus narrative. See the individual debate files below.
|
||||
|
||||
## Engine changes
|
||||
|
||||
### Default surface
|
||||
|
||||
Keep the title, exact loaded variant, Beginner/Expert choice and one concise configuration state. Remove the extra TUNE YOUR ENGINE introduction, slogan and draft reassurance paragraph.
|
||||
|
||||
Show the context dial with one short hint, for example **“More text uses more memory.”** Batch becomes **“Prompt batch · Automatic”** or **“Prompt batch · Custom: 1,024”**, followed by an accessible Adjust disclosure. Opening it reveals the existing batch dial, numeric entry, reset and explanation. A custom value must never silently revert to Automatic. Exact entry and keyboard access remain available without pointer precision or hover-only help.
|
||||
|
||||
The preview shows a modest pair of **Reading / Answer** ranges, one correctly scoped speed-source label, and a compact memory requirement/headroom/fit summary. Keep the workload selector. The three-phase timing path, memory-component legend, shared-pool explanation and full provenance move into Details. Show a changed-memory line only when relevant, such as **“Draft: +0.09 GB estimated.”** No total task-time claim replaces the removed timing diagram.
|
||||
|
||||
### Actions and Expert
|
||||
|
||||
- Primary **Save for next load**, secondary **Apply now…**, and visible **Discard changes** when dirty.
|
||||
- More actions contains recommended reset, manual validation and Demo preview. Save still validates automatically.
|
||||
- Sampling changes keep their actual next-request scope beside the edited controls; removing the footer paragraph must not imply every saved setting waits for a model reload.
|
||||
- Expert retains technical key, value, recommendation, applicability, preserved-only status, errors and per-field revert. General descriptions collapse; **Show descriptions** restores them together.
|
||||
- Raw becomes **Configuration draft**. Adapter and schema explanations remain accessible through Details. Imported or unrecognized keys remain preserved, without implying support.
|
||||
|
||||
**Acceptance:** every control has a readable label; no smaller typography is used to fit content; draft/saved/applied states are distinguishable; normal Engine use does not require reading an introduction; batch and precise entry remain one deliberate interaction away.
|
||||
|
||||
## Models changes
|
||||
|
||||
### Recommendation structure
|
||||
|
||||
Render one compact card for each **unique exact variant plus execution configuration**. If Balanced and Performance choose the same setup, that card gets both profile chips and one action. Do not merge the same model file when the recommended context/cache/placement or other execution settings differ.
|
||||
|
||||
Keep a profile without a candidate as a compact actionable row: **“No approved Agentic model fits this setup · Review context.”** It should not occupy a tall empty card. All three priorities remain identifiable; no profile selection silently switches the loaded model.
|
||||
|
||||
Recommended card order:
|
||||
|
||||
1. Profile chip or chips.
|
||||
2. Exact model/version and quantization; omit redundant nicknames.
|
||||
3. Estimated working memory/fit and download size, clearly distinguished.
|
||||
4. A compact speed row if retained after resolving B08.
|
||||
5. One short actual review status replacing generic prose, such as **“Capability review pending.”** Scope it to the metadata available.
|
||||
6. One state-aware action and **Why this model?**
|
||||
|
||||
Move long purpose, selection rationale, timing breakdown, full configuration and provenance into Why this model. Keep relevant limitations, unsupported states and unknown fit visible. Review status is not a claim that a model can edit XLSX, safely handle contracts, produce reliable research or keep data private.
|
||||
|
||||
### Library and comparison
|
||||
|
||||
Default to Installed when models exist, otherwise Discover; remember a deliberate tab choice. Remove the second Choose a model button from Models because the library already supplies that task. Keep the shared picker in Engine and onboarding.
|
||||
|
||||
Retain Family → Version → Quantization, exact search, filters, compatible defaults, optional incompatible variants and reversible expansion. Prefer **“All variants”** or **“All quantizations”** over “file formats.” Capability explanations remain accessible; model names cannot manufacture capability evidence.
|
||||
|
||||
Comparison becomes aligned rows for exact variant, fit, memory/headroom, download, reading, answer and evidence. Share the workload/configuration controls. Per-variant Details contains timing, allocation and provenance. Unknown values remain labelled and over-budget warnings stay beside the action. On mobile, stack the same labelled rows without requiring horizontal swiping.
|
||||
|
||||
**Acceptance:** the existing shared-winner fixture produces one model card and one compact Agentic no-fit state; the library is substantially closer to the recommendations; exact variants cannot be confused; no repeated full preview panels remain in comparison. Card height grows naturally for long names and large text rather than clipping or shrinking them.
|
||||
|
||||
## Onboarding changes
|
||||
|
||||
The majority supports **Computer → Model → Prepare → Ready**, with a mandatory compact download/configuration review at the end of Model and optional **Adjust settings** inside that review. This changes navigation count, not the required commitment checks.
|
||||
|
||||
| Existing step | Proposed disposition |
|
||||
|---|---|
|
||||
| Computer | Keep actual verdict, memory/storage and uncertainty. Move full processor/accelerator checks into Computer details. Retry is prominent on failure. |
|
||||
| Profile and model | Keep Balanced as the new-user default, all three priorities and one selected recommendation. Remove repeated selected-profile purpose. Compare remains optional. |
|
||||
| Tune | Fold its summary into the explicit pre-download review. Show exact choice, estimated fit, actual download amount and Custom status. Adjust settings expands the controls; invalid retained values open them with a recovery action. |
|
||||
| Prepare | One actual stage label and progress visual. Keep accurate verification scope, specific retry, retained-files status and cancellation consequences beside the relevant action. Detailed output is disclosed. |
|
||||
| Ready | Truthful loaded/Demo status, exact model, short profile/context summary and Start chatting. Memory breakdown and Demo test move to Setup details. |
|
||||
|
||||
The teacher and office dissent is substantive: a separately named Review setup step provides orientation and a clear commitment boundary. The four-step implementation must preserve both. Do not collapse model selection and downloading into one surprising click.
|
||||
|
||||
**Acceptance:** selecting a profile or variant never starts a download; the final load/download action follows an explicit review; interrupted old five-step progress maps to the equivalent new state without losing choices; files retained after a failed load stay retained; readiness still requires successful loading. No new promise of resumable bytes, background setup or concurrent inference is introduced.
|
||||
|
||||
## Operational finding to fix with the simplification
|
||||
|
||||
The parallel-session reviewer identified inconsistent visible lifecycle checks. Source confirms `ModelAction` considers running plus queued requests, while `lifecycleAvailable` in `src/lib/store.ts` checks streaming/running work and lifecycle operations. The Tuning confirmation does not use the same visible queue blocker. This observation does **not** establish that the backend loses or interrupts queued work.
|
||||
|
||||
Use one lifecycle policy and compact **“Global · all chats”** scope near reload/switch/unload. Known active/queued work appears when relevant, with a Serving link; unavailable status must not become zero. Review blockers before a consequential operation or related settings write. Preserve the different effects of saving sampling defaults and restarting the engine. No scheduler or “14 simultaneous agents” control is proposed.
|
||||
|
||||
## Unresolved choices and coordinator recommendation
|
||||
|
||||
These recommendations are the coordinator's judgment, **not additional persona votes**.
|
||||
|
||||
| Split | Recommendation for the next iteration | What to test |
|
||||
|---|---|---|
|
||||
| Card speeds: 4 both / 1 primary / 3 in Details | Start with one modest two-rate row, without hero numerals. This preserves the existing performance-focused brief while the unanimous cuts remove much more prose and duplication. Keep fit/download/review above it. Retain a fit-first alternative for testing. | Can users distinguish reading speed, answer speed and task quality? Does the row help model choice or distract from fit/download? |
|
||||
| Names: 4 keep / 4 rename | Keep Agentic / Balanced / Performance for continuity, with short plain descriptors shown once. Do not rename a stable concept based on a tied simulated vote. | Can actual newcomers explain the priorities and select a sensible model? Compare with Tools and agents / Everyday work / Faster answers. |
|
||||
|
||||
Do not present either option as established by usability evidence. A real participant walkthrough can settle these more usefully than manufacturing another AI consensus.
|
||||
|
||||
## What to keep out of this revision
|
||||
|
||||
- No smaller text, unexplained icon-only controls or hover-only essential help.
|
||||
- No deletion of Expert/Raw, exact variant identity, comparison or recovery actions.
|
||||
- No generic green “Works great” badge replacing unknown fit, Demo or provisional evidence.
|
||||
- No quality/reliability score derived from token speed, memory fit or model size.
|
||||
- No hidden restart, automatic model switch or profile-driven sampling change.
|
||||
- No new queue dashboard, automatic drain scheduler or unsupported parallel-capacity claim.
|
||||
- No extra warning paragraphs for hypothetical uses. Keep relevant short facts and actual review status; put supporting explanation in Details.
|
||||
|
||||
## Implementation order and checks
|
||||
|
||||
1. **Shared copy and data hierarchy:** remove duplicate introductions/purposes, consolidate source labels correctly, shorten sample names to text workloads, preserve effect timing and review scope.
|
||||
2. **Models and comparison:** unique setup identity, compact empty states/cards, aligned comparison, Installed default. Comparison received the most top-three mentions.
|
||||
3. **Engine:** context-first layout, compact preview, simplified action bar, descriptions toggle in Expert and clear draft labels.
|
||||
4. **Onboarding:** reuse the compact components, fold optional Tune into review, migrate saved progress and verify recovery.
|
||||
5. **Lifecycle consistency:** implement shared checks alongside affected action changes, before relying on the simplified copy to communicate consequences.
|
||||
|
||||
Verify keyboard/direct entry, Light/Dark, reduced motion/transparency, increased contrast, long model names, unknown evidence, distinct configurations sharing a file, no fit, shared winners, 390/768/1024/1512px and 200% zoom. Walk through first successful setup, interrupted setup, failed loading and cancellation. Test that a busy or unknown engine state receives consistent action handling. Measure visible copy and reading/navigation burden after implementation; this review claims no measured reduction or usability gain.
|
||||
|
||||
## Complete ballot results
|
||||
|
||||
| ID | Decision | Votes | Result |
|
||||
|---|---|---|---|
|
||||
| B01 | Remove repeated introductions and teaching | YES 8 | Adopt |
|
||||
| B02 | Beginner dial hierarchy | CONTEXT 7; TWO 1 | Context first |
|
||||
| B03 | Engine feedback | RATES 6; MEMORY 2 | Keep compact rates |
|
||||
| B04 | Simplify action bar | YES 8 | Adopt |
|
||||
| B05 | Compact Expert with optional descriptions | YES 8 | Adopt |
|
||||
| B06 | Recommendation presentation | UNIQUE 6; SELECTOR 2; THREE 0 | Unique setups |
|
||||
| B07 | Keep exact variant identity visible | YES 8 | Keep |
|
||||
| B08 | Ordinary card metrics | BOTH 4; PRIMARY 1; FIT 3 | Unresolved |
|
||||
| B09 | Compact no-fit and duplicate-winner states | YES 8 | Adopt |
|
||||
| B10 | Library entry and duplicate picker | YES 8 | Adopt |
|
||||
| B11 | Aligned comparison | YES 8 | Adopt |
|
||||
| B12 | Onboarding structure | OPTIONAL 6; FIVE 2 | Optional Tune |
|
||||
| B13 | Profile naming | KEEP 4; RENAME 4 | Unresolved |
|
||||
| B14 | Compact pre-download setup review | YES 8 | Adopt |
|
||||
| B15 | Concise progress with truthful recovery | YES 8 | Adopt |
|
||||
| B16 | Quiet Ready screen | YES 8 | Adopt |
|
||||
| B17 | Consistent global lifecycle consequences | YES 8 | Adopt |
|
||||
| B18 | Consolidate correctly scoped evidence labels | YES 8 | Adopt |
|
||||
| B19 | Visible actual capability-review status | VISIBLE 8 | Adopt |
|
||||
| B20 | Workloads clearly labelled as text samples | YES 8 | Adopt |
|
||||
|
||||
## Individual evidence and votes
|
||||
|
||||
| Reviewer | Independent report | Peer debate | Raw vote |
|
||||
|---|---|---|---|
|
||||
| 1 PC gamer | [Review](01-gamer.md) | [Debate](01-gamer-debate.md) | [JSON](01-gamer-vote.json) |
|
||||
| 2 Typical Mac user | [Review](02-mac.md) | [Debate](02-mac-debate.md) | [JSON](02-mac-vote.json) |
|
||||
| 3 Older teacher exploring local AI | [Review](03-teacher.md) | [Debate](03-teacher-debate.md) | [JSON](03-teacher-vote.json) |
|
||||
| 4 Newcomer who heard about it on TikTok | [Review](04-newcomer.md) | [Debate](04-newcomer-debate.md) | [JSON](04-newcomer-vote.json) |
|
||||
| 5 Local AI tinkerer | [Review](05-tinkerer.md) | [Debate](05-tinkerer-debate.md) | [JSON](05-tinkerer-vote.json) |
|
||||
| 6 Operator of many agentic chats | [Review](06-parallel.md) | [Debate](06-parallel-debate.md) | [JSON](06-parallel-vote.json) |
|
||||
| 7 Casual research and work user | [Review](07-research.md) | [Debate](07-research-debate.md) | [JSON](07-research-vote.json) |
|
||||
| 8 Regular workplace document user | [Review](08-office.md) | [Debate](08-office-debate.md) | [JSON](08-office-vote.json) |
|
||||
|
||||
[Common ballot](ballot.md) · [Validated tally](vote-tally.json) · [Implementation being reviewed](../engine-models-onboarding-2026-10-05.md) · [Screenshot evidence](../evidence/instrument-redesign-2026-10-05/)
|
||||
|
||||
Only documentation was created during the original review. The subsequent authorized implementation is recorded in [implementation and verification](implementation-verification.md).
|
||||
@@ -0,0 +1,98 @@
|
||||
# Persona review: implementation and verification
|
||||
|
||||
Implemented on 2026-10-05 against [the decision report](decision-report.md). The original votes and dissent remain unchanged. All 18 majority decisions are applied; the two unresolved decisions use the report's explicitly provisional choices: keep Agentic / Balanced / Performance, and show a modest pair of speed readings.
|
||||
|
||||
## What changed
|
||||
|
||||
| Decisions | Implementation |
|
||||
|---|---|
|
||||
| B01, B20 | Removed repeated introductions and teaching. Shortened workload labels to Short text, Document text and Long context. Kept token counts and context constraints. |
|
||||
| B02 | Beginner opens with Context. Prompt batch has an Automatic/Custom summary and an Adjust disclosure; custom values, exact input, keyboard operation and reset remain available. One shared gesture hint. |
|
||||
| B03, B18 | Compact Reading/Answer pair with one speed-source label, memory requirement and headroom. Timing, allocation, configuration and provenance move into Details. Unknown speeds stay unknown. |
|
||||
| B04 | Save for next load is primary; Apply now remains secondary; Discard appears for a dirty draft. A keyboard-accessible More actions menu holds defaults, validation and Demo preview. |
|
||||
| B05 | Expert retains parameters, recommendations, applicability, errors, per-field revert and shared Raw editing. General descriptions are optional. Raw is labelled Configuration draft. |
|
||||
| B06, B09 | Merge recommendations only when variant **and full execution configuration** match. Multiple profile chips share one action. No-fit and missing-hardware profiles use compact, actionable rows. |
|
||||
| B07 | Exact family/version and quantization stay visible. Source repository, filename and Copy file source are available in recommendation, variant and comparison details. |
|
||||
| B08, B13 | Provisional: keep both compact rates and existing profile names. These choices are not presented as majority decisions or measured usability wins. |
|
||||
| B10 | Installed is the initial library when files exist; deliberate Installed/Discover choice persists. Removed the redundant Models picker. Kept Engine/setup picker, filters, search and reversible expansion. |
|
||||
| B11 | Comparison uses aligned facts and shared workload/context controls. Each variant has optional details. Mobile comparison stacks labelled rows. |
|
||||
| B12, B14 | Computer → Model → Prepare → Ready. Model includes an explicit review before loading/downloading, with optional tuning. v1 progress migrates once without losing choices or completed work. |
|
||||
| B15 | One preparation stage and progress presentation. Error recovery reports retained files and retries the appropriate operation. An installed model with a load error retries loading, without waiting for another download. |
|
||||
| B16 | Ready requires a successfully loaded model and retains the Demo label. Setup detail and preview testing remain optional. |
|
||||
| B17 | Shared lifecycle policy checks active/queued work, connection, missing status and in-progress model operations before load/unload/restart or related configuration writes. Save-only remains available. Global scope appears near affected actions. |
|
||||
| B19 | A concise actual capability-review status replaces generic tradeoff prose. No new capability claim was added. |
|
||||
|
||||
The supplied brand, typefaces, icons, design tokens, materials and motion scale remain in use. Cards wrap long identities. The Engine save bar becomes part of normal flow on narrow or short viewports so enlarged content remains reachable.
|
||||
|
||||
## Observable reduction in default content
|
||||
|
||||
Read from rendered `innerText`, with disclosures closed. These are whitespace-delimited copy counts, not a reading-time or human usability study. Models used the same 16 GB demo fixture, installed Starter variant, no loaded model, 32K context, Document text workload and Discover library. Desktop layout was 1512 × 982. Engine used the default 32K / 2048 setup. Setup compares the previous Model + Tune steps with their combined review.
|
||||
|
||||
| Surface | Before | After |
|
||||
|---|---:|---:|
|
||||
| Engine visible surface copy | 221 words | 100 words |
|
||||
| Models visible surface copy | 257 words | 135 words |
|
||||
| Computer setup copy | 93 words | 67 words |
|
||||
| Model selection + tuning review | 216 words across two steps | 103 words in one step |
|
||||
| Shared-winner recommendation cards | 3 | 1, plus a compact no-fit row |
|
||||
| Model library top from viewport origin | 1126 px | 828 px |
|
||||
| Core setup steps | 5 | 4 |
|
||||
|
||||
The library begins about 299 px earlier in this fixture. No text-size reduction was used. Primary setup navigation reduces from four user actions to three; Prepare still advances only after successful loading. Actual task success, comprehension and speed of use require human testing.
|
||||
|
||||
## Automated verification
|
||||
|
||||
Final source checks passed:
|
||||
|
||||
- `npm run typecheck`
|
||||
- `npm run audit` — tokens, kit consistency, motion scale, materials, icons and classes clean.
|
||||
- `node --test tests/*.test.mjs` — **18 passed, 0 failed**.
|
||||
- `npm run build` — 67 modules; production JS 420.65 kB / 128.53 kB gzip; CSS 105.65 kB / 19.22 kB gzip.
|
||||
|
||||
Relevant added regression coverage checks migration from every old step; exact setup grouping including cache, placement and thread differences; shared lifecycle handling; and actual store actions making **zero network calls** when a lifecycle write is blocked. Save-only still issues its configuration PATCH. Existing demo-host recovery, configuration, serving cancellation, request ordering and streaming tests also pass.
|
||||
|
||||
## Clicked browser verification
|
||||
|
||||
Performed through CUA in an isolated local demo host, with disposable storage and an API-edge fixture proxy. No real model was downloaded or run. The proxy in `tests/ui-fixture-host.mjs` is a test helper, not an application dependency.
|
||||
|
||||
| Flow / state | Result |
|
||||
|---|---|
|
||||
| Context keyboard change and exact batch entry | 32K → 16K and custom 1024 reflected in draft feedback; Expert and Raw showed the same saved values. |
|
||||
| Raw unknown configuration | An unknown fixture key survived editing and saving. |
|
||||
| More actions keyboard | Initial focus on Recommended defaults; ArrowDown reached Validate draft; Escape closed the menu and returned focus to More actions. |
|
||||
| File source | Expanded details, copied source, and verified the expected filename in the copied text. |
|
||||
| Installed/Discover | Initial installed default and deliberate Discover preference verified across navigation. |
|
||||
| Library and comparison | Expanded/collapsed quantizations, selected three variants, fourth selection disabled; aligned desktop and stacked mobile comparison; Escape returned focus to Compare variants. |
|
||||
| Large catalog | 1200 variants grouped into 12 collapsed families with zero expanded variant rows initially. Exact search narrowed matches; long names wrapped at 390 px. |
|
||||
| First setup | Explicit review, simulated download/load, Ready, then Chat. Profile selection alone did not download. |
|
||||
| Cancellation | Cancelled preparation retained choices and offered the appropriate retry; retry completed. |
|
||||
| Legacy setup and invalid retained values | Old Tune step mapped to Model. Unsupported 128K remained visible, opened adjustment controls and disabled Load. Corrected 8K/custom batch survived Finish later and resume. |
|
||||
| Failed loading | HTTP-success/error-state fixture produced one recovery message, retained files and Retry loading. Switching fixture to normal reached Ready without another download. |
|
||||
| Setup → Engine | Custom batch 1024 remained Custom in Engine after setup applied it. |
|
||||
| Active and queued requests | One active/two queued fixture blocked unloading and load confirmation; loaded model remained. The store regression additionally checked that associated settings writes were blocked. |
|
||||
| Unknown request status | Missing counters produced an unavailable explanation, not idle zeroes. |
|
||||
| Unknown hardware | All profiles showed Fit not checked and Check computer, without claiming nothing fits. |
|
||||
| Missing speed evidence | Not estimated / Unavailable / Provisional remained visible; no measured performance was fabricated. |
|
||||
| Responsive layout | Engine, Models and setup checked at 1512, 1024, 768 and 390 px. Document and relevant containers had no horizontal overflow in all 12 combinations. |
|
||||
| Browser zoom | Chrome's native zoom control confirmed **200%**. Models library, Engine actions and setup's final Load model action remained reachable. Zoom restored to 100%; temporary tab closed. |
|
||||
| Appearance/accessibility | Light and Dark inspected. Reduced motion produced `0s` dial-pointer transitions; Opaque produced `backdrop-filter: none`; increased contrast applied to all three screens. Test preferences restored afterwards. |
|
||||
|
||||
The existing rendered contrast probe was run through CUA's read-only evaluator for Light, standard Dark and increased-contrast Dark on Engine. Every sampled pairing passed its 4.5:1 requirement. This is a sampled contrast check, not a complete accessibility certification. The final browser console sample contained no warnings or errors.
|
||||
|
||||
## Evidence
|
||||
|
||||
- [Engine](../evidence/persona-simplification-2026-10-05/01-engine-desktop.png)
|
||||
- [Models](../evidence/persona-simplification-2026-10-05/02-models-desktop.png)
|
||||
- [Setup review](../evidence/persona-simplification-2026-10-05/05-setup-review.png)
|
||||
- [Desktop comparison](../evidence/persona-simplification-2026-10-05/03-comparison-desktop.png) / [mobile comparison](../evidence/persona-simplification-2026-10-05/04-comparison-mobile.png)
|
||||
- [Final load failure](../evidence/persona-simplification-2026-10-05/20-setup-load-failure.png) / [successful retry](../evidence/persona-simplification-2026-10-05/07-setup-ready.png)
|
||||
- [Unknown hardware](../evidence/persona-simplification-2026-10-05/14-unknown-hardware.png) / [long names](../evidence/persona-simplification-2026-10-05/15-long-model-name-mobile.png)
|
||||
- [Dark accessibility preferences](../evidence/persona-simplification-2026-10-05/17-engine-dark-accessibility.png)
|
||||
- [Measurements and responsive checks](../evidence/persona-simplification-2026-10-05/verification-data.json)
|
||||
- [Evidence directory notes](../evidence/persona-simplification-2026-10-05/README.md)
|
||||
|
||||
## Practical limits
|
||||
|
||||
Native Strata integration and real inference benchmarking remain deferred as requested. Demo speeds cannot establish recommendation quality or resource savings. Quantitative drag/scroll responsiveness during streaming, battery impact and full luminance/motion performance measurements were not performed; no performance improvement is claimed. Accessibility verification here covers the touched controls, sampled contrast and listed layouts, not a full screen-reader audit.
|
||||
|
||||
The reusable workflow is installed separately at `/Users/nikoveit/.codex/skills/ui-persona-review/`, with independent reviews, peer challenges, validated voting and reporting. Application implementation remains an explicitly authorized follow-up rather than part of its default review behavior.
|
||||
@@ -0,0 +1,203 @@
|
||||
{
|
||||
"method": "Eight simulated AI personas; independent review, peer critique and common ballot. Not a human user study.",
|
||||
"model": "gpt-6.1-sol",
|
||||
"effort": "medium",
|
||||
"ballots": 8,
|
||||
"valid_votes": 160,
|
||||
"decision_rule": "At least 5 of 8 for a majority; no deciding vote from coordinator.",
|
||||
"majority_decisions": 18,
|
||||
"unanimous_decisions": 14,
|
||||
"results": [
|
||||
{
|
||||
"id": "B01",
|
||||
"counts": {
|
||||
"YES": 8
|
||||
},
|
||||
"majority": "YES",
|
||||
"unanimous": true
|
||||
},
|
||||
{
|
||||
"id": "B02",
|
||||
"counts": {
|
||||
"TWO": 1,
|
||||
"CONTEXT": 7
|
||||
},
|
||||
"majority": "CONTEXT",
|
||||
"unanimous": false
|
||||
},
|
||||
{
|
||||
"id": "B03",
|
||||
"counts": {
|
||||
"RATES": 6,
|
||||
"MEMORY": 2
|
||||
},
|
||||
"majority": "RATES",
|
||||
"unanimous": false
|
||||
},
|
||||
{
|
||||
"id": "B04",
|
||||
"counts": {
|
||||
"YES": 8
|
||||
},
|
||||
"majority": "YES",
|
||||
"unanimous": true
|
||||
},
|
||||
{
|
||||
"id": "B05",
|
||||
"counts": {
|
||||
"YES": 8
|
||||
},
|
||||
"majority": "YES",
|
||||
"unanimous": true
|
||||
},
|
||||
{
|
||||
"id": "B06",
|
||||
"counts": {
|
||||
"UNIQUE": 6,
|
||||
"SELECTOR": 2
|
||||
},
|
||||
"majority": "UNIQUE",
|
||||
"unanimous": false
|
||||
},
|
||||
{
|
||||
"id": "B07",
|
||||
"counts": {
|
||||
"YES": 8
|
||||
},
|
||||
"majority": "YES",
|
||||
"unanimous": true
|
||||
},
|
||||
{
|
||||
"id": "B08",
|
||||
"counts": {
|
||||
"BOTH": 4,
|
||||
"PRIMARY": 1,
|
||||
"FIT": 3
|
||||
},
|
||||
"majority": null,
|
||||
"unanimous": false
|
||||
},
|
||||
{
|
||||
"id": "B09",
|
||||
"counts": {
|
||||
"YES": 8
|
||||
},
|
||||
"majority": "YES",
|
||||
"unanimous": true
|
||||
},
|
||||
{
|
||||
"id": "B10",
|
||||
"counts": {
|
||||
"YES": 8
|
||||
},
|
||||
"majority": "YES",
|
||||
"unanimous": true
|
||||
},
|
||||
{
|
||||
"id": "B11",
|
||||
"counts": {
|
||||
"YES": 8
|
||||
},
|
||||
"majority": "YES",
|
||||
"unanimous": true
|
||||
},
|
||||
{
|
||||
"id": "B12",
|
||||
"counts": {
|
||||
"OPTIONAL": 6,
|
||||
"FIVE": 2
|
||||
},
|
||||
"majority": "OPTIONAL",
|
||||
"unanimous": false
|
||||
},
|
||||
{
|
||||
"id": "B13",
|
||||
"counts": {
|
||||
"KEEP": 4,
|
||||
"RENAME": 4
|
||||
},
|
||||
"majority": null,
|
||||
"unanimous": false
|
||||
},
|
||||
{
|
||||
"id": "B14",
|
||||
"counts": {
|
||||
"YES": 8
|
||||
},
|
||||
"majority": "YES",
|
||||
"unanimous": true
|
||||
},
|
||||
{
|
||||
"id": "B15",
|
||||
"counts": {
|
||||
"YES": 8
|
||||
},
|
||||
"majority": "YES",
|
||||
"unanimous": true
|
||||
},
|
||||
{
|
||||
"id": "B16",
|
||||
"counts": {
|
||||
"YES": 8
|
||||
},
|
||||
"majority": "YES",
|
||||
"unanimous": true
|
||||
},
|
||||
{
|
||||
"id": "B17",
|
||||
"counts": {
|
||||
"YES": 8
|
||||
},
|
||||
"majority": "YES",
|
||||
"unanimous": true
|
||||
},
|
||||
{
|
||||
"id": "B18",
|
||||
"counts": {
|
||||
"YES": 8
|
||||
},
|
||||
"majority": "YES",
|
||||
"unanimous": true
|
||||
},
|
||||
{
|
||||
"id": "B19",
|
||||
"counts": {
|
||||
"VISIBLE": 8
|
||||
},
|
||||
"majority": "VISIBLE",
|
||||
"unanimous": true
|
||||
},
|
||||
{
|
||||
"id": "B20",
|
||||
"counts": {
|
||||
"YES": 8
|
||||
},
|
||||
"majority": "YES",
|
||||
"unanimous": true
|
||||
}
|
||||
],
|
||||
"top_three_mentions": {
|
||||
"B01": 3,
|
||||
"B06": 4,
|
||||
"B11": 5,
|
||||
"B02": 2,
|
||||
"B04": 1,
|
||||
"B14": 3,
|
||||
"B15": 1,
|
||||
"B08": 1,
|
||||
"B13": 1,
|
||||
"B05": 1,
|
||||
"B17": 1,
|
||||
"B19": 1
|
||||
},
|
||||
"source_files": [
|
||||
"01-gamer-vote.json",
|
||||
"02-mac-vote.json",
|
||||
"03-teacher-vote.json",
|
||||
"04-newcomer-vote.json",
|
||||
"05-tinkerer-vote.json",
|
||||
"06-parallel-vote.json",
|
||||
"07-research-vote.json",
|
||||
"08-office-vote.json"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
# 01 · Chat
|
||||
|
||||
**Route** `#/chat` — the landing screen · **File** `src/screens/Chat.tsx` (779 lines, the largest in the app)
|
||||
|
||||
Chat is where the product either holds up over a long session or does not. It is
|
||||
the only screen a user might sit in for hours, so it carries the strictest rules
|
||||
in the system: the reading measure, the follow-the-stream behaviour, focus mode,
|
||||
and the telemetry row.
|
||||
|
||||
## What it is today
|
||||
|
||||
- **Header** — title (editable inline), a subtitle carrying model · message count ·
|
||||
token count, and two controls: a generating pill that appears only while
|
||||
working, and the context-rail toggle. The `···` overflow was removed last round.
|
||||
- **Transcript** — `.chat__inner`, 920 px max, centre-aligned. Assistant prose is
|
||||
capped at **56ch**, measured at **68 characters** at 10, 16 and 22 px. Code
|
||||
blocks and tables escape the cap and use the full bubble.
|
||||
- **Tool cards** — inline approval cards with Enter/Esc, a scope badge, a result
|
||||
line and a duration.
|
||||
- **Composer** — `Do anything` placeholder, keyboard hints as the box's second
|
||||
line, toolbar row, Send. Glass material at the regular tier.
|
||||
- **Telemetry** — three centred, clickable groups (turns/steps/tok/s, tokens/cache
|
||||
hit, context %) opening detail popovers.
|
||||
- **Context rail** — a grid track that animates 0 → 340 px, with a per-conversation
|
||||
breakdown.
|
||||
- **Focus mode** — `⌘⇧F` withdraws the chrome to an ambient bar.
|
||||
- **Scroll behaviour** — follows the stream only when already at the bottom;
|
||||
per-conversation scroll memory; a scroll-driven reading-progress hairline.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. **The header subtitle is dense and low-value.** `Starter · 0.5B Q4_K_M · 2
|
||||
messages · 244 tokens` duplicates what the telemetry row and the sidebar
|
||||
engine chip already say. Three places report the same state.
|
||||
2. **The header has no model identity while idle.** The generating pill only
|
||||
exists mid-request, so at rest the bar says nothing about what is loaded.
|
||||
3. ~~Assistant messages have no per-message time or cost.~~ **Checked and
|
||||
wrong.** A two-turn conversation renders a footer under *both* assistant
|
||||
messages with identical structure (`236 tokens · 56.6 tok/s · 4.2 s`), because
|
||||
the `done` frame writes `tokens`, `tps` and `durationMs` onto every message and
|
||||
the footer renders whenever any of the three exists. The figures were always
|
||||
per-turn; only the *actions* below are missing.
|
||||
4. ~~No way to retry or edit a turn.~~ **Fixed.** Every assistant turn carries
|
||||
*Ask again* (`retryLast`) and every user turn carries *Edit and ask again*
|
||||
(`rewindTo`). Verified: retry drops the reply and replaces it without
|
||||
duplicating the turn; edit rewinds the transcript and refills the composer
|
||||
focused. Actions reveal on hover and on focus-within, so they are reachable by
|
||||
keyboard. *Branch* and *Continue* are now shipped — see below.
|
||||
5. **Reasoning is a collapsed block with no affordance.** The disclosure animates
|
||||
open but there is no indication of how long the model thought.
|
||||
6. **The intro state is four static suggestion cards.** They do not reflect the
|
||||
workspace, and they do not change with the loaded model.
|
||||
7. **Nothing marks unread turns** when a long generation finishes while the user
|
||||
is scrolled up.
|
||||
8. **The transcript has no `content-visibility`.** In a 200-turn conversation
|
||||
every message stays in layout, which is the one place the app can get slow.
|
||||
9. **Focus mode dims earlier turns to 45% but offers no way to move between
|
||||
turns** — no next/previous, no jump-to-latest.
|
||||
|
||||
## The plan
|
||||
|
||||
### Hierarchy — one hero, less restatement
|
||||
1. **Strip the subtitle to the conversation only.** `2 messages · 244 tokens`
|
||||
moves entirely into the telemetry popover; the subtitle becomes the model name
|
||||
and nothing else, or disappears when the rail toggle is present.
|
||||
2. **Add a persistent model chip to the header**, left of the controls: the
|
||||
loaded model with its state dot. This is the DSH shape and it means the bar is
|
||||
informative at rest, not only mid-request.
|
||||
|
||||
### Substance — make the transcript auditable
|
||||
3. **Per-turn actions on the existing footer** — retry, edit-and-resend, branch.
|
||||
The figures are already correct and per-turn; what the footer lacks is
|
||||
anything to *do* with a turn after reading it.
|
||||
4. ~~Retry and edit-and-resend.~~ **Done.** Both live in the store rather than
|
||||
the screen, because each has to touch the message list — doing it from a
|
||||
component ends up duplicating the stream handling that already lives there.
|
||||
|
||||
5. ~~Branch and continue.~~ **Done.** *Branch from here* forks a session at any
|
||||
turn, leaving the original intact — verified: the branch carries only the
|
||||
turns up to that point, the original is byte-identical afterwards, and both
|
||||
are listed. *Continue from here* appears on the newest reply only, since an
|
||||
older one already has its answer beneath it, and is sent as an ordinary user
|
||||
turn rather than a hidden mode, because a continuation *is* a request and the
|
||||
transcript should show it.
|
||||
|
||||
**Branching exposed a real bug.** `Chat` resolves its session as
|
||||
`location.param ?? activeId`, so the URL wins when it names a session. Every
|
||||
other path into a session navigates (`newSession(); go('chat', id)`); the
|
||||
first version of `branchFrom` only set `activeSession`, so the sidebar showed
|
||||
the new branch while the transcript kept showing the original *indefinitely* —
|
||||
a feature that looked broken while its data was correct. `branchFrom` now
|
||||
navigates, and the flow asserts the URL follows.
|
||||
5. **Reasoning blocks show their duration** (`Thought for 4.2s`) in the summary
|
||||
row, using the disclosure already built.
|
||||
6. **`content-visibility: auto` on message blocks** with `contain-intrinsic-size`
|
||||
so off-screen turns cost nothing. This is the single largest performance win
|
||||
available and it is invisible when it works.
|
||||
|
||||
### Fluidity
|
||||
7. ~~Jump-to-latest pill.~~ **Done** — and it only appears once the newest
|
||||
message is genuinely off screen, so it does not sit over a short transcript
|
||||
with nothing to jump to. When scrolled up during or after a stream, a floating
|
||||
capsule appears above the composer with the count of new turns. Clicking scrolls
|
||||
smoothly; the pill fades on a token.
|
||||
8. **Unread mark on the session row** in the sidebar while the user is elsewhere.
|
||||
9. ~~Turn navigation in focus mode.~~ **Done.** Focus mode is for reading a long
|
||||
conversation, and reading needs a next. `⌥↑`/`⌥↓` step between your own turns
|
||||
and `⌘↓` returns to the latest; the focus bar teaches the keys, since that bar
|
||||
is the only chrome the mode keeps. Verified: five distinct stops going down,
|
||||
each press retreating on the way back, and `⌘↓` landing at gap 0.
|
||||
|
||||
**The first version stuck.** It scrolled a turn to `offsetTop − 16` and then
|
||||
tested `offsetTop > scrollTop + 8` — which the turn it had just moved to still
|
||||
satisfied, so the second press did nothing. The tolerance has to exceed the
|
||||
offset the turn is positioned at.
|
||||
|
||||
### Substance — the intro
|
||||
10. **Suggestion cards become workspace-aware** — derived from the actual file
|
||||
list rather than a fixed array, and one of them becomes "Continue where you
|
||||
left off" when a previous session exists.
|
||||
|
||||
## Motion
|
||||
|
||||
| Interaction | Spec |
|
||||
|---|---|
|
||||
| Turn entering | `st-enter`, `--st-t-local`, 6 px lift — already correct |
|
||||
| Jump-to-latest appear | `st-enter`, `--st-t-control`, `--st-from-y: 4px` |
|
||||
| Reasoning disclosure | `interpolate-size` on `::details-content`, `--st-t-local` — built |
|
||||
| Retry / branch | No transition; the transcript re-renders. Movement here would be noise |
|
||||
| Rail open/close | grid track 0 ↔ 340 px, `--st-t-surface` — built |
|
||||
|
||||
Everything is dropped to opacity-only under reduced motion, per rule 6.
|
||||
|
||||
## Verification
|
||||
|
||||
- The per-turn footer assertion is **already satisfied** and should be kept as a
|
||||
regression guard rather than written as a new check: every assistant message
|
||||
with a completed stream must render `.st-msg__meta`.
|
||||
- New assertion: with 100 seeded turns, **paint time on scroll stays within 1.5×
|
||||
of a 10-turn conversation** — the `content-visibility` proof.
|
||||
- `npm run measure` must still report 68 characters after any header or column
|
||||
change.
|
||||
- Focus-mode turn navigation added to the shortcut table and to `flow focus`.
|
||||
@@ -0,0 +1,287 @@
|
||||
# 02 · Models
|
||||
|
||||
**Route** `#/models` · **File** `src/screens/Models.tsx` (297 lines)
|
||||
|
||||
The screen that answers "what can this computer actually run?". For the audience
|
||||
this app targets — people who find hardware intimidating — it carries more weight
|
||||
than any other configuration screen.
|
||||
|
||||
## What it is today
|
||||
|
||||
- **Current model card** — name, blurb, a spec row (params · layers · experts ·
|
||||
RAM class · disk), a Loaded/Needs-files pill, and Load / Unload / Download.
|
||||
- **Variants list** — `listrow` per variant: label, Recommended pill, blurb, RAM
|
||||
class, action button, remove button. Install progress uses a `Bar` with a stage
|
||||
caption.
|
||||
- **Downloads and disk card** — free space, used-by-models bar, "Tune current model".
|
||||
- **Icons** — `layers` throughout.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. **"8 GB RAM class" is jargon.** The entire value proposition is *will this run
|
||||
on my machine*, and the answer is expressed as a memory class the reader has
|
||||
to map onto their own computer themselves.
|
||||
2. **No fit indicator.** There is a Recommended pill, but no explicit "fits /
|
||||
tight / will not fit" per row, which is the only question being asked.
|
||||
3. ~~Download size is the only cost shown.~~ **Fixed.** Rows now read
|
||||
`Download · 10 GB · about 13 min`. The formula is shared with the setup
|
||||
wizard rather than duplicated — two screens describing the same download must
|
||||
not disagree, and a shared helper is the only way to guarantee that. It is
|
||||
deliberately coarse: rounded to whole minutes and floored at two, because a
|
||||
precise-looking number from an unknown connection is a false promise. Time-to-download and the disk
|
||||
consequence are absent, and "Choose · 10 GB" reads as a price.
|
||||
4. ~~The recommended variant is marked but not explained.~~ **Fixed.** A badge
|
||||
told you *which* one and never *why*. It now says so: *"The largest that fits
|
||||
comfortably in this computer's 16 GB with room left over — smaller ones would
|
||||
trade quality for nothing."* That is literally the host's rule (pick the
|
||||
largest variant whose footprint fits), stated in the reader's terms rather
|
||||
than left as something to infer from a RAM class.
|
||||
|
||||
Worth recording: my first check of this claimed the host returned no
|
||||
recommendation at all, because I queried the models payload instead of the
|
||||
hardware one. The recommendation worked; the missing thing was the reason. Five variants, five equal-weight
|
||||
rows. The recommended one is distinguished only by a small pill.
|
||||
5. **The disk card is a dead end.** It reports usage and links to tuning; it does
|
||||
not let you reclaim space, which is the actual motivation for visiting.
|
||||
6. **No download progress detail** — a percentage and a stage string, no rate, no
|
||||
remaining time.
|
||||
7. **`layers` is used for the model glyph** where the kit now ships a real
|
||||
`folder`/`file` vocabulary. The model glyph itself is fine, but the vocabulary
|
||||
is inconsistent with the Workspace tree.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance — answer the real question
|
||||
1. **A fit verdict per variant**, computed from detected hardware: **Runs well ·
|
||||
Runs, tight · Too large**. Three states, plain words, one glance. This replaces
|
||||
the reader having to interpret a RAM class.
|
||||
2. **Move the RAM class into the detail**, behind the verdict, for people who
|
||||
want it.
|
||||
3. **Show download cost as time and space**: `≈10 GB · about 4 min on this
|
||||
connection`, with the disk-after figure (`23 GB → 13 GB free`).
|
||||
4. **A "why this one" line on the recommended variant**, in one sentence, drawn
|
||||
from the same hardware detection that produced the verdict.
|
||||
|
||||
### Hierarchy
|
||||
5. ~~Give the recommended variant visual weight.~~ **Done, restrained.** The
|
||||
recommended row takes a 2px accent hairline down its leading edge and a title
|
||||
one step larger (18px against 16px). Nothing more — it already explains itself
|
||||
in words, so this only has to make it findable, not to shout.
|
||||
|
||||
**The edge had to move to `::after`.** `.listrow::before` is the separator
|
||||
hairline, so the first version silently replaced it. Invisible here, because
|
||||
the recommended row sits at the top where the separator is hidden anyway —
|
||||
and broken the moment a recommendation appeared anywhere else.
|
||||
6. **Collapse the not-installed variants** behind "Show 3 more options" when the
|
||||
machine cannot run them. Presenting unusable options as equals is the main
|
||||
source of confusion on this screen.
|
||||
|
||||
### Fluidity
|
||||
7. **Switch the model-change animation from a keyed entrance to a shared-element
|
||||
morph**, now that the headline and the row are both named. The earlier attempt
|
||||
failed because the swap is server-driven; the fix is to capture the old state
|
||||
before the request and hold it through the busy phase.
|
||||
8. **Load progress reads as a phase sequence**, not a bare bar: `Reading → into
|
||||
memory → ready`, each step completing rather than one bar filling.
|
||||
|
||||
## Motion
|
||||
|
||||
| Interaction | Spec |
|
||||
|---|---|
|
||||
| Model change | Shared-element morph, `--st-t-surface`; falls back to the current keyed `st-enter` |
|
||||
| Load phases | Step marks animate `st-mark`, `--st-t-local`, staggered 40 ms |
|
||||
| Fit verdict appearing | `st-enter`, `--st-t-control`, 4 px — one motion, not three |
|
||||
| Row expand (show more) | grid track `0fr → 1fr`, `--st-t-local` |
|
||||
|
||||
## Verification
|
||||
|
||||
- Assert every variant renders a **fit verdict string from the fixed set**; a
|
||||
variant without one is a failure.
|
||||
- Assert the disk-after figure equals `free − downloadSize` for each row.
|
||||
- Screenshot both themes at 1512 and 900 px: the variant list must not clip.
|
||||
|
||||
## Chat and image models, and custom imports — 12 October 2026
|
||||
|
||||
**Status: proposal for integration.** The current Models screen still runs one
|
||||
catalog model. This section describes the next implementation; the example
|
||||
names supplied by the user are design labels, not verified model releases.
|
||||
|
||||
### Simple page flow
|
||||
|
||||
1. Keep the current chat model card, context controls and Computer use choice.
|
||||
2. Add a small **Add image model** action below the chat model card. It expands
|
||||
a second card with an image icon, model/version picker and its own load state.
|
||||
The empty card stays out of the way for people who only use chat.
|
||||
3. With both selected, **Tune & run** prepares the pair. The right column shows
|
||||
their combined RAM and each GPU's budget, with separate contributions for
|
||||
chat, context, images and free space. Count unified memory once.
|
||||
4. Offer **Keep both ready** when the pair's resident and peak working memory
|
||||
fits. If it does not, explain the capacity limit and offer **Load images when
|
||||
needed**. Require the user to choose that fallback; do not silently unload
|
||||
chat while claiming both models are running.
|
||||
5. Image controls use size and quality presets. Context remains a chat setting.
|
||||
Show image latency in seconds per image only after an adapter supplies a
|
||||
defensible estimate or a measured benchmark for that resolution and quality.
|
||||
6. Keep one Saved settings dropdown. A named setting can eventually remember
|
||||
both exact model versions, the loading policy and each model's tuning.
|
||||
Migrate existing single-model profiles as chat-only settings.
|
||||
|
||||
Example arrangement:
|
||||
|
||||
| Main column | Preview column |
|
||||
| --- | --- |
|
||||
| Chat · Qwen3.8-Flash-Next | Expected chat speed |
|
||||
| Images · QwenImage2.1-Turbo, optional | Expected image time, or Not measured |
|
||||
| Conversation context | Combined memory by RAM and GPU |
|
||||
| Computer use | This computer: every CPU and GPU |
|
||||
| Tune & run | |
|
||||
|
||||
### Runtime needed before this can be offered as working
|
||||
|
||||
- Replace the single `library.loaded` identity and singleton supervisor with a
|
||||
model registry and per-role engine instances. Keep independent load/error/
|
||||
cancel states and ports. Route chat and image requests by capability.
|
||||
- Add an image generation adapter with a declared architecture/format/device
|
||||
support matrix. Reading images in a chat model is a different capability from
|
||||
generating images. The current `beginner.readImages` toggle cannot provide
|
||||
this image generation slot by itself.
|
||||
- Reserve memory for both weights, chat KV cache, image runtime workspaces,
|
||||
auxiliaries and system headroom before launching. An image adapter must report
|
||||
its peak requirement and supported offload behavior. Do not assume that its
|
||||
weights or active tensors can spill to SSD like a chat model.
|
||||
- Keeping two models loaded and generating from them concurrently are separate
|
||||
decisions. Default to scheduling heavy work on a shared GPU. In Expert mode,
|
||||
offer device assignment for each model and concurrent execution where the
|
||||
backend supports it and the peak memory fits.
|
||||
- Preserve a healthy running chat model if adding an image model fails. Monitor
|
||||
and Serving need model identities per engine; progress and memory must be
|
||||
attributed to the right instance.
|
||||
|
||||
### Bring your own model
|
||||
|
||||
Put **Import model…** in Manage models, with **Choose file/folder** and
|
||||
**Download from a model URL/repository**. The host inspects metadata and required
|
||||
files before presenting a review with name, role, format, size and compatibility.
|
||||
|
||||
- A model outside Strata's curated catalog can run when an installed adapter
|
||||
supports its architecture and format. Start with compatible chat GGUF imports;
|
||||
add image bundles after the image adapter's supported formats are defined.
|
||||
- Imported models receive a neutral **Custom** label. Curated versions can show
|
||||
**Strata optimized** only when that exact model/engine/device combination has
|
||||
a validated tune. Custom models retain context, resource choices and Expert
|
||||
mode, with conservative defaults and an optional benchmark.
|
||||
- If an adapter does not support the architecture, show the precise missing
|
||||
capability before Load is enabled. An import cannot make arbitrary weights
|
||||
compatible. Offer the existing custom model API connection when the user
|
||||
already has another compatible model server running.
|
||||
- Do not execute repository code during metadata inspection. Register exact
|
||||
source files, hashes, tokenizer/template and dependencies with a stable model
|
||||
identity; copy or reference files deliberately and show ownership before
|
||||
offering deletion. Partial downloads are resumable; cancellation retains a
|
||||
recoverable installation state.
|
||||
- Unknown performance stays **Not measured**. Unknown memory needs a compatibility
|
||||
probe or user-provided limit before promising that a model will fit.
|
||||
|
||||
### Delivery order and acceptance
|
||||
|
||||
1. Model registry and custom chat import; preserve current catalog behavior.
|
||||
2. Image adapter and image result routing; validate one supported image family.
|
||||
3. Shared planner, paired load lifecycle, resource scheduling and device choices.
|
||||
4. Paired saved settings, Monitor/Serving integration and measured forecasts.
|
||||
|
||||
Accept only after chat+image stays loaded on a capable machine, the smaller-PC
|
||||
fallback is explicit, every GPU budget is respected, import failures preserve
|
||||
the running model, paired settings survive restart and cancel/unload target the
|
||||
correct engine. Exercise one GPU, multiple GPUs, unified memory and CPU-only
|
||||
hardware only where each adapter actually supports those configurations.
|
||||
|
||||
|
||||
### Implemented UI and downloads — 12 October 2026
|
||||
|
||||
The model summary is now visible in both normal and Expert modes. The Version
|
||||
card includes an optional Qwen-Image-2.1-Turbo selector. Off is the initial
|
||||
choice. Selecting a quant does not start a download; Download is a separate
|
||||
action with inline progress, cancellation, retry and downloaded states.
|
||||
|
||||
| UI choice | GGUF file | Download size |
|
||||
| --- | --- | --- |
|
||||
| Q4 | qwen-image-2.1-turbo-Q4_K_M.gguf | 4.20 GB |
|
||||
| Q5 | qwen-image-2.1-turbo-Q5_K_M.gguf | 5.39 GB |
|
||||
| Q6 | qwen-image-2.1-turbo-Q6_K.gguf | 6.27 GB |
|
||||
| Q8 | qwen-image-2.1-turbo-Q8_0.gguf | 7.64 GB |
|
||||
|
||||
Source: [Unsloth repository](https://huggingface.co/unsloth/Qwen-Image-2.1-Turbo-GGUF),
|
||||
revision `5d1f9f759ea877ae556cda88dbec958b62ad3809`. The reviewed byte counts
|
||||
and SHA-256 values are pinned in `server/image-catalog.json`. Sizes above use
|
||||
GB in decimal units, matching the source file sizes.
|
||||
|
||||
`server/image-models.mjs` owns a separate image library. It persists choice and
|
||||
installation metadata in `data/image-models.json` under STRATA_HOME and writes
|
||||
real files beneath `models/image/<quant>/`. It leaves the chat library and
|
||||
chat engine process independent. Switching Off retains downloaded weights.
|
||||
The host checks free storage, exact byte count, GGUF magic and SHA-256 before
|
||||
promoting a partial file to an installed model. Cancel or verification failure
|
||||
removes the partial file. Retry starts a new download.
|
||||
|
||||
Host contract:
|
||||
|
||||
- `GET /api/image-models`: source metadata, choices, selected/applied values,
|
||||
per-version installation state and generation capability.
|
||||
- `PATCH /api/image-models` with `{selected: "off" | "q4" | "q5" | "q6" | "q8"}`:
|
||||
store a choice without fetching or loading anything.
|
||||
- `POST /api/image-models/<quant>/install` and `/cancel`: explicit download actions.
|
||||
- `POST /api/image-models/apply`: validate that the selected choice is installed
|
||||
and that this host has image generation capability before applying it.
|
||||
- SSE event `image-models`: state and progress updates over the existing stream.
|
||||
|
||||
Named settings retain `imageModel`. Earlier settings omit this field and migrate
|
||||
to Off. Restoring settings restores both the engine configuration and image
|
||||
choice. A pending image selection is retained across refresh.
|
||||
|
||||
**Runtime integration still required:** STRATA_REAL_ENGINE=0 uses the existing
|
||||
prototype convention: installation and application are simulated and no weights
|
||||
are fetched. STRATA_REAL_ENGINE=1 downloads and verifies the requested diffusion
|
||||
GGUF, but reports image generation unavailable. Production generation must add a
|
||||
compatible image adapter, its text encoder and VAE, separate load/process health,
|
||||
image result routing and shared memory planning. Do not treat a downloaded GGUF
|
||||
as a runnable image pipeline. The current forecast explicitly labels itself as
|
||||
chat memory when an image choice is selected; it does not claim combined fit or
|
||||
image throughput. Real mode refuses to apply an image choice until that adapter
|
||||
exists; selecting Off retains normal chat operation.
|
||||
|
||||
|
||||
### Family switcher and simplified management — 13 October 2026
|
||||
|
||||
- The header replaces the descriptive sentence with a Model family combobox.
|
||||
Its options come from `modelFamilies(library)`, so registering future catalog
|
||||
families also registers them in this switcher.
|
||||
- Normal and Expert modes share the model summary in the toolbar, before Saved
|
||||
settings and Manage models and above the separator. In Expert mode it retains
|
||||
its disclosure behavior for the basic settings.
|
||||
- Family changes prefer a remembered exact version, then downloaded versions,
|
||||
then a matching precision or Balanced. Unapplied configuration, image choice
|
||||
and active saved settings are retained per family during the current visit.
|
||||
Selecting the same version leaves the draft unchanged. Switching families is
|
||||
a setup choice; Tune & run still controls the engine lifecycle.
|
||||
- The Manage models dialog uses `ManagedModelLibrary`: one compact version list,
|
||||
one occurrence of each quantization, one selected-version memory summary and
|
||||
one primary action. Running and downloaded states are visible in the list.
|
||||
Unload and Delete files live in Version actions; deletion keeps its confirmation
|
||||
and running versions must be unloaded first. The existing standalone library
|
||||
remains available to its older route.
|
||||
- Opening Manage models uses the family and exact version currently selected in
|
||||
setup, including a choice that has not been downloaded yet.
|
||||
|
||||
The prototype catalog now includes Qwen3.6-35B-A3B alongside Qwen3.8-Flash-Next.
|
||||
Both are design fixtures with illustrative sizes and performance. Qwen3.6's
|
||||
architecture/context metadata is based on the [official config](https://huggingface.co/Qwen/Qwen3.6-35B-A3B/blob/main/config.json).
|
||||
Its hybrid attention memory estimate remains approximate. This change does not
|
||||
add a real GGUF download manifest or engine compatibility validation for that
|
||||
family. The real catalog remains separate in `server/real-model-catalog.mjs`;
|
||||
production integration must validate exact files, hashes, architecture support,
|
||||
context limits and measured memory before exposing native downloads.
|
||||
|
||||
|
||||
## 14 October: multiple model instances
|
||||
|
||||
See [Multiple loaded models](09-multiple-models.md) for the implemented Models/Monitor/Serving flows, API contracts, shared memory planning and remaining native adapter work. Tune model and Load model are separate actions.
|
||||
@@ -0,0 +1,89 @@
|
||||
# 03 · Engine tuning
|
||||
|
||||
**Route** `#/tuning` · **File** `src/screens/Tuning.tsx` (413 lines)
|
||||
|
||||
Where a beginner mode and an expert mode have to coexist without either feeling
|
||||
like a compromise. It is the most control-dense screen in the app.
|
||||
|
||||
## What it is today
|
||||
|
||||
- **Beginner / Expert tabs** — a segmented control.
|
||||
- **Nine `Field` rows** in beginner mode: context length, memory mode, image
|
||||
support, free-CPU policy, and others, each with a hint line and a `Select`.
|
||||
- **An "Expected effect" side card** — the consequences of the current settings,
|
||||
in plain language.
|
||||
- **A pinned action** — "Save & restart engine".
|
||||
- **Expert mode** — a settings table plus raw parameter rows.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. ~~No sense of scale.~~ **Fixed.** The context field now carries the live
|
||||
figure, and the host predicts the *draft* rather than the saved config — which
|
||||
is what makes the line a preview of the choice instead of a restatement of the
|
||||
status quo. Verified: setting 128K changes the line from `about 1.9 GB` to
|
||||
`about 2.4 GB` and raises the trained-context warning in place.
|
||||
2. **Every field has equal weight.** Context length and image support are not
|
||||
equally consequential, and the layout says they are.
|
||||
3. ~~The consequence is not shown at the moment of change.~~ **Fixed** for the
|
||||
three beginner fields. The plan's own criterion — "a static line is a
|
||||
failure" — is what caught the first attempt: reading `engine.predicted` showed
|
||||
the saved config, so the line never moved. `/api/engine/validate` now accepts
|
||||
a draft and returns its prediction.
|
||||
4. **Expert mode is a wall.** A table plus raw rows, with no grouping and no
|
||||
explanation of which values are safe.
|
||||
5. **"Save & restart engine" is the only exit** — restarting is heavy, and there
|
||||
is no "these settings apply to the next load" alternative.
|
||||
6. **No diff against defaults.** After changing three things it is impossible to
|
||||
see what is no longer recommended.
|
||||
7. ~~No validation feedback in place.~~ **Fixed** for beginner mode: issues for
|
||||
the draft render above the fields they concern, toned by severity.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance
|
||||
|
||||
> **Two defects found in a design pass, both fixed.** The model breakdown note
|
||||
> was printed **twice** in the Expected-effect panel — once as a standalone line
|
||||
> added in an earlier round, once in the notes list beneath it. And a long memory
|
||||
> value wrapped after "of", leaving an orphaned "12 GB" on its own line; the
|
||||
> measurement is now non-breaking, so the break falls before the figure.
|
||||
— consequence at the moment of choice
|
||||
1. **Inline impact per field.** Each row gains a muted right-hand consequence
|
||||
line that updates live: context length shows `≈1.9 GB of 24 GB`, memory mode
|
||||
shows what it trades. The Expected-effect card stays as the summary, not the
|
||||
only place the answer lives.
|
||||
2. **A live "before → after" on the summary card** whenever a value differs from
|
||||
the saved config, so a change is legible before committing.
|
||||
3. **"Modified from recommended" markers per field**, with a one-click revert on
|
||||
the row. The drawer already has this pattern for sampling; reuse it.
|
||||
|
||||
### Hierarchy
|
||||
4. **Split beginner into two groups**: *What the model can do* (context, images)
|
||||
and *How it uses your computer* (memory, CPU policy). Nine flat rows is a
|
||||
list; two groups of four is a decision.
|
||||
5. **Expert mode gets sections and a safety cue** — each group labelled, and any
|
||||
value outside the recommended band marked, so a dangerous number is visible
|
||||
rather than merely permitted.
|
||||
|
||||
### Fluidity
|
||||
6. **Apply-on-next-load becomes the default action**, with a separate, clearly
|
||||
marked "Apply now (restarts the engine)" for people who want it immediately.
|
||||
This removes the heaviest action from the critical path.
|
||||
7. **Invalid values are marked in place** with the reason under the field, and
|
||||
the save action disables with a stated reason rather than failing on submit.
|
||||
|
||||
## Motion
|
||||
|
||||
| Interaction | Spec |
|
||||
|---|---|
|
||||
| Beginner ↔ Expert | Segmented thumb + panel cross-fade, `--st-t-control` |
|
||||
| Impact line changing | Number-only cross-fade, `--st-t-control`; no layout shift — the row reserves the line |
|
||||
| Revert to recommended | `st-enter` on the value, `--st-t-control` |
|
||||
| Save enabled | Colour and elevation only, `--st-t-control`. No movement |
|
||||
|
||||
## Verification
|
||||
|
||||
- Assert every field renders a consequence line and that it **changes when the
|
||||
value changes** — a static line is a failure.
|
||||
- Assert "Save" is disabled with a visible reason when a value is invalid.
|
||||
- `flow tuning` extended to switch modes, modify a value, revert, and save.
|
||||
@@ -0,0 +1,94 @@
|
||||
# 04 · Monitor
|
||||
|
||||
**Route** `#/monitor` · **File** `src/screens/Monitor.tsx` (284 lines)
|
||||
|
||||
The screen that answers "is it working, and is my computer coping?" — live. It
|
||||
carries the most `Metric`s (10), the most `Bar`s (5), two `Gauge`s and two
|
||||
`Spark`s, which makes it the densest screen and the one most at risk of reading
|
||||
as a wall of numbers.
|
||||
|
||||
## What it is today
|
||||
|
||||
- **A waiting/working hero** — the current phase in plain words, with prompt
|
||||
progress (`0 / 8 tokens`) while reading.
|
||||
- **Output speed and prompt reading** — two large numeric metrics with sparklines.
|
||||
- **Hardware card** — GPU load bar, memory, GPU temperature with a limit.
|
||||
- **Context used** — percentage and tokens, with a "room to keep going" note.
|
||||
- **Model resources** — expert cache, layers on GPU.
|
||||
- **Totals** — a four-metric summary of the session (tokens, requests, avg
|
||||
throughput, time).
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. ~~Nothing is scoped in time.~~ **Checked and wrong.** Both speed cards already
|
||||
read `Current response · last 60 seconds` and `Current prompt · last 60
|
||||
seconds`, and the totals card carries a `This session` pill in place of a start
|
||||
date. What genuinely lacks a window is the *hardware* block — VRAM, RAM and
|
||||
temperature describe the instant with no stated sampling interval.
|
||||
2. **The hero is idle most of the time.** The screen's largest element is the
|
||||
phase label, which reads "Waiting for a request" whenever nothing is running —
|
||||
the common case for anyone who opens this screen to look at history.
|
||||
3. **Live numbers have no steadying.** Values update every second and the digits
|
||||
shift width. Tabular figures are used in places but not everywhere, so rows
|
||||
twitch.
|
||||
4. ~~The hardware card has no thresholds made explicit.~~ **Partly wrong.** The
|
||||
temperature metric already prints a verdict word (`comfortable` /
|
||||
`throttling risk`) beside the limit, so it is not colour-alone. The gap is that
|
||||
VRAM and RAM have no equivalent verdict, and the temperature threshold is a
|
||||
bare `limit - 8` with no stated basis.
|
||||
5. **Context usage is duplicated** with the chat telemetry popover, at different
|
||||
precisions and with different labels (`Context used` vs `of memory`).
|
||||
6. **No time axis anywhere.** History exists in `MonitorState.history` (a rolling
|
||||
sample buffer) but only ever renders as unlabelled sparklines.
|
||||
7. **The totals card has no start date shown**, though `totals.since` exists.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance — make every number mean something
|
||||
1. ~~Extend the window labelling to the hardware block.~~ **Fixed.** The block
|
||||
header now reads *Sampled every second*, and VRAM and RAM carry the same
|
||||
plain-word verdict the temperature metric already had (*plenty free*,
|
||||
*comfortable*), so no reading depends on colour alone.
|
||||
2. **Give the hero a resting state worth looking at.** When idle, it becomes a
|
||||
compact session summary (last request, throughput trend, context) instead of a
|
||||
large empty "Waiting for a request".
|
||||
3. ~~Give VRAM and RAM a verdict.~~ **Done**, and the temperature's threshold is
|
||||
now stated rather than implied: `Limit 105°C · flags above 97°C ·
|
||||
comfortable`. The margin is a named constant with its reasoning attached, so
|
||||
the reader can disagree with it.
|
||||
4. **Reconcile context vocabulary across the app.** One phrase, one precision,
|
||||
shared with the chat popover. Pick `of memory` and use it in both places, or
|
||||
`of context used` in both.
|
||||
|
||||
### Hierarchy
|
||||
5. **Three tiers, explicitly.** *Now* (phase + throughput), *This machine*
|
||||
(hardware), *Since launch* (totals). Today all three sit at the same weight.
|
||||
6. **One hero.** The phase/throughput block is the hero; the totals card drops a
|
||||
type step and becomes a footer strip.
|
||||
|
||||
### Fluidity
|
||||
7. **Sparklines gain a shared baseline and a hover readout**, so the curve can be
|
||||
interrogated rather than only glanced at.
|
||||
8. **Numbers stop twitching** — `font-variant-numeric: tabular-nums` on every live
|
||||
figure, verified rather than assumed.
|
||||
9. **A visible time axis** on at least one chart, using `history`, so "is this
|
||||
normal?" is answerable.
|
||||
|
||||
## Motion
|
||||
|
||||
| Interaction | Spec |
|
||||
|---|---|
|
||||
| Value changing | No transition on the digit itself; the bar/gauge it drives animates `--st-t-local` |
|
||||
| Phase changing | Label cross-fade, `--st-t-control` — already correct |
|
||||
| Hero idle → working | `st-enter` on the working block, `--st-t-local` |
|
||||
| Sparkline appending | No animation; the line simply extends |
|
||||
|
||||
Under reduced motion every one of these becomes a value swap with no interpolation.
|
||||
|
||||
## Verification
|
||||
|
||||
- Assert **no live metric renders without a window label**.
|
||||
- Assert every threshold-bearing metric renders a word alongside its number —
|
||||
greyscale screenshot must still be readable.
|
||||
- Assert `tabular-nums` computes on every `.num` inside the screen.
|
||||
- Extend `flow monitor` to capture idle and generating states in both themes.
|
||||
@@ -0,0 +1,87 @@
|
||||
# 05 · Serving
|
||||
|
||||
**Route** `#/serving` · **File** `src/screens/Serving.tsx` (329 lines)
|
||||
|
||||
The screen for people wiring Strata into something else. It is the most
|
||||
"developer" surface in the app, which makes it the one most likely to be skimmed
|
||||
by someone who does not read API documentation for fun.
|
||||
|
||||
## What it is today
|
||||
|
||||
- **Local API card** — base URL, OpenAI-compatible and Anthropic-compatible
|
||||
endpoint chips, a copy button, the model id, and a "Serving · bind locally"
|
||||
pill.
|
||||
- **Access card** — toggles for other devices and network access, an API key row
|
||||
with reveal/copy, and a plain-language reassurance line.
|
||||
- **Requests table** — time, client, endpoint, tokens in/out, duration, state.
|
||||
A row opens a detail drawer.
|
||||
- **Metrics** — running, waiting, and a few counters.
|
||||
- **Empty state** for a fresh install.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. ~~The endpoints are shown as chips, not as usable snippets.~~ **Fixed.** The
|
||||
endpoint rows printed a *path fragment* in muted mono with no way to take it,
|
||||
so wiring a client meant reading `/chat/completions` off the screen and typing
|
||||
the host yourself. Each row now carries its full URL and its own copy button.
|
||||
(A base-URL copy button did already exist — the plan over-claimed there.)
|
||||
2. ~~No example request.~~ **Fixed.** A `curl` block, switched between OpenAI and
|
||||
Anthropic formats, with a copy button. Verified by *running* the copied
|
||||
command against the host: it returns real SSE completion chunks, and the JSON
|
||||
body parses.
|
||||
3. **Security state is ambiguous.** "Other devices" and "network access" toggles
|
||||
exist beside an API key, but nothing states plainly whether the server is
|
||||
reachable from outside this machine, which is the actual question.
|
||||
4. **The requests table has no filtering or sorting.** A hundred rows, no way to
|
||||
find the failed one — despite the state column having a colour.
|
||||
5. **Failures are indistinguishable from successes at a glance.** The state pill
|
||||
is the only signal, and it is small.
|
||||
6. **The detail drawer is a dead end.** It shows a request's facts and offers
|
||||
Cancel; it does not offer "copy as curl", which is what you want when
|
||||
debugging a call the model answered badly.
|
||||
7. **The table does not say when it is empty because nothing has been asked** vs
|
||||
when it is filtered to nothing.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance — make it pasteable
|
||||
1. **Replace the endpoint chips with a copyable base URL block** and a
|
||||
one-line example request beneath it, switched by a small OpenAI /
|
||||
Anthropic segmented control. One block, one copy button, no assembly.
|
||||
2. **Add "Connect a client" with two or three concrete recipes** — an editor,
|
||||
a CLI, a script — each copyable. This is the screen's real job.
|
||||
3. **State the exposure plainly**: `Only this computer can reach it` or
|
||||
`Anyone on your network can reach it`, as a sentence with a status dot, above
|
||||
the toggles rather than implied by them.
|
||||
4. **Make the API key state visible at rest** — present / not set — rather than
|
||||
requiring the reveal toggle to find out.
|
||||
|
||||
### Hierarchy
|
||||
5. **Order by intent, not by implementation**: *Connect to it* → *Who can reach
|
||||
it* → *What it has been doing*. Today the layout is API, access, table, which
|
||||
is close but reads as three equal cards.
|
||||
|
||||
### Fluidity
|
||||
6. **Filter and sort the request table**, with the state column as a filter
|
||||
rather than only a colour. Failed-only is the view people actually want.
|
||||
7. **Row state gets an icon as well as a colour**, so it survives greyscale.
|
||||
8. **The detail drawer gains "Copy as cURL"** and the full request/response
|
||||
payload, collapsed.
|
||||
|
||||
## Motion
|
||||
|
||||
| Interaction | Spec |
|
||||
|---|---|
|
||||
| Endpoint protocol switch | Panel cross-fade only, `--st-t-control`; never both visible |
|
||||
| Copy confirmation | Check icon swap + a toast; the button does not move |
|
||||
| Request row → drawer | Existing drawer slide, `--st-t-local`; no shared-element morph — the sheet's own transform owns the motion |
|
||||
| New row arriving | `st-enter`, `--st-t-local`, 6 px, capped at the newest 6 rows |
|
||||
|
||||
## Verification
|
||||
|
||||
- **Shipped and verified**: every endpoint row copies a full URL, the request
|
||||
block copies a `curl` that executes, and the Anthropic format differs from the
|
||||
OpenAI one (`max_tokens`, `/messages`).
|
||||
- Assert the exposure sentence matches the toggle state in all four combinations.
|
||||
- Assert request rows expose state as both icon and colour.
|
||||
- `flow serving`: toggle each access switch, filter to failures, open a drawer.
|
||||
@@ -0,0 +1,82 @@
|
||||
# 06 · Workspace
|
||||
|
||||
**Route** `#/workspace` · **File** `src/screens/Workspace.tsx` (219 lines)
|
||||
|
||||
What the model can see. The screen that makes "local" concrete: these are your
|
||||
files, and this is the boundary.
|
||||
|
||||
## What it is today
|
||||
|
||||
- **A file tree** — `treerow` per node, directories expandable, sizes on files,
|
||||
a `Select` for workspace root.
|
||||
- **A "What Strata may touch" card** — the scope explanation.
|
||||
- **Filters** — a few `Select` controls and a search field.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. **Directories use the `layers` icon.** The kit gained real `folder` and `file`
|
||||
glyphs two rounds ago and the sprite carries them; only the sidebar uses
|
||||
`folder`. This is the most visible inconsistency in the app — the file tree is
|
||||
the one place a folder icon is unambiguous.
|
||||
2. **Files have no icon at all**, only a size. A directory and a file differ by
|
||||
the presence of a chevron.
|
||||
3. **Tree expand/collapse is instant.** The workspace tree in the *sidebar*
|
||||
animates a grid track; this one, the main event, does not. The two should not
|
||||
behave differently.
|
||||
4. **The detail panel shows metadata, not the file.** Selecting a node *does*
|
||||
render a panel (`Workspace.tsx:168`) with kind, path, item count or size,
|
||||
changed time, Copy path and "Add as reference" — but never the file's
|
||||
contents. Reading a file the model can read is the obvious next step and the
|
||||
panel is already there to hold it.
|
||||
5. **Modified time is shown in the detail panel but not in the tree**, so
|
||||
scanning for what changed recently means clicking through nodes one at a
|
||||
time.
|
||||
6. **No indication of what the model has actually read.** The tool runs are in
|
||||
the transcript; the workspace does not reflect them, though it is the natural
|
||||
place to see "these three files were opened".
|
||||
7. **The scope card states the rule but not the consequence** — no count of files
|
||||
or total size in reach.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance — make the boundary legible
|
||||
1. **Real icons**: `folder` for directories, `file` for files, both already in
|
||||
the sprite. Distinguish common types by tint only, never by adding a second
|
||||
icon family.
|
||||
2. **Extend the existing detail panel with contents.** It already carries the
|
||||
header (kind, path, size, changed) and two actions; add the file body beneath
|
||||
as a read-only code surface, fetched on selection. Metadata without contents
|
||||
is a panel that answers every question except the one that was asked.
|
||||
3. ~~"Read by the model" markers.~~ **Done.** Files that appear in a tool call in the
|
||||
current session get a subtle marker and a count, so the boundary is not just
|
||||
stated but demonstrated.
|
||||
4. **The scope card gains figures**: `128 files · 4.2 MB in reach`.
|
||||
|
||||
### Hierarchy
|
||||
5. **Tree is the hero**, filters are secondary. Today the filter row and the tree
|
||||
have comparable weight.
|
||||
|
||||
### Fluidity
|
||||
6. **Tree rows animate open and closed** using the same grid-track technique as
|
||||
the sidebar tree and the context rail — one technique, three places.
|
||||
7. **The preview pane slides in from the right** like the context rail, on the
|
||||
same `--st-t-surface` track animation, rather than appearing.
|
||||
8. **Keyboard navigation**: arrows to move and expand, Enter to preview. A tree
|
||||
without keyboard traversal is a list with extra steps.
|
||||
|
||||
## Motion
|
||||
|
||||
| Interaction | Spec |
|
||||
|---|---|
|
||||
| Node expand/collapse | grid track `0fr → 1fr`, `--st-t-local` |
|
||||
| Preview open/close | grid track, `--st-t-surface` — same as the context rail |
|
||||
| Row selection | Background only, `--st-t-micro` |
|
||||
| Icon swap on expand | None. The chevron rotates, `--st-t-control`; the icon does not change |
|
||||
|
||||
## Verification
|
||||
|
||||
- Assert **no directory renders the `layers` glyph** — the audit can check icon
|
||||
names against node kind.
|
||||
- Assert selecting a file renders a preview with non-empty content.
|
||||
- Add `flow workspace`: expand a directory, select a file, assert the preview
|
||||
path matches, collapse again.
|
||||
@@ -0,0 +1,80 @@
|
||||
# 07 · Skills
|
||||
|
||||
**Route** `#/skills` · **File** `src/screens/Skills.tsx` (121 lines — the smallest screen)
|
||||
|
||||
Reusable instruction sets the model can be given. Today it is a single list,
|
||||
which makes it the thinnest screen in the app and the one where "substance" is
|
||||
most obviously missing.
|
||||
|
||||
## What it is today
|
||||
|
||||
- **Header** with a count pill (`3 enabled`) and an "Add from folder" action.
|
||||
- **A search field.**
|
||||
- **One `listrow` per skill** — name, description, an enable toggle, and a source
|
||||
badge (`workspace`).
|
||||
- **An empty state** that distinguishes "no skills" from "no match".
|
||||
- **A "How skills work" explainer card** at the bottom.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. ~~A skill is a name and a sentence.~~ **Fixed.** The disclosure existed but
|
||||
showed *triggers* — the words that activate a skill, not what it does. The
|
||||
host now sends the instruction text itself (bundled skills carry it;
|
||||
workspace skills read their own `SKILL.md`, which the description had always
|
||||
claimed was the source without ever reading it). Verified: 364 characters of
|
||||
real instruction render, and **no skill lacks a body**.
|
||||
2. **Enabled/disabled is the only control.** No ordering, no scoping to a
|
||||
workspace, no per-conversation activation.
|
||||
3. **The list is flat and unsorted.** No grouping by source, no indication of
|
||||
which fired recently.
|
||||
4. **"Add from folder" is opaque.** It gives no hint of the expected layout, file
|
||||
format, or where to put files.
|
||||
5. **No feedback loop.** Nothing shows whether a skill has ever been used, or
|
||||
which conversations it affected.
|
||||
6. **The explainer card is a wall of prose at the bottom**, below the fold on a
|
||||
short window, where it cannot help anyone who is confused at the top.
|
||||
7. **The screen sits alone in the sidebar** with no sibling, which makes the
|
||||
single flat row read as unfinished.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance — make a skill inspectable
|
||||
1. ~~A detail view per skill.~~ **Done.** *Read instructions* opens the
|
||||
instruction text, with the triggers kept beneath it as a secondary
|
||||
detail — they answer "when does this fire", which is a different question
|
||||
from "what does it do".
|
||||
2. ~~Usage evidence.~~ **Done** — see the shipped note above. The triggers were
|
||||
decorative until this was built: nothing consulted them at runtime.
|
||||
3. **Scope control** — enable per workspace, since a skill written for one
|
||||
project is noise in another.
|
||||
|
||||
### Hierarchy
|
||||
4. **Move the explainer to the top as a one-line subtitle**, and put the detail
|
||||
in a disclosure for people who want it. Prose at the bottom cannot answer a
|
||||
question asked at the top.
|
||||
5. **Group by source** (`Workspace` / `Built in`) once there is more than one
|
||||
source; a single flat list will not scale.
|
||||
|
||||
### Fluidity
|
||||
6. **Toggling a skill shows the change immediately** and reconciles quietly — the
|
||||
optimistic update is the interaction, and a spinner on a switch is a worse
|
||||
switch.
|
||||
7. **Adding a skill animates the new row in** with the standard entrance, so the
|
||||
result of "Add from folder" is visibly connected to the action.
|
||||
|
||||
## Motion
|
||||
|
||||
| Interaction | Spec |
|
||||
|---|---|
|
||||
| Toggle | Knob travel `--st-t-control`; no page movement — built |
|
||||
| New skill added | `st-enter`, `--st-t-local`, 6 px |
|
||||
| Detail expand | grid track `0fr → 1fr`, `--st-t-local` |
|
||||
| Search filtering | Rows fade, `--st-t-control`. No reflow animation |
|
||||
|
||||
## Verification
|
||||
|
||||
- Assert each skill row can reveal its full instruction text.
|
||||
- **Shipped as `npm run flow skilluse`**: every skill renders a usage line, and
|
||||
the line is `Not used yet` rather than blank when it has never fired.
|
||||
- Assert the empty state distinguishes *no skills* from *no match* — already
|
||||
correct; keep it under test.
|
||||
@@ -0,0 +1,157 @@
|
||||
# 08 · Settings
|
||||
|
||||
**Route** `#/settings` · **File** `src/screens/Settings.tsx` (333 lines)
|
||||
|
||||
The catch-all. It carries the most `Field`s (37), the most `Select`s (6) and seven
|
||||
`SectionHead`s, which makes it the densest screen by control count and the one
|
||||
most likely to become a junk drawer.
|
||||
|
||||
## What it is today
|
||||
|
||||
Sections, in order: **General** · **Reading & focus** · **Engine** · **Storage** ·
|
||||
**Privacy** · **About**.
|
||||
|
||||
- *General* — appearance, on-startup, updates, history.
|
||||
- *Reading & focus* — text size slider, density, motion, translucency, focus mode.
|
||||
- *Engine* — defaults and a link to tuning.
|
||||
- *Storage* — where models and data live.
|
||||
- *Privacy* — the local-first statement.
|
||||
- *About* — the machine summary inherited from the retired Home screen.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. ~~No navigation within the screen.~~ **Fixed.** A sticky index of all six
|
||||
sections sits under the header. Verified: jumping to *About* scrolls the
|
||||
section to 74 px and the index marks it current; all six ids resolve.
|
||||
2. **Sections are ordered by history, not by use.** General first is convention;
|
||||
Reading & focus is the one people actually return to, and Privacy is read
|
||||
once, ever.
|
||||
3. **Privacy is a statement, not a setting.** A whole section for prose that
|
||||
belongs as a line under About.
|
||||
4. **A gap I introduced: About says "Run setup again" and nothing else.** The
|
||||
machine summary landed there last round but the section has no version, no
|
||||
build, no paths — the things an About section is for.
|
||||
5. **Reading & focus holds five controls of three different kinds** — a slider, a
|
||||
select, a toggle — with no visual grouping.
|
||||
6. **No reset.** Nothing restores defaults, individually or wholesale.
|
||||
7. **Search does not exist** on the screen with 37 fields, which is the screen
|
||||
that most needs it.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance
|
||||
1. ~~A section index in the left margin~~ (or a segmented jump row),
|
||||
highlight-on-scroll. **Shipped** — a sticky index that tracks the section you
|
||||
are reading and now carries the search field. The annotation was missing from
|
||||
this list long after the work landed, so it read as unbuilt.
|
||||
2. **Reorder by use** — still open. The order is unchanged (*General* first,
|
||||
*Privacy* last); the index makes it navigable but not better ordered, and
|
||||
*Privacy* is still a whole section for prose that belongs under About.
|
||||
3. **Flesh out About** — **partly done, and the rest deliberately not.**
|
||||
*Engine* joined the machine summary, naming the engine build and backend
|
||||
(`0.1.0 · metal · idle`); the version line was already there.
|
||||
|
||||
The folder paths and their Open buttons are **not** duplicated here. They live
|
||||
in *Storage*, beside the actions that use them, and copying them into About
|
||||
would put one fact in two places — the failure plan 12's own rule warns
|
||||
against. Config file paths are omitted for the same reason the audience is
|
||||
described as non-technical: they are a power-user detail with no action
|
||||
attached.
|
||||
4. **Group Reading & focus into two labelled blocks** — *Reading* (text size,
|
||||
density) and *Motion & materials* (motion, translucency, focus mode tell the
|
||||
same story about how the app moves).
|
||||
|
||||
### Fluidity
|
||||
5. **Settings search** that filters across all sections, reusing the command
|
||||
palette's matching, so `translucency` finds the control without knowing which
|
||||
section it lives in.
|
||||
6. **Per-section and global "Reset to defaults"**, with the modified fields
|
||||
marked so what would change is visible before it changes.
|
||||
|
||||
## Motion
|
||||
|
||||
| Interaction | Spec |
|
||||
|---|---|
|
||||
| Index jump | Instant scroll, no smooth-scroll animation — a settings jump should be immediate |
|
||||
| Section highlight on scroll | Opacity and weight only, driven by a scroll timeline; no layout |
|
||||
| Reset | Fields animate to their new values with a `--st-t-control` colour settle; no movement |
|
||||
| Search filtering | Sections fade out, `--st-t-control` |
|
||||
|
||||
## Verification
|
||||
|
||||
- Assert every section is reachable **in one action** from the top of the screen.
|
||||
- Assert theme and text size still survive a reload — the prefs regression that
|
||||
would hurt most.
|
||||
- Extend `flow settings`: index jump, search, change text size, reset.
|
||||
|
||||
## About / Update — 12 October 2026
|
||||
|
||||
The UI now shows the app and engine versions reported by the host, a Check for
|
||||
updates entry and a Roll back entry. Both open a compact component picker.
|
||||
The current design host has no version installer or previous-installation
|
||||
history, so install/restore actions remain disabled with a concrete explanation.
|
||||
No release was checked, downloaded, installed or rolled back by this UI change.
|
||||
|
||||
Integration needs a host-owned version service, not renderer filesystem writes:
|
||||
|
||||
- Read installed app/engine builds, compatible releases, checked-at state and
|
||||
saved previous installations. An unavailable catalog is different from Up to
|
||||
date. Resolve engine builds through Strata's compatibility manifest.
|
||||
- Check updates without changing the running model. Review the chosen build and
|
||||
release notes before installation; report download/progress/errors from the
|
||||
host. Wait for current requests or explicitly stop them before restarting.
|
||||
- Verify artifacts, stage a replacement installation and retain the previous
|
||||
healthy build plus a compatible configuration snapshot. Activate only after
|
||||
startup/health checks succeed; recover the old build on failure.
|
||||
- Rollback selects a real retained installation and validates schema compatibility.
|
||||
Keep model weights and chats. Apply app and engine version changes together
|
||||
when their compatibility requires it, and flag saved tuning for review after
|
||||
an engine change.
|
||||
- The frontend needs status/check/install/rollback operations and progress events,
|
||||
with capability flags so external engines or this web preview do not advertise
|
||||
installation operations they cannot carry out.
|
||||
|
||||
### Subsequent review: checks stay inline
|
||||
|
||||
The follow-up browser comment removes the update modal. Check for updates now
|
||||
calls `GET /api/updates/check` and changes the Update card in place: Checking,
|
||||
Update available, Up to date, No release yet, Check unavailable or Check failed.
|
||||
The endpoint reads the official Strata repository's stable releases and compares
|
||||
semantic versions; drafts/prereleases are ignored. Results include `checkedAt`,
|
||||
separate `strata`/`engine` states, `installedVersion`, optional `latestVersion` and
|
||||
`releaseUrl`, and `canInstall: false` for this unmanaged host.
|
||||
|
||||
An available Strata release adds **Get update**, a link to its verified GitHub
|
||||
release page. It does not install software. The real browser check exercised this
|
||||
state on 12 October. Failed requests remain retryable and do not leave a stale
|
||||
Up to date verdict on screen. Engine checks require a tested compatibility feed
|
||||
and an actual installed build ID; the existing binary downloader alone cannot
|
||||
establish that verdict. Rollback still requires retained installations.
|
||||
|
||||
|
||||
## Model directory — 14 October 2026
|
||||
|
||||
Storage now shows the active model directory and provides **Change directory**
|
||||
and **Check folder**. Enter the full path of an existing writable folder; the
|
||||
preference survives a host restart. New downloads use that folder. Switching
|
||||
keeps the previous folder’s files, rescans supported weights, and restores the
|
||||
previous library when users switch back. Conversations, setup completion, API
|
||||
keys, and tuning stay in the app data directory.
|
||||
|
||||
If models are loaded, the action reads **Unload and change directory**. Active
|
||||
requests, downloads, loading, or another engine operation block switching. Normal
|
||||
mode still loads one model with automatic placement; concurrency stays in Expert.
|
||||
|
||||
The real chat library recognizes catalog filenames in `<directory>/<variant-id>/`
|
||||
or directly inside the chosen directory, with exact file size and a GGUF header.
|
||||
This is catalog discovery, not a general custom-model importer or cryptographic
|
||||
verification of chat weights. Existing image weights are recognized in
|
||||
`<directory>/image/<quant>/` or directly inside the folder and are checked against
|
||||
the pinned image SHA-256 before reuse. **Check folder** discovers files copied
|
||||
in after selecting a directory. Unknown architectures and arbitrary recursive
|
||||
folder layouts still need a separate import flow.
|
||||
|
||||
The design host scopes simulated installs by directory; it neither downloads nor
|
||||
creates pretend weight files. Deleting a version removes its known GGUF file and
|
||||
preserves unrelated files in the chosen folder. Image model placement and native
|
||||
multi-engine execution remain pending integrations.
|
||||
@@ -0,0 +1,92 @@
|
||||
# 09 · First run
|
||||
|
||||
**Modal over the shell** · **File** `src/screens/Setup.tsx` (425 lines)
|
||||
|
||||
The first five minutes decide whether the app is trusted. The audience is
|
||||
explicitly people who find computers intimidating, so every step has to answer
|
||||
"what is happening and is it safe?" without being asked.
|
||||
|
||||
## What it is today
|
||||
|
||||
- **A five-step wizard** — Check PC · Model · Basics · Install · Ready — as a
|
||||
modal over the live shell, with direction-aware step transitions.
|
||||
- **Step 1** — a hardware scan with an animated scan line and a settling checklist.
|
||||
- **Step 2** — model choice with `MetricGrid` specs.
|
||||
- **Step 3** — three `Select`s (context length, images, memory mode).
|
||||
- **Step 4** — install progress with staged marks.
|
||||
- **Step 5** — a ready state with a mark-pop animation.
|
||||
- **A step rail** at the top showing 1–5 with the current step underlined.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. ~~The step rail is a progress bar, not a map.~~ **Half wrong.** The rail
|
||||
already renders every step *name* — `1·Check PC 2·Model 3·Basics 4·Install
|
||||
5·Ready` — so what is coming was always visible. What was genuinely missing is
|
||||
the duration, which is now stated up front.
|
||||
2. ~~No time estimate anywhere.~~ **Fixed.** The header states `5 steps · about
|
||||
N minutes · nothing leaves this computer`, computed from the selected model's
|
||||
download size, and the install row switches to the host's own ETA once a
|
||||
download is running.
|
||||
3. ~~Step 3 asks questions the user cannot answer.~~ **Fixed.** Each field now
|
||||
carries the consequence of its current value on the row itself — `Comfortable
|
||||
· about 1.9 GB of 12 GB`, `Text only — nothing extra loaded`, `Strata decides,
|
||||
and adjusts as it goes` — using the same `/api/engine/validate` preview the
|
||||
Engine tuning screen uses, so the two screens cannot give different answers to
|
||||
the same question.
|
||||
4. ~~The exit does not explain itself.~~ **Fixed.** It is now *Finish later* with
|
||||
a tooltip naming where to resume from. The plan over-claimed that no exit
|
||||
existed — one did, it was simply named for leaving rather than pausing.
|
||||
5. **The scan is a spectacle with no substance.** It animates convincingly, then
|
||||
reports four facts. The wait should be doing something useful — it is the
|
||||
natural moment to reveal the plan.
|
||||
6. **No confirmation that anything is local.** The reassurance is present in the
|
||||
copy but not as a visible, verifiable fact at the moment of the download.
|
||||
7. **Step 5 ends flat.** The most satisfying moment in the product is a check
|
||||
mark and a button.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance — remove anxiety at each step
|
||||
1. ~~Open with the shape of the task.~~ **Done.** Verified rendering as
|
||||
`5 steps · about 2 minutes · nothing leaves this computer` for the default
|
||||
model. The estimate follows the formula `max(2, 1 + downloadGb × 1.2)` —
|
||||
2 min for the 0.5 GB default, 13–16 min for the 9.6–12.9 GB options — but
|
||||
**the model switch itself is unverified in the UI**, because setup is already
|
||||
complete on this machine and the wizard renders its completed path.
|
||||
2. **The step rail shows all step names with icons**, and the current one
|
||||
expanded, so the map is legible rather than a set of tick marks.
|
||||
3. ~~Real time estimates on download and install.~~ **Done**, and the step-3
|
||||
fields now state their consequences.
|
||||
4. **Step 1's scan reveals its result progressively** and ends on a summary that
|
||||
says plainly what the machine can and cannot do — the same fit language the
|
||||
Models plan introduces, so the vocabulary is learned once.
|
||||
5. **"Finish later" is explicit** and says what will and will not work until
|
||||
setup completes. Today the modal can be dismissed without telling you the
|
||||
consequence.
|
||||
|
||||
### Fluidity
|
||||
6. **Step 5 becomes a hand-off, not a dead end**: the ready state names the model,
|
||||
states that it is loaded, and offers the first prompt directly in the modal —
|
||||
or closes into Chat with the composer focused.
|
||||
7. **The completion mark settles** with the existing `st-markpop`, then the modal
|
||||
fades rather than cutting.
|
||||
|
||||
## Motion
|
||||
|
||||
The wizard is the one place the choreographed tier is appropriate — it is seen
|
||||
once, and it sets the tone.
|
||||
|
||||
| Interaction | Spec |
|
||||
|---|---|
|
||||
| Step forward/back | Direction-aware slide, `--st-t-choreo`, already built |
|
||||
| Scan line | Loops only while scanning; stops entirely when done |
|
||||
| Check marks settling | `st-checkin` staggered 60 ms — built |
|
||||
| Completion | `st-markpop` spring, then a `--st-t-surface` fade of the modal |
|
||||
| Reduced motion | Every step becomes a cross-fade; the scan becomes a static progress line |
|
||||
|
||||
## Verification
|
||||
|
||||
- Assert the modal can be dismissed and **reopened with state intact**.
|
||||
- Assert every step renders a name in the rail, not just a number.
|
||||
- Assert the download step shows a time estimate.
|
||||
- `flow setup` already exists; extend it to dismiss mid-way and resume.
|
||||
@@ -0,0 +1,68 @@
|
||||
# Multiple loaded models — UI and integration handover
|
||||
|
||||
Implemented 14 October 2026 in the design app at `backups/strata`.
|
||||
|
||||
## User flow
|
||||
|
||||
Updated 14 October: **one model at a time is the default**.
|
||||
|
||||
1. Normal mode shows the model/version, optional image model (Off by default), conversation context, computer use, and Tune model / Load model. Device assignment, instance lists and combined reservations are hidden.
|
||||
2. **Tune model** applies the recommended configuration to the draft without changing loaded models. It remains an optional heuristic setup action, not a speed benchmark.
|
||||
3. **Load model** switches to the chosen model automatically, using automatic GPU placement. It becomes the chat default and the only loaded text-model instance. Users do not have to unload the previous model manually.
|
||||
4. **Expert mode > Model execution** exposes GPU assignment and **Run multiple models**, off by default. Enabling this switch explicitly keeps siblings loaded when loading another version or device assignment. Without the switch, Expert loads still keep one model at a time.
|
||||
5. A same-version/device load applies changed settings to that instance while preserving its API identity; an identical configuration is idempotent. An ordinary single-mode load removes other instances even when the selected instance is already loaded.
|
||||
6. Leaving Expert mode restores single-model loading and automatic placement. Opening/closing settings or toggling the switch does not itself unload running work; the next successful single-mode Load performs the switch. Request guards block switching while affected work is active/queued. Validation, availability and memory checks precede all simulation lifecycle mutations, so failed switches preserve the current model.
|
||||
7. Monitor and Serving show their simple single-model presentations with one model loaded. Instance selection, model lists and routing filters appear when multiple instances have actually been loaded through the advanced flow.
|
||||
|
||||
The native host explicitly reports its current single-engine and automatic-placement limitation. Multiple simulated instances are usable in the design host; real multi-process GPU inference is not implemented by this UI change. The “Design preview” label was removed from the Loaded models heading; simulation disclosures in generated responses and telemetry sources remain.
|
||||
|
||||
## The five annotations
|
||||
|
||||
| Page | Change |
|
||||
| --- | --- |
|
||||
| Monitor | All-model overview and individual model selector; loaded-instance rows identify devices; requests show the actual API model ID. Per-model context, throughput and request history are scoped separately. GPU utilization, memory, temperature, CPU and disk readings belong to devices/the host. Selecting a model selects its assigned GPUs by default. |
|
||||
| Serving | One gateway URL; all loaded API model IDs listed with copy buttons and GPU assignments. Clients specify the `model` ID. Request table has model identity, a model filter, and a model-specific connection guide. |
|
||||
| Settings > About | Removed Design examples, Chat showcase and Preview examples. Update and Privacy remain. |
|
||||
| Model setup | Detected-device selector, multiple selected GPUs, instance list, scoped unload and chat default, and combined RAM/VRAM planning. |
|
||||
| Model actions | Separate Tune model and Load model actions. Tuning does not load or restart an engine. |
|
||||
|
||||
## API contract
|
||||
|
||||
- `GET /api/runtime`: mode, capabilities, revision, default instance ID, instance list and estimated memory reservations.
|
||||
- `POST /api/runtime/plan`: `{ variantId, gpuIds, config, executionMode? }`; returns candidate memory, combined budget, `allowed` and `alreadyLoaded`. No lifecycle mutation.
|
||||
- `POST /api/runtime/load`: same body; omitted `executionMode` means `single`, and only explicit `multiple` preserves sibling instances; validates the engine configuration, requires an installed version and returns `{ state, instance }`. Native multi-instance calls are rejected.
|
||||
- `POST /api/runtime/:instanceId/unload`: refuses active/queued requests for that instance, removes its queue and releases its reservation; other instances remain.
|
||||
- `POST /api/runtime/:instanceId/default`: chooses the default for Strata chat. Explicit API requests retain their selected model.
|
||||
- SSE `runtime`: immutable runtime state after model/queue/phase/default changes.
|
||||
- `GET /v1/models`: all loaded instance API IDs. Instance ID, GPU IDs, context and simulation mode appear in metadata.
|
||||
- `POST /v1/chat/completions` and `/v1/messages`: route to the exact requested API model ID before entering the instance queue. Unknown IDs and omitted IDs when multiple instances exist return an error before streaming starts. With one loaded instance, an omitted ID remains compatible.
|
||||
|
||||
The first instance of a version uses its version ID. Additional instances of that version use suffixes such as `--2`. These runtime identities last for the host session. In single mode the loaded target becomes the chat default. The legacy `/api/models/:id/load` path also uses single-mode switching, so normal chat/model-picker loads cannot accidentally add instances. The legacy `library.loaded` field is the chat default only; it does not enumerate every loaded instance. Library variant states are projected from the instance registry. Delete requires unloading every instance of the selected version.
|
||||
|
||||
The simulated host owns a separate request queue and prompt/context state for each instance. A request on one instance can run while a different instance is active. Requests on the same instance remain serialized and cancellable. Existing request metadata carries `instanceId`, `model` and `gpuIds`.
|
||||
|
||||
## Memory and telemetry
|
||||
|
||||
System RAM is a single pool shared by all instances. Unified GPU memory uses that same pool and is not added to physical RAM. Dedicated VRAM is budgeted separately for each GPU; spare capacity on an unselected GPU cannot satisfy another GPU's reservation.
|
||||
|
||||
Planning includes weights, context/KV cache, parallel request slots, runtime overhead and one host headroom reserve. The largest requested headroom is used once for the host. Pageable weights can share remaining RAM and spill to SSD in the design planner. Fixed context/runtime allocations cannot spill. Non-pageable/locked weights cannot use that escape path. An impossible plan disables Load and preserves existing instances.
|
||||
|
||||
Reservations are estimates, not observed allocations. Equal splitting across selected dedicated GPUs is a planning assumption. The current metadata, especially hybrid/MoE context storage, is approximate. The design planner supports automatic/all-layer or CPU placement; explicit partial-layer placement needs a verified engine allocation model and must not be treated as a guaranteed fit. Monitor host readings retain their measured/illustrative/unavailable sources. All-model context fill does not add independent context windows; users select an instance for context detail. The speed card refers to the last completed request when idle; live simulated throughput is left unavailable until a result is reported. Per-instance speed histories and caches are left unavailable instead of copying another model's telemetry.
|
||||
|
||||
## Native engine integration still required
|
||||
|
||||
1. Refactor `supervisor.mjs` into a factory keyed by instance ID. Each process owns a distinct private port, status, cancellation, logs, metrics and failure cleanup. Validate adapter-specific device visibility and tensor/layer split flags using stable hardware IDs. CPU-only placement must explicitly disable GPU offload.
|
||||
2. Refactor the inference bridge to dispatch to the selected instance's supervisor URL and immutable configuration. Eliminate use of a single global backend/configuration for routing. Keep the public gateway port, API key, local sharing and tunnel settings global.
|
||||
3. Allocate/reserve memory atomically during load, verify free dedicated VRAM and shared system memory, and reconcile reservations with observed allocation. Model metadata is a preview until the adapter verifies weights, KV/image workspaces, scratch buffers and placement. Account for other applications; do not present capacity arithmetic as measured free memory.
|
||||
4. Separate per-instance monitor state, prompt reuse, KV/conversation cache and device telemetry. Do not attribute a whole GPU's utilization or shared RAM reading exclusively to one model using it. Retain device IDs and request-to-instance identity in snapshots and logs.
|
||||
5. Isolate settings changes and lifecycle operations. Loading/unloading/restarting one engine must preserve healthy siblings. Keep targeted request guards and queued-dispatch validation. Clean up ports, processes and reservations on startup failure/exit.
|
||||
6. Decide explicit persistence/autostart policy. Current extra design instances are session-only. Migrate legacy singleton state to one default instance without promising other instances survived a host restart.
|
||||
7. Enable `capabilities.multipleModels` and `deviceAssignment` only after the native adapter supports these paths. Preserve the honest fallback for single-engine installations.
|
||||
|
||||
The optional image-model asset library remains separate. Real Qwen-Image generation, companion encoder/VAE/adapters, role-aware routing and combined image working-memory reservations are still required. This change does not make downloaded image GGUF assets a real inference engine or list them as text API models.
|
||||
|
||||
## Files and checks
|
||||
|
||||
Main implementation: `server/runtime-models.mjs`, runtime routes in `server/index.mjs`, request metadata in `server/serving.mjs`, `src/components/RunningModels.tsx`, `src/lib/runtime-models.ts`, ModelRun/Monitor/Serving/Settings, and shared model-run CSS.
|
||||
|
||||
Checks: TypeScript and production build; runtime service tests for two GPUs, idempotence, routing, per-instance queues, targeted unload, invalid devices, shared RAM and native capability gates; Monitor scope isolation; disposable-host HTTP tests for both protocols, simultaneous independent requests, model listing, invalid/ambiguous routing and targeted lifecycle.
|
||||
@@ -0,0 +1,99 @@
|
||||
# 10 · Sidebar and navigation
|
||||
|
||||
**File** `src/app/Sidebar.tsx` (417 lines — the largest app-level surface)
|
||||
|
||||
Restructured last round to the harness shape: logo → hide → New session → Skills
|
||||
→ Workspaces → footer. It is the spine of the app and the thing a user touches
|
||||
most often after the composer.
|
||||
|
||||
## What it is today
|
||||
|
||||
- **Collapse row** with the `panel` icon, its own row under the logo.
|
||||
- **New session** in the accent material, using the `new-chat` duotone glyph.
|
||||
- **Skills** as a single flat top-level row.
|
||||
- **Workspaces** — header with search / collapse-all / add-folder, then a tree of
|
||||
workspaces with sessions nested under each, relative-time meta, hover-reveal
|
||||
delete.
|
||||
- **Footer** — engine chip, Monitor, Serving, `… More` (Models, Engine tuning,
|
||||
Settings), theme toggle.
|
||||
- **Rail mode** at 64 px, with labels hidden and titles as tooltips.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. **Skills sits alone.** One flat row between New session and Workspaces. It was
|
||||
meant to pair with Plugins, which was cut, so the row now reads as an orphan.
|
||||
2. **"Hide sidebar" is a permanent label.** Once collapsed, the control that
|
||||
restores it is an icon in a 64 px rail; the expanded label is doing no work
|
||||
after the first week.
|
||||
3. **The `… More` label is inherited from the harness**, where it holds a dozen
|
||||
items. Ours holds three. It is a menu with a shrug for a name.
|
||||
4. ~~No pinning.~~ **Fixed.** `Session.pinned` had existed in the type since the
|
||||
beginning and was never written to. Rows now carry a pin control, pinned
|
||||
conversations sort above recency within their workspace, and the pin stays
|
||||
visible once set. Verified: pinning the older of two conversations lifts it
|
||||
to the top. **Archive now ships too** — see below.
|
||||
5. ~~Hover-reveal delete is hard to discover.~~ **Fixed.** Right-click opens a
|
||||
menu (Pin · Rename · Delete) and `Delete`/`Backspace` on a focused row arms
|
||||
the confirm, so the destructive action is reachable without a pointer and
|
||||
still requires confirming. The hover button remains for pointer users.
|
||||
6. **The engine chip is the fourth place** the loaded model is reported (header,
|
||||
sidebar, telemetry, Monitor).
|
||||
7. ~~No keyboard traversal.~~ **Fixed.** Arrow keys move between rows in visual
|
||||
order, Home and End jump to the ends, and entering with no row focused starts
|
||||
from the appropriate end. Verified: `ArrowDown` walks *Skills → workspace →
|
||||
conversation → conversation → Monitor*, and `End` reaches *More*.
|
||||
8. **The theme toggle is an icon with no label**, next to a text row, at the
|
||||
bottom where it is least expected.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance
|
||||
1. **Resolve Skills.** Either fold it into the More menu (three items becomes
|
||||
four and the orphan row disappears), or pair it with a second item. A single
|
||||
flat row is the one layout that reads as unfinished either way.
|
||||
2. **Rename `… More` to `Settings`**, which is what three of its items are, and
|
||||
move Engine tuning and Models where they already are. If a menu is needed,
|
||||
name it for its contents.
|
||||
3. **Pin and archive sessions.** Pinned rows sit above the workspace tree;
|
||||
archive hides without deleting. `Session.pinned` already exists in the type
|
||||
and is unused.
|
||||
4. ~~Make delete discoverable.~~ **Done**, along with *Rename*, *Pin* and
|
||||
*Archive*, which had no affordance at all.
|
||||
|
||||
Archive is distinct from delete on purpose: archiving is *"done with this for
|
||||
now"*, deleting is *"never want to see it again"*, and conflating the two
|
||||
makes people keep things they have finished with. An archived conversation
|
||||
leaves the list but **stays findable by search** — typing a name is an
|
||||
explicit request to find it, and hiding it then would be the opposite of
|
||||
helpful. Verified both directions.
|
||||
5. **Full keyboard traversal** — `↑`/`↓` between rows, `→`/`←` to expand and
|
||||
collapse, `Enter` to open, `⌫` to delete. The tree is a tree; it should behave
|
||||
like one everywhere, including the two other trees in the app.
|
||||
|
||||
### Hierarchy
|
||||
6. **One place reports the model.** Keep the engine chip — it is the most useful
|
||||
of the four — and let the header chip and telemetry reference it rather than
|
||||
restate it.
|
||||
|
||||
### Fluidity
|
||||
7. **Session rows animate into their workspace group** when created, so the
|
||||
connection between "New session" and the list is visible.
|
||||
8. **The rail transition already animates** the grid track; make sure labels
|
||||
cross-fade rather than being clipped, which is visible at 64 px today.
|
||||
|
||||
## Motion
|
||||
|
||||
| Interaction | Spec |
|
||||
|---|---|
|
||||
| Rail collapse | grid track 268 ↔ 64 px, `--st-t-surface` — built |
|
||||
| Tree expand/collapse | grid track `0fr → 1fr`, `--st-t-local` — built |
|
||||
| New session appearing | `st-enter`, `--st-t-local`, 6 px |
|
||||
| More menu | `st-enter`, `--st-t-control`, 6 px — built |
|
||||
| Row delete | Row collapses to zero height via grid track, `--st-t-local`, then unmounts |
|
||||
|
||||
## Verification
|
||||
|
||||
- Assert every row is reachable **and actionable by keyboard alone**.
|
||||
- Assert the rail restores to the state it was left in across a reload.
|
||||
- Assert session rows never exceed a bounded list without pagination or archive.
|
||||
- `flow sidebar`: collapse, expand, open More, create a session, delete it.
|
||||
@@ -0,0 +1,83 @@
|
||||
# 11 · Command palette
|
||||
|
||||
**Shortcut** `⌘K` · **File** `src/app/CommandPalette.tsx` (222 lines)
|
||||
|
||||
The keyboard path to everything. For a power user it replaces the sidebar
|
||||
entirely; for a beginner it is the fastest way to discover what exists.
|
||||
|
||||
## What it is today
|
||||
|
||||
- **A modal with a bare search field** (`.st-input--bare`) and grouped results.
|
||||
- **Groups** — Go to, Engine, Model, plus command entries.
|
||||
- **Always mounted** and driven by `data-open`, so it animates both ways.
|
||||
- **Portal-free** — it renders inside `.app`, and the modal is opaque.
|
||||
- **Fuzzy-ish matching**, cursor movement with `↑`/`↓`, `Enter` to run, `Esc` to
|
||||
close, focus returned to the trigger on close.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. ~~Matching is prefix-based on the label.~~ **Fixed.** `src/lib/fuzzy.ts` adds
|
||||
subsequence matching with a score that rewards consecutive characters and word
|
||||
starts, returning the matched indices so hits can be explained. Verified:
|
||||
`mtr` → **Monitor**, `wsp` → **Workspace**, `dl` → **Models**, each with the
|
||||
matched characters highlighted. The plan's own example was wrong — `mtx`
|
||||
cannot match *Monitor*, which has no `x` — and was replaced with `mtr`.
|
||||
2. ~~Commands and destinations are mixed.~~ **Fixed.** `>` scopes to commands,
|
||||
`#` to conversations, `@` to workspaces, and the empty state names all three.
|
||||
Verified: `>unload` → *Unload model*, `@` → the workspace.
|
||||
3. **No recent or frequent section.** The first row is always `Chat`, whether or
|
||||
not that is where anyone goes.
|
||||
4. ~~Results do not show what they will do.~~ **Fixed.** Entries carry a `danger`
|
||||
flag; restart, unload and re-run-setup render with a danger-toned icon and a
|
||||
distinct label weight, so an action that changes something does not read as
|
||||
navigation.
|
||||
5. ~~No hint of the shortcut.~~ **Fixed.** A `keys` field renders real `<kbd>`
|
||||
chips, starting with `⌘ /` on Keyboard shortcuts.
|
||||
6. **The accent colour is used for the selected row**, which conflicts with the
|
||||
rule that accent marks the primary action — in a list, selection is not
|
||||
primary action.
|
||||
7. **Empty state is a single line** with no suggestion of what can be typed.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance
|
||||
1. **Fuzzy matching with match highlighting** — subsequence matching with the
|
||||
matched characters emphasised, so `mtx` finds *Monitor* and shows why.
|
||||
2. **Scoped prefixes**: `>` for commands, `#` for conversations, `@` for
|
||||
workspaces. Three prefixes cover everything the palette can reach.
|
||||
3. **A Recents group at the top**, from actual navigation history, collapsed once
|
||||
the user starts typing.
|
||||
4. **Destructive commands are marked** with the danger tone and their effect
|
||||
stated (`Restart engine — reloads the model, about 20 s`).
|
||||
5. **Show the shortcut** on the right of every entry that has one, so the palette
|
||||
teaches the keyboard rather than replacing it.
|
||||
6. ~~Search conversations.~~ **Fixed.** Sessions and workspaces are palette
|
||||
entries, reached with `#` and `@`.
|
||||
|
||||
### Hierarchy
|
||||
7. **Selection uses the neutral raised surface**, not the accent. Accent stays
|
||||
for the primary action on a screen.
|
||||
|
||||
## Motion
|
||||
|
||||
| Interaction | Spec |
|
||||
|---|---|
|
||||
| Open/close | `st-enter` / reverse, `--st-t-local` — built and interruptible |
|
||||
| Filtering | Rows fade, `--st-t-control`; results do not animate position |
|
||||
| Selection moving | Background only, `--st-t-micro`. `↑`/`↓` must not animate |
|
||||
| Scoped prefix entered | Group headers collapse, `--st-t-control` |
|
||||
|
||||
Selection deliberately does **not** move smoothly: at keyboard repeat rates an
|
||||
animated highlight lags the key and feels broken.
|
||||
|
||||
## Verification
|
||||
|
||||
- Shipped as `npm run flow palette`. It asserts focus lands inside on open and
|
||||
stays inside after fourteen `Tab` presses, then checks `mtr` → *Monitor* with
|
||||
the match highlighted, `tune` → *Engine tuning* by alias, `>unload` scoped, and
|
||||
`@` → the workspace.
|
||||
- **Three of the original items were also fixed beyond the plan:** aliases
|
||||
(`tune`, `api`, `stats` find entries whose labels do not contain them), which
|
||||
the plan had not anticipated but which the alias test immediately exposed.
|
||||
- Assert destructive entries render a danger marker.
|
||||
- Assert the palette is fully operable by keyboard with no pointer.
|
||||
@@ -0,0 +1,92 @@
|
||||
# 12 · Context rail
|
||||
|
||||
**File** `src/app/ContextPanel.tsx` (172 lines) · **Opened from** the Chat header
|
||||
|
||||
The right-hand rail answering "what is this turn working with?". It was rebuilt
|
||||
last round into an animated grid track and tightened so it no longer clips.
|
||||
|
||||
## What it is today
|
||||
|
||||
- **A grid track** that animates `0 → 340 px` on `--st-t-surface`, with the panel
|
||||
staying mounted and `inert` while hidden.
|
||||
- **Five cards** — Context window (gauge + bar), This conversation (model,
|
||||
messages, tokens, tool calls), Tools in reach (four tools with scope badges),
|
||||
Engine (speeds, uptime, links), and Hardware.
|
||||
- **Content scrolls** — 1083 px of content in 959 px of rail.
|
||||
- **A "Hide" button** in the header.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. ~~The rail still scrolls.~~ **Fixed.** Sections collapse and animate on a grid
|
||||
track, and the restructure means the rail **no longer scrolls at all** with
|
||||
everything open (`scrollHeight === clientHeight` at 1110 px height). Verified
|
||||
mid-collapse: 162.9 px → 9.6 px → 0 px.
|
||||
2. **"Hide" is a verb in a header**, where a close affordance is expected. It
|
||||
also competes with the transcript's own content for attention.
|
||||
3. **The rail duplicates the telemetry popovers.** Context window, tokens and
|
||||
tool calls all appear in both, at different precisions.
|
||||
4. ~~Tools in reach is a fixed list of four.~~ **Fixed.** Rows show how many
|
||||
times each tool has actually been used in this conversation, unused ones
|
||||
recede to a quieter weight, and the footer counts the session's calls. A list
|
||||
that never changes is documentation; this is context.
|
||||
5. **Hardware appears in the rail and on Monitor**, computed independently.
|
||||
6. **No section is collapsible**, so five cards must all be scrolled past to
|
||||
reach the fifth.
|
||||
7. **The rail has no empty state.** With no conversation it shows zeros rather
|
||||
than saying what it would show.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance — make it about *this* conversation
|
||||
1. ~~Tools in reach reflects reality.~~ **Done.** Verified: after one read, *Read
|
||||
file* shows `Used 1×` and the other three keep their catalogue descriptions at
|
||||
a muted weight.
|
||||
2. ~~Remove the duplication with the telemetry popovers.~~ **Diagnosed and
|
||||
partly fixed.** The rule — *agree exactly, or appear in only one* — immediately
|
||||
found a disagreement: the rail printed the context maximum as **32K** and the
|
||||
popover as **33k**, the same number through two formatters (÷1024 and ÷1000).
|
||||
Both now use the token formatter and read **32K**. The remaining overlap
|
||||
(message counts and tool calls appear in both) is deliberate: the rail's
|
||||
*This conversation* is a narrative summary and the popover is a counter
|
||||
readout, and they now agree.
|
||||
3. ~~Collapsible sections.~~ **Done.** Everything open by default — collapsing is
|
||||
for getting past a section, not for hiding information on first sight.
|
||||
4. **An honest empty state** — what the rail will show once there is a
|
||||
conversation, rather than a set of zeros.
|
||||
|
||||
### Hierarchy
|
||||
5. ~~Invert the card weight.~~ **Done.** Five bordered, elevated cards competed
|
||||
with the transcript they describe. The sections drop the card chrome entirely
|
||||
— no fill, no shadow, no border — and are separated by a hairline, with the
|
||||
panel itself keeping one surface so the rail reads as a single object rather
|
||||
than a stack of fragments. Verified: section background transparent, shadow
|
||||
`none`, panel opaque.
|
||||
|
||||
**This exposed a duplication I had introduced.** Giving the sections heads (an
|
||||
earlier round) left the metric inside still carrying its own label, so the
|
||||
panel literally read *"Context window / Context window / 6%"*. Removed, and
|
||||
the flow now asserts the phrase appears exactly once.
|
||||
6. **Replace "Hide" with a close icon** in the header corner, with the panel
|
||||
toggle in the Chat header remaining the primary control.
|
||||
|
||||
### Fluidity
|
||||
7. **Sections expand and collapse on a grid track**, matching the workspace trees.
|
||||
8. **The gauge and bars animate to their value on open** rather than snapping, so
|
||||
the rail reads as a live instrument rather than a static report.
|
||||
|
||||
## Motion
|
||||
|
||||
| Interaction | Spec |
|
||||
|---|---|
|
||||
| Rail open/close | grid track 0 ↔ 340 px, `--st-t-surface` — built, interruptible |
|
||||
| Section expand | grid track `0fr → 1fr`, `--st-t-local` |
|
||||
| Gauge on open | `stroke-dasharray` to value, `--st-t-choreo`, once |
|
||||
| Value updating live | No transition on the number; the bar it drives eases `--st-t-local` |
|
||||
|
||||
## Verification
|
||||
|
||||
- Assert the rail content **fits without scrolling at 1110 px height** once
|
||||
sections are collapsible.
|
||||
- Assert every figure shown in both the rail and a telemetry popover is
|
||||
**identical**, or appears in only one.
|
||||
- Assert the rail is `inert` when hidden — already correct; keep under test.
|
||||
@@ -0,0 +1,118 @@
|
||||
# 13 · Overlays — drawers, menus, selects, popovers
|
||||
|
||||
**Files** `SamplingDrawer.tsx`, `Sidebar.tsx` (More menu), `ui.tsx` (Select),
|
||||
`TelemetryPopover.tsx`, `Shortcuts.tsx`
|
||||
|
||||
The surfaces that float above content. All were converted to the same pattern
|
||||
last round: **stays mounted, driven by `data-open`, animates both ways, portals
|
||||
out of any glass ancestor**.
|
||||
|
||||
## What they are today
|
||||
|
||||
| Surface | Container | Material | Dismissal |
|
||||
|---|---|---|---|
|
||||
| Sampling drawer | `.st-drawer.sheet` | regular | Esc, scrim, Close |
|
||||
| More menu | `.menu` | regular | click-away, Esc |
|
||||
| Select popup | `.select__pop` | regular | select, click-away, Esc, scroll |
|
||||
| Telemetry popover | `.telepop` | regular | click-away, Esc, scroll |
|
||||
| Shortcuts dialog | `.modal` | opaque + specular | Esc, scrim |
|
||||
| Command palette | `.modal` | opaque + specular | Esc, scrim |
|
||||
|
||||
Every one is portalled where it could otherwise nest inside glass, and
|
||||
`npm run luminance` fails the build if that ever regresses.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. ~~Six overlay types, three different dismissal grammars.~~ **Measured, and
|
||||
documented here.** The plan guessed at two grammars; there are three, and the
|
||||
third is the interesting one.
|
||||
|
||||
| Overlay | Escape | Outside click | Scroll |
|
||||
|---|---|---|---|
|
||||
| Command palette | closes | closes | stays |
|
||||
| Shortcuts | closes | closes | stays |
|
||||
| Sampling drawer | closes | — | stays |
|
||||
| Telemetry popover | closes | closes | **closes** |
|
||||
| Select popup | closes | closes | **repositions** |
|
||||
| Menus (More, session) | closes | closes | stays |
|
||||
|
||||
The rule beneath it: **an overlay anchored to content follows or leaves with
|
||||
that content; one that is not anchored ignores scrolling.** A telemetry
|
||||
popover is a readout of a row that has just scrolled away, so it closes. A
|
||||
Select is a control you are mid-interaction with, so it moves with its trigger
|
||||
rather than discarding your place. Modals are not anchored to anything, so
|
||||
scroll is none of their business.
|
||||
|
||||
**Measuring this took three attempts, and the first two were wrong.** Both
|
||||
reported "scroll: stays" for every overlay — because the transcript was
|
||||
already scrolled to its maximum, so `scrollTop += 80` clamped to no movement
|
||||
and no scroll event ever fired. A test that asserts nothing happened, when
|
||||
nothing was attempted, is the most convincing kind of wrong.
|
||||
2. ~~None of them trap focus.~~ **Wrong — they all do.** Measured against the
|
||||
*visible* overlay: the palette, the shortcuts dialog and the sampling drawer
|
||||
each land focus inside on open and keep it there across 18 Tab presses.
|
||||
`useSurfaceFocus` has done this since the first pass; the plan asserted the
|
||||
opposite without testing. (Testing this needs care: querying `.modal` finds
|
||||
the hidden palette rather than the open dialog, which is how the claim
|
||||
survived — an early probe of mine "confirmed" the bug the same wrong way.)
|
||||
3. **The Select popup is the only one without a visible focus ring on its active
|
||||
option** when driven by keyboard — `data-active` sets a background, which is
|
||||
the same treatment as hover.
|
||||
4. **No overlay is repositioned on resize** except the Select, which repositions
|
||||
on scroll and resize.
|
||||
5. **Escape precedence is implemented in two places** — the App key handler and
|
||||
each overlay — with the ordering implicit rather than stated.
|
||||
6. ~~Toasts have no tray.~~ **Fixed.** The stack caps at three — further toasts
|
||||
displace the oldest rather than pushing everything off-screen — and a hovered
|
||||
or focused toast has its dismissal clock stopped and restarted on leave, so
|
||||
reading one does not race its own timer. Verified: five pushes leave three on
|
||||
screen, and a hovered toast is still alive at 6.3 s against a 5.2 s timer.
|
||||
7. **No overlay announces itself** beyond `role="dialog"`; none uses
|
||||
`aria-modal` with a labelled heading consistently.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance — one grammar, written down
|
||||
1. **Document the dismissal rules** in the interaction guidelines: *transient
|
||||
anchored surfaces (menu, select, popover) close on scroll; modal surfaces do
|
||||
not; everything closes on Escape and click-away.* Then verify it.
|
||||
2. **Focus management for every modal surface**: focus moves into the surface on
|
||||
open, is trapped while open, and returns to the invoking control on close. The
|
||||
`Select` already returns focus; the rest do not trap.
|
||||
3. **A visible keyboard focus ring** inside listbox popups, distinct from the
|
||||
hover background — hover and keyboard selection must not look identical.
|
||||
4. **Centralise Escape precedence**: overlay stack first, then focus mode, then
|
||||
nothing. One place decides, and the rule is stated in the guidelines.
|
||||
5. ~~Toasts gain pause-on-hover and a stack cap.~~ **Done.** The oldest is
|
||||
dropped rather than collapsed into a count — a counter the user cannot open is
|
||||
not worth the space it takes.
|
||||
|
||||
### Fluidity
|
||||
6. **Every anchored surface grows from its anchor** rather than the window edge —
|
||||
`transform-origin` set from the trigger's position, so a menu from the bottom
|
||||
bar opens upward *from that bar*.
|
||||
7. ~~Exit animations for modals.~~ **Already correct.** Measured: on `Escape` the
|
||||
modal passes through opacity **0.35** at 90 ms before settling at 0 with
|
||||
`visibility: hidden`. The plan asserted they "cut out" without checking;
|
||||
because they stay mounted and are driven by `data-open`, the discrete
|
||||
visibility transition gives them a real exit already.
|
||||
|
||||
## Motion
|
||||
|
||||
| Surface | Enter | Exit |
|
||||
|---|---|---|
|
||||
| Drawer | slide 20 px + fade, `--st-t-local` | reverse, interruptible |
|
||||
| Menu / popover | 6 px lift + fade, `--st-t-control` | reverse |
|
||||
| Select popup | 4 px lift + fade, `--st-t-control` | fade only |
|
||||
| Modal | scale .98 + fade, `--st-t-local` | currently instant — needs a reverse |
|
||||
| Toast | 10 px lift, `--st-t-local` | 6 px, `--st-t-control` |
|
||||
|
||||
All collapse to opacity-only under reduced motion.
|
||||
|
||||
## Verification
|
||||
|
||||
- New `flow overlays2`: opens each surface, asserts focus lands inside, tabs
|
||||
past the last control and asserts focus stays trapped, then closes and asserts
|
||||
focus returns to the trigger.
|
||||
- Assert no anchored surface overflows the viewport at 900 px — the telemetry
|
||||
popover clamp is the model to copy.
|
||||
@@ -0,0 +1,90 @@
|
||||
# 14 · Empty, loading and error states
|
||||
|
||||
**Across every screen** — no single file
|
||||
|
||||
The states nobody designs and everybody sees. For an audience that finds
|
||||
computers intimidating, an empty screen is the most likely place to give up, and
|
||||
a silent failure is the most likely place to lose trust.
|
||||
|
||||
## What is today
|
||||
|
||||
- **`Empty`** is a real component (icon, title, body, optional action) used on
|
||||
Chat, Models, Serving, Skills, Monitor, Workspace.
|
||||
- **`BootSkeleton`** covers the first paint.
|
||||
- **Errors** surface as toasts and as an inline error on the failed message.
|
||||
- **Empty states distinguish "nothing yet" from "nothing matches"** on Skills and
|
||||
Workspace — the right instinct, applied inconsistently.
|
||||
- **Loading** is a spinner or an indeterminate `Bar` depending on the surface.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. **Empty states do not say what to do next, only what is absent.** Several have
|
||||
an action, several do not.
|
||||
2. **No empty state exists on Monitor or Serving for a first run** beyond a
|
||||
generic message; neither points at the step that would fill them.
|
||||
3. ~~A failed model download leaves a row in an ambiguous state.~~ **Wrong, and
|
||||
the real gap was different.** `v.error` already renders on the row. What was
|
||||
missing is what to *do* about it: there was no Retry anywhere in the app
|
||||
except Chat's *Ask again*, so a failed download was a dead end and the reader
|
||||
had to work out that the Download button was also the retry. Failed rows now
|
||||
carry the reason **and** a *Try again* action together.
|
||||
4. **No retry affordance on failure.** The error is reported, never actionable.
|
||||
5. **Loading has no time expectation.** Downloads show a percentage but not how
|
||||
long; scans show a line with no sense of duration.
|
||||
6. **The skeleton does not match the final layout**, so the first paint jumps
|
||||
when real content arrives.
|
||||
7. ~~Offline / engine-unreachable has no dedicated state.~~ **Fixed.**
|
||||
`connection` had been tracked in the store since the beginning and was
|
||||
rendered nowhere, so a dead host looked exactly like an idle one — every panel
|
||||
simply empty, with no statement that anything was wrong. A bar now names the
|
||||
problem in plain language and offers a reconnect. Verified both ways: with the
|
||||
host killed it reports `offline`, and with it running the bar is absent.
|
||||
8. **Skill and Workspace empties have an action; Monitor and Serving do not.**
|
||||
The pattern exists and is not applied.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance — every state says what to do
|
||||
1. **A state checklist per screen**: *first run (nothing exists yet)* ·
|
||||
*filtered to nothing* · *engine unreachable* · *operation failed*. Six screens
|
||||
× four states is twenty-four states, and today about eight are handled.
|
||||
2. **Every empty state carries exactly one action** that leads to the thing that
|
||||
would fill it. Monitor's empty should offer "Send a prompt", not describe
|
||||
itself.
|
||||
3. ~~Errors carry a way out.~~ **Fixed** for the actions that can fail today.
|
||||
Engine failures reported only through a toast, which is gone in 5.2 s; the
|
||||
failure is now *also* recorded and rendered in place, with the retry on the
|
||||
surface that failed. Verified against a deliberately aborted restart: the
|
||||
toast had expired by 8.2 s and the inline error remained, retry re-reported
|
||||
the failure while it persisted, and **cleared once the request succeeded** —
|
||||
so it is a real retry, not a re-render. Model load failures still report by
|
||||
toast alone.
|
||||
4. ~~An explicit engine-unreachable state.~~ **Done** — driven by the existing
|
||||
event-stream status rather than a separate health poll, so it reacts the
|
||||
moment the stream drops.
|
||||
5. **Time expectations on every operation longer than two seconds**, computed
|
||||
from observed rate where possible.
|
||||
|
||||
### Fluidity
|
||||
6. **Skeletons that match the final layout**, so nothing jumps. Build the
|
||||
skeleton from the real component's box model.
|
||||
7. **Loading resolves by cross-fade, never by a jump** — the content fades in over
|
||||
the skeleton on `--st-t-local`.
|
||||
|
||||
## Motion
|
||||
|
||||
| State | Spec |
|
||||
|---|---|
|
||||
| Skeleton → content | Cross-fade, `--st-t-local`. No layout movement |
|
||||
| Empty state appearing | `st-enter`, `--st-t-local`, 8 px — once, not per element |
|
||||
| Error appearing | `st-enter`, `--st-t-control`, 6 px; stays until dismissed |
|
||||
| Retry in progress | The button becomes busy in place; no spinner elsewhere on screen |
|
||||
| Indeterminate bar | Loops only while the operation runs, and stops the instant it ends |
|
||||
|
||||
## Verification
|
||||
|
||||
- New `flow states`: force each of the four states per screen and assert an action
|
||||
is present in the empty states and a retry in the failures.
|
||||
- Assert no operation over two seconds lacks a time expectation.
|
||||
- Assert the skeleton and the loaded layout have **identical box geometry** — a
|
||||
jump of more than 2 px is a failure.
|
||||
@@ -0,0 +1,100 @@
|
||||
# 15 · Motion and fluidity
|
||||
|
||||
**Across the app** · **Rules** [interaction-guidelines.md](../interaction-guidelines.md) · **Harness** `scripts/motion.mjs`
|
||||
|
||||
Motion is the layer that makes the app feel considered. It is also the layer most
|
||||
able to make a machine running a language model feel slow, so it is rationed
|
||||
deliberately.
|
||||
|
||||
## What is today
|
||||
|
||||
- **One scale**: 100 / 160 / 240 / 320 / 460 ms, one standard curve, springs only
|
||||
for direct manipulation.
|
||||
- **Twenty keyframes**, down from twenty-three, most entrances collapsed into two
|
||||
shared recipes.
|
||||
- **Route changes morph** through `startViewTransition`, including a shared
|
||||
element where one exists.
|
||||
- **Three grid-track animations** — sidebar rail, context rail, workspace tree.
|
||||
- **Interruptible overlays** throughout, proven by frame-sampled contact sheets.
|
||||
- **Reduced motion substitutes opacity for movement**, verified: `transform: none`
|
||||
and `opacity: 1` under the OS setting.
|
||||
- **Nothing animates during generation** except the caret and the status dot.
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. **Progress and gauge fills are not on the scale everywhere.** Some jump to
|
||||
their value; some ease. The inconsistency is visible when two update together.
|
||||
2. **The `st-enter` recipe carries nearly every entrance**, which makes unrelated
|
||||
surfaces move identically. A palette and a toast should not arrive the same way.
|
||||
3. **No motion exists for the most common action** — sending a message. The user
|
||||
message simply appears.
|
||||
4. ~~Nothing acknowledges a completed generation when scrolled away.~~ **Fixed.**
|
||||
A reply that finishes off screen had no way to say so — the text simply
|
||||
stopped arriving. The jump-to-latest pill now dips once, **on opacity alone**,
|
||||
so the cue is noticed without anything moving and without pulling the eye off
|
||||
what the reader is actually reading. Verified: the cue fires with `st-cue` on
|
||||
the `--st-t-choreo` token. Under reduced motion it becomes a colour change
|
||||
rather than a pulse, so the acknowledgement is not lost.
|
||||
5. **Two loops can run simultaneously** — the busy dot and a progress bar — where
|
||||
the rule allows one moving thing per region.
|
||||
6. ~~No motion budget is measured.~~ **Fixed for the loop budget.**
|
||||
`scripts/motion.mjs` now checks **one loop per region** across nine routes in
|
||||
both themes, grouping by the nearest card, panel or table so a spinner in a
|
||||
list row is judged against that row rather than the whole screen.
|
||||
|
||||
Proven non-vacuous: a second loop inside a settings card reports
|
||||
`light · settings: 20 loops at once in "st-card.st-card--flush"` and exits 1;
|
||||
removing it returns to 0.
|
||||
|
||||
**Two bugs in the check itself, both found by trying to prove it.** It only
|
||||
covered seven routes, so the probe I first used to test it — on Settings —
|
||||
could not have failed. And it toggled the theme by clicking a control that
|
||||
the setup modal covers, which timed out on that route. Both fixed; the check
|
||||
now sets the theme the way the app does and covers every reachable route. Frame cost is asserted only for lensing,
|
||||
which was declined. The rest is assumed cheap.
|
||||
7. **The reading-progress hairline animates on scroll but nothing else does**,
|
||||
though the header hairline and title collapse share the same trigger — three
|
||||
scroll-driven effects on one element tree, never measured together.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance
|
||||
1. **Finish the scale's application**: every value-driven fill eases on
|
||||
`--st-t-local`; every state change is a token on `--st-t-control`; nothing
|
||||
jumps except a value the user typed.
|
||||
2. **Differentiate entrances by kind**, not by taste: *transient* surfaces lift
|
||||
(6 px), *modal* surfaces scale (0.98), *inline* content fades (0 px). Three
|
||||
recipes, each with a reason.
|
||||
3. ~~A send acknowledgement.~~ **Wrong — it already had one.** The claim was that
|
||||
"the most frequent action in the app currently has no response at all", but a
|
||||
sent message animates in on `st-enter`: **6 px lift over 240 ms**, measured.
|
||||
The plan's proposed values (4 px on `--st-t-control`, 160 ms) differ by degree,
|
||||
not by existence, and the existing values sit on the scale. No change made.
|
||||
4. ~~A completion cue.~~ **Done**, on opacity only.
|
||||
|
||||
### Discipline
|
||||
5. **One loop per region, enforced**: the audit gains a rule that two elements
|
||||
with running infinite animations may not share a stacking context.
|
||||
6. **A motion budget check** covering the three scroll-driven effects together:
|
||||
p95 frame time while scrolling must stay within 1.2× of a build with them
|
||||
disabled.
|
||||
|
||||
## Motion
|
||||
|
||||
The reference table the audit enforces:
|
||||
|
||||
| Band | Token | Travel | Use |
|
||||
|---|---|---|---|
|
||||
| micro | 100 ms | ≤ 4 px | hover, press, colour |
|
||||
| control | 160 ms | ≤ 16 px | menus, rows, small transforms |
|
||||
| local | 240 ms | ≤ 24 px | drawers, disclosure, value fills |
|
||||
| surface | 320 ms | — | rails, routes, whole panels |
|
||||
| choreographed | 460 ms | — | first run only |
|
||||
|
||||
## Verification
|
||||
|
||||
- `npm run motion` stays green: every surface reverses mid-flight.
|
||||
- New: **no two infinite animations share a stacking context**.
|
||||
- New: **p95 scroll frame time within 1.2×** of the scroll-effects-disabled build.
|
||||
- Reduced-motion sweep asserts `transform: none` on every moving element and
|
||||
`opacity: 1` on every fading one.
|
||||
@@ -0,0 +1,101 @@
|
||||
# 16 · Accessibility and long sessions
|
||||
|
||||
**Across the app** · **Harness** `npm run contrast`, `npm run measure`, `npm run luminance`
|
||||
|
||||
Two audiences that overlap more than they look: people who need the interface to
|
||||
accommodate them, and people who will sit in it for six hours. Both are served by
|
||||
the same things — contrast, size, stillness, and not being shouted at.
|
||||
|
||||
## What is today — verified, not assumed
|
||||
|
||||
| Claim | Evidence |
|
||||
|---|---|
|
||||
| Every text pairing meets WCAG AA | `npm run contrast`: **37 pairings pass**, both themes, every interactive state |
|
||||
| Contrast is measured on rendered pairings | Alpha is composited over ancestors; hover measured separately |
|
||||
| Reading measure is 68 characters | `npm run measure` at 10, 16 and 22 px, normal and focus mode |
|
||||
| Dark-mode brightness is budgeted | `npm run luminance`: no surface > 4,000 px² exceeds luminance 0.15 |
|
||||
| Reduced motion substitutes, not silences | `transform: none`, `opacity: 1` verified under the OS setting |
|
||||
| Materials are gated | Reduced-transparency and a manual override produce identical geometry |
|
||||
| Controls are capsules, surfaces are not | `npm run audit` |
|
||||
| No glass samples glass | `npm run luminance` walks every route |
|
||||
|
||||
## Where it falls short
|
||||
|
||||
1. ~~The command palette does not focus its own search field, and nothing traps
|
||||
focus.~~ **Fixed.** `src/lib/focus.ts` provides `useSurfaceFocus`, which waits
|
||||
for the surface to actually report `visible` before focusing, traps `Tab`
|
||||
inside while open, and restores the trigger on close. Measured after the fix:
|
||||
focus is on the palette input on open, is still inside after fourteen `Tab`
|
||||
presses, and returns to the trigger on `Escape`. Applied to the palette, the
|
||||
shortcuts dialog, the sampling drawer and the setup modal.
|
||||
2. **Closed overlays are correctly inert, open ones are not.** `inert={!open}` is
|
||||
applied on the palette, context rail, sampling drawer, shortcuts dialog and the
|
||||
serving sheet — so a *closed* surface is out of the tab order, which is right.
|
||||
An *open* one still lets focus walk out into the page behind it.
|
||||
3. **Landmarks are adequate; the outline is not.** One `<main>`, one `<aside>`,
|
||||
and `SectionHead` correctly renders `<h2 className="h3">`. What is missing is
|
||||
the level beneath: card titles are styled `<div>`s, so `<h2>` is the deepest
|
||||
level in the document and a screen reader cannot navigate within a section.
|
||||
4. **Toast announcements exist; engine and stream announcements do not.**
|
||||
`.st-toasts` carries `aria-live="polite"` and is correct. The engine phase and
|
||||
the arrival of a completed response change silently.
|
||||
4. **Contrast is verified for text but not for non-text UI** — icon buttons,
|
||||
toggle tracks, borders. WCAG 1.4.11 asks for 3:1 on those and nothing measures
|
||||
them.
|
||||
5. **The reading text size tops out at 22 px** and the UI chrome does not scale
|
||||
with it — correct by design, but there is no way to scale the chrome for
|
||||
someone who needs a larger interface overall.
|
||||
6. **No high-contrast mode beyond the OS media query**, which cannot be verified
|
||||
on a machine where it is not enabled.
|
||||
7. **Long-session fatigue is handled ad hoc** — dark accent tinting, ambient
|
||||
rules, no idle loops — but nothing measures it.
|
||||
8. **The tool-approval card is the highest-stakes interaction** in the app and has
|
||||
the least generous target sizing and no visible focus order.
|
||||
|
||||
## The plan
|
||||
|
||||
### Substance
|
||||
1. ~~Fix the focus drop and add a trap.~~ **Done.**
|
||||
2. ~~Deepen the heading hierarchy.~~ **Done, and it uncovered a second defect:**
|
||||
every screen had **two `<h1>` elements**, because the decorative compact title
|
||||
copy in the scroll collapse was also an `<h1>`. It is now a `<span
|
||||
aria-hidden>`. Verified per route: one `h1` each, with `h2` and `h3` beneath.
|
||||
3. **Announce what changes without user action** — engine phase and response
|
||||
completion (`aria-live="polite"`). Toasts already do this correctly; leave
|
||||
them alone and do not announce streaming tokens.
|
||||
4. **Extend the contrast probe to non-text UI** — 3:1 for icon buttons, toggle
|
||||
tracks, input borders and focus indicators, measured the same way text is.
|
||||
5. **An interface scale** independent of the reading size: 90 / 100 / 110 / 125%,
|
||||
driving a root `--st-ui-scale` that the type and spacing tokens multiply
|
||||
through. The reading size stays conversation-only, as designed.
|
||||
|
||||
### Long sessions
|
||||
6. **A fatigue budget, measured.** Extend `npm run luminance` with a second
|
||||
assertion: in dark mode, **the total area of saturated surface on screen** must
|
||||
stay under a threshold. This is what the green-button complaint actually was,
|
||||
expressed as a number.
|
||||
7. **Contrast mode verification**: the probe runs a pass with
|
||||
`prefers-contrast: more` emulated, so the stronger-border path is tested rather
|
||||
than assumed.
|
||||
|
||||
## Motion
|
||||
|
||||
Nothing here is decorative:
|
||||
|
||||
| Concern | Rule |
|
||||
|---|---|
|
||||
| Reduced motion | Opacity substitutes for movement; loops that carry no state stop entirely |
|
||||
| Focus movement | Never animated. Focus is instant, always |
|
||||
| Live-region updates | No animation on the announced element, so the announcement is not delayed |
|
||||
| Long-session calm | One loop per region; nothing animates while generating except the caret and the status dot |
|
||||
|
||||
## Verification
|
||||
|
||||
- `npm run contrast` extended: **non-text UI at 3:1**, and a `prefers-contrast`
|
||||
pass.
|
||||
- New `flow a11y`: for each modal, assert `document.activeElement` is **inside
|
||||
the surface** on open (this fails today for the palette), then tab to the end
|
||||
and assert focus never leaves; assert every screen has a heading outline deeper
|
||||
than `<h2>`; assert the approval card is operable by keyboard alone.
|
||||
- New luminance assertion: **saturated surface area under threshold in dark mode**.
|
||||
- Manual pass with VoiceOver on Chat: sending, tool approval, completion.
|
||||
@@ -0,0 +1,72 @@
|
||||
# Local GGUF import — 14 October 2026
|
||||
|
||||
## User flow
|
||||
|
||||
Models → Version → **Use a local model…** opens a local file browser. It starts
|
||||
in the configured model directory, offers Home / Up a folder, and lets users
|
||||
paste a full folder or file path. It lists folders and GGUF files; no upload,
|
||||
copy, remote request, or weight download is involved.
|
||||
|
||||
Users choose the GGUF file. For standard split GGUFs, choosing any shard resolves
|
||||
the first shard and checks the full set in its directory. The review shows the
|
||||
name, declared architecture, quantization, total size, context limit, and file
|
||||
locations. **Use this model** saves a reference and selects it; **Load model**
|
||||
is still an explicit separate action. Normal mode retains one-model semantics.
|
||||
|
||||
Local entries appear in the Version dropdown and under **Local models** in the
|
||||
family switcher. Names can be edited during review. They do not inherit a catalog
|
||||
family's identity, accuracy claims, measured speeds, or optimization approval.
|
||||
Generic tuning uses their own GGUF geometry. New local selections begin at up
|
||||
to 32K, limited by the file's declared context and the app's supported presets.
|
||||
|
||||
## Host integration
|
||||
|
||||
- `server/gguf.mjs` reads bounded GGUF v2/v3 little-endian metadata and tensor
|
||||
directories. It skips tokenizer array contents and tensor weights, checks
|
||||
metadata/tensor bounds and expected tensor payload extents, and rejects
|
||||
truncated files, unsupported encodings, duplicate keys, and invalid geometry.
|
||||
- `server/local-models.mjs` validates text architectures, tokenizer presence,
|
||||
context, layers and attention geometry; validates split numbering/counts and
|
||||
aggregate tensor counts; and persists references atomically in
|
||||
`<dataDir>/local-models.json`. IDs come from the canonical first-file path.
|
||||
- Supported import metadata: qwen2, qwen2moe, qwen3, qwen3moe, qwen3next, qwen35,
|
||||
qwen35moe, llama, gemma, gemma2, gemma3 and phi3. This is the importer's scope,
|
||||
not a claim about the installed engine build. Engine support is checked at load.
|
||||
- Browse: `GET /api/local-models/browse?directory=…`; inspect:
|
||||
`POST /api/local-models/inspect {path}`; register:
|
||||
`POST /api/local-models {path,name?}`. Registration reinspects the file rather
|
||||
than trusting renderer metadata, and cannot replace an active reference whose
|
||||
file signature changed.
|
||||
- The model catalog and normal loader resolve imported IDs to the exact local
|
||||
first-file path. llama.cpp handles the remaining standard shards. File size,
|
||||
modification time and change time guard stale references; a moved/changed file
|
||||
requires reconnecting through **Use a local model…**. Canonical paths dedupe.
|
||||
- Default model-directory changes preserve these explicit local references.
|
||||
- Removing a local model removes its reference only. Original weights and other
|
||||
folder files stay intact. Every loaded instance must be unloaded first.
|
||||
|
||||
The file declares its architecture; metadata does not prove model provenance or
|
||||
that it is an authentic fine-tune of a named catalog model. Tensor geometry checks
|
||||
are structural, not a cryptographic integrity check. Hybrid/recurrent working
|
||||
memory remains approximate; actual allocation and adapter compatibility need the
|
||||
native engine. LoRA adapters, projectors, image models, unsupported architectures,
|
||||
big-endian GGUFs, and nonstandard shard filenames get a clear error.
|
||||
|
||||
## Sources
|
||||
|
||||
- [GGUF specification](https://github.com/ggml-org/ggml/blob/master/docs/gguf.md)
|
||||
- [GGUF metadata and quantization constants](https://github.com/ggml-org/llama.cpp/blob/master/gguf-py/gguf/constants.py)
|
||||
- [llama.cpp split-file behavior](https://github.com/ggml-org/llama.cpp/blob/master/tools/gguf-split/gguf-split.cpp)
|
||||
|
||||
## Verification
|
||||
|
||||
Focused parser/service/API tests cover single/split files, missing and mismatched
|
||||
shards, truncated tensor payloads, unknown architectures, invalid context,
|
||||
malformed metadata bounds, folder filtering, persistence, path deduplication,
|
||||
missing-file detection, explicit loading, active-reference protection, native
|
||||
path resolution, directory changes and preserving files on removal.
|
||||
|
||||
Browser flow uses a disposable simulated host and tiny GGUF fixtures. No real
|
||||
inference weights were imported into the live library or executed. The live
|
||||
host remains on its original one-model setup. Evidence:
|
||||
`docs/evidence/local-model-import-2026-10-14/`.
|
||||
@@ -0,0 +1,20 @@
|
||||
# Native feature parity — 14 October 2026
|
||||
|
||||
Consumer flow: choose a compatible model, optionally read pictures, download/load, chat. Native installation uses Strata's own installer, including shared shards, MTP, packing, vision and resumable downloads. Expert mode exposes device placement, native configuration and parallel instances. Settings > Engine contains tools, measurements and diagnostics. No model downloads, native updates or calibration are run merely by opening the UI.
|
||||
|
||||
Implementation checklist:
|
||||
|
||||
- [x] Native control adapter: official MCP installer/catalog, isolated native engine instances, measured telemetry, jobs and cancellation.
|
||||
- [x] Model catalog and first-run choices from installed Strata's tables, with honest hardware fit and existing-file reuse.
|
||||
- [x] Image understanding: optional encoder setup and image payloads; generation stays a separate option.
|
||||
- [x] Responses gateway and three protocol connection templates.
|
||||
- [x] Native parameter editor with validation, original configuration preservation and backups.
|
||||
- [x] MCP manager and chat tool opt-in.
|
||||
- [x] Download/startup recovery and engine logs.
|
||||
- [x] Measured benchmark, calibration, native updates and engine rollback.
|
||||
- [x] All-model Monitor speed table and per-instance details.
|
||||
- [x] Focused fixture tests, TypeScript/build, live UI evidence and handover.
|
||||
|
||||
The design host remains available for existing preview conversations. Native operations are explicit actions and use a configured local Strata checkout. Real hardware speed and memory allocation are shown only when reported. Backend absence produces a clear setup path, never a simulated successful operation.
|
||||
|
||||
Verification: 149 tests passed; TypeScript and production build passed. Browser checks cover consumer loading, expert devices, multiple-instance Monitor, MCP saving and benchmark results. See `docs/native-engine-handover.md` for contracts and actual GPU verification limits. The official native checkout remained unmodified.
|
||||
@@ -0,0 +1,267 @@
|
||||
# Audit checklist — the recurring items, in one place
|
||||
|
||||
Every plan in this folder raises some of the same issues. This is the shared list,
|
||||
so a fix applied once is applied everywhere rather than per screen.
|
||||
|
||||
## Present on multiple screens
|
||||
|
||||
| Issue | Screens | Owned by |
|
||||
|---|---|---|
|
||||
| Focus is not trapped in modals | palette, shortcuts, setup, drawer | [13](13-overlays.md), [16](16-accessibility.md) |
|
||||
| Section headings are `<div>`, not `<h2>` | all | [16](16-accessibility.md) |
|
||||
| ~~Empty states without an action~~ **fixed** — all six carry one | Monitor, Serving, Models, Skills, Workspace, Chat | [14](14-states.md) |
|
||||
| No time expectation on long operations | setup, models, monitor | [09](09-first-run.md), [14](14-states.md) |
|
||||
| Live values without a time window | Monitor, Telemetry | [04](04-monitor.md) |
|
||||
| The loaded model reported in four places | header, sidebar, telemetry, Monitor | [10](10-sidebar.md) |
|
||||
| Context described with different words | chat popover, rail, Monitor | [04](04-monitor.md), [12](12-context-rail.md) |
|
||||
| Trees that do not match: icons and motion | Workspace vs Sidebar | [06](06-workspace.md) |
|
||||
| Value fills that jump instead of easing | Monitor, rail, Models | [15](15-motion.md) |
|
||||
| Destructive actions styled like navigation | palette, More menu | [11](11-command-palette.md) |
|
||||
|
||||
## Status of every plan
|
||||
|
||||
**Every plan received shipped work. None of the plans is exhausted.**
|
||||
|
||||
That distinction is the honest summary, and an earlier draft of this file got it
|
||||
wrong by marking fourteen plans "Shipped" — which implied the plans were finished
|
||||
when they are not. The numbers:
|
||||
|
||||
| | Count |
|
||||
|---|---|
|
||||
| Numbered items across the sixteen plans | ~190 |
|
||||
| Annotated in the plans as fixed or disproved | 48 |
|
||||
| Recorded in the execution table below | 27 |
|
||||
|
||||
So roughly **a quarter of what the plans propose has been executed.** The work
|
||||
that shipped was chosen as the highest-value item in each plan, plus every item
|
||||
the goal named explicitly, plus the defects found while verifying. What remains
|
||||
is largely polish and optimisation rather than defect: unread marks, `content-visibility`,
|
||||
sparkline baselines, a motion budget, Settings search, empty-state actions per
|
||||
screen, and so on. None of it is broken; all of it is proposed.
|
||||
|
||||
Per plan, what is certainly true:
|
||||
|
||||
| # | Plan | Shipped | Notable remaining |
|
||||
|---|---|---|---|
|
||||
| 01 | Chat | Retry · edit-and-resend · branch · continue · unread marks · `content-visibility` with pinned scrolling · jump-to-latest · focus-mode turn navigation | — |
|
||||
| 02 | Models | Fit verdict; unusable options fold away; cost as size and time; recommended variant explains itself and carries weight | — |
|
||||
| 03 | Engine tuning | Live draft prediction with in-place issues; expert mode in five sections with changed-counts | Safety cue on leaving defaults |
|
||||
| 04 | Monitor | Sampling interval; VRAM/RAM verdicts; thermal basis; sparkline baseline, labels, hover readout; resting hero with session figures | — |
|
||||
| 05 | Serving | Copyable URLs; executable `curl` block; filter with counts; sortable columns; state glyphs | Drawer "copy as cURL" |
|
||||
| 06 | Workspace | Real glyphs; animated branches; file contents; read markers; scope figures; ARIA tree keyboard nav | — |
|
||||
| 07 | Skills | Instructions readable; triggers match; usage counts; grouped by source; three-state per-workspace scope | Add-from-folder |
|
||||
| 08 | Settings | Sticky section index; live search; confirmed appearance reset; telemetry choice persists | Section reorder (declined), grouping, per-section resets |
|
||||
| 09 | First run | Shape-of-task line; step-3 consequences; *Finish later* | Scan substance, local-data confirmation, step-5 hand-off |
|
||||
| 10 | Sidebar | Pinning · arrow traversal · right-click menu · `Delete` · archive that stays searchable | Skills placement, labelled theme toggle |
|
||||
| 11 | Command palette | Fuzzy matching, scopes, danger marks, shortcut chips | Recents group |
|
||||
| 12 | Context rail | Collapsible sections; tools show real use; empty state; close icon; reference-panel weight | Gauge animation |
|
||||
| 13 | Overlays | Toast cap and hover-pause; exits confirmed; popover follows on resize; three dismissal grammars measured and documented | — |
|
||||
| 14 | States | Offline bar; persistent failures with retry; all six empty states carry an action | Skeletons, time expectations, operation-failed empties |
|
||||
| 15 | Motion | Interface scale; one-loop-per-region check; completion cue on the jump pill | Duration budget |
|
||||
| 16 | Accessibility | `useSurfaceFocus`; one `h1`; `aria-current`; non-text contrast probe (1.4.11) | High-contrast mode, fatigue budget |
|
||||
|
||||
## Deliberately not done
|
||||
|
||||
**Two layout reorders, declined by their owner.** Tuning's nine flat fields into
|
||||
two groups, and Settings' section order. Both are judgement calls about the
|
||||
product rather than defects, both are visible changes to screens in daily use,
|
||||
and the question was put to the user repeatedly without a steer. Recorded as
|
||||
declined rather than quietly dropped; the plans keep the reasoning if it is ever
|
||||
wanted.
|
||||
|
||||
**`… More` was not renamed.** The plans want it called *Settings*, and the goal
|
||||
naming this work repeats that. The user asked for "… More" by name, so the label
|
||||
stays. The plan's actual complaint — a vague word standing in front of three
|
||||
destinations — is answered instead by naming them in the button's tooltip and
|
||||
accessible name: *"More: Models, Engine tuning, Settings"*.
|
||||
|
||||
**About's config paths and Open buttons.** The plan wanted About to carry the
|
||||
folder paths, their Open buttons and the config file locations. The engine build
|
||||
was added — the one fact nothing else stated — but the paths are *not* duplicated
|
||||
from Storage, where they sit beside the actions that use them. Repeating them in
|
||||
About would put one fact in two places, which is the failure plan 12's own rule
|
||||
warns against.
|
||||
|
||||
**Nothing else.** Plan 01's remaining items — `content-visibility`, unread marks,
|
||||
turn navigation in focus mode — are listed here in an earlier draft as unbuilt.
|
||||
They shipped (rounds 20, 22 and 40), so the entry was stale and *understated* the
|
||||
work. Removed rather than left to be re-read as fact.
|
||||
|
||||
## Claims that did not survive checking
|
||||
|
||||
**Fourteen** assertions across the plans were disproved by measurement — the
|
||||
count in an earlier draft said eleven, which undercounted its own table. They are
|
||||
corrected in place, and listed here because the pattern matters: **the plans were
|
||||
strongest on structure and weakest on what was already there.** Every claim of
|
||||
the form "X does not exist" needed grepping before it was built on.
|
||||
|
||||
In fourteen cases the plan named the right screen and the wrong defect. That is
|
||||
not a reason to distrust the plans — they found real work in every one of the
|
||||
sixteen — but it is a reason never to build on a claim of absence without
|
||||
checking it first.
|
||||
|
||||
| Plan | Claim | Actually |
|
||||
|---|---|---|
|
||||
| 04 | Nothing is scoped in time | Both speed cards read *last 60 seconds*; the totals card carries a *This session* pill |
|
||||
| 04 | No threshold made explicit | The temperature metric already printed `comfortable` / `throttling risk` |
|
||||
| 01 | Only the last turn carries figures | Every assistant turn renders a footer |
|
||||
| 11 | `mtx` should match *Monitor* | *Monitor* has no `x`; the example was impossible |
|
||||
| 16 | Section titles render as `<div>`s | `SectionHead` renders `<h2 className="h3">` |
|
||||
| 16 | Toasts change without announcement | `.st-toasts` carries `aria-live="polite"` |
|
||||
| 06 | Workspace "shows nothing" | A full detail panel exists — metadata, not file contents |
|
||||
| 09 | The step rail is a progress bar, not a map | It renders every step name |
|
||||
| 09 | There is no exit that keeps state | There was; it was misnamed *Exit setup* |
|
||||
| 14 | A failed download leaves a row ambiguous | `v.error` already rendered — the gap was the missing retry |
|
||||
| 15 | A sent message gets no response at all | It animates in on `st-enter`: 6 px over 240 ms, measured |
|
||||
| 13 | No overlay announces itself | All three carry `role="dialog"`, `aria-modal`, and a label |
|
||||
| 03 | No "modified from recommended" markers | Every expert row already shows `Default: …` and a per-field reset |
|
||||
| 13 | None of the overlays trap focus | All three do, verified against the *visible* overlay |
|
||||
|
||||
The last one is instructive: an early probe of mine "confirmed" the bug by
|
||||
querying `.modal`, which finds the hidden palette rather than the open dialog. A
|
||||
test that looks right and measures the wrong element is worse than no test.
|
||||
|
||||
## Defects found while executing
|
||||
|
||||
These were not in any plan. Each was found by checking a claim or verifying a
|
||||
build, and each is fixed with a check that fails without it.
|
||||
|
||||
**CPU threads defaulted to 8 on every machine.** `catalog.mjs` hardcoded it
|
||||
regardless of detected cores, so a 4-core machine warned "CPU threads (8) exceed
|
||||
physical cores (4)" on a fresh install — before the reader had touched anything.
|
||||
Now built from detected cores; a fresh install raises no issues.
|
||||
|
||||
**Three classes were used by components but defined in no stylesheet.**
|
||||
`.spec__sub` (the `Metric` sub-line, five screens) and `.st-toast__body` were
|
||||
collateral damage from a "dead CSS" sweep. `.st-msg__actions` was *reported as
|
||||
shipped* without its CSS ever landing, because the patch anchored on a selector
|
||||
that did not exist and failed silently. `npm run audit` now fails on any class a
|
||||
component uses that no stylesheet defines.
|
||||
|
||||
**The rail and the popover disagreed about the same number.** The context maximum
|
||||
read `32K` in one and `33k` in the other — two formatters, ÷1024 and ÷1000. Found
|
||||
by applying plan 12's own rule: *agree exactly, or appear in only one*.
|
||||
|
||||
**Branching a conversation created the branch without showing it.** `Chat`
|
||||
resolves its session as `location.param ?? activeId`, so the URL outranks the
|
||||
store. `branchFrom` set `activeSession` without navigating: the sidebar showed the
|
||||
new branch while the transcript kept showing the original *indefinitely*. A
|
||||
feature that looked broken while its data was correct.
|
||||
|
||||
**A Tuning impact line that never moved.** The plan's own criterion — *"a static
|
||||
line is a failure"* — caught the first attempt, which read the *saved* config
|
||||
rather than the draft on screen. `/api/engine/validate` now accepts a draft.
|
||||
|
||||
|
||||
### Found in the design pass over every screen
|
||||
|
||||
Nine screens were walked, clicked and measured. These are the defects that
|
||||
survived every automated check until something looked at the screen.
|
||||
|
||||
**The model received no conversation history.** The client sent
|
||||
`{ sessionId, message, model, workspaceId }` and never `history`. The real-engine
|
||||
path builds its prompt as `[...history, message]`, so `history` was always empty
|
||||
and **every message arrived as the first thing the model had ever heard**. The
|
||||
demo path hides this completely — its replies are canned. Found by asking why
|
||||
the context meter stayed at ~350 tokens however long the conversation grew.
|
||||
|
||||
**The context meter measured the wrong quantity.** `usedTokens` *accumulated*
|
||||
(`+= tokensIn + tokensOut`) while the per-part split beside it was absolute. So
|
||||
it climbed past its own maximum within one conversation — "40k / 32K tokens,
|
||||
100%" — clamped, with no way back down. It reports current occupancy now.
|
||||
|
||||
**A promise the app could not keep.** "Compaction will trigger soon" appeared in
|
||||
two places. Compaction exists nowhere in the codebase.
|
||||
|
||||
**Focus mode's dimming never worked.** `.st-msg` carried
|
||||
`animation: st-enter … both`. An animated value outranks a normal declaration in
|
||||
the cascade, so the keyframe's closing `opacity: 1` held every turn at full
|
||||
strength. `.app[data-focus='true'] .st-msg { opacity: 0.45 }` was in the
|
||||
stylesheet, matched the element, and lost anyway. `backwards` fixes it: the
|
||||
keyframe's end state is the element's natural state, so nothing snaps.
|
||||
|
||||
**A green one-click "Load" on a model the app called too large.** It loaded —
|
||||
11.3 GB on a 16 GB machine — and reported "the engine is warm". Unusable
|
||||
variants now get a secondary "Load anyway" and a confirmation naming the cost.
|
||||
|
||||
**A button whose label and action were unrelated.** "Add from folder" ran
|
||||
`setQuery('')`.
|
||||
|
||||
**A file preview at 1.26:1 contrast** — `#303030` on `#1b1f23`, body text needing
|
||||
4.5 — with 2242px of every long line clipped and `overflow: hidden` making the
|
||||
rest unreachable. It only failed in **light** mode, because the overriding token
|
||||
is light in dark mode.
|
||||
|
||||
**One glyph, several meanings.** `experts` meant both the MoE expert count and
|
||||
Skills. Moving Skills to `bolt` was worse — `bolt` is the most-used glyph in the
|
||||
app at ten places, and in the collapsed rail the icon *is* the label. It is
|
||||
`thinking` now, which appears once and renders as a lightbulb.
|
||||
|
||||
**The collapsed rail clipped a conversation to its first five pixels**, pushed
|
||||
another 40px target past the sidebar edge via the tree's 22px indent, and left a
|
||||
26px void where the hidden "Workspaces" heading had been.
|
||||
|
||||
**Checks that were too narrow to catch any of it**: the contrast probe only ever
|
||||
visited Chat; the luminance probe counted area without thickness, so an 8px
|
||||
progress hairline was judged the same as a 64×64 block — and its verdict on that
|
||||
element flipped with live data. Both were rebuilt and each proven able to fail.
|
||||
|
||||
## Checks that could not fail, and were rebuilt
|
||||
|
||||
**The scroll-cost budget reports NOT MEASURED rather than passing.**
|
||||
`npm run motion:budget` compares frame cost scrolling with and without the
|
||||
scroll-driven effects. It could not detect a deliberately expensive effect
|
||||
injected into the same run — the ratio moved 1.000 → 1.006 — so the harness is
|
||||
blind to scroll-timeline paint cost under programmatic scrolling in headless
|
||||
Chromium. It now proves it can see a known-expensive case before reporting, and
|
||||
exits 3 with `NOT MEASURED` when it cannot. This is the one check in the suite
|
||||
that is deliberately allowed to report nothing.
|
||||
|
||||
|
||||
Worth recording, because a green check that cannot go red is worse than none.
|
||||
|
||||
**The undefined-class rule was vacuous on its first attempt.** The comment
|
||||
explaining it names the very classes it checks, and the regex matched inside
|
||||
comments — removing `.spec__sub` still passed. It strips comments now, and is
|
||||
proven by deleting the definition and watching it fail.
|
||||
|
||||
**The expected-failure filter was proven narrow.** Flows that deliberately break
|
||||
something declare it (`expectFailure(/ERR_FAILED/)`). With a genuine
|
||||
`console.error` injected into the same flow, the run still fails.
|
||||
|
||||
**The loop-budget check had incomplete coverage.** Its first version checked
|
||||
seven routes, so the probe used to test it — placed on Settings — could not have
|
||||
failed. It also toggled the theme by clicking a control the setup modal covers,
|
||||
which timed out. Both were caught by trying to prove the check rather than
|
||||
trusting a green run.
|
||||
|
||||
**The non-text contrast probe was made to fail on purpose before being trusted.**
|
||||
Forcing `outline-color: #f8fafc` drops focus rings to 1.02–1.05 and exits non-zero;
|
||||
restoring returns to 0.
|
||||
|
||||
**Probe parsers read `color(srgb …)` as 0–255.** Chrome's 0–1 components made
|
||||
tinted fills look near-black, silently defeating the contrast and luminance
|
||||
checks. Fixed in both scripts.
|
||||
|
||||
## Known-good, keep under test
|
||||
|
||||
Correct today, and the things a refactor is most likely to break:
|
||||
|
||||
- Reading measure: **68 characters** at every content size.
|
||||
- Contrast: **37 text pairings** plus non-text 1.4.11 (focus rings enforced at 3:1), both themes.
|
||||
- Dark-mode luminance budget and material layering.
|
||||
- Reduced motion substituting opacity for movement.
|
||||
- Overlay interruptibility — every surface reverses mid-flight.
|
||||
- Focus lands inside every overlay and stays there across 18 `Tab` presses.
|
||||
- Capsule controls, capsule-free surfaces.
|
||||
- No native `<select>`, no missing icons, no undefined classes or tokens, no off-scale values.
|
||||
- Materials on exactly the approved control-layer surfaces.
|
||||
|
||||
## How to use these plans
|
||||
|
||||
1. Pick a screen plan; each is self-contained.
|
||||
2. Check the shared table above before implementing — the fix may belong in a
|
||||
shared component rather than the screen.
|
||||
3. Add the verification named in the plan **before** the change, so it fails first.
|
||||
4. Run `npm run check` and both theme tours before calling it done.
|
||||
5. **Check the claim before building on it.** Eleven did not survive that.
|
||||
Loaded 100 of 398 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user