AI, fully local on your computer.
Design & UI/UX Guidelines — HilbertRaum
Model-library update (2026-09-05): §15 supersedes the older full-card model picker and installed/download subheadings described below.
Status: ADOPTED 2026-06-10. Source: external design research (Claude web, 2026-06-10), reviewed and adapted to this repo's constraints — adaptations are marked [adapted]. This is the durable reference for all UI work. The UI polish wave (Phases 23–27) that rolled these guidelines out is IMPLEMENTED; its condensed design record (decisions D-UI1–D-UI4, load-bearing facts, as-built notes, verification pattern) is §11 of this document.
Goal: make the app feel as calm and trustworthy as a well-made consumer privacy app (1Password/Proton posture), not a hobbyist AI tool — and de-clutter the chat screen. Audience: non-technical professionals (lawyers, doctors, accountants, consultants, HR).
1. Design principles
- Calm over clever. Generous whitespace, one primary action per screen, muted color used only to signal meaning. Never decorative gradients, animated buttons, or kinetic type.
- Privacy is the ambient state, not a warning. A quiet, persistent "Local · Offline" indicator that reads as reassuring. Never red alarm banners, lock icons everywhere, or scare copy.
- Speak human, hide the machinery. "Ask my documents", "Answer detail", "AI model", "verifying files". Never checksums, GPU backends, or build hashes in the everyday path (Diagnostics / "Technical details" disclosures only).
- Progressive disclosure by default. Depth modes, model internals, and scope management live one click away, not on the canvas. Never hide what's needed for the core task (ask a question, get a cited answer).
- Legibility is non-negotiable. High-contrast text, 15–16px body, restrained translucency. Never glassmorphism / backdrop-blur behind text.
- Familiar Windows-grade conventions. Standard focus rings, right-click where expected, primary dialog button on the right. Never mobile gestures, hamburger menus, novel nav.
- Quietly accountable. Citations on every document-grounded answer and honest "I couldn't find this in your documents" states (already implemented — keep). Never confident answers without provenance.
2. Information architecture
The rail is three groups plus the brand mark (rail rework 2026-09-05, owner decision; the earlier "N primary + 1 utility" counts below are history):
- The brand mark is Home. Home stays the status hub (ready? model running? doc count? one big "Start chatting"), but it has no rail item: the mark above the groups navigates home (it did since #47) and now also carries the lit selection when Home is open. Two controls for one destination crowded the rail.
- Work group (everyday): Chat · Documents · Translate (live text translation on the dedicated TranslateGemma sidecar, a first-class task surface parallel to Documents/Chat, distinct from the document-translation doc-task under Documents; TranslateGemma plan §2 D6) · Images (visual understanding of one local image via a local vision model, a first-class task surface, distinct from OCR and from any image generation; image-understanding §6).
- Machine group: AI Model (reframed from "Models": singular mental model;
checksums/quantization behind a "Technical details" disclosure) · Performance (what this
computer can run and how fast: the hardware check's answer as a verdict and four rated tiles
(speed, memory, graphics memory, drive), the "Your model" placement row, the figures observed
in real use, and one result per computer the drive has been in;
docs/benchmark.md"Performance screen"). Set apart from the work group by a hairline: these are about the machine, not about a task. - Utility group: Settings, with Privacy, Skills and Diagnostics folded in as tabs
("Privacy & data", "Skills", "Diagnostics (advanced)"). Privacy is a posture expressed
everywhere, not a destination; Diagnostics is a support surface; Skills is the user's
capability library (manage, import, enable), reached day to day through the composer's skill
picker in Chat, so it does not need a rail slot of its own. (It was a rail destination from
2026-07 to 2026-09-05; the
skillsnavigation target still resolves, to the tab.)- Why Performance is a primary destination, not a Diagnostics card (2026-09-05): the check decides the ★ model pick and the profile, and its answer is the user's question ("can this computer run it, how fast, is the drive fast enough"); as the third card of the Diagnostics tab it was found by nobody. A one-shot probe alone would not earn a rail slot; the destination carries what changes over time as well: the figures from real use and the per-computer history a travelling drive accumulates. Diagnostics keeps the raw table and Copy for support. The single-word labels ("Performance"/"Leistung") fit the rail; a gauge glyph in the icon set's 24-grid, 1.65 stroke.
- Why Translate is a primary destination, not a sub-mode (7th deliberate IA change): translating pasted text is a distinct, complete task — text in, translation out — that stands parallel to Chat/Documents/Images, runs on its own model (TranslateGemma, not the chat model), and is how a non-technical user reaches translation without first importing a document. It shares the window planner + sidecar with the Documents translate action, but the surfaces are separate tasks. The single-word labels ("Translate"/"Übersetzen") fit the existing slim rail (sized for the longer "Einstellungen"), so the 7th item adds no reflow.
First-run: 3-step guided setup, full-window, no nav rail yet:
- Welcome + trust framing ("Everything stays on this drive. No internet, no account.")
- Create your password — must allow paste / password managers (WCAG 3.3.8), strength meter, show-password toggle, one honest "can't be recovered" warning.
- First model + first documents — [adapted] on a commercial drive models are preinstalled, so this step only appears when no model is installed, and any download offer stays behind the existing triple gate (policy ∧ network setting ∧ per-download confirmation). Skippable; ends on the teaching Chat empty state.
3. Chat screen layout (the priority)
The canvas is the conversation. Everything else is (a) a quiet persistent affordance, (b) an inline element attached to a message, or (c) progressively disclosed.
Superseded detail (#151 D-4): the diagram's header "🔒 Local" indicator no longer exists — the single app-wide privacy signal lives at the foot of the nav rail on every screen (§11.7/§12.1 record the move). The rest of the layout is current.
┌──────┬────────────────┬───────────────────────────────────────────────┐
│ NAV │ CONVERSATIONS │ [ Chat | Ask my documents ] 🔒 Local │
│ │ + New chat │ ┌───────────────────────────────────────────┐ │
│ Home │ ── Today ── │ │ transcript, centered, max-width 720px │ │
│ Chat │ · Contract… │ │ │ │
│ Docs │ · Q3 figures │ │ ┌ assistant answer ────────────────────┐ │ │
│ Imgs │ ── Earlier ── │ │ │ …answer text… │ │ │
│ Model│ · Lease notes │ │ │ ▸ Sources (3) │ │ │
│ Skill│ │ │ └──────────────────────────────────────┘ │ │
│ ──── │ │ │ ↺ Try again · Copy · Save (hover/focus) │ │
│ Set. │ (collapsible) │ │ │ │
│ │ │ └───────────────────────────────────────────┘ │
│ │ │ ┌───────────────────────────────────────────┐ │
│ │ │ │ Message… [ ➤ ] │ │
│ │ │ │ 📄 Using 3 documents · Detail: Balanced ▾ │ │
│ │ │ └───────────────────────────────────────────┘ │
└──────┴────────────────┴───────────────────────────────────────────────┘
Where each existing control goes:
| Control | Placement |
|---|---|
| Mode tabs | One segmented control in the header: "Chat | Ask my documents". Always visible. |
| Conversation history | Collapsible second column; date-grouped; delete via hover "⋯" menu + right-click, never permanent ✕ buttons. Remembers collapsed state. |
| Depth selector | "Answer detail" — quiet dropdown in the composer footer (Quick · Balanced · Thorough). Defaults Balanced; not a prominent 3-way toggle. |
| Scope chips | Single composer-footer affordance "📄 Using 3 documents ▾" → popover to add/remove. Only in documents mode. |
| Doc-awareness hint banner | Deleted. Replaced by the teaching empty state + mode control. |
| Thinking block | Single inline collapsed "Thinking…" line while generating (expand → the live reasoning text); auto-collapses when the answer streams. Stop stays available. ARIA live region for streaming. |
| Citations | Inline, attached to the answer: "▸ Sources (3)" → source cards (name + page + snippet). No separate panel. |
| Regenerate / Copy / Export | Per-message action row on hover/focus of an assistant answer ("Try again", "Copy", "Save"). Whole-conversation export → chat-header "⋯" overflow. |
| Code-block Copy / Save | Same quiet action style, but per code block: revealed on hover or keyboard focus of the block itself (not shown while the answer is streaming), each with an accessible name that names the file type it saves as ("Save this code block as a .html file"). |
| Errors / notices | Inline, in context, dismissible, rare. Never stacked at the top. |
At narrow widths (#803, 2026-11-15; open-issues wave owner call G-9 and the owner rounds in the
architecture.md i18n legend). The chat column has no min-content floor
(.chat-main { min-width: 0 }), so its 1fr track shrinks to the window. Before, with the
conversation list opened in a window narrower than about 967 px (the list collapses on its own at
1,150 px and below, §12.1 item 8), the composer footer's min-content width held the track open and
document mode ran Ask and the memory meter past the right edge, by about 30 px at the 880×600
minimum window (§16). The composer footer wraps (flex-wrap: wrap; row-gap: 4px): a control that
doesn't fit moves whole to the next row instead of squeezing the others, so every measured footer
control stays on one line (the suggestion hint has no ellipsis: a suggested skill title longer than
a whole footer row would wrap inside it; no bundled skill's title comes close). The "Skill: … ▾"
trigger never wraps inside (white-space: nowrap) and wraps as one group with its ⓘ and ✕
(.skill-picker-group, which doesn't shrink), so "Skill: No skill" keeps its full width; inside the
group only a skill name longer than a whole footer row makes the trigger give way, and the name then
ends in "…" (the button's accessible name keeps the full title) while ⓘ and ✕ keep their size. The
suggestion hint is a footer item of its own. The cost is height: at 880×600 with the list open the
footer takes one more row in the default case and up to three with a long skill title or the
suggestion hint; maximized it takes one row, two with a long title and in French document mode. At
880×600 the chat header's model line moves to a second line. Guard for the rules above:
tests/unit/min-window-layout.test.tsx. The empty composer is one row, about 250 px wide there, and
Chromium gives a textarea placeholder no ellipsis (measured), so a document-mode placeholder must
fit that line: the French and Russian values are shorter for it (UI-languages owner call D-10 (a)).
No test checks a placeholder's width; it was checked only in the running app, with Windows fonts
(macOS and Linux not measured; Italian, Spanish and Ukrainian have 26 to 31 px to spare), so a
translation that lengthens chat.placeholder.documents is checked at 880×600 with the conversation
list open.
Empty state that teaches: one friendly line ("Ask a question, or ask about your documents."), 3–4 example prompt chips ("Summarize this contract", "What are the payment terms?", "Find every mention of 'indemnity'") that fill the composer; if no documents yet, an inline nudge button "Add documents to ask about them" → Documents.
4. Design tokens
Two themes, same scales. All text/UI pairs contrast-checked (ratios noted).
4.1 Neutrals (shared ramp)
| Token | Hex | Token | Hex | |
|---|---|---|---|---|
--n-0 |
#ffffff |
--n-600 |
#4d5563 |
|
--n-50 |
#f7f8fa |
--n-700 |
#353b46 |
|
--n-100 |
#eef0f4 |
--n-800 |
#232830 |
|
--n-200 |
#e2e5ea |
--n-850 |
#1b1f27 |
|
--n-300 |
#d7dce3 |
--n-900 |
#171a21 |
|
--n-400 |
#9aa3b2 |
--n-950 |
#0f1115 |
|
--n-500 |
#6b7383 |
4.2 Accent + semantic ramps
Superseded by the brand refresh (§13). The blue accent ramp below was retired in 2026-06; the accent is now the HilbertRaum teal. The brand primitives + contrast facts are in §13.2; this row set is kept only as the historical record of the pre-refresh palette.
| Token | Hex | Use |
|---|---|---|
--brand-teal |
#57D0A4 |
the dot; primary-button fill (with dark-ink text); accent/link/focus on dark |
--brand-teal-dark |
#1B7F5F |
accent/link/focus on light (4.65:1 on bg); solid-control fill w/ a white marker |
--brand-ink-dark |
#11171F |
square ink on light; text on teal fills |
--brand-ink-light |
#E8EDF2 |
square ink on dark |
(retired) --accent-700/600/500/300 |
blue | pre-refresh accent ramp (#2257c9/#2f6fed/#4f8cff/#8fb4ff) |
--success-600 |
#1a7f4b |
success text on light (5.0:1) |
--success-500 |
#3fbf7f |
success on dark (8.1:1) |
--error-600 |
#c0362c |
error text on light (5.5:1) |
--error-500 |
#ff6b6b |
error on dark (6.8:1) |
--warning-700 |
#8a5a00 |
warning text on light (5.9:1) |
--warning-500 |
#e0b341 |
warning on dark (9.6:1) |
✅ Contrast fix (historical): #4f8cff as a button fill with white text was 3.22:1 — fails AA,
so pre-refresh filled buttons used --accent-600 #2f6fed (4.55:1). Superseded by §13: the primary
button is now teal fill + dark-ink text (#57D0A4 on #11171F, ≈9.98:1). Semantic color always pairs
with a label or icon (WCAG 1.4.1).
4.3 Role tokens per theme
Implement as :root (light) + [data-theme="dark"] overriding role tokens only; ramps stay
constant.
| Role | Light | Dark |
|---|---|---|
--bg |
#f7f8fa |
#0E1319 (§13: brand-exact, was #0f1115) |
--surface |
#ffffff |
#171a21 |
--surface-2 |
#ffffff + shadow |
#1d212a |
--surface-hover (rows/nav hover) |
#eef0f4 (--n-100) |
#1d212a (--surface-2) |
--border (hairline) |
#e2e5ea |
#2a2f3a |
--border-strong (inputs) |
#6b7383 (--n-500, 4.5:1) |
#6b7383 (--n-500, 3.7:1) |
--text |
#1b1f27 (16.5:1) |
#e6e8ec (15.2:1) |
--text-muted |
#5c6675 (5.8:1) |
#9aa3b2 (7.4:1) |
--link |
#1B7F5F (4.65:1) |
#57D0A4 (9.7:1) |
--focus |
#1B7F5F |
#57D0A4 |
--accent |
#1B7F5F |
#57D0A4 |
--success |
#1a7f4b |
#3fbf7f |
--error |
#c0362c |
#ff6b6b |
--warning |
#8a5a00 |
#e0b341 |
--row-selected-bar |
#1B7F5F |
#57D0A4 |
--row-selected-bg |
#eef0f4 (--n-100) |
#1d212a (--surface-2) |
--code-bg |
#eef0f4 (--n-100) |
rgba(0,0,0,0.3) |
--overlay (modal scrim) |
rgba(15,17,21,0.55) |
same (one ink veil, both themes) |
(#151 D-1/D-2: --border-strong was corrected to --n-500 in the AA sweep — the old
#9aa3b2/#4a515f values printed here were sub-3:1 and survived only in this table; the
semantic + hover/selection/code tokens above were previously undocumented here. --overlay
landed with #149's SH-14.)
4.4 Typography
No web fonts (offline). Bundled system stacks:
--font-sans: -apple-system, "Segoe UI Variable", "Segoe UI", system-ui,
Roboto, "Helvetica Neue", Arial, sans-serif;
--font-mono: "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
| Token | Size / line / weight | Use |
|---|---|---|
--text-xs |
12 / 16 / 500 | metadata, captions, badges |
--text-sm |
13 / 18 / 400 | secondary UI, table cells |
--text-base |
15 / 24 / 400 | default UI text |
--text-md |
16 / 26 / 400 | chat body / document reading |
--text-lg |
18 / 26 / 600 | card titles, section heads |
--text-xl |
22 / 30 / 600 | screen titles |
--text-2xl |
28 / 36 / 700 | first-run / hero |
Nothing below 12px. Numbers and file names in mono; everything else sans.
4.5 Spacing, radius, elevation, motion
- Spacing (4px base):
--space-1..8= 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64. Component padding--space-3/4; card padding--space-5; section gaps--space-6; screen gutters--space-6/7. - Radius:
--radius-sm 6px(inputs/chips/badges) ·--radius-md 10px(buttons/cards) ·--radius-lg 14px(modals) ·--radius-full 999px(status pills). - Elevation (soft depth, never blur behind text):
--shadow-1: 0 1px 2px rgba(15,17,21,.06), 0 1px 1px rgba(15,17,21,.04)(cards) ·--shadow-2: 0 4px 12px rgba(15,17,21,.10)(popovers) ·--shadow-3: 0 16px 40px rgba(15,17,21,.18)(modals). In dark theme lean on--surface-2lightening + borders; shadows read weakly on dark. - Motion:
--dur-fast 120ms(hovers) ·--dur-base 200ms(dropdowns) ·--dur-slow 320ms(modals) ·--ease: cubic-bezier(.2,.8,.2,1). All non-essential motion behind@media (prefers-reduced-motion: reduce).
5. Theme default: light, follow OS, manual override
Default to light, follow prefers-color-scheme on first run, persist an explicit user
choice (system | light | dark setting). Evidence: positive contrast polarity reads
faster/comprehends better and the advantage grows at smaller sizes (NN/g); light reads
"clean, professional, trustworthy" to office users; preference splits ~thirds so both ship.
The current dark palette survives as the dark theme (lightly tuned per §4.3).
6. Component guidelines
- Buttons. Three levels only: Primary (
--brand-tealfill + dark-ink--brand-ink-darktext — one per view; teal+white fails contrast, see §13), Secondary (surface +--border-strongoutline), Ghost (text only). Focus = 2px--focusring with 2px offset via:focus-visible. Min height 36px; hit targets ≥24×24 (WCAG 2.5.8). Disabled = 50% opacity. - Inputs / composer. Surface fill, 1px
--border-strong,--radius-sm, 36–40px min height. Composer auto-grows; Enter = send, Shift+Enter = newline. Never remove the focus outline.- Native
<select>carries the same treatment — via the shared.selectclass. A classless<select>renders in the user agent's own skin (Arial, square corners, UA border and fill), which reads as foreign on both themes and ignores §4.4 typography. The one.selectrule instyles.cssmaps it onto--font-sans/--text-sm/--text/--surface/ 1px--border-strong/--radius-sm, at the UA's compact footprint with a 28px floor so the control still clears the 24×24 target minimum (§9). Keep the native element — a dropdown is not worth a custom widget — and give every new picker<select>the class. See §11.14.
- Native
- Cards.
--surface,--shadow-1,--radius-md,--space-5padding. No nested cards. - Badges / status pills.
--radius-full,--text-xs500, icon + word, three tones (neutral / success / warning-error). Never color-only dots. - Tabs / segmented control. Pill track; selected segment gets
--surface+--shadow-1. Roving tabindex + arrow keys. - Banners & toasts. Banner = persistent, in-context, semantic left border + icon + text
- optional action. Toast = transient confirmation (3–5s, polite ARIA live) for "Copied" / "Saved". Never toasts for actionable errors; never stacked top banners.
- Modals.
--shadow-3,--radius-lg, max ~480px (confirm) / 640px (form). Focus trap, Esc closes, focus returns to trigger, primary button on the right. Destructive confirms and first-run only. - Chips.
--radius-sm,--text-sm; ✕ on hover/focus only. Example prompts + doc scope (in popover). Never permanent chip rows on the canvas. - Progress / streaming. Determinate bars with plain labels ("Preparing 12 of 30…").
Streaming = calm caret/pulse + "Thinking…" line; never a full-screen spinner; no
unlabeled spinners on long operations. The shared
Progresscomponent associates its label with the<progress>element (aria-labelledby, #149 SH-10) so AT never hears an anonymous progressbar; the sharedSpinneris an inline decorative glyph and MUST sit next to visible text that names the operation (the "no unlabeled spinners" rule made concrete). - Error announcements (#151 D-5). Error slots use the shared always-mounted
ErrorBanner(components/ErrorBanner.tsx), never the raw{error && <Banner tone="error">…}idiom — a freshly inserted pre-filled alert is missed by many screen readers (M-U1); the mounted region announces the FIRST failure too.role="status"is itself a live region (implicitaria-live="polite"), so NOTHING inside an always-mounted region may carryrole="status"orrole="alert": the nearest live-region ancestor governs, and a nested one is inserted already holding its text, which reintroduces M-U1 one level down.ErrorBannershipped that way and was silent under Narrator for every screen that used it (#436);aria-live="off"on the inner element does NOT rescue it — the role has to go, soBannertakesrole={null}when nested. Pinned bytests/unit/live-region-nesting.test.ts, which fails on any nested live-region role anywhere in the renderer. Render-error containment is the sharedErrorBoundary(per-screen, keyed by destination; the nav rail lives outside it). - Password entry. The shared
PasswordField(+PasswordStrengthMeter) — show/hide toggle, paste and password managers allowed (WCAG 3.3.8), advisory-only strength. Used by the gate and the Settings change-password card; never a bare<input type="password">. - Empty states. Friendly headline + one line + one primary action (+ example chips in Chat). Used on Chat, Documents, AI Model.
- Lists / tables. Rows ≥40px, hover highlight, hover "⋯" + right-click for actions. Technical columns visually secondary.
- Toggles. Switch for binary settings (track
--brand-teal-darkwhen on — the white thumb needs ≥3:1, which bright teal fails; §13), checkbox for multi-select; 24×24 min target; clickable label; focus ring. - Per-answer skill offer (issue #80, wave R80). When an answer's engine could not serve the
asked shape (the #54 categories/sums class, or a low-confidence router fallback), the answer
may carry a one-click offer — the
.msg-skillvocabulary (icon + words, muted, never color-only §9) with a link-style action ("Run "Bank Statement Analysis" for this question") reusing the.msg-skill-undotreatment; no new color tokens. The click is the consent (nothing auto-fires); it renders on the last assistant turn only (accepting re-answers via regenerate) and is disabled — never hidden — when the reply carries an evidence review (the AUD-01 posture). Provenance is text, not color: an offer from the local-model classification adds the italic "Suggested by the local model" marker; the deterministic offer carries none (the answer's prose hint already explains it).
7. Voice & microcopy
Plain, calm, second person, present tense. Describe the problem and the next step; error codes only in Diagnostics. No exclamation marks or humor in failure states. No jargon in the everyday path. (One exception, #1024: the gate's "The app could not start" card shows the error's code on a quiet line under the text, because Diagnostics cannot be reached from it.)
| Before | After |
|---|---|
| "Ask Documents" | "Ask my documents" |
| "Fast / Balanced / Deep" | "Answer detail: Quick · Balanced · Thorough" |
| "Checksum verification failed." | "We couldn't verify this file — it may be incomplete. Try downloading it again." |
| "GPU acceleration auto-disabled." | "Running in standard mode for compatibility. Answers may be a little slower." |
| "Model failed to load (exit code 1)." | "That AI model couldn't start. Try restarting the app, or pick another model." |
| "Quantization: Q4_K_M" | "Balanced — works well on most laptops" (full label under "Technical details") |
| "Workspace decryption error." | "That password didn't unlock your workspace. Check it and try again." |
| "Embedding documents…" | "Preparing your documents so you can ask about them…" |
| "0 results returned for query." | "I didn't find a match. Try rephrasing, or check which documents you're asking about." |
| "Stop generation." | "Stop" |
| "Export conversation to .md" | "Save this conversation" |
| "Regenerate response" | "Try again" |
| "Telemetry disabled." | "Nothing leaves this drive. There's no tracking to turn off." |
| "Open AI Model" | "Go to AI Model" — never "Open" right before "AI": it reads as the company name OpenAI (#527) |
| "Open AI Model" under "the speech model is missing" | "Get the speech model" — a hint's button names its action, and lands where the action is (#527) |
| A button about a missing optional model opens the AI Model screen's default view | It lands on that model: Browse, filtered to its task (models:voice / models:images / models:translation). The default view ("On this drive") by definition does not list a missing model (#527, #539). Chat-model and engine buttons keep plain models: the default view shows them |
Disk sizes are decimal (#768). A size on a drive is GB = 10⁹ bytes (MB = 10⁶, KB = 10³), one
decimal, locale-formatted (shared/format.ts: fmtDiskGb, and fmtDiskSize where the unit
varies — documents, saved images, the OCR language download), so the manifests' size_on_disk_gb,
the AI Model card, its download dialog and progress, the not-enough-space refusal and the
Diagnostics free space agree to the digit. The download dialog used to divide by 1024³ and round from 10 GB up to a
whole number, so a 14.4 GB card offered "13 GB": under, the direction that lets a too-full drive
look fine. Memory and graphics-memory figures are a different quantity and stay binary.
Ambient privacy signal: subtle lock/shield glyph + "Local · Offline", neutral color. Hover/click popover: "Everything stays on this drive. No internet connection is used." [adapted — placement superseded, #151 D-4] The signal lives at the foot of the nav rail on every screen (§11.7/§12.1), NOT in the chat header as originally written here; when the user has enabled network for model downloads it says so honestly (e.g. "Downloads allowed — chats and documents stay local").
German microcopy (D-L7, Phases 39–42 — architecture.md i18n record)
Everything above applies to the German copy too — adapted, never translated literally. The spec-§11.4 rule ("never 'your hardware is bad'") binds the German rendering of every warning and error: carry the same calm reassurance, not a word-for-word transfer (e.g. "Pick a smaller model — quality stays great" → „Wähle ein kleineres Modell — die Qualität bleibt top.").
- Form of address: informal „du“ (user decision 2026-06-13 — a deliberate brand choice; modern consumer-software tone). Lowercase „du/dein“ mid-sentence, consistently — including errors and the gate. Imperatives use the colloquial short form where idiomatic („versuch“, „prüf“, „stell sicher“); verbs that need the -e keep it („öffne“, „wähle“, „indexiere“).
- Glossary (pinned as the comment block on top of
de.ts— keep terms consistent across ALL German copy): workspace → Arbeitsbereich · drive → Laufwerk · vault/encrypted workspace → verschlüsselter Arbeitsbereich · model → Modell (AI model → KI-Modell) · document → Dokument · re-index → neu indexieren · offline → offline · "Ask my documents" → „Meine Dokumente fragen“ · lock/unlock → sperren/entsperren · password → Passwort · settings → Einstellungen · plaintext (developer) mode → unverschlüsselt (Entwickler) · demo mode → Demo-Modus (one spelling, #829). - EP-1 review glossary (native pass, P5 2026-07-18 — the legal-adjacent register for the
evidence-review surface; the CANONICAL record — the
de.tsheader comment mirrors it): evidence → Nachweis(e) — the NOUN „Beleg“ is banned; the verb „belegen“ is the sanctioned form wherever supported-ness is stated (decision labels „Geprüft — belegt“, the disclaimers’ „Er allein belegt nicht …“) · review (the artifact) → Prüfung (evidence review → Nachweis-Prüfung) · review item → Prüfpunkt · evidence pack → Nachweispaket · citation / source marker → Quellenverweis (never „Quellenangabe“/„Zitat“ — one term carries the honesty claim) · whole-document provenance → Herkunft aus einer Gesamtdokument-Analyse (its negation is always „keine satzgenauen Quellenverweise“) · direct excerpt → direkter Auszug · source (document) → Quelle / Quelldokument · reviewer → Prüfer (label) / die prüfende Person (prose) · mark ready / reopen → Prüfung abschließen / Prüfung wieder öffnen · outdated → veraltet · review creation is „Anlegen der Prüfung“ (the ANSWER is „erstellt“ — the two are never mixed). - Screen-name references match the German nav labels: KI-Modell-Bereich, Dokumente-Bereich, „in den Einstellungen“. A string that names a button quotes the button's exact German label („Neu indexieren“, „Durchsuchbar machen (OCR)“).
- Typography: German quotation marks „…“ (and ’ for apostrophes); German
decimal/date conventions come from passing the resolved locale to
toLocaleString/Intl.NumberFormat, never from hand-formatting. A percent sign after a figure takes U+00A0 before it ({pct}\u00A0%), never a plain space and never none;TYPOGRAPHY_RULES.derefuses both after a placeholder (#804, 2026-11-14). - Untranslated by design: the product name / "Lite" brand line, language names in the picker, technical values (model ids, paths, profile codes, "llama.cpp ").
- Text expansion is a layout problem: German runs ~30 % longer — fix overflows with
wrapping/min-widths/flex (the Phase-42 audit pattern: chat-header
flex-wrap, empty-state chips wrap,overflow-wrap: anywhereon.kv dd), never by abbreviating copy. Exception — fixed-width surfaces (owner decision 2026-11-11, UI languages wave): the 106 px nav rail and its foot, and segmented options, cannot wrap their way out, so a label that does not fit there takes a shorter synonym that still follows the glossary — never an abbreviation. Widening the control is the last resort, and then every language is re-checked.
Russian microcopy (UI languages wave, 2026-11-12 — architecture.md i18n record)
Everything above applies to the Russian copy too — adapted, never translated literally. The copy is machine-drafted and checked by a second model; no native speaker has reviewed it yet (owner decision 2026-11-11), so these rules prefer wordings that are hard to get wrong and that a test can check. The spec-§11.4 rule binds every warning and error ("Pick a smaller model — quality stays great" → «Выберите модель поменьше — качество останется отличным.»).
- Form of address: formal «вы» (owner decision 2026-11-11), lower case mid-sentence («вы», «ваш»); never «ты». Buttons, menu items and tabs take the infinitive or a noun («Сохранить», «Отмена»), instructions the вы-imperative («выберите»), busy states a verbal noun («Загрузка…»). The app never speaks in the first-person past tense (a Russian past verb shows gender): "I read…" becomes impersonal («Прочитано транзакций: {count}»). A placeholder never carries grammar: a generic noun in front takes the case and the agreement («модель {model} работает…»).
- Glossary (pinned as the comment block on top of
ru.ts): workspace → рабочее пространство · drive → диск (never накопитель, флешка, носитель) · vault/encrypted workspace → зашифрованное рабочее пространство · model → модель (AI model → ИИ-модель) · document → документ · re-index → переиндексировать · offline → офлайн · "Ask my documents" → «Спросить по моим документам» · lock/unlock → заблокировать/разблокировать · password → пароль · settings → настройки · plaintext (developer) mode → без шифрования (режим разработчика) · chat and conversation → чат · download → скачать («загрузка» is loading) · performance check → проверка скорости. - Review glossary (the legal-adjacent register; the
ru.tsheader mirrors it): evidence → подтверждение — the noun «доказательство» is banned; «не доказывает» appears only in the disclaimers · supported → подтверждено («Проверено — подтверждено») · review → проверка (evidence review → проверка подтверждений) · review item → пункт проверки · evidence pack → пакет подтверждений · citation → ссылка на источник (never «цитата») · whole-document provenance → происхождение из анализа документа целиком (its negation is always «без ссылок на отдельные предложения») · direct excerpt → прямая выдержка · source → источник / исходный документ · reviewer → проверяющий, never a gendered verb («Проверено: {name}») · mark ready / reopen → завершить проверку / вернуть проверку в работу · outdated → устарела · a review is «создана», an answer «сформирован» (never mixed). - Nav labels and screen names: Главная · Чат · Документы · Перевод · Картинки · ИИ-модель · Скорость · Настройки. «Картинки» and «Скорость» are the fixed-width synonyms for «Изображения» and «Производительность», which do not fit the rail; the rail-foot lock button is «Блокировка». A screen reference quotes the rail word in guillemets and never declines it; where the sentence would need a case ending, a generic noun in front takes it («на экране «Документы»», but «Открыть «Документы»»). A string that names a button quotes its exact Russian label («нажмите «Повторить»»).
- Typography: quotes «…», inner „…“ only inside «…»; the em dash with a space on each side;
…as one character; no letter «ё» (е throughout); a Latin and a Cyrillic letter never touch; numbers and dates fromIntl. The machine-checkable part is enforced byTYPOGRAPHY_RULES.ru(tests/unit/i18n.test.ts), with look-arounds, because JavaScript's\bdoes not see Cyrillic. - Units stay the Latin symbols the formatters print (GB, MB, KB, B, s, ms, tok/s), never «ГБ»
or «сек», joined to the figure or the placeholder by U+00A0 (
{size}\u00A0GB). - Plurals: one / few / many / other, on consecutive lines in that order.
onealso serves 21, 31, 101…, so no form points back at the counted things with a singular pronoun. Every form shows{count}— also aonewhose English form has none (packs.addedToast) — exceptperf.model.lineandperf.model.measuredOther, which show the figure as{context};translate.file.gapPagesis number-neutral in all four forms (it shows a page range).otheris reached only by fractions. A plain key with a number goes label-first («Токенов: {tokens}»); "and N more" in a plain key is «… и еще {count}», with no noun after the figure (the plural pairs name what they count). - Citation marker:
И{n}(источник). - Untranslated by design: HilbertRaum (never declined: «в приложении HilbertRaum»), "HilbertRaum Lite", "HilbertRaum AI Kit", model ids, paths, technical values, the picker's language names. System in the language picker is «Как в системе» (the theme control's is «Системная»).
- Fixed-width surfaces (the 106 px rail and its foot, segmented options): Cyrillic runs wider than Latin, so no word of a rail label is longer than about 10 letters; a shorter glossary synonym, never an abbreviation («настр.», «вкл.», «кол-во» are banned).
French microcopy (UI languages wave, 2026-11-12 — architecture.md i18n record)
Everything above applies to the French copy too — adapted, never translated literally; machine-drafted and checked by a second model, not yet reviewed by a native speaker (owner decision 2026-11-11). The spec-§11.4 rule binds every warning and error ("Pick a smaller model — quality stays great" → « Choisissez un modèle plus petit : la qualité reste excellente. »).
- Form of address: formal « vous » (owner decision 2026-11-11), lowercase mid-sentence; never « tu ». Buttons and menu items use the infinitive (« Réessayer »), tabs and screen names a noun (« Général »), instructions the vous imperative (« Choisissez… »), progress labels a noun (« Chargement… »). Nothing agrees with the reader's gender (« Espace de travail déverrouillé », not « Vous êtes connecté »). A name placeholder is never elided onto: guillemets, a colon or a class noun in front (« le modèle {model} »).
- Glossary (mirrored in the
fr.tsheader): workspace → espace de travail · drive → disque (never lecteur, clé, support) · vault → espace de travail chiffré (chiffrer, never crypter) · model → modèle (AI model → modèle d’IA) · document → document · re-index → réindexer · offline → hors ligne · "Ask my documents" → « Interroger mes documents » · lock/unlock → verrouiller/déverrouiller · password → mot de passe · settings → Paramètres · plaintext (developer) mode → non chiffré (développeur) · skill → compétence · token → token · knowledge pack → pack de connaissances. "Nothing leaves this drive" is always « rien ne quitte ce disque ». - Review glossary: evidence → justificatif(s) — the noun « preuve » is banned; « prouver » appears only negated in the disclaimers · supported → étayé (« Vérifié – étayé ») · review → vérification · review item → point de vérification · evidence pack → pack de justificatifs · citation → référence (never « citation ») · whole-document provenance → provenance : analyse du document entier (its negation is always « pas des références phrase par phrase ») · direct excerpt → extrait direct · source → source / document source · reviewer → « Vérifié par » (label) / la personne qui vérifie (prose) · mark ready / reopen → Clôturer / Rouvrir la vérification · outdated → obsolète · a vérification is « créée », an answer « générée ».
- Nav labels and screen names: Accueil · Chat · Documents · Traduction · Images · Modèle d’IA · Performance · Paramètres. A screen reference equals the label (« l’écran Documents », « dans les Paramètres »); a string that names a button quotes its exact label in « ».
- Typography: « … » with a no-break space (U+00A0) inside; U+00A0 before
: ; ? ! %(one character everywhere, written\u00A0in the source); U+202F only between the digits of a typed figure; ’ for apostrophes;…; the spaced en dash « – » — or better a colon — never the em dash; œ; accented capitals (« État »); numbers and dates fromIntl. The machine-checkable part is enforced byTYPOGRAPHY_RULES.fr. - Units: the Latin symbols the formatters print (GB, MB, KB, B, tok/s, s), joined to the figure by U+00A0; never Go/Mo/Ko.
- Plurals: one / many / other, on consecutive lines in that order.
oneserves 0 and 1, so a.onesentence must be true for 0 and never points back at the counted things with a singular pronoun; every form shows{count}, also aonewhose English form has none (packs.addedToast) — exceptperf.model.line/perf.model.measuredOther({context}) andtranslate.file.gapPages({pages}).many(exact millions) is written likeother: after digits French takes no « de ». A plain key with a number goes label-first (« Tokens : {n} »); "and N more" in a plain key is « et {count} de plus ». - Citation marker:
S{n}(source) — the same letter as the English evidence pack a French UI exports. - Untranslated by design: the product name (no article: « dans HilbertRaum »), "HilbertRaum Lite", "HilbertRaum AI Kit", model ids, paths, technical values, the picker's language names. System is « Système ».
- Fixed-width surfaces: a shorter glossary synonym, never an abbreviation (no « max. », « infos »).
Spanish microcopy (UI languages wave, 2026-11-12 — architecture.md i18n record)
Everything above applies to the Spanish copy too — adapted, never translated literally;
machine-drafted and checked by a second model, not yet reviewed by a native speaker (owner decision
2026-11-11). One neutral international Spanish for every es-* locale: the word with no
regional mark, else the word Windows shows in both its Spanish builds. The spec-§11.4 rule binds
every warning and error ("Pick a smaller model — quality stays great" → "Elige un modelo más
pequeño: la calidad sigue siendo excelente.").
- Form of address: informal «tú» (owner decision 2026-11-11), lower case, everywhere — errors, the lock screen and the Review screen; never «usted», «vosotros» or voseo. Buttons and menu items are infinitives («Guardar»), instructions tú imperatives («Elige»), busy states gerunds («Cargando…»). Finished events take the simple past («No se pudo abrir el archivo»). Nothing agrees with the user's gender («Te damos la bienvenida», «Todo listo»).
- Glossary (mirrored in the
es.tsheader): workspace → espacio de trabajo · drive → unidad (never disco, memoria, pendrive) · computer → equipo · device → dispositivo · vault → espacio de trabajo cifrado (cifrar, never encriptar) · model → modelo (AI model → modelo de IA) · document → documento (file → archivo) · re-index → reindexar · offline → sin conexión · "Ask my documents" → «Preguntar a mis documentos» · lock/unlock → bloquear/desbloquear · password → contraseña · settings → Ajustes · plaintext (developer) mode → sin cifrar (desarrollo) · add → agregar · skill → habilidad · knowledge pack → paquete de conocimiento · check / verify / review → comprobar / verificar / revisar (never swapped). - Review glossary: evidence → evidencia — never «prueba»; «demostrar» appears only negated in the disclaimers («por sí sola no demuestra») · supported → respaldado («Revisado (respaldado)»: parentheses, since a colon would double the colon of a label–value line) · review → revisión (evidence review → revisión de evidencia) · review item → punto de revisión · evidence pack → paquete de evidencia · citation → referencia a la fuente (never «cita») · whole-document provenance → procedencia de un análisis del documento completo (its negation is always «no son referencias a frases concretas») · direct excerpt → extracto directo · source → fuente / documento fuente · reviewer → «Revisado por» (label) / la persona que revisa (prose) · mark ready / reopen → marcar la revisión como lista / reabrir la revisión · outdated → desactualizada · a review is «creada», an answer «generada».
- Nav labels and screen names: Inicio · Chat · Documentos · Traducir · Imágenes · Modelo de IA · Rendimiento · Ajustes («Configuración» is wider than the rail allows). A screen reference equals the label, capitalised, without quotes («en Ajustes», «Ir a Modelo de IA»); a string that names a button quotes its exact label in «».
- Typography: quotes «…» without inner spaces; every question and exclamation opens with ¿ / ¡
inside one value; no apostrophe at all;
…; no spaced dash — an English dash becomes a colon, a full stop, a comma or parentheses; a no-break space before%({pct}\u00A0%); numbers and dates fromIntl. The machine-checkable part is enforced byTYPOGRAPHY_RULES.es. - Units: the Latin symbols the formatters print (GB, MB, KB, B, tok/s, s), joined to the
figure or the placeholder by U+00A0, with «de» before what they measure
(
{min}\u00A0GB de RAM).Intlprints the Spain pattern («98.304», «4,3») for every Spanish locale (a known limitation). - Plurals: one / many / other, on consecutive lines in that order.
oneis exactly 1, so a form uses the placeholders of the English form of its category (packs.addedToast.onehas no{count});many(exact millions) is theothertext with «de» before the noun («{count} de documentos»). A plain key with a number goes label-first («secciones analizadas: {scanned}»); "and N more" in a plain key is «y {count} más». - Citation marker:
F{n}(fuente). - Untranslated by design: the product name (no article), "HilbertRaum Lite", "HilbertRaum AI Kit", model ids, paths, technical values, the picker's language names. System is «Sistema».
- Fixed-width surfaces: a shorter glossary synonym, never an abbreviation and never a dropped accent (no «config.», «pág.»).
Italian microcopy (UI languages wave, 2026-11-12 — architecture.md i18n record)
Everything above applies to the Italian copy too — adapted, never translated literally; machine-drafted and checked by a second model, not yet reviewed by a native speaker (owner decision 2026-11-11). The spec-§11.4 rule binds every warning and error ("Pick a smaller model — quality stays great" → «Scegli un modello più piccolo: la qualità resta ottima.»).
- Form of address: informal «tu» (owner decision 2026-11-11), lower case, everywhere — including the lock screen and the Review screen; never «Lei» or «voi». Buttons and instructions take the imperative («Riprova», «Scegli»), negatives «non» + infinitive («Non scollegare l’unità»). Nothing agrees with the user's gender («Vuoi davvero eliminare…?», not «Sei sicuro?»). The skill answers' "I" keeps verbs with «avere» («Ho letto»).
- Glossary (mirrored in the
it.tsheader): workspace → area di lavoro · drive → unità (also "disk"; always «questa unità», never «quest’unità»; never chiavetta, disco) · vault → area di lavoro crittografata (never «cifrata») · model → modello (AI model → modello IA) · document → documento · re-index → reindicizzare · offline → offline · "Ask my documents" → «Chiedi ai miei documenti» · lock/unlock → bloccare/sbloccare · password → password · settings → Impostazioni · plaintext (developer) mode → non crittografata (sviluppatori) · delete / cancel → eliminare / annullare (never «cancellare» for either) · skill → skill · token → token. "Everything stays on this drive" is always «Tutto resta su questa unità». - Review glossary: evidence → riscontro / riscontri — never «prova» or «evidenza»; «dimostrare» appears only negated in the disclaimers · supported → «Verificato – con riscontro» / «… con riscontro parziale» / «… senza riscontro» · review → verifica (evidence review → verifica dei riscontri) · review item → punto di verifica · evidence pack → pacchetto di riscontri (never «fascicolo») · citation → riferimento alla fonte (never «citazione») · whole-document provenance → provenienza da un’analisi dell’intero documento (its negation is always «nessun riferimento alle fonti per singola frase») · direct excerpt → estratto diretto · source → fonte / documento di origine (never «sorgente») · reviewer → «Persona che verifica» (label) / chi verifica (prose; never «revisore», a regulated title) · mark ready / reopen → Concludi / Riapri la verifica · outdated → non aggiornata · the review is «avviata», the answer «generata». Outside the Review screen "check" and "verify" are «controllare».
- Nav labels and screen names: Home · Chat · Documenti · Traduzione · Immagini · Modello IA · Prestazioni · Impostazioni. A screen reference equals the label, capitalised, without quotes («nella schermata Modello IA», «nelle Impostazioni»); a string that names a button quotes its exact label in «».
- Typography: quotes «…» without inner spaces and without nesting (also around technical field
names); ’ for the apostrophe and never an elision before a placeholder; accents, never an
apostrophe for one (È, perché, più);
…; no em dash — a colon or a new sentence, and the spaced en dash « – » only between a label and its gloss; no space before; : ! ?; numbers and dates fromIntl. The machine-checkable part is enforced byTYPOGRAPHY_RULES.it. - Units: the Latin symbols the formatters print (GB, MB, KB, B, tok/s, s, %); «unità» never
names a unit of measurement. A symbol other than % is joined to the figure or the placeholder
by U+00A0 (
{size}\u00A0GB);{pct}%takes no space. - Plurals: one / many / other, on consecutive lines in that order.
oneis exactly 1, so a form uses the placeholders of the English form of its category (packs.addedToast.onehas no{count});many(exact millions) adds «di» where the figure stands right before the noun («{count} di sezioni»), otherwise it is theothertext. A plain key with a number goes label-first («Sezioni analizzate: {scanned}»); "and N more" in a plain key is «e {count} in più». - Citation marker:
F{n}(fonte). - Untranslated by design: the product name, "HilbertRaum Lite", "HilbertRaum AI Kit", model ids, paths, technical values, the picker's language names. System is «Sistema».
- Fixed-width surfaces: a shorter glossary synonym, never an abbreviation (no «Impost.», «ecc.»).
Dutch microcopy (second UI-languages wave, 2026-11-13 — architecture.md i18n record)
Everything above applies to the Dutch copy too — adapted, never translated literally;
machine-drafted and checked by a second model, not yet reviewed by a native speaker (owner decision
2026-11-13). One standard Dutch for the Netherlands and Flanders (nl-BE resolves to nl):
the word that is neutral in both. The spec-§11.4 rule binds every warning and error ("Pick a
smaller model — quality stays great" → «Kies een kleiner model: de kwaliteit blijft uitstekend.»).
In this section «…» marks Dutch examples; the copy itself quotes with “…”.
- Form of address: informal «je» (owner decision 2026-11-13), lower case, everywhere — errors,
the lock screen and the Review screen; never «u», «uw» or «jullie», and «jij / jou / jouw» only
for contrast. Buttons and menu items are infinitives with the object in front («Opslaan»,
«Documenten importeren»), a go-to button is «Naar AI-model» (never «Open AI-model», which reads
as the company name), instructions are imperatives («Kies», «Probeer het opnieuw»), busy states
an infinitive with
…(«Werkruimte laden…»). No personal pronoun stands for a person («hij», «zij», «zijn», «haar» for the reader, the reviewer or another user) or for a single thing («hij», «hem», «zijn», «ze», «haar» for a de-word, which the north and the south use differently): the noun is repeated («Sluit de schijf opnieuw aan», not «Sluit hem opnieuw aan»). «Het» for a het-word and plural «ze» are fine. - Glossary (mirrored in the
nl.tsheader): workspace → werkruimte · drive → schijf (also "disk"; never station, stick, drive, apparaat) · vault → versleutelde werkruimte · model → model (AI model → AI-model, never KI) · document → document (file → bestand) · re-index → opnieuw indexeren · offline → offline (Offline Mode → Offlinemodus) · "Ask my documents" → «Vragen aan mijn documenten» · lock/unlock → vergrendelen/ontgrendelen · password → wachtwoord (never paswoord) · settings → Instellingen · plaintext (developer) mode → onversleuteld (ontwikkelaars) · delete and remove → verwijderen · clear → wissen · cancel → annuleren · chat / conversation → chat / gesprek · skill → skill · token → token · knowledge pack → kennispakket. "Everything stays on this drive" is always «Alles blijft op deze schijf». - Review glossary: evidence → onderbouwing — the noun «bewijs» is banned; «bewijzen» appears only negated in the disclaimers · supported → «Beoordeeld – onderbouwd» / «… deels onderbouwd» / «… niet onderbouwd» · review → beoordeling (evidence review → beoordeling van de onderbouwing) · review item → beoordelingspunt · evidence pack → onderbouwingspakket (never «dossier») · citation → bronverwijzing (never «citaat») · whole-document provenance → herkomst uit een analyse van het hele document (its negation is always «geen bronverwijzingen per zin») · direct excerpt → direct fragment · source → bron / brondocument · reviewer → «Beoordelaar» (label) / wie beoordeelt (prose) · mark ready / reopen → Beoordeling afronden / heropenen · outdated → verouderd · a review is «aangemaakt», an answer «gegenereerd». Outside the Review screen "check" and "verify" are «controleren».
- Nav labels and screen names: Start · Chat · Documenten · Vertalen · Afbeeldingen · AI-model · Prestaties · Instellingen; the rail foot reads «Vergrendelen», «Offline» / «Netwerk aan». A screen reference equals the label, capitalised, without quotes, with a noun in front where it helps («het scherm Vertalen», «in Instellingen», «Naar AI-model»); a string that names a button quotes its exact label in “…”.
- Typography: quotes “…” without nesting — ‘…’ is not used, because its closing mark is the
apostrophe; ’ for the apostrophe («PDF’s», «foto’s», «’s avonds»);
…attached to the word before it; no em dash — a colon or a new sentence, and the spaced en dash « – » between a label and its gloss; no space before: ; ? ! %; no no-break space except between a figure or a placeholder and a unit symbol (Units, below); no exclamation mark; compounds as one word or with a hyphen («AI-model», «offlinemodus»); the diaeresis («geïndexeerd»); nothing glued to a placeholder; numbers and dates fromIntl.TYPOGRAPHY_RULES.nlenforces the punctuation and placeholder rules and bans «u», «uw», «uzelf», «jullie» and «gij»; the rest of the form of address, the glossary and the spelling (compounds, the diaeresis) are checked in review (owner decision 2026-11-13). - Units: the Latin symbols the formatters print (GB, MB, KB, B, tok/s, s, ms, %), after a
no-break space, U+00A0 (
{size}\u00A0GB op schijf);{pct}%without a space.Intlprints the Netherlands date pattern for every Dutch locale (a known limitation). - Plurals: one / other, on consecutive lines in that order.
oneis exactly 1, so a form uses the placeholders of the English form of its category (packs.addedToast.onehas no{count}). Participles and status words do not change with the number, so.oneand.othermay be the same text («{count} geselecteerd»). A plain key with a number goes label-first («Gelezen secties: {scanned}»); "and N more" in a plain key is «en nog {count}». - Citation marker:
B{n}(bron). - Untranslated by design: the product name (no article, never in a compound), "HilbertRaum Lite", "HilbertRaum AI Kit", model ids, paths, technical values, the picker's language names. System is «Systeem». Language names take a capital («Engels»).
- Fixed-width surfaces: a shorter glossary synonym, never an abbreviation (no «inst.», «bijv.»); a compound of more than two parts becomes a phrase with «van» or «voor».
Polish microcopy (second UI-languages wave, 2026-11-13 — architecture.md i18n record)
Everything above applies to the Polish copy too — adapted, never translated literally; machine-drafted and checked by a second model, not yet reviewed by a native speaker (owner decision 2026-11-13). The spec-§11.4 rule binds every warning and error ("Pick a smaller model — quality stays great" → «Wybierz mniejszy model – jakość pozostanie bardzo dobra.»).
- Form of address: informal «ty» (owner decision 2026-11-13), lower case («twój», never «Twój»), never «Pan / Pani». Buttons and instructions take the imperative («Zapisz», «Wybierz plik»; negative, imperfective: «Nie odłączaj dysku»). What happened is impersonal («Zapisano», «Nie udało się zapisać pliku», «Nie znaleziono pliku»): a Polish past-tense verb shows gender, so neither the user nor the app is its subject, and no adjective describes the user («Czy na pewno chcesz usunąć…?», not «Czy jesteś pewien?»). The skill answers' "I" becomes impersonal («Odczytano», not «Przeczytałem»). A placeholder never carries grammar: no ending glued to it and no preposition right before a name; a generic noun in front takes the case («w dokumencie „{title}”», «modelu {model}»).
- Glossary (mirrored in the
pl.tsheader): workspace → obszar roboczy · drive → dysk (also "disk"; never pendrive, nośnik, napęd) · vault → zaszyfrowany obszar roboczy · model → model (AI model → model AI; never «SI») · document → dokument · re-index → indeksować ponownie · offline → offline · "Ask my documents" → „Zapytaj moje dokumenty” · lock/unlock → zablokować/odblokować · password → hasło · settings → Ustawienia · plaintext (developer) mode → bez szyfrowania (tryb programisty) · delete and remove → usunąć · cancel → anulować · skill → umiejętność · token → token (genitive «tokena») · chat → czat. "Everything stays on this drive" is always «Wszystko zostaje na tym dysku». - Review glossary: evidence → potwierdzenie / potwierdzenia — never «dowód» or «ewidencja»; «dowodzić» appears only negated in the disclaimers · supported → «Zweryfikowano – ma potwierdzenie» / «… częściowe potwierdzenie» / «… brak potwierdzenia» · review → weryfikacja (evidence review → weryfikacja potwierdzeń) · review item → punkt weryfikacji · evidence pack → pakiet potwierdzeń (never «akta», «teczka») · citation → odwołanie do źródła (never «cytat», «przypis») · whole-document provenance → pochodzenie z analizy całego dokumentu (its negation is always «bez odwołań do źródeł dla poszczególnych zdań») · direct excerpt → bezpośredni fragment (never «wyciąg», the bank statement) · source → źródło / dokument źródłowy · reviewer → «Osoba weryfikująca» (never «recenzent», «rewident») · mark ready / reopen → Zakończ / Wznów weryfikację · outdated → nieaktualna · the review is «rozpoczęta», the answer «wygenerowana». Outside the Review screen "check" and "verify" are «sprawdzić».
- Nav labels and screen names: Start · Czat · Dokumenty · Tłumacz · Obrazy · Model AI · Wydajność · Ustawienia; the rail foot reads «Zablokuj teraz», «Offline» / «Sieć aktywna». A screen reference equals the label, capitalised, without quotes and never declined: «ekran» (or «karta» for a Settings tab) takes the case («na ekranie Model AI»); «w Ustawieniach» and a button's object («Otwórz Model AI») are the two fixed exceptions. A string that names a button quotes its exact label in „…”.
- Typography: quotes „…” — the closing mark is ” (U+201D), not the German “ — also around
technical field names; inner «…» only inside them; no apostrophe (a noun before a foreign name
instead of declining it);
…; the spaced en dash « – », never the em dash; no space before, ; : ! ? .or%; no no-break space except between the digit groups of a typed figure and between a figure or a placeholder and a unit symbol (Units, below); numbers and dates fromIntl(«8192», but «98 304» with U+00A0; «4,3»; «75%»).TYPOGRAPHY_RULES.plenforces the punctuation and placeholder rules (the preposition before a name included) and bans «Pan», «Pani», «Państwo» and a capital «Ty» or «Twój» mid-sentence; the rest of the form of address (no gendered verb or adjective about the user), the glossary and the spelling are checked in review (owner decision 2026-11-13). - Units: the Latin symbols the formatters print (GB, MB, KB, B, tok/s, s, ms, %), never a
unit word after a figure; a symbol other than % is joined to the figure or the placeholder by
U+00A0 (
{size}\u00A0GB). - Plurals: one / few / many / other, on consecutive lines in that order.
oneis exactly 1, so a form uses the placeholders of the English form of its category (packs.addedToast.onehas no{count});few(2–4, 22–24) takes the nominative plural («2 dokumenty»),many(0, 5–21, 25–31) the genitive plural («21 dokumentów»: 21 ismany, unlike Russian),otheronly fractions (genitive singular, «1,5 dokumentu»). The impersonal form keeps one verb for all four («Ponownie zindeksowano {count} dokumenty»). A plain key with a number goes label-first with the noun in the nominative plural («Przeanalizowane sekcje: {scanned}»); "and N more" in a plain key is «i jeszcze {count}». - Citation marker:
Ź{n}(źródło). - Untranslated by design: the product name (never declined: «w aplikacji HilbertRaum»), "HilbertRaum Lite", "HilbertRaum AI Kit", model ids, paths, technical values, the picker's language names. System is «Systemowy».
- Fixed-width surfaces: a shorter glossary synonym, never an abbreviation (no «ust.», «wł.», «np.»).
Turkish microcopy (second UI-languages wave, 2026-11-13 — architecture.md i18n record)
Everything above applies to the Turkish copy too — adapted, never translated literally; machine-drafted and checked by a second model, not yet reviewed by a native speaker (owner decision 2026-11-13). The spec-§11.4 rule binds every warning and error ("Pick a smaller model — quality stays great" → «Daha küçük bir model seçin: kalite yine çok iyi olur.»). The «…» in this section only set the examples apart; the catalog quotes with “…”.
- Form of address: «siz» (owner decision 2026-11-13) in sentences, lower case and usually dropped, with the short polite imperative («seçin», «yeniden deneyin»; never «seçiniz», never «sen»); buttons take the bare imperative («Kaydet», «Sil», «İndir»), "Cancel" is «İptal». Confirmations ask in the passive («Bu sohbet silinsin mi?»). Turkish has no grammatical gender. The skill answers' "I" stays first person («okudum», «bulamadım»).
- Glossary (mirrored in the
tr.tsheader): workspace → çalışma alanı · drive → sürücü (also for "disk"; never «USB bellek» or «disk»; a graphics driver is always «ekran kartı sürücüsü») · vault → şifreli çalışma alanı · model → model (AI model → yapay zekâ modeli, «zekâ» with â, never «YZ» or «AI») · document → belge · re-index → yeniden dizinle · offline → çevrimdışı · "Ask my documents" → «Belgelerime sor» · lock/unlock → kilitle / kilidini aç · password → parola (never «şifre»: that stem means encryption) · settings → Ayarlar · plaintext (developer) mode → şifrelenmemiş (geliştirici) · chat and conversation → sohbet · answer → yanıt · skill → beceri · knowledge pack → bilgi paketi · image → görsel · delete / cancel / remove → sil / İptal / kaldır · install / load / download → kur / yükle / indir. "Everything stays on this drive" is always «Her şey bu sürücüde kalır». - Review glossary: evidence → dayanak / dayanaklar — never «kanıt» or «delil»; «kanıtlamak» appears only negated in the disclaimers · supported → «İncelendi – dayanağı var» / «… kısmen dayanağı var» / «… dayanağı yok» · review → inceleme (evidence review → dayanak incelemesi) · review item → inceleme maddesi · evidence pack → dayanak paketi · citation → kaynak atfı (never «alıntı», «referans») · whole-document provenance → belgenin tamamının analizine dayanan köken (its negation is always «cümle düzeyinde kaynak atfı yok») · direct excerpt → doğrudan alıntı · source → kaynak / kaynak belge · reviewer → «İnceleyen» (label) / inceleyen kişi (prose; never «denetçi», a regulated title) · mark ready / reopen → Hazır olarak işaretle / İncelemeyi yeniden aç · outdated → güncel değil · the review is «başlatıldı», the answer «oluşturuldu». Outside the Review screen "check" is «kontrol et» and the checksum "verify" is «doğrula».
- Nav labels and screen names: Ana sayfa · Sohbet · Belgeler · Çeviri · Görseller · Yapay zekâ modeli · Performans · Ayarlar. A screen reference equals the label, capitalised, without quotes, followed by a generic noun that carries the ending («Yapay zekâ modeli ekranında», «Ayarlar ekranında», «Tanılama sekmesi»); a string that names a button quotes its exact label in “…” and adds «düğmesi» («“Aranabilir yap (OCR)” düğmesini kullanın»).
- Placeholders: nothing is attached to a
{placeholder}or to a closing quote — no suffix, no apostrophe plus suffix, no «de/da» or «mi/mı/mu/mü» right after it — because vowel harmony depends on the inserted text. The placeholder is the subject of a passive («{name} indirilemedi»), or a generic noun carries the ending («{model} modelinde», «“{title}” başlıklı sohbet»), or the value is label-first («Model: {model}»). - Typography: quotes “…” without nesting; ’ for the apostrophe, only after a proper name, an
acronym or a figure, with no space around it;
…; no em dash — a colon, a semicolon or a new sentence, and the spaced en dash « – » only between a label and its gloss; no space before, ; : ! ?; no exclamation mark; a Turkish word that starts with «i» is capitalised with «İ», never a Latin «I» («İptal», «İndir»), while the few words that start with «ı» take «I» («ısı», «ışık», «ılık»); numbers and dates fromIntl(«8.192», «4,3»).TYPOGRAPHY_RULES.trenforces the punctuation, percent and placeholder rules (the unit symbol after a placeholder included) and bans «sen» and a capital «Siz» mid-sentence; the rest of the form of address, the capital «İ», the glossary and the spelling are checked in review (owner decision 2026-11-13). - Units: the Latin symbols the formatters print (GB, MB, KB, B, tok/s, s, ms) after the
figure, joined to it or to the placeholder by U+00A0 (
{size}\u00A0GB); the percent sign stands before it without a space («%75», in catalog text%{pct}). - Plurals: one / other, on consecutive lines in that order.
oneis exactly 1, so a form uses the placeholders of the English form of its category (packs.addedToast.onehas no{count}). A noun stays singular after any number («5 belge»), so the two forms are often the same text. "{a} of {b}" is «{a} / {b}»; "and N more" in a plain key is «ve {count} tane daha». - Citation marker:
K{n}(kaynak). - Untranslated by design: the product name, "HilbertRaum Lite", "HilbertRaum AI Kit", model
ids, paths, technical values, the picker's language names. System is «Sistem». The values
that CSS shows in capitals (section titles, the conversation date groups) hold no brand or
Latin product name, because
lang="tr"uppercases «i» to «İ». - Fixed-width surfaces: a shorter glossary synonym, never an abbreviation (no «Ayr.», «vb.», «sn.»).
Ukrainian microcopy (second UI-languages wave, 2026-11-13 — architecture.md i18n record)
Everything above applies to the Ukrainian copy too — adapted, never translated literally; machine-drafted and checked by a second model, not yet reviewed by a native speaker (owner decision 2026-11-13). The spec-§11.4 rule binds every warning and error ("Pick a smaller model — quality stays great" → «Виберіть меншу модель — якість залишиться високою.»). The copy is Ukrainian in its own right: no term, spelling or calque is taken from another Slavic catalog.
- Form of address: formal «ви» (owner decision 2026-11-13), lower case, everywhere — including the lock screen and the Review screen; never «ти», never a capital «Ви». A control that acts takes the infinitive («Зберегти», «Скасувати»); a sentence that tells the user what to do takes the «ви» imperative («Виберіть», «Спробуйте ще раз»); a state takes the impersonal -но / -то form («Збережено», «Увімкнено»). Nothing needs the user's gender, and the app never speaks in the first-person past tense («Прочитано…», «Не вдалося знайти…», not «Я прочитав»).
- Glossary (mirrored in the
uk.tsheader): workspace → робочий простір · drive → диск (also "disk"; «на цьому диску», «з цього диска»; never накопичувач, носій, флешка) · vault → зашифрований робочий простір · model → модель (AI model → ШІ-модель, AI engine → ШІ-рушій) · document → документ · re-index → переіндексувати · offline → офлайн · "Ask my documents" → «Запитати мої документи» · lock/unlock → заблокувати/розблокувати · password → пароль · settings → Параметри («налаштування» is the act of setting up) · plaintext (developer) mode → незашифрований (для розробників) · app → застосунок · skill → навичка · knowledge pack → пакет знань · delete / remove / cancel → видалити / прибрати / скасувати · default → типово. «Завантаження» always means a download; loading from the disk is «запуск», «відкриття» or «Зачекайте…». "Everything stays on this drive" is always «Усе залишається на цьому диску». - Review glossary: evidence → обґрунтування — never «докази» or «підтвердження»; «доводити» appears only negated in the disclaimers · supported → «Перевірено — обґрунтовано» / «… частково обґрунтовано» / «… не обґрунтовано» · review → перевірка (evidence review → перевірка обґрунтування) · review item → пункт перевірки · evidence pack → пакет обґрунтування (never «досьє», «справа») · citation → посилання на джерело (never «цитата») · whole-document provenance → походження з аналізу всього документа (its negation is always «без посилань на джерела для окремих речень») · direct excerpt → прямий уривок · source → джерело / документ-джерело · reviewer → «Особа, яка перевіряє» (never «рецензент», «перевіряючий») · mark ready / reopen → Завершити / Знову відкрити перевірку · outdated → застаріла · the review is «розпочата», the answer «згенерована». Outside the Review screen a check is a verb or carries its object; the checksum is «Звірити контрольну суму».
- Nav labels and screen names: Головна · Чат · Документи · Переклад · Зображення · ШІ-модель · Швидкодія · Параметри («Налаштування» does not fit the rail). A screen name is never declined: in a sentence it follows the noun «екран» in quotes («на екрані «ШІ-модель»»), in a path it stands bare («Параметри → Діагностика»); a string that names a button quotes its exact label in «».
- Typography: quotes «…», with „…“ only inside them (also around technical field names); the
apostrophe is the letter U+02BC, as
Intlprints it in Ukrainian, never U+2019 or an ASCII quote; the sentence dash is the spaced em dash « — », the en dash only joins numbers;…; no space before, . ; : ! ?; no exclamation mark; a Latin and a Cyrillic letter never touch (PDF-файл); the 2019 orthography (проєкт, офлайн, вебсайт); no letter ы, э, ъ or ё; numbers and dates fromIntl.TYPOGRAPHY_RULES.ukenforces the punctuation, script and placeholder rules (the apostrophe, the Russian letters, a Latin letter touching a Cyrillic one) but has no address-form rule, so the form of address, the glossary and the spelling (the 2019 orthography) are checked in review (owner decision 2026-11-13). - Units: the Latin symbols the formatters print (GB, MB, KB, B, tok/s, s, %), never «ГБ»; a
symbol other than % is joined to the figure or the placeholder by U+00A0 (
{size}\u00A0GB);{pct}%without a space;Intlgroups from four digits up with a no-break space. A no-break space appears in those two places only. - Plurals: one / few / many / other, on consecutive lines in that order: nominative singular
(«{count} документ»), nominative plural («документи»), genitive plural («документів»), and for
fractions the genitive singular («документа»).
onealso serves 21, 31, 101, so every form shows{count}where the Englishotherdoes (packs.addedToast.one→ «Додано {count} пакет знань») and noonemay hold a word that is false for 21. A plain key with a number goes label-first («Проаналізовано розділів: {scanned}»); "and N more" in a plain key is «і ще {count}». - Placeholders: no ending is glued to a placeholder and no preposition forces a case on it: a generic noun in front («модель {name}», «документ «{title}»»), a label and a colon, or the placeholder as the subject of a present-tense verb.
- Citation marker:
Д{n}(джерело). - Untranslated by design: the product name (never declined), "HilbertRaum Lite", "HilbertRaum AI Kit", model ids, paths, technical values, the picker's language names. System is «Системна».
- Fixed-width surfaces: a shorter glossary synonym, never an abbreviation (no «налашт.», «і т. д.»).
8. What to avoid
Glassmorphism / blur behind text · expressive 2026 fads (jelly buttons, kinetic type, neon
gradients) · enterprise dashboard sprawl (nested cards, KPI tiles, equal-weight technical
readouts) · jargon in the everyday path · dark-only · security theater (red locks, WARNING
caps) · removed focus indicators, sub-24px targets, color-only status · permanent control
clutter on the chat canvas · heavy component frameworks (full MUI/Ant). Headless Radix
primitives (Dialog, Popover, DropdownMenu, Tabs, Switch, Tooltip) are the acceptable
amount of help — pure-JS, MIT, renderer-bundled like react-markdown [adapted:
see plan, decision D-UI1].
9. Accessibility checklist (WCAG 2.2 AA)
- Text ≥ 4.5:1; large text + UI boundaries/icons ≥ 3:1 (token tables carry the ratios).
- Visible focus on everything (
:focus-visible, ≥2px, ≥3:1); include anoutline(not justbox-shadow) so Windows High Contrast Mode keeps it. - Sticky headers/composer must not obscure the focused element (2.4.11).
- Targets ≥ 24×24 CSS px; 36px+ for primary controls (2.5.8).
- Any drag interaction needs a non-drag path (2.5.7).
- Password gate allows paste and password managers (3.3.8).
- Honor
prefers-reduced-motioneverywhere. - Streaming announced via ARIA live regions; keyboard users can Stop.
- Never color alone for status (1.4.1).
10. Sources
Key sources from the 2026-06-10 research round (full list in the research output,
git log this file's introduction commit): NN/g dark-vs-light-mode and error-message
guidelines; WCAG 2.2 AA criteria summaries (focus appearance 2.4.11, target size 2.5.8,
accessible auth 3.3.8); Apple's Liquid Glass legibility walk-back coverage; 2026 UI-trend
surveys (UXPin, Tubik, Envato) converging on calm/reduced-load UI; AI-chat UI pattern
write-ups (progressive disclosure, inline expandable citations, streaming states);
Proton/1Password trust-aesthetic comparisons.
11. Rollout record — UI polish wave (Phases 23–27, IMPLEMENTED 2026-06-10)
The wave shipped on branch ui-phase-23-tokens-theming, merged to master 2026-06-10. This
section is the wave's condensed design record per the CLAUDE.md doc lifecycle rule (formerly
the separate docs/ui-ux-redesign-plan.md, folded in here during the 2026-06-12 docs
housekeeping; the full original phased plan is in git history —
git show d2ecf5a:docs/ui-ux-redesign-plan.md). Code comments cite the decisions below as
D-UI1–D-UI4.
11.1 Decisions (all resolved)
| ID | Decision | Outcome |
|---|---|---|
| D-UI1 | Radix primitives, narrowly scoped — [email protected], [email protected], [email protected], [email protected], pinned exact; 42 transitive packages license-reviewed (all MIT/pure-JS/no install scripts). Segmented control, switch, chips, badges, banners stay hand-rolled. |
EXECUTED — Dialog (Phase 24), Popover + DropdownMenu (Phase 25), Tooltip (Phase 27, the ambient indicator). |
| D-UI2 | Theme setting 'system' | 'light' | 'dark', default 'system'. The pre-unlock gate cannot read settings (encrypted DB) → the gate always follows the OS theme. |
IMPLEMENTED as written (Phase 23; renderer/theme.ts). |
| D-UI3 | Home stays, rebuilt as the readiness hub. Re-evaluated after Phase 26: it does NOT duplicate the Chat empty state (Chat teaches what to ask; Home answers is the system ready), and the Phase-27 first-run flow did not absorb its remediation duties (the starter step only routes; Home keeps live status + preflight). Follow-up 2026-06-16 (§11.7): the hero CTA is now ADAPTIVE — it leads with the top unmet prerequisite ("Choose a model" when a model is needed) instead of always "Start chatting", so it no longer dead-ends at the no-model empty state. | RESOLVED — Home stays; hero adaptive. |
| D-UI4 | Depth-mode ids stay fast|balanced|deep in code/IPC/persistence; only UI labels are Quick/Balanced/Thorough. No data migration. |
EXECUTED (Phase 25 DepthMenu; tests pin the label↔id mapping). |
11.2 Facts the wave rests on
- Renderer-only, with two scoped exceptions: the additive
AppSettings.themekey (Phase 23) and user-facing main-process string literals (Phase 27 copy sweep — error messages/notices only, no logic/IPC/schema changes). All hard rules held: fully offline (no web fonts/CDNs — system font stacks per §4.4), no telemetry, Windows first-class. - Run vitest from
apps/desktop— repo-root runs break the renderer matchers. - The old accent
#4f8cffas a filled-button background fails AA (3.22:1); pre-refresh filled controls used--accent-600 #2f6fed(4.55:1) in both themes (§4.2). (Superseded by the §13 brand refresh — the accent ramp is now teal; the primary button is teal fill + dark ink, §4.2.) listModelsneeds an unlocked workspace, so the first-run "is a model installed?" check runs after create succeeds, before handing off to the shell.
11.3 As built, per phase
- Phase 23 — tokens + theming.
renderer/tokens.css(ramps theme-constant; role tokens per theme::root= light,[data-theme="dark"]= dark), fullstyles.cssrestyle onto role tokens, global a11y baseline (:focus-visibleoutline ring, reduced-motion kill-switch, ≥24px hit targets), additive enum-guardedAppSettings.theme+ the Settings Appearance card. Components never theme-check. - Phase 24 — shared components.
renderer/components/: Button / Badge / Banner / Toast(+host) / Modal / ConfirmDialog / SegmentedControl / Switch / Chip / EmptyState / Progress per §6; every non-chat screen + the WorkspaceGate migrated; "Saved" feedback via polite-live-region toasts; last browserconfirm()removed. - Phase 25 — chat restructure (the priority).
ChatScreensplit intorenderer/chat/per §3: collapsible date-grouped ConversationList (hover "⋯" + ConfirmDialog), centered 720px Transcript with per-message Try again · Copy · Save and the inline "▸ Sources (N)" disclosure, header SegmentedControl + "⋯" overflow, composer-footer "Answer detail" dropdown + documents-scope popover, teaching empty state, buffered streaming with the auto-collapsing Thinking… line. - Phase 26 — IA regroup. Nav 7→5 (Home · Chat · Documents · AI Model ‖ Settings);
Privacy + Diagnostics became Settings tabs;
renderer/navigation.tsresolveNavTargetwith virtualsettings:*targets + legacyprivacy/diagnosticsaliases (later joined bydocuments:packsand themodels:voice/models:images/models:translationlandings on a missing model — §7, #527, #539); Home rebuilt as the readiness hub; AI Model screen with per-card "Technical details" disclosure. - Phase 27 — microcopy, ambient signal, first-run (closed the wave).
- Copy sweep (§7) across renderer + user-facing main-process strings: the stale "Models
screen" errors,
NO_DOCUMENT_CONTEXT_ANSWER(persisted — reword affects future answers only), the wrong-password message ("That password didn't unlock your workspace…"), start-refusal messages (checksum state code → "we couldn't verify its file"), Documents ingestion labels (Waiting/Reading/Preparing/Ready), benchmark "Fast Mode" leftover. Atests/unit/copy-tone.test.tsguard pins the tone and scans string literals for stale phrases. - Ambient indicator:
components/LocalIndicator.tsx(Radix Tooltip) — quiet "🔒 Local · Offline" in the sidebar (replacing the offline badge; state passed live by App) and the chat header (self-fetching). (Superseded by Phase 12 — the sidebar instance was removed; the indicator now lives only in the chat header. See §12.1, decision #2.) Hover/focus = reassurance line; click =settings:privacy. Honest variant while downloads are enabled: "Local · Downloads allowed" / "Downloads allowed — chats and documents stay local." - First-run (create path only): 3 full-window steps in
WorkspaceGate— welcome/trust framing → create password (hand-rolled advisory strength meter that never blocks; only the 8-char floor + confirm-match gate submission; Show/Hide toggle; paste + password managers work, WCAG 3.3.8; the one honest "can't be recovered" line) → optional starter step rendered only when no chat model is installed (it routes to AI Model / Documents — every download gate lives unchanged on the AI Model screen). Skippable; ends on Chat.onUnlocked(state, landOn?)lets App land on chat/models/documents; plain unlock stays a single calm screen and keeps the current screen. - WCAG 2.2 AA sweep: every role-token pairing contrast-computed in both themes — one
real failure fixed (
--border-strong2.5:1/2.2:1 →--n-500, 4.77:1 light / 3.65:1 dark; ramp value, no new hex); forced-colors (Windows High Contrast) rules for the Switch + strength meter; reduced-motion verified. Accepted items recorded inknown-limitations.md§Accessibility. - Found by the eyeball walk: in the production rollup bundle a second tree-shaken copy
of
workspace-vaultmadeinstanceof WrongPasswordErrorfail, so the friendly wrong-password message was unreachable in the built app (vitest runs unbundled and never saw it). The handler now also matcheserr.name; the bundler quirk is recorded inknown-limitations.md.
- Copy sweep (§7) across renderer + user-facing main-process strings: the stale "Models
screen" errors,
11.4 Verification pattern (kept for future UI work)
Each phase: npm run typecheck + full vitest from apps/desktop + npm run build, plus a
scripted Playwright _electron screenshot walk of every touched screen in BOTH themes
(workspace %TEMP%\hilbertraum-eyeball, per-phase walk-phaseNN.mjs; strip ELECTRON_RUN_AS_NODE,
clear localStorage after the first window, emulateMedia for theme/reduced-motion; write a
config/policy.json with encryption_required: true to exercise the gate). Suite grew
644 → 669 tests (+6 manual skips) over the wave.
11.6 Documents-screen refinement — design record (IMPLEMENTED 2026-06-15)
A focused, renderer-only pass on the Documents screen that extends the Phase 23–27 wave — no IPC, schema, persistence, or main-process changes. The document tasks (summarize, translate, compare, re-index, build deep index, OCR, add-to-project, delete) keep their existing handlers/IPC; only the presentation changed. Code/i18n comments cite this section as §11.6.
Decisions (the facts they rest on):
- Action bank → one inline Preview + a "⋯" overflow. Each row had 6–7 equal-weight outline
buttons (Preview · Summarize · Translate · Re-index · Build deep index · Add to project… ·
Delete), violating §6 (three button levels, one primary per view) and §8 (control clutter /
equal-weight readouts). Now: Preview is the single inline Secondary button; everything
else lives in a Radix
DropdownMenu("⋯"), mirroring the chatConversationList⋯ +ConfirmDialogpattern (decision D-UI1,[email protected]). The trigger isaria-labelled "More actions for ", is keyboard-focusable/tabbable even though it is revealed on hover, and right-clicking the row opens the same menu (one controlledmenuOpenId). Contextual items appear only when applicable ("Read again (OCR)" on an already-OCR'd PDF, "Build deep index" until deeply indexed, "Export" for generated docs). A detected scan is a FAILED row — failed rows have no overflow, so its "Make searchable (OCR)" is an inline button on the row itself (OCR-R P1; see the architecture.md OCR remediation ledger). - State = badges, not buttons. The three scattered "done" signals — "✓ Ready" (top-right),
"Summary ✓" (metadata row), and "✓ Deeply indexed" (a green button in the action row) — are
consolidated into ONE right-aligned Badge cluster (
Badge, icon + word, never color-only — 1.4.1): a processing/ready status badge + small Summary (neutral) and Deeply indexed (success) badges. "Build deep index" simply disappears from the overflow once the tree is ready; Summarize↔Summarize again flips ond.summary. Provenance for generated docs ("Translated from …", "Comparison of …") stays a quiet caption, not a badge. - Locations/projects = one uniform Chip. Library / Temporary / Generated / Archived AND
project tags now all render as the SAME neutral
Chip, grouped and visually separate from the green status badges. The old blue-outlined "Temporary" badge is gone (it read like a status/link and collided with the Temporary left-nav location). See the open risk inBUILD_STATE.mdon whether Library/Temporary/Generated/Archived are mutually-exclusive locations vs additive flags — the data model was left untouched. - Compact list rows (§6 lists/tables). The tall cards became compact rows (≥40px; ~56px for
the two-line name + muted meta): checkbox · file-type
Icon· filename (min-width:0+ ellipsis) with a muted meta line · chips · status badges · inline Preview · ⋯. Hover highlights the row; selected rows reuse the nav/history selection treatment —--row-selected-bgfill + a--row-selected-baraccent left bar (new role tokens per theme), NOT an outline ring, so selection stays distinct from the:focus-visiblering (§9). Result: ~3× more documents per screen. - MIME → friendly label (§7). A pure, renderer-only
friendlyMimeLabelmaps the stored MIME to a short label ("application/pdf" → "PDF", "text/markdown" → "Markdown", audio/* → "Audio", …) — display only, the stored strings are unchanged (the copy-tone guard stays green). The whole meta strip ("PDF · 2.0 KB · 7 sections") is--text-xs+--text-muted(technical columns visually secondary, §6). - Selection toolbar for multi-doc ops (§6 banners — never stacked). Ticking checkboxes
surfaces ONE sticky, non-stacking bar: Ask these documents, Compare (2) (enabled only
at exactly two), Add to project…, mark Temporary/Archived, and a Delete behind a
ConfirmDialog— keeping the per-row set minimal. The bar reuses the selected-row fill + left bar. - Toolbar (Task 7). Refresh became a quiet
icon-btn(newrefreshglyph inIcon,aria-label"Refresh") so Import files (Primary) + Import folder (Secondary) carry the toolbar.
As built: renderer/screens/DocumentsScreen.tsx (compact rows, "⋯" overflow, badge
cluster, uniform chips, selection toolbar, bulk-delete ConfirmDialog, friendlyMimeLabel),
renderer/components/Icon.tsx (refresh), renderer/tokens.css (--row-selected-bg /
--row-selected-bar per theme; reuse the ramp), renderer/styles.css (.doc-row*,
.docs-selbar, .doc-row-menu-btn, .icon-btn, .btn.danger, .menu-sep),
shared/i18n/{en,de}.ts (docs.moreActions, docs.chip.generated/archived,
docs.meta.sectionsCount, docs.bulk.delete*, docs.selectionAria). Verification per §11.4:
typecheck + build clean, full vitest from apps/desktop 1353 passed / 25 skipped (+5;
updated tests that asserted the old per-card button set / equal-weight Delete / "✓ Deeply
indexed" button / blue "Temporary" badge / raw "application/pdf", and added overflow + MIME
helper + selection-toolbar + status-as-Badge cases). Both themes contrast-checked; the new
accent left bar reads ≥3:1 on both surfaces. German copy added in the same pass (D-L7 informal
„du").
Follow-up refinement (same area, 2026-06-15 — renderer-only, presentation only): four
visual fixes after the compact-row restructure shipped. (1) Right-aligned trailing cluster +
reading column. The chips/badges/Preview/"⋯" are wrapped in one .doc-row-trailing
(flex-shrink:0, right-aligned) sibling to the flex-filling .doc-row-main (flex:1; min-width:0); the filename uses the available width and only ellipsizes when genuinely out of
room, while Preview + "⋯" form a clean aligned column down the list. The list is capped to a
~1000px reading column (.doc-list) and the Documents screen widened past the 860px .screen
prose cap (.docs-screen { max-width: 1180px }, left-aligned, NOT centred — superseded
2026-08-09, #166: all capped screens now centre via the .screen margin, see §14; the width
argument below stands unchanged) because a list with
chips + three badges + actions needs more width than a reading column; .docs-main { min-width:0 }
is the grid-blowout guard so a long unbreakable filename ellipsizes instead of widening the row
and pushing Preview/"⋯" off the edge. (2) Tags read as tags, not buttons. The row tag Chips
are restyled (scoped to .doc-row-chips .chip) as a quiet filled --surface-hover neutral with
no hard border, --text-xs --text-muted — visibly quieter than and clearly distinct from the
bordered Secondary Preview button (muted text on --surface-hover computes ≥4.6:1 both themes, AA
text ✓). (3) Status hierarchy — one green, the rest neutral. Only the readiness badge is
green (success); Summary and Deeply indexed are demoted to neutral capability
badges, each with its own glyph (≡ for Summary, ▦ for Deeply indexed) — separating "is it
ready" (green) from "what's been done to it" (neutral). All keep icon + word (1.4.1); exactly one
pill-success per row. (4) "⋯" overflow confirmed present, keyboard-focusable/tabbable even
though hover-revealed, aria-label "More actions for ", holding the full secondary set
(Summarize/again, Translate, Re-index, Build deep index [until deeply indexed], Make searchable
(OCR) for scans, Add to project…/Keep in Library/lifecycle/remove-from-project, Export for
generated docs, and the separated danger Delete → ConfirmDialog). No user-facing string
changes (badge glyphs are decorative; the copy-tone guard stays green). Verification per §11.4:
typecheck + build clean, full vitest from apps/desktop 1357 passed / 25 skipped (+4:
flex-fill/right-aligned-cluster, quiet-chip-distinct-from-Preview, one-green-status-hierarchy,
"⋯"-keyboard-focusable). Playwright _electron eyeball walk in BOTH themes (a long filename
ellipsizing cleanly with room beside it, the aligned Preview/"⋯" column, quiet chips vs the Preview
button, Ready-green-only with neutral Summary/Deeply-indexed, the "⋯" menu open incl. Delete) —
before/after captures in docs/design-review/docs-refinement/{before,after}/.
Follow-up — suggested-project removal + sub-nav regroup (2026-06-15). Two changes to the
Documents screen. (A) The auto "suggested project" feature was REMOVED (intentional product
decision — it put a near-equal row affordance behind a low-value guess): the per-row suggestion
chip + Apply/Dismiss, the renderer state, the read-only docs:filingSuggestions IPC + its
preload bridge, the pure rule engine (services/filing-suggestions.ts), the FilingSuggestion*
types, the AppSettings.dismissedFilingSuggestions setting, the docs.suggest.* i18n keys
(EN+DE), and the .doc-suggest* styles are all gone (full original in git history). Filing
stays fully manual via the row ⋯ / selection toolbar (addToCollection/createCollection);
source_folder_label import metadata is retained. A copy-tone guard pins the removed strings
out of the source. (B) The Documents sub-nav (SectionRail) was regrouped + densified +
made collapsible. It was ~14 near-equal items with inconsistent grouping; now four headed
groups in order — All documents (default landing, no header, the slightly-emphasized active
fill) · Projects (header + "+", user-primary, per-project "⋯") · Locations (the system
buckets Library / Temporary / Generated / Archived under ONE header so they read as one set —
presentation only; the data model / exclusivity is untouched, see the location-taxonomy note in
BUILD_STATE.md) · Views (the common smart filters Recently added / Unfiled / Needs
re-index always visible; the rare diagnostics Large files / Failed imports / Audio / Scanned-OCR
folded behind a remembered "More ▾" disclosure — a real <button aria-expanded> — and an
empty rare view is hidden entirely so empty diagnostics don't sit on screen). Nav rows densified
to ~36px with a uniform hover highlight; the active item uses the --row-selected-bg fill +
aria-current, NOT a ring (so selection stays distinct from :focus-visible). The whole
panel is collapsible — a "«" handle hides it (the list then takes the full width) and a "»"
handle re-opens it, both remembered in localStorage (hilbertraum.docs.railCollapsed /
…viewsMoreOpen, renamed …locationsMoreOpen in §11.16) — mirroring the chat ConversationList collapse pattern (§12.1) and resolving
the standing "sub-nav vs global-rail stacking" watch item: the second column is now dismissable,
not permanent. Files: renderer/screens/DocumentsScreen.tsx (SectionRail rewrite, collapse
state + "»" handle, suggestion removal), renderer/styles.css (.docs-rail-head/-title/ -collapse/-show/-more, density, --row-selected-bg active fill, .docs-layout.rail-collapsed),
shared/i18n/{en,de}.ts (+docs.section.locations, docs.smart.more, docs.rail.hide/show;
−docs.suggest.*). Verification per §11.4: typecheck + build clean, full vitest from
apps/desktop 1344 passed / 25 skipped (suggestion tests/IPC/service/db-settings cases
removed; added a no-suggestion-renders guard + four-groups-in-order, More-toggles-via-keyboard-
with-aria-expanded, empty-rare-view-hidden, active-aria-current, and collapse-persists cases).
Playwright _electron eyeball walk in BOTH themes AND both locales (EN/DE): populated list with
no suggestion banner, the regrouped sub-nav with "More" collapsed + expanded, the sub-nav
collapsed (list full-width) + expanded, the active-item fill — German headers/labels fit without
hyphenation/overflow. Captures went to docs/design-review/docs-subnav/
(scripts/walk-docs-subnav.mjs).
Follow-up — import-failure copy + failed-row actions + sub-nav density (2026-06-15, renderer +
one scoped main-process string). Three Documents/shell polish fixes (+ a density nudge). (A)
Import-failure copy localized + softened (§7). A failed import persisted (and showed) the raw
English literal Unsupported file type: .xyz — leaking English into the German UI. It now routes
through a new interpolated persist-canonical key main.ingest.unsupportedType with an {ext}
param (EN: "This file type isn't supported (.xyz). Try TXT, PDF, DOCX, CSV, or a supported audio
format."; DE informal „du", D-L7). The persist site (ingestion/index.ts)
writes canonical English via t('en', …, { ext }) (the preview-path sibling throw uses tMain,
rule 2); because the value carries the interpolated extension it can't be exact-matched, so the
D-L4 display map (displayMap.ts) gains an
interpolated matcher — a regex derived from the English template recovers {ext} and
re-renders in the target language. A legacy matcher (the old Unsupported file type: … form)
localizes rows persisted before this change so old failures don't leak English either. The
interpolated key is deliberately OUTSIDE DISPLAY_MAP_KEYS (the exact-match set) — it lives in the
new INTERPOLATED_MAP_KEYS; the copy-tone guard now bans the raw "Unsupported file type" literal.
(B) Failed-row actions — Remove + Try again, never Preview. A failed import never produced
extracted text, so the inline Preview is meaningless on a failed row. Failed rows now show
inline Remove (reuses the delete handler — clears the entry; works from both the All-documents
list and the "Failed imports" view, same row markup) and, only when the failure is retryable
(a transient read/parse error — isRetryableFailure, false for an unsupported type / file-too-
large / too-many-sections), Try again (re-index). No "⋯" overflow on a failed row (Re-index =
Try again, Delete = Remove are both inline). The red Failed/Fehlgeschlagen badge (icon +
word, §6) and the in-context error banner stay; the banner is now compact (.doc-row-main .banner — tighter padding/margin + --text-xs) so a failed row no longer towers over the clean
~56px rows. (C) Sub-nav density. The four sections sat airy despite the prior "densified"
pass: inter-group margin 8px → 3px, group-head padding 4px → 2px, and the group label bumped
11px → 12px (§4.4 floor) — rows stay ~36px with the hover highlight intact. Files:
shared/i18n/{en,de}.ts (+main.ingest.unsupportedType, +docs.failed.remove/removeTitle/retry/ retryTitle), main/services/ingestion/index.ts, renderer/lib/displayMap.ts
(INTERPOLATED_MAP_KEYS, unsupportedTypeExt), renderer/screens/DocumentsScreen.tsx
(isRetryableFailure, the failed-row action branch, the failed-row context-menu guard),
renderer/styles.css (.app-shell 100px, .nav-label non-breaking + 12px, narrow breakpoints,
.doc-row-main .banner compact, sub-nav density). Verification per §11.4: typecheck + npm run build clean; full vitest from apps/desktop 1356 passed / 25 skipped (display-map
interpolated + legacy + hygiene cases; DocumentsScreen failed-row Remove/Try-again/no-Preview +
isRetryableFailure; new rail-labels guard; copy-tone stale-literal; ingestion persists the
softened English). Playwright _electron eyeball walk in BOTH themes AND both locales (EN/DE): the
rail on Home/Chat/Documents/AI Model/Settings with every label measured one-line/unclipped (longest
"Einstellungen" 72px in the 100px column), a Documents list with a failed import (localized
friendly banner, Remove not Preview, compact banner), the "Failed imports" view — captures in
docs/design-review/rail-and-failed/ (scripts/walk-rail-and-failed.mjs).
11.7 Adaptive Home CTA + app-wide privacy indicator + AI-Model de-jargon (IMPLEMENTED 2026-06-16)
A focused, renderer + EN/DE i18n only pass — no IPC/schema/data-contract/main-process logic changes (one scoped exception: user-facing string literals in the i18n catalogs). Three changes, each citing this section as §11.7.
- Home hero CTA is now adaptive to the top unmet prerequisite (D-UI3). Home used to lead
with a loud filled "Start chatting" even while the hub showed "⚠ Needs a model", so the
click dead-ended at the "No model is running" empty state. The hero buttons are now driven by
the SAME readiness signal the row badges render from (
needsModel = status != null && !modelRunning && !status.activeModelId— the warning-badge condition). When a model is needed, the loud primary becomes "Choose a model" / „Modell auswählen" (routes to AI Model) and "Start chatting" + "Ask my documents" demote to secondary (still clickable — the demo/mock runtime may allow chatting; never hard-disabled). When a model is ready (running, or selected + loading), the loud primary is "Start chatting" / „Chat starten" as before. Exactly one loud primary at a time (§6): the model row keeps its own secondary inline "Choose a model" (the inline affordance), so the remediation isn't duplicated as a second loud button. No new state — it reuses the hub's existing readiness reads. - One quiet, honest privacy indicator, app-wide (§1.2/§7). The ambient signal moved from the
chat-header-only placement (§12.1 #2, now superseded) to a single rail-foot instance: the
dormant
LocalIndicator variant="sidebar"+.local-indicator-sidebarCSS were revived and restyled to MATCH the rail (icon-over-short-label, centered, 12px floor, the.nav-itemcolumn metrics; quiet/muted, not the accent the nav icons use — it's a state, not a destination), and the chat-header instance was removed so there is exactly one signal on EVERY screen. It reflects the EFFECTIVE state (PolicyStatus.offlineMode, owned by App, which folds the drive-policy ceiling AND the network toggle — so aconfig/policy.jsonthat forces downloads off reads "Offline" even with the toggle on): internet off → closed padlock + "Offline" / „Offline"; internet allowed → open padlock (newlock-openIconglyph) + "Downloads on" / „Downloads an", tooltip "Downloads allowed — chats and documents stay local." The full "Local · …" label is too wide for the 100px rail, so the sidebar variant shows the short one-word label (newindicator.short.*keys; the full reassurance is the tooltip); the label wraps cleanly at its space ("Downloads on" → two lines), the same discipline as the §12.1 #1 rail-label fix. Clicking still opens Settings → Privacy & data (settings:privacy, unchanged). - AI Model de-jargon (§3/§7 hide the machinery). The developer-speak "Start mock runtime"
/ „Demo-Runtime starten" button is relabeled "Try in demo mode" / „Im Demo-Modus testen",
matching the page's existing "demo mode (visibly simulated answers)" banner; the start-title and
the Diagnostics accel label were de-jargoned the same way ("Built-in demo mode" / „Eingebauter
Demo-Modus"). The affordance is already developer-gated in MAIN (
startableAsMock = missing ∧ chat ∧ developerMode,services/models.ts), so end users never see it — relabeling makes it honest even on the developer/demo path (chosen over hiding it, since it's a useful "try the app" action there). Per-card buttons tidied: the disabled "Select" is hidden until the model is downloaded (it's noise before the weights exist), and the not-installed-no-mock card drops its disabled "Start runtime" too — so a "Not downloaded" card's one clear action is Download (+ "Try in demo mode" on the dev path). Once downloaded, the card's action returns (as of 2026-07-07 this is the single "Use this model" button — see §11.10, superseding the original Select + Start runtime pair). "Technical details" stays the disclosure. Acopy-toneguard now bans the stale "Start mock runtime" / „Demo-Runtime" literals.
As built: renderer/screens/HomeScreen.tsx (adaptive hero), renderer/App.tsx (rail-foot
indicator; drop the ChatScreen offline prop pass), renderer/screens/ChatScreen.tsx (remove the
header indicator + offline prop), renderer/components/LocalIndicator.tsx
(localIndicatorShortLabel, lock-open glyph, rail-foot copy), renderer/components/Icon.tsx
(lock-open), renderer/screens/ModelsScreen.tsx (hide disabled Select/Start when not downloaded;
demo button via the relabeled key), renderer/styles.css (.local-indicator-sidebar rail
metrics + .local-indicator-label), shared/i18n/{en,de}.ts (indicator.short.offline/online;
relabeled models.startMock/startMockTitle/diag.accel.mock). Verification per §11.4:
typecheck + npm run build clean; full vitest from apps/desktop 1365 passed / 25 skipped
(updated the InformationArchitecture indicator test to assert the single rail-foot indicator +
the honest "Downloads on" state; LocalIndicator short-label + honest-state cases; ChatHomeNav
adaptive-CTA cases incl. exactly-one-loud-primary + both locales; ModelsScreen no-disabled-Select
- "Try in demo mode"; removed the obsolete chat-header-indicator test; copy-tone stale-literal
guard). Playwright
_electroneyeball walk in BOTH themes AND both locales (EN/DE): Home needs-a-model (loud "Choose a model") vs ready (loud "Start chatting"); the rail-foot indicator on Home/Chat/Documents/AI Model/Settings with internet OFF ("Offline") vs ON ("Downloads on"); AI Model cards (new "Try in demo mode" label, no disabled Select when not downloaded) — captures indocs/design-review/home-privacy-aimodel/(scripts/walk-home-privacy-aimodel.mjs).
11.8 Disclosure a11y — aria-controls on toggle/region (IMPLEMENTED 2026-06-30, full-audit follow-up Phase 5, FE-D)
The app's collapse/expand disclosures are hand-rolled <button aria-expanded> toggles (not native
<details>, by L15 — see §12). FE-D found three of them named their state but not their region: an AT
user heard "expanded" with no link to what expanded. As built: the toggle now carries
aria-controls={regionId} and the expanded panel is role="region" + aria-labelledby={toggleId},
applied consistently to Sources (SourcesDisclosure), the live Thinking… line, and the
compaction SummaryMarker (all in renderer/chat/). React useId() mints the stable id pair. This
matches the careful a11y already shipped for ContextMeter/StreamAnnouncer and is pinned by
tests/renderer/SourcesProvenance.test.tsx + TranscriptA11y.test.tsx (aria-controls resolves to the
rendered region id when expanded). The Sources disclosure was also relabelled in the same pass for
whole-document answers (provenance, not inline citations) — that honesty record lives in
rag-design.md §14.4 (FE-B / F11). Since #643 a whole document read in one turn
(coverage.labelledExcerpts) keeps the Sources (N) label and an [Sn] on every card, because its
answer cites them inline; its card list is still capped at 24 (rag-design §14.4 "#643 amendment").
11.9 Conversation-memory meter — label a gauge, don't leave it a bare % (IMPLEMENTED 2026-07-07, beta-feedback #25 / D69)
A beta user (issue #25) read the composer-footer indicator — a bare 45% with role="progressbar"
and no visible name — as task/answer progress. It actually shows how full this conversation's
memory is. A percentage attached to nothing, with the progressbar role, invites exactly that
misreading. Rule this records: a gauge of a current level (memory fullness, disk, battery) is a
meter, not a progress bar, and it must carry a visible short name — a number needs a noun. Only
a determinate task (import 12 of 30, a download) is a progress bar (§ "Progress / streaming").
As built (renderer/chat/ContextMeter.tsx + styles.css .context-meter*): a visible short label
(chat.context.label — EN "Memory" / DE "Speicher") renders beside the bar + %; the role is
role="meter" (keeps aria-valuemin/max/now + aria-valuetext; aria-label is the label, the
token reading rides aria-valuetext/title). The tooltip teaches the mental model — EN "Memory for
this conversation: {pct}% full (about {used} of {window} tokens)." + the amber-band heads-up "When it
fills up, older messages are summarized automatically to make room." (DE mirror) — keeping the
approximate-token honesty. No-jargon rule (§ "Words"): the word context/Kontext stays OUT of the
visible label (it named the machinery, not the user's mental model). The calm/amber/near-full tone bands
and the 0.85 compaction trigger are unchanged — only the reading changed. The bands (calm < 75 %, amber
75–89 %, near-full ≥ 90 %) and the heads-up read the shown percent, so the number, its colour and
the heads-up always agree (#742: the raw ratio left 74.6 % reading "75%" calm). Coverage (#24) is a separate,
answer-anchored statement and is deliberately NOT folded into this widget. Pinned by
tests/renderer/ContextMeter.test.tsx (meter-not-progressbar, visible EN/DE label, amber/near-full
copy, the shown-percent bands, null-window guard) + the updated ChatCompaction.test.tsx.
11.10 One action on the model card — "Use this model" (IMPLEMENTED 2026-07-07, beta-feedback #27 / D70)
A first-time user (issue #27) faced a "Select" AND a "Start runtime" button on every installed
chat card and couldn't tell which led to chatting. Rule this records: when two adjacent controls are
almost always used together to reach one goal, collapse them into one primary action named for the
goal, not the mechanism. The card now shows a single primary "Use this model" / „Dieses Modell
verwenden" (models.use) that BOTH makes the model the active selection AND starts its runtime. The
old models.select / models.startRuntime / models.startTitle labels are retired (superseding the
§11.7 note's "Once downloaded, Select + Start runtime return").
Why it must start, not just select: selected models already auto-start at launch, so Select≠Start
only bit mid-session; and chat-send never auto-starts a runtime (the registerChatIpc contract), so a
select-only action would leave the user at a dead "no model running" chat. As built: a new
useModel(modelId) IPC (registerModelIpc.ts) does select-then-start MAIN-side — the §7.4 install gate
- the RAM gate run once, the audit trail is one chain (
model_selectedthenruntime_started), and a non-chat role is rejected before any persist. A start failure leaves the fresh selection standing (auto- start + a retry cover it — the same posture the old Select button had, which always persisted). The renderer button is not disabled onactive(an active-but-stopped model still needs it to start; select is idempotent) — only the RAM gate / another button busy / another model mid-start disable it. Stop, the disabled Starting… spinner, the Active/Running/state badges, the demo-mode developer button, and the automatic non-chat roles (which show neither action nor Active badge) are all unchanged. Pinned bytests/renderer/ModelsScreen.test.tsx(one action per installed card, disabled while RAM-gated / busy / anyStarting, Starting… spinner, Stop when running, demo card, DE label) + theuseModelintegration tests intests/integration/core-model-ipc.test.ts.
11.11 First-answer warm-up hint — say the one-time cost out loud (IMPLEMENTED 2026-07-09, issue #39)
Beta testing (issue #39): the FIRST answer of a session is much slower than every later one — the
sidecar prefills + caches the long system prompt once (cache_prompt: true), and a just-started model
additionally pays the multi-GB load — but the UI never said so, and a new user can't tell "normal
one-time warm-up" from "stuck". First impressions form on exactly that turn. Rule this records:
when the app is correctly doing slow one-time work at a moment the user is likely to lose trust,
say so — calmly, only while it is actually true, and never as persistent chrome.
As built: a muted line under the pending answer (.chat-warmup-hint, chat.warmup.hint — EN
"The first answer takes a little longer — the model is warming up. Later answers will be faster.",
DE mirror) with three honesty gates, ALL required: (1) it appears only after WARMUP_HINT_DELAY_MS
(3 s) with nothing streamed — a fast GPU first turn never flashes it; (2) only when the runtime
itself reports this is its first generation since the model started — RuntimeStatus.warmedUp === false, from a new optional ModelRuntime.warmedUp() that LadderRuntime/MockRuntime flip on the
first streamed chunk of any real generation (answer token OR Deep-mode reasoning delta; a model
switch/restart builds a fresh instance, so the flag resets, and the hint truthfully returns for the
re-paid load). Deterministic no-model answers (routing/refusal/listing) never call chatStream, so
they never fake a warm-up; an absent warmedUp field (bare/older runtime) fails safe — no hint.
(3) It drops the instant anything streams and when the turn settles — role="status", same quiet
vocabulary as the compaction notice, never an alert (the model is doing the right thing). Pinned by
tests/renderer/ChatWarmupHint.test.tsx (delay gate, warmed/absent-field negatives, no-flash,
reasoning-retires-it) + the warm-up tracking (#39) block in tests/unit/runtime-ladder.test.ts.
Related: #36 (the header model · GPU/CPU hint) names the persistent speed context; this names
the one-time cost.
Superseded in emphasis, not in mechanism (#109, 2026-08-08): the hint is now the FALLBACK,
not the fix. Since #109 the model start itself pays the one-time prefill/graph warm-up via a
hidden generation before reporting ready — "ready" means ready, and the extra seconds live
inside the existing "Starting…" state (chat.noModel.starting / the Models-screen "Starting…"
button), where waiting is already expected and explained. The rule this records: when the app
knows about a one-time cost, pay it inside the state that already promises waiting rather than
explaining it after a state that promised readiness. The hint's three gates are untouched and it
stays armed (the warm-up deliberately does not flip warmedUp — the real first prompt still
prefills the actual system prompt), so a first answer that is still slow keeps its honest
explanation; on most machines the 3 s gate simply never trips anymore. Design record:
architecture.md "Hidden warm-up generation (#109)".
11.12 Evidence-review workspace — EP-1 Phase 2 rollout (IMPLEMENTED 2026-07-18, plan §7)
The review workspace (ReviewScreen.tsx + renderer/review/*) is the first handoff-only
full-window screen: ScreenId gained 'review' with NO nav-rail entry — the rail stays 8
items, and resolveNavTarget('review') deliberately falls through to home because the screen
is meaningless without App's openReview(reviewId | messageId) handoff slot (the chatScope
idiom). Entry points are quiet and progressive (spec §9): the message action row gains
Review evidence / Continue review last in row plus a text+glyph Draft/Ready chip
(.msg-review-chip — never color-only, §9), and the expanded SourcesDisclosure carries the
.sources-review footer link. Patterns this rollout added or reused, for future screens:
- Two-pane workspace, drawer under 980px: answer pane (immutable snapshot markdown via
AssistantMarkdown, selectable item cards witharia-current) + evidence sidebar. On narrow windows the sidebar is NOT squeezed — it mounts as the existingModal width='wide'opened per item ("View evidence"), inheriting the focus trap + focus-return for free. The breakpoint lives in ONEmatchMediasubscription (useSyncExternalStore), not CSSdisplay:noneduplication, so tests and behavior can't diverge. - 6-value decision chips as a radio group:
review/DecisionControl.tsxreimplements the SegmentedControl roving-tabindex idiom as WRAPPING chips (6 values don't fit a pill track): one tab stop per group, arrows move focus+selection, Home/End jump, each chip = glyph + localized text. Selection recolors via border+weight, never color alone. - Debounced auto-save with a labelled status line: the repo's first auto-save
(
lib/reviewSession.ts, 600 ms debounce, loss-free flush; flush on screen exit, BEFORE vault lock and before the window closes, #888). A change the close cannot save asks in a native dialog, modal to the window: Try again is the default (Enter), Keep open answers Esc, Close anyway is never the default (main/close-guard.ts; theexternal-open.tsdialog's posture: the safe button is the default, plain buttons). A close that would stop a scan being read (OCR) or a document translation asks before that save, in a second native dialog of the same posture (#935): "A document task is not finished yet.", the detail saying what is lost, with no count; Keep open is the default and answers Esc, Close anyway is never the default, and the two buttons read exactly as this dialog's Keep open and Close anyway. The UI voice is a quiet "Saving… / Saved" line in arole="status"region and the failure + Try again in arole="alert"region beside it — no unlabeled spinner (§6), no toast spam. Both regions (and the Outdated banner'srole="status"region) are mounted EMPTY with the review and only their text changes (#837, the §6 rule; the line used to be inserted already filled, and to swap status for alert on one node). - A failed save is never run over (#837): while an edit a failed write left unsaved is
waiting, Bulk actions is disabled (not hidden — the error line beside the title is the
explanation) and the store refuses the sweep; any other error (a failed acknowledge, link
or selection) leaves nothing queued and blocks nothing. Bulk actions is also disabled while
a sweep runs (one at a time). No item save runs during a sweep: a decision still waiting to
be saved when the sweep returns stays on screen and is saved after it; every other item
shows what the sweep saved, so the screen and the saved review agree. Re-opening the same
review keeps the unsaved edit on screen with its error line. A switch to ANOTHER review is refused only
when a write actually failed (edits that are merely still being saved are written first,
and the switch goes ahead); then a card shows in its place —
BlockedSwitchCardinside the screen's existing open-error card: one sentence naming the review whose changes could not be saved and saying the other review was not opened (review.unsaved.body), the save error itself (the text of the review's own error line,hint error), then Try again (primary, reusesreview.autosave.retry— saves, then opens the other review), Discard changes and open (review.unsaved.discard— the only way such an edit is lost before a lock, and the user's own choice) and the ghost ‹ Back to chat (review.back). The card can replace the review seconds after the click that led to it, and that click's button left with the chat, so Try again takes focus when the card appears, described by the sentence and the error (aria-describedby, so a screen reader reads both), and again after a retry that failed (the WorkspaceGate step / PerformanceScreen restore precedent, WCAG 2.4.3). Try again and Discard are disabled while one of them runs; Back stays live. The card never outlives its cause: if a later save succeeds while it shows (the old screen's exit flush, a timer), it goes ahead with the switch it was shown for. The lock still drops an unsaved edit: the user's security action wins (known-limitations.md). - Honesty captions are keys, not prose: the evidence pane's per-mode caption
(
review.evidence.captionRelevance|WholeDoc|Structured) and the per-item "No direct source marker" / "Derived through whole-document analysis" notes are asserted BY EXACT KEY in tests — whole-document provenance is never worded as citations, and provenance cards render no[Sn]label (the SourcesDisclosure rule, reused via the exportedPROVENANCE_CARD_CAP+ card markup idiom). A #643 labelled whole read is not provenance: its sources are direct excerpts with their labels and the relevance caption. - Deliberate deviation from spec §11.2: no per-screen "Local · Offline" header indicator — the rail-foot indicator is THE single ambient privacy signal on every screen (§12.1 #2); duplicating it per screen is exactly what that record forbids.
- Conservative bulk actions only (spec §14.4): headings→N/A, undecided→follow-up, clear-all (confirmed via ConfirmDialog). "Mark all supported" does not exist and a test pins its absence; the store exports no bulk pathway that can write a supported verdict.
- Ready is read-only (spec §18.4, fix round): a review marked Ready disables all
item-level editing (decisions, notes, links; bulk hides) with a quiet "reopen to edit"
hint by the status chip — main refuses those writes too, so
ready+ undecided is unreachable from both sides. Head edits (rename, reviewer label, general note) stay live.
Tests: ReviewScreen.test.tsx (journey, exact-key wording, D-7 gating, bulk absence,
keyboard walk §28.10, drawer focus-return), ReviewEntryPoints.test.tsx (visibility matrix +
D-2 delete-confirm count), reviewSession.test.ts (debounce/loss-free/purge), plus
GermanSmoke/InformationArchitecture/LazyScreens legs, the lock/unlock integration leg
in evidence-reviews-ipc.test.ts and the restart leg in evidence-reviews.test.ts
("re-opening an existing DB is idempotent and preserves review data across restarts").
German copy is a DRAFT pending the native review pass (Phase 6, D-L7 — flagged in
de.ts). (Superseded: the native pass landed in P5 — §11.13; the draft flags are
gone.)
11.13 Evidence-review polish — EP-1 Phase 5 rollout (IMPLEMENTED 2026-07-18, plan §10)
Selections, source filter, back-to-conversation, the German native pass, and the recorded §9 accessibility audit (the EP-1 exit-gate artifact). Patterns added:
- Reviewer text selections select from the SOURCE text, not the rendering. The stored
offsets are UTF-16 code units into a block's
textSnapshot, and main REFUSES misaligned boundaries (never clamps) — butAssistantMarkdown's rendered DOM is NOT that string (markdown syntax dropped,[S1]→[Q1]localized, math rewritten to KaTeX output, soft breaks reflowed), so mapping a DOM selection back through it cannot be exact. The shipped surface is the plan-§10 honest fallback: "Review a passage separately" swaps in a read-only<textarea>whose value IS the snapshot — its nativeselectionStart/EndARE the offsets (exact by construction), keyboard selection (Shift+arrows) works natively (the WCAG 2.5.7 non-drag path), and the hint says the text is shown without formatting. A refusal from main surfaces as a quietrole="status"retry hint, never an error state; a success announces via toast and keeps the composer mounted (no focus loss). Selection items render as tagged plain-text quotes ("Reviewer text selection") with a Remove action — never through the markdown renderer (a mid-markdown slice is not valid markdown; the pack renders them as plain text too). - Large provenance sets: filter + stepped reveal, NO virtualization. The evidence pane
keeps the
PROVENANCE_CARD_CAP(24) initial render and now reveals cap-sized batches ("Show 24 more" + a "{shown} of {total}" count line) plus a filter input once the set exceeds the cap. The filter matches the facts the card DISPLAYS: title / snippet / section / page / the marker in BOTH its raw machine form ("S3") and its localized display form viaformatCitationLabel(DE "Q3" — fix round). The no-virtualization decision rests on the MEASUREMENT (plan §10 "measure first"): with 30 sources the full IPC open path runs in ~3 ms and the mounted DOM never exceeds the revealed batch (pinned inReviewEvidencePane.test.tsx+evidence-review-open-perf.test.ts) — the cap+reveal already bounds the work, so virtualizing the pane buys nothing at these counts. (@tanstack/react-virtualitself pre-exists in the tree for DocumentsScreen's long list — availability was never the question; need was.) - Back to chat returns to the ORIGINATING conversation (the named P2 UX debt): the
review's
conversationIdflows App-side (backToConversation→chatConversationhandoff slot, the chatScope idiom; cleared by every plain chat navigation) and ChatScreen gained a mount-time re-attach effect (the stream/skill-run idiom,activeIdRef-guarded). A deleted conversation degrades to chat home — never a phantom selection. - Perf pass (spec §26), recorded: opening a review with 30 sources through the real
IPC handlers — create 11.8 ms, open (detail read + freshness check) 3.0 ms, model
runtime NEVER touched (tripwire), offline guard silent, no fixed sleeps anywhere
(
evidence-review-open-perf.test.ts; the 1 000 ms assert is the spec's own budget as an order-of-magnitude regression tripwire). - German native pass (D-L7) over ALL EP-1 keys (
review.*152,packExport.*96,main.evidenceReviews.*6 — EN=DE parity, incl. the 15 new P5 keys: 6review.evidence.*+ 8review.selection.*+review.item.selectionTag): consistent du-form, legal-adjacent register, terminology per the §7 EP-1 glossary (Nachweis / Prüfung / Prüfpunkt / Quellenverweis / „Anlegen der Prüfung“); the „Prüfstand“ mistranslation and the Quellenangabe/Quellenverweis split are gone; ellipsis spacing unified; the ENTWURFSSTAND draft flags are REMOVED. One golden regenerated (german.html— the unified disclaimer line; single-line diff, hand-reviewed).
§9 accessibility audit — recorded results (ReviewScreen + modals + banner + new UI):
| §9 item | Result |
|---|---|
| Text ≥4.5:1, UI/icons ≥3:1 | PASS — all review UI on role tokens (§4.3 ratios); new tag/surface/filter inherit --text/--text-muted. |
| Visible focus, outline-based | PASS — global :focus-visible baseline (Phase 23); new controls are native button/textarea/input. |
| Sticky chrome obscuring focus (2.4.11) | PASS (trivially) — nothing on the review screen is sticky; panes scroll independently. |
| Targets ≥24×24 (2.5.8) | 2 FIXES: .msg-action gained min-height: 24px, .chip-remove gained a 24×24 min box (both app-wide). Buttons/decision chips/inputs already ≥24 (36px primary). |
| Drag needs a non-drag path (2.5.7) | PASS — text selection via the read-only textarea works with keyboard (Shift+arrows) as well as pointer drag. |
| Password gate paste (3.3.8) | N/A on this surface. |
prefers-reduced-motion |
PASS — global kill-switch; the phase adds no motion. |
| Async states announced | PASS — SaveStateLine role=status/alert (P2), Outdated banner role=status (P4); NEW: the selection-refused hint and the filter no-match line are PERSISTENT role=status regions that mount EMPTY and fill on state change (fix round — a region first appearing WITH content is missed by some screen readers; :empty collapses the idle element). The shown-count line is deliberately NOT live (it changes only on the user's own reveal click, beside the button). Selection add announces via the polite toast region. |
| Never color-alone (1.4.1) | PASS — chips/badges are glyph+text; decision selection = border+weight+text; new states are text. |
| Spec §23: pane↔item association | PASS — the visible "Linking evidence for review item N" line IS the evidence region's programmatic DESCRIPTION: its id is the region's aria-describedby (fix round; the region NAME stays the stable "Evidence" title, and the SAME region component mounts in the wide aside and the narrow drawer, so both layouts carry it — pinned incl. the no-selection no-dangling-attribute case). aria-controls is deliberately NOT stamped on the non-interactive <li> rows (they are not widgets; the narrow drawer gets real dialog semantics from Radix). |
| Spec §23: progress as text · excerpts selectable/readable · 200 % zoom · drawer focus-return · localized markers | PASS — footer text gate; cards + surface are selectable text (surface line-height 1.5); the 980 px drawer reflow is the 200 % posture; focus-return pinned since P2; markers share the display regexes (P1). |
| Spec §23: exported PDF heading order | RESOLVED in P6: the PDF is printed from the same semantic h1→h2→h3 template with generateTaggedPDF + generateDocumentOutline; the real-Electron smoke verifies extractable text, the bookmark tree (depth 3, catalog titles, EN+DE) and the tagged (/MarkInfo Marked) structure. Scope stated honestly: Electron marks tagged output EXPERIMENTAL — accessible headings/reading order are best-effort, never a PDF/UA claim (known-limitations.md); the HTML pack remains the accessibility-first format. |
Tests: ReviewSelections.test.tsx (raw-source surface EN + DE — the DE leg pins the
textarea carrying the RAW [S1] snapshot while the rendered block shows [Q1]; exact
UTF-16 offsets incl. astral chars; refusal hint; delete; READY hides the composer and
disables Remove; the D-7 exemption through the screen's own gate),
ReviewEvidencePane.test.tsx (cap/stepped reveal/reveal-reset-on-filter-change/filter
facets incl. DE Q3 + section + page/empty state/aria-describedby tie + no-dangling case),
ChatBackToConversation.test.tsx (handoff select incl. the mirrored mode; the deleted-id
degrade and the no-handoff baseline as one table; and the
App-LEVEL one-shot-slot test: review → back → Documents → "Ask these documents" wins —
the FIX-1 blocker repro, mutation-verified; its first step, the review's ‹ Back reopening
the originating conversation, is the back-nav proof), reviewSession.test.ts selection
token-race legs (post-purge create/delete + post-switch create),
evidence-review-open-perf.test.ts (spec §26 tripwire + numbers above).
11.14 Token-aligned <select>, runnable-first picker order, German closers (IMPLEMENTED 2026-07-24)
A small renderer + DE-catalog only polish batch closing three findings from a design review of the shipped UI (DV-1, DV-2, DV-3). No IPC, schema, persistence, or main-process change; nothing here touches the model recommender. Code comments cite this section as §11.14.
- DV-1 — a
<select>with no class is a<select>outside the design system. The AI-Model context-size picker and the Translate language bar rendered in Chromium's own control skin. Measured over CDP on the running app, both themes:font-family: Arial(not--font-sans),border-radius: 0px(not the 6px--radius-sm), border#767676light /#858585dark (not--border-strong#6b7383), background#ffffff/#3b3b3b(dark: not the#171a21--surface), colour#000000/#ffffff(not--text). After: every one of those five properties equals its token in both themes, and the control grew 19px → 30px, which is what put it over the 24×24 target minimum (§9 / WCAG 2.5.8) it had been failing. Rule this records: a control that ships as a bare HTML element is not "unstyled", it is styled by the browser — give it the role tokens or it will read as a foreign object on both themes. The treatment is the opt-in.selectclass (§6 Inputs), deliberately not a bare-elementselect { … }rule: the class keeps the blast radius on surfaces that were actually eyeballed. The cost of that choice is that a select without the class still bypasses the system, sotests/unit/select-token-treatment.test.tsguards it per FILE — the rule's token set, plus "every<select>in these screens carries the class" (four screen files at this record;SettingsScreen.tsx, for the interface-language picker in Settings → General, joined as the fifth in the 2026-11 UI languages wave; on 2026-11-12 the five files hold nine.selectcontrols: three on the AI Model screen, two on the Translate screen, two in the Documents translate modal, the Diagnostics activity filter and the language picker). The selects of the four original files moved together on purpose: the Documents translate modal renders the identical from/to language pair as the Translate screen, so styling only one of them would make the same control look different on two routes to the same task..review-relation select(evidence review) keeps its own older, lighter treatment — folding it in is a real restyle of a review-screen control and wants its own visual pass. - DV-2 — "can this computer run it" outranks alphabetical. The chat picker fell back to
catalog (alphabetical) order once the installed/not-installed key tied, so on a 16 GB machine
three of the first four cards carried a "Needs at least 20/24 GB RAM" warning while the usable
models sat below the fold.
orderPickerModels(lib/modelAvailability.ts) adds runnable-first as an unconditional second key, with installed-first still PRIMARY (the installed/needs-download boundary is a labelled subheading, so runnability may only reorder cards within a group). [Superseded 2026-09-05 by §15: the full-card picker's labelled subheading is gone — "On this drive" is a view FILTER, not a subheading, and grouping is by variant, not by installed/needs-download.orderPickerModels's installed-first/recommended-first/runnable-first key order is unchanged and still governs group rank; see §15 "Ordering after grouping" for how that key order maps onto the current grouped rendering.] Runnability readsinsufficientRam, the SAME flag the card's warning badge and banner render from, so the order can never contradict the warning printed on a card it moved. Display order only — the RAM-best-fit recommender in the main process is untouched. The "Recommended" flag deliberately plays no part in the order. An earlier draft applied runnability only when the picker held no ★ card; that was wrong twice over. It is unreachable in practice — the recommender keys off machine RAM, not a benchmark result, so it returns a model whenever anything is runnable, which means "no recommendation" and "nothing runnable" are the same state — and it was the wrong instinct anyway: the ★ sits on ONE card, while the first screenful is what a user actually scans. The ★ card is runnable by construction (the recommender never picks a RAM-gated model), so this key can only move it up, never down — pinned byintegration/models.test.ts"RAM stays a hard gate: the card fallback never picks a model the Models screen would refuse to start (#769)". Measured live on a 16 GB box, fresh workspace with the ★ in the picker: the first RAM-warned card moved from position 1 to position 15 of 23. Superseded in the upward direction (2026-08-03, issue #93 item 3): the ★ card now LEADS its group —orderPickerModelsinserts recommended-first between installed-first and runnable-first. The original decision's two arguments are untouched (un-runnable cards still sink; installed-first still primary, the ★ never crosses the boundary); what changed is that on a fresh install the recommendation is the one actionable answer to "which of these should I download?", so it may not sit wherever catalog order put it inside the runnable block. The badge copy now names the machine ("Recommended for this computer" / "Empfohlen für diesen Computer"). Keys 2 and 3 can never fight — the ★ is runnable by construction, as above. - DV-3 — German closers. Nine catalog values closed a German opening
„with an ASCII"(the Images empty state shippedDurchsuchbar machen (OCR)"). All nine now close with“per §7 "Typography", andtests/unit/i18n.test.tsgained a guard over the values of the German catalog: every„balanced by a“, and“never used as an opener. The guard is scoped to values on purpose — the file's own comments are not shipped copy, and technical field names inside import notes ("{field}","language") keep straight ASCII pairs.
As built: renderer/styles.css (.select), renderer/screens/ModelsScreen.tsx
(.select; the picker predicates, now in lib/modelAvailability.ts),
renderer/screens/TranslateScreen.tsx (.select ×2), renderer/screens/DocumentsScreen.tsx
(.select ×2, the translate modal), renderer/screens/settings/DiagnosticsTab.tsx (.select,
the activity filter), shared/i18n/de.ts (9 closers). Tests:
tests/unit/select-token-treatment.test.ts, tests/unit/model-library.test.ts, the
German-typography block in tests/unit/i18n.test.ts. Verification: typecheck clean; the
Models / Translate / Documents / Images / Diagnostics renderer suites, the i18n / copy-tone /
token-contrast / rail-labels guards and repo-hygiene green; before/after CDP capture of all
three named surfaces in BOTH themes on the running dev app, with the computed-style numbers
above. Eyeball-harness note (supersedes the §11.4 / §13.5 Playwright recipe on Windows):
playwright is not a dependency of this repo and the walk-*.mjs scripts cannot run as
written; this pass drove the app over CDP instead — npx electron-vite dev with
ELECTRON_RUN_AS_NODE cleared and REMOTE_DEBUGGING_PORT set, real clicks on the nav rail and
on the Settings → Appearance segmented control (asserting data-theme actually flipped, never
stamping the attribute), and Page.captureScreenshot. No new dependency. scripts/screenshot.mjs
is unusable here — it renders a mock preview harness with no theme support behind xvfb-run.
11.15 Knowledge-pack UI review — design record (IMPLEMENTED 2026-09-06, #301 P6)
The design/frontend review pass over the knowledge-packs feature (PR #294 → #301, Phase 6): copy, structure, a11y and visuals over states the earlier phases had already produced. No scope/outcome/lifecycle semantics changed. Code comments cite this section as §11.15.
Decisions + the facts they rest on:
- A source picker's popover stays non-modal, by rule. Radix's
modalPopover aria-hides everything outside it — including its own trigger chip, the "Answering from…" readout — and locks background scroll; that broke two existing navigation tests outright. A popover anchored to a visible, meaningful trigger (§3 chat layout; §9 focus management) stays a non-modalPopover.Root(Escape closes, focus returns to the trigger, nothing outside is hidden). A true dialog (ArticleModal) keeps its real focus trap — the difference is deliberate, recorded so the next popover doesn't "fix" it into a trap. - A reason that lives only in a tooltip does not exist for a screen reader. The pack
panel's unavailable badges (file missing / different archive) carried their reason as
hover-only
titletext, and the picker's greyed rows said only "not available"; §9 requires state to be announced, not just visible, so a reason must sit in the accessible tree — name or description, never a baretitle— and it must be the SAME reason the answer will name. - Pack-named action buttons in a list, per §9: Enable/Disable/Remove per pack and "Open
article" per citation need an accessible name that says which row — "Enable {pack title}",
not "Enable" ×N (visible label text unchanged, naming rides
aria-label). role="group"for a block of related checkboxes — the documents-sources and knowledge-packs blocks are each a labelled group, not a bag of checkboxes; rows stay native<label><input type="checkbox">so name/checked/disabled announce for free.- Description vs. name for a long hint: a control's accessible name stays short; a long
hint (e.g. the Documents toggle's) belongs in
aria-describedby, not the<label>text. - House dash rule (repo-wide): EN sentence breaks use the em dash
—; DE uses the en dash–. A handful of pre-existing keys used a bare hyphen; repaired here (§7). - A late-confirmed capability still needs a badge, not only an outcome note — "no full-text index" (confirmed by an async probe) now shows as a badge beside enabled/disabled on the pack's own row, not only in the per-answer "not searched" line.
As built: Modal gained an additive describedBy?: string prop (the ConfirmDialog pattern)
so ArticleModal's "From — offline copy" line is the dialog's accessible
description. PacksPanel is <ul aria-label>/<li>, the new packs.state.notSearchable
badge, a visible reason line for missing/mismatch/not-searchable, named aria-labels on
Enable/Disable/Remove. ScopePopover gives both checkbox blocks role="group", moves the
Documents hint to aria-describedby, describes cap-refused checkboxes by the limit line, adds a
reason-specific hint per ineligibility reason (stays non-modal per decision 1). Named "Open
article" on SourcesDisclosure and the evidence-review row. House dashes repaired across
chat.article.from, packs.state.missingTitle, packs.removeBody,
packs.state.identityMismatchTitle. Role tokens only, no literal colour (--accent for "Open
article", §4.3), plus wrap/ellipsis/24px-target rules pinned by tests/unit/zim-ui-layout-rules.test.ts.
Verification: the new acceptance test (KnowledgePacks.test.tsx, T18-a) plus the existing
pack/popover/review renderer suites and token-contrast.test.ts all green; a real Electron
visual pass in both themes/languages is recorded separately (T18-b) — renderer mocks alone don't
close visual acceptance (§11.4's standing caveat).
Follow-up wave (2026-09-06, #340 — the P6/P7 renderer residuals, decided as built): (1) a
pack row's Enable/Disable and Remove buttons disable only while THAT row is busy (another row's
toggle or remove is an independent operation; Add packs… and Refresh keep their global disable);
(2) an unavailable pack can be disabled, not only removed — the flag is the user's, whatever the
file is doing; (3) the meta line shows the archive's language as a NAME in the UI language via
Intl.DisplayNames ("German" / "Deutsch"), the raw ISO 639-3 code only when the platform cannot
name it; (4) the "Answering from:" chip names a ticked pack that is disabled or unavailable WITH
that state, in the popover row's own words ("Pack “…” (disabled)"), so the readout never claims a
source the ask will skip; (5) .footer-menu-btn carries its own min-width: 0; max-width: 100%
(pinned by zim-ui-layout-rules.test.ts), not only under .scope-footer-wrap; (6) Chat refetches
packs at reconcile-end / mutation only, never at reconcile-start. The collision surface is
§17 D-Z16 (packs:status.excluded → the "Not served" badge naming the winner). Tests:
KnowledgePacks.test.tsx ("#340 nits …", the chip-state leg), ChatPacksRefresh.test.tsx.
P8-2 consent surfaces (2026-09-06, #339): the owner's ruling on the "kiwix-tools not
installed" notice gained TWO entry points to the same optional-family install — the
Knowledge-packs panel notice's own "Install the knowledge-pack tools…" button, and a mirror row
on the Models screen ("Knowledge-pack tools: not installed · Install…", shown only while
EngineStatus.missingOptionalFamilies names kiwix_tools). Both open the SAME
KnowledgePackToolsDialog — deliberately the model-download confirm's shape (<dl class="kv">
of Size / License / From, a hint line, a REQUIRED acknowledgement checkbox that disables Start
download until ticked) rather than a new pattern, because this download carries the same two
facts a model download does — a network fetch and a licence to accept — and a user who has
already learned one dialog shape should not have to learn a second. The facts (size, licence,
source URL) are typed off EngineOptionalFamily, never copy, so the dialog cannot state
something the pinned build doesn't back. The acknowledgement is required for the same reason a
model's is: this is the one place kiwix-tools' GPL-3.0-or-later terms are surfaced at all. The
network gate reuses the Models screen's own copy verbatim (lib/downloadGate.ts, extracted from
ModelsScreen.tsx so the two surfaces read one computation) — "disabled by policy" and "turn it
on in Settings" must never diverge by entry point. The Models-screen row is a <p className= "hint">-styled block, not a Banner, deliberately lighter than the chat/voice engine banners
above it — the tools are optional in a way the chat engine is not, and the row must read as
secondary. lib/useKnowledgePackToolsInstall.ts is the shared poll/cancel/remembered-job hook
(mirroring ModelsScreen.tsx's own engine-job handling) — it fetches getEngineStatus/
getPolicy lazily, only while the affordance is actually needed, so a workspace with the tools
already installed makes neither call. Tests: KnowledgePackToolsInstall.test.tsx ("#339 P8-2: …"),
KnowledgePacks.test.tsx ("#339 P8-2: never calls getEngineStatus or getPolicy…", the lazy fetch),
ModelsScreen.test.tsx ("ModelsScreen — knowledge-pack tools row" describe block).
Tier-2 save action (2026-09-07, #340, D-Z21): "Save to my documents" lives inside
ArticleModal itself — under the attribution line (chat.article.from, decision 1140's
description) and above the article body, never in a footer, since Modal has no footer slot.
The button's accessible name carries the article title (decision 3's rule for a pack-named
action in a list — chat.article.saveAria, "Save to my documents: {title}"), not a bare
"Save", so a screen reader announces which article a repeated action targets; the visible label
is the exact prefix of that name (WCAG 2.5.3, label in name), so speech input saying the label
still activates it. Four states, one
region: idle (the button, label chat.article.save), saving (the button disabled, a Spinner
beside it, role="status"), saved (the button is replaced by a role="status" line naming the
filed title — chat.article.saved / chat.article.alreadySaved when a prior save is found —
so there is nothing left to click), and failed (the button stays, re-enabled, with the friendly
reason inline beside it — the main-side sentence alone via friendlyIpcError, no stacked
"could not be saved" prefix in front of a reason that already says so). A save that resolves
after the viewer moved on to another article is discarded (a generation counter), so a result
never lands on the wrong article. The evidence review's copy of the viewer passes
canSave={false}: a review is read-only and its bridge is evidence-only, so the action exists
only where the chat opens the viewer. No undo affordance: the saved copy is a real document, and removing it is
the Documents screen's job (delete), not the viewer's — the viewer only ever adds. No "Open in
Documents" jump yet either; the saved state names the filed title so the user can find it (a
direct jump is still deferred — rag-design §17 D-Z21/D-Z23).
Citation-card save shortcut (2026-09-08, #418, D-Z23): the same action, one step earlier —
on the citation card, without opening the viewer. It sits beside "Open article" in the card
head, under the identical guard, and is the identical kind of affordance: quiet and
link-styled (.source-card-save), never a loud button inside the disclosure — the rule
.source-card-open already carries applies unchanged, including the WCAG 2.5.8 24 px minimum
target (pinned in zim-ui-layout-rules.test.ts). .source-card-open's margin-left: auto already
right-aligns the pair, so the second action adds no margin of its own, and the head row's
flex-wrap plus flex-basis: 100% on the outcome line means a filed title takes the next line
rather than squeezing the citation's own title and badges.
The copy is the viewer's, verbatim — the same five keys, so the two surfaces read identically by construction and there is no second German string to maintain. The four states therefore behave exactly as the Tier-2 record above describes them, with the same accessible-name rule (decision 3: "Save to my documents: {title}", the visible label its exact prefix). The one case the card adds is two cards citing the same article: each asks for itself and the second gets the main side's duplicate answer ("already in your documents"), which is honest and needs no renderer-side bookkeeping.
Where it must NOT appear: a read-only surface. The evidence review renders its source cards
from EvidencePane, a different component that never mounts SourcesDisclosure, so the boundary
is structural rather than a flag — and the affordance is additionally gated on its optional
callback, which only ChatScreen supplies. That is the card-level counterpart to the viewer's
canSave={false}; both are pinned by tests.
The archive's license line (2026-10-13, #662): mwoffliner ends every Wikipedia article with a
license line ("Dieser Artikel wurde von Wikipedia herausgegeben. Der Text ist unter Creative Commons
Attribution-Share Alike 4.0 verfügbar …"). It used to arrive as the text of the article's last
section (Weblinks), so the viewer showed it as part of that section. It is now PackArticle.notice,
and ArticleModal shows it after the article body, where Wikipedia and the archive itself put
it: one muted line (.hint.pack-article-notice), set apart by a top rule, never under a section
heading, and never above the article, where every article would open with two lines of boilerplate.
It is the archive's own text, verbatim and in the archive's language, with no label of ours and no
new copy key. A saved copy ends the same way, in a closing ## License section (rag-design §17
"#662"). Owner call, 2026-10-13.
11.16 Documents rail declutter + Knowledge packs as a mode of Documents — design record (IMPLEMENTED 2026-09-09)
A renderer-only pass over the Documents screen and the knowledge-packs panel: no IPC, schema or main-process change. The owner reviewed two mockups (canvas "HilbertRaum Documents Redesign"): Option A, below, keeps packs inside Documents; Option B — a "Knowledge" destination in the rail's Work group after Documents, single-word label in both locales, a Home "Ask Wikipedia" action — is parked until the feature's quality is reliable enough to earn a rail slot (§2 records a rationale per rail item). Code/i18n comments cite this section as §11.16.
The problems (as found in the code): the rail (SectionRail.tsx) rendered five headed
groups — All documents · Projects · Locations · Views · Reference — for every user, empty or not:
four uppercase headers at the same visual weight as their items, "No projects yet", four
locations most users never fill, and knowledge packs as the LAST item under "Reference", a word
used nowhere else (Chat, Home and the docs all say "Knowledge packs"). Picking it swapped the
main pane but left the document rail standing. The screen stacked a title, a three-line lead and
a toolbar before the first row, and had no name filter — which is why so many filter views
existed. Nothing on Home or in the chat's scope picker led to packs when there were none.
Decisions (the facts they rest on):
- Packs are a peer of documents, not a filter — a segmented switch in the header. "My
documents | Knowledge packs", the Chat header's
SegmentedControlpattern (§3), one click from the nav with no new rail item. The packs mode renders no rail and no document toolbar (none of the document affordances apply to a pack).'documents:packs'is the virtual navigation target (navigation.ts; plain'documents'opens My documents), so Home and the chat picker can deep-link; the screen'sinitialModeprop seeds the switch. - The rail shows what the user has, not every bucket that could exist (§1.4 progressive
disclosure). Every entry carries its count (visual,
aria-hidden— the accessible name stays the plain label). The four diagnostic views (Large files / Failed imports / Audio / Scanned) collapsed into ONE Needs attention entry = failed imports ∪ stale embeddings, shown only while its count is > 0 (or it is the current section): those are the two states the toolbar's "Retry all" / "Re-index all" actually fix; size, audio and scans are not problems and earned no entry. "Recently added" moved up (the everyday view). "Unfiled" lives inside Projects as the last row, once a project exists; with no project the group is one quiet "+ New project" row instead of a header, a hint and a "+". The four locations fold behind a remembered More disclosure (LOCATIONS_MORE_KEY), each offered only while it holds something. The rail's "Sections" title is gone (the "«" handle stays).DocSectionlost thelarge/audio/ocr/failed/needsReindex/packskinds and gainedattention. - A name filter replaces filter views. A
type="search"box in the toolbar narrows the visible section by title (case-insensitive substring); an empty result says so with the query. The toolbar reads filter · Refresh · bulk fixes · Import folder · Import files — one primary, last. The lead paragraph shows only in the empty state (it teaches; once documents exist the title and toolbar are enough), and the empty state gained one line + a ghost action for the other kind of source ("Knowledge packs"). - Per pack, enablement is ONE control. The row showed an Enabled/Disabled badge AND an
Enable/Disable button saying the same thing; now a
Switch(role="switch", checked = enabled) named after the pack ("Use {title} in chats" — theariaLabelprop added toSwitchfor exactly this: a bare state word repeated down a list is no name). The warning badges (Missing / Different archive / No full-text index / Not served) and their visible reason lines are unchanged (§11.15). Remove moved behind a per-row "⋯" menu (§3: destructive actions in a menu, never a permanent button); the ConfirmDialog stays. - The bridge to where packs are used: "Ask this pack". The panel had no path to the chat.
The action opens Chat in documents mode with that pack ticked and the document corpus OFF —
App.askPack→ChatScreen.initialScopePackIds→ a pending scope{ packIds: [id], documentsOff: true }, the same scope the picker's own "Search my documents" untick produces, so the "Answering from" chip and the ask agree. Offered only for a pack an ask would search (present, enabled, served, not a confirmed no-index archive). - First run is a setup card; the empty state carries the guidance. The tools-missing
notice became a card with a title, the plain explanation and one primary Install (the consent
dialog itself is unchanged, #339 P8-2). The empty state names
library.kiwix.org, says "single-file .zim", carries the primary "Add packs…" (so the head shows only Refresh then — one primary per view) and a ghost "Copy the library address": the app never opens a browser from an offline surface, it puts the address on the clipboard and says so in a toast. The write goes through MAIN (window.api.copyToClipboard→clipboard:write) like every other copy in the app —navigator.clipboardis unreliable in the packaged renderer — and a refused write names the address in the toast instead. - Entry points where packs are used. Home's readiness card gains a fourth row (
bookglyph) with three honest states — none registered ("Add packs" →documents:packs), registered but none usable ("Open knowledge packs" — the copy says none is ready, not none is enabled: an enabled pack whose file is missing lands here too), N ready (present, enabled, not a confirmed no-index archive — the panel's "Ask this pack" eligibility as far as a list row knows it) — and no row at all while the packs are unknown (older bridge, failed read:Promise.resolve(window.api?.listKnowledgePacks?.())). The chat scope picker, which used to omit the packs section when the drive had none, shows "No knowledge packs on this drive yet · Add packs…" — gated on the new optionalonAddPackscallback so a standalone mount stays byte-identical.
As built: screens/DocumentsScreen.tsx (head + switch, mode, filter, rail counts,
attention), screens/documents/SectionRail.tsx (rewritten), screens/documents/PacksPanel.tsx
(head, setup card, empty state, Switch, Ask this pack, "⋯"), screens/documents/types.ts,
navigation.ts (documentsMode), App.tsx (askPack, documentsMode), ChatScreen.tsx
(initialScopePackIds, onAddPacks), chat/ScopePopover.tsx, screens/HomeScreen.tsx,
components/Switch.tsx (ariaLabel), components/Icon.tsx (book, search), styles.css
(.docs-head, .docs-toolbar, .docs-filter, .docs-rail-count, .packs-head, .packs-setup,
.packs-card-menu — role tokens only), i18n/en.ts + de.ts (the retired docs.smart.* /
docs.section.locations|noProjects|sources|packs / packs.enable*|disable*|removeNamed|working
keys removed — the unused-key guard would otherwise flag them).
Verification: DocumentsScreen.test.tsx (the §11.16 describe: switch, order, counts,
attention, More + hidden empty locations, one "+ New project" row, the filter, mode switching,
initialMode), KnowledgePacks.test.tsx (switch + "⋯" names EN/DE, summary line, "Ask this pack"
eligibility, the empty state's copy action, the picker's "Add packs…"), HomeKnowledgePacks.test.tsx
(the three row states + the absent row), GermanSmoke.test.tsx, InformationArchitecture.test.tsx
(documents:packs), i18n-unused-keys.test.ts, zim-ui-layout-rules.test.ts.
11.17 "The AI engine can't run on this computer" — design record (IMPLEMENTED 2026-10-01, #530; reinstall 2026-10-05, #532; the cpu/ net 2026-10-14, #678)
How the app tells the user that an engine on the drive cannot run here: the OS refused the
program before it started (Linux without libgomp1, a system too old, Windows without the Visual
C++ runtime, a Smart App Control block). Engineering record: architecture.md "Engine load
failures". Code cites this section as §11.17.
The problem. The app used to name the wrong thing in every surface: a GPU fault (silently), a model that "could not be loaded on this computer — choose another model", "low on memory", "pick another model", "no usable graphics card", and in Documents the loader's raw English line with the absolute drive path. Each of those sends the user to the wrong fix.
Decisions.
Name the engine, the missing piece, and the one next step. The lead is always the same sentence: "The AI engine can't run on this computer". It is followed by ONE reason sentence chosen by the verdict (
shared/engine-problem.ts):- a missing library is named, with the package for Ubuntu/Debian/Mint and Fedora
(
libgomp1/libgomp); - a too-old system is named with its floor (Ubuntu 22.04, Debian 12, Fedora 36 or newer);
- a missing Visual C++ Redistributable, damaged engine files, or a Smart App Control block each get their own sentence.
The pronoun "it" (German „sie“, die Engine) keeps the reason sentences shared between the AI engine and the voice engine.
- a missing library is named, with the package for Ubuntu/Debian/Mint and Fedora
(
No commands, no codes in the everyday path (§1.3, §7). Shell commands (
sudo apt install libgomp1) live introubleshooting.md. The exit code and the library name in technical form appear in Diagnostics only. "Choose Check again" follows the existing copy convention, with no quotes around a button name in English; German quotes the exact button label, „Erneut prüfen“.One place to fix it, one action. The AI Model screen carries a warning
Bannerin the exact place and shape of the missing-engine banner (.engine-install: title, reason, demo note, button). Models answer in demo mode either way, so the two states share a tone. The only action is Check again. A spinner sits beside its own "Checking…" label (§6).- Still failing: a short line inside the banner says so; it is a polite live region, so it is announced.
- Healed: the banner unmounts on the push, and a toast says "The AI engine runs again."
Everything else points there.
- Home. The model row shows a warning badge "Can't run" and the action Go to AI Model. The hero's single loud primary becomes Go to AI Model (D-UI3: the action that unblocks the user leads). Start chatting stays a secondary, never disabled, because demo replies are still possible.
- The chat notice. Its button reads Go to AI Model instead of "Details" (a new
optional
targetonruntime:notice). The notice leaves by itself when the verdict goes, but only on that transition: a stale "can't run" must not outlive the fix, and a verdict not yet read must not clear it. - No contradicting neighbour. While the chat engine can't run, the AI Model screen hides the optional voice-engine install banner, because its copy says "chat … already works" (found in the real-app review).
- Translate, Images, dictation, Documents rows. Each shows one sentence ending "The AI Model screen says what is missing".
The voice engine is quieter. Chat still works, so a voice-engine refusal is a hint line under the speech-model card (the #527
engineUnsupportedshape) plus the same small Check again. Its outcome line is an ALWAYS-mountedrole="status", because the card is no live region and a status inserted already holding its text is missed (§6, M-U1).Honest demo. Home no longer calls a demo runtime "running": "{model} is running in demo mode — replies are simulated", a neutral badge "Demo mode", and the "almost ready" headline. The reverse holds too: "replies are simulated" and the banner's demo note appear only while the demo runtime is actually answering. A Windows Kit's
cpu/build can run beside a damaged main folder, and then Home keeps its running row (review fix). The Performance graphics tile says "The AI engine can't run on this computer, so the graphics card could not be checked", with the pill "Unknown", instead of "No usable graphics card".Live, not polled. Every surface reads
AppStatus.engineProblemsthroughuseEngineProblems(), on mount and on the payload-freeengine:problemsChangedpush.- A refusal found after a screen mounted still shows (the startup check may land later).
- A healed engine leaves every screen at once.
- No surface re-checks on window focus (owner decision: restart or the button).
As built.
- Renderer:
components/EngineProblemNotice.tsx(banner/hint; pure — the screen passesonRecheck);lib/useEngineProblems.ts;shared/engine-problem.ts(reason → key + params, the package table, the Diagnostics phrases);screens/ModelsScreen.tsx,HomeScreen.tsx,PerformanceScreen.tsx,settings/DiagnosticsTab.tsx,App.tsx;- the
engineCannotRuncodes inimages/AnswerThread.tsxandTranslateScreen.tsx; .engine-problem-hintinstyles.css.
- Copy:
models.engineProblem.*,home.model.{engineCannotRun,badgeEngine,demo,badgeDemo},app.noticeGoToModels,diag.engine.*,perf.tile.graphics.engine,perf.rating.unknown, plus themain.*and persist-canonicalmain.ingest.*keys (en + de). - Tests:
tests/renderer/EngineProblem.test.tsx(every reason, Check again in its three outcomes, the always-mounted hint status, German, ModelsScreen push in and out, Home, the App notice target, the Diagnostics line and report, the Performance tile, the Images error code),live-region-nesting.test.ts,display-map.test.ts.
#532 amendment — "Install the AI engine again" (2026-10-05). Damaged engine files are the one
refusal a fresh copy fixes, so decision 3's "one action" becomes two for that reason only.
Engineering record: architecture.md "Engine load failures" §8.
- The fix leads. The banner offers Install the AI engine again („KI-Engine neu installieren“) as its primary, with Check again beside it as a secondary (for a fix made outside the app). The voice hint offers Install the voice engine again as a secondary, because the hint stays quiet (decision 5). One click, like "Install AI engine": the drive's copy is replaced only after the new archive matched its checksum.
- The reason sentence names the action when the drive allows the download: "Some of its files
on this drive are missing or damaged. Install it again to replace them." When the drive policy
forbids downloads (an offline Kit), the button shows disabled with the policy reason and the
sentence keeps the troubleshooting pointer. When only the Settings toggle is off, the button
shows disabled with that reason and the sentence still names the action, since the user can
turn it on. The gate's reason wraps below both buttons (
.engine-problem-actions). - The progress is the banner's own. While it runs, the action becomes the shared engine
progress bar plus Cancel, Check again is disabled (the program is being replaced), and the
missing-engine banner never shows this job (
EngineDownloadJob.reinstall). When it ends, the banner leaves with the verdict, and a toast confirms "The AI engine was installed again." - No loop. If the freshly installed copy is refused as damaged too (
afterInstall), the sentence says the files are probably not the cause: on Windows it names an outdated Visual C++ Redistributable, elsewhere it points to the troubleshooting guide. No second reinstall is offered; Check again remains. Diagnostics says "engine files reported damaged right after a fresh install". On a Kit thecpu/net is refused right after the fresh copy; since #670 its report keeps this sentence instead of bringing the reinstall back. Since #678 the reinstall replaces thecpu/net too when the OS refused it (alone, when the main build ran fine), so the same sentence follows a freshcpu/copy that is refused again. Check again checks thecpu/net when it is the only program refused, instead of saying the engine runs again. - Copy:
models.engineProblem.{filesDamagedReinstall, filesDamagedAfterInstall, filesDamagedAfterInstallWin, reinstall, voiceReinstall, reinstalled, voiceReinstalled},diag.engine.reason.filesDamagedAfterInstall,main.engine.nothingToRepair(en + de). Tests:EngineProblem.test.tsx"Install the engine again (#532)".
11.18 A file attached in a chat that can't be read yet — design record (IMPLEMENTED 2026-10-05, #570–#573)
What the chat says when an attached file fails because it needs OCR, where it sends the user,
and how they get back. Engineering record: architecture.md doc-org §4 "#571 amendment" and
rag-design §13.2. Code cites this section as §11.18.
The problem. A scanned PDF attached in a chat failed with only "This PDF looks like a scan — it has no readable text yet." and disappeared from the chat. The next question was answered from the whole corpus (#571). Documents offered Try again next to the real fix (#572), and coming back to Chat opened a new chat instead of the one the file was attached in (#573).
Decisions.
- Documents is the one OCR surface; everything else points there. OCR does not run inside the chat: a run blocks chat in every conversation and would need the doc-task store, cancel, the #410 install flow and remount handling there. The chat, Translate (#570 parity) and Images (#539) each name the case and offer Go to Documents / „Zu den Dokumenten“.
- The button navigates, so it is not named like the row action. The Documents row carries Make searchable (OCR); a chat button with the same label that only navigates would mislead.
- The copy names the file, the one next step, and what happens after — "{name} looks like a scan, so it can't be read yet. In Documents, use Make searchable (OCR) on it. It then joins this chat by itself — no need to attach it again." The promise is pinned by an integration test (OCR re-indexes the same row, which files it into the chat). It never promises "come back here". A photo of a page without the OCR files gets its own sentence (Download OCR files, then Try again). German quotes the exact labels („Durchsuchbar machen (OCR)“, „OCR-Dateien herunterladen“, „Erneut versuchen“).
- Read the flag, never the text. The case comes from
ocrRemedyKind(scanDetected, or the canonical photo message through the display map). The chat stores localized banner text, andmain.ingest.pdfScanDetectedis persist-canonical. - The banner belongs to its chat. A failure that lands while the user is in another chat is held in memory and shown when they return; it is never shown over another chat. When several files failed, the scan leads, then the photo. The message and its remedy are ONE state, so the button can never ride along on a later, unrelated error.
- An unreadable file still scopes its chat, and says so. The chip reads "Answering from: scan.pdf (not readable yet)", never bare and never "your whole library". Files in this chat marks the chip (dashed, muted) and adds one line: "A file that can't be read yet adds nothing to the answers. Documents shows why, and what to do."
- A dead-end button is removed, not explained. A detected scan's row has no Try again (it fails the same way until OCR runs); Retry all skips every row a retry cannot fix.
- One way back, for that trip only. After the chat's Go to Documents, Documents shows a ghost ‹ Back to chat (the Images/Review back-link shape) that reopens that conversation. App holds the id in a one-shot slot that every other navigation clears. The rail's Chat keeps its plain chat-home landing; remembering the last chat for every return was rejected as a change to general navigation.
As built.
- Renderer:
lib/ocrRemedy.ts(moved fromscreens/documents/format.tsx);screens/ChatScreen.tsx(errorState,ATTACH_REMEDY_KEY, the held-failure ref, the CR-6 effect,onOpenDocumentsFrom);chat/ScopePopover.tsx(attachmentName, the hint);screens/DocumentsScreen.tsx(onBackToConversation, Retry all);screens/documents/format.tsx(isRetryableFailure);App.tsx(documentsReturn,openDocumentsFromChat);screens/TranslateScreen.tsx;.scope-attachment.failedand.docs-backinstyles.css.
- Copy:
chat.attach.{scanned,photoNeedsOcr,goToDocuments},chat.scope.{attachmentNotReadable,attachmentFailedHint},docs.backToChat,translate.file.err.scannedAction(en + de). - Tests:
ChatAttach.test.tsx(scan, photo, other failure, scan-first, dismiss, held across a conversation switch);ScopePopover.test.tsx(EN + DE);ChatBackToConversation.test.tsx(App-level Back to chat — incl. the chat's hand-over of its conversation — + the rail);DocumentsScreen.test.tsx/OcrInstall.test.tsx(no Try again on scan rows, Retry all);TranslateScreen.test.tsx;- main side:
collections.test.ts,chat-ipc.test.ts,rag-collections.test.ts,docs-ipc.test.ts(the OCR rejoin).
11.19 What OCR read, in words — design record (IMPLEMENTED 2026-10-05, #538, #574, #575, #576)
How a document's OCR metadata is said on its row and in its preview. Engineering record:
architecture.md "OCR quality amendment". Code cites this section as §11.19.
Decisions.
- Rows stay quiet. An indexed row keeps one inline Preview and the ⋯ menu (§11.6). Both new
notes are
hint doc-row-capcaptions, never banners or badges; their actions live in ⋯ (Make searchable (OCR) for unread scanned pages, Read again (OCR) for a done reading). - One wording module for row and preview (
screens/documents/ocrNotes.ts), so the two can never say different things. - Count what is searchable. The preview's OCR line counts the pages whose reading produced
text — "… on 2 of 3 pages" — against the whole document when only its scanned pages were read
(#575), and says "read N scanned pages … found no text" when none did. Nouns follow
{total}, which those sentences only render at ≥ 2, so no plural forms are needed. - "Unsure" names a place to look, not a verdict. "Text recognition was unsure on 1 of the 3 recognized pages." / "… of this photo" / "… of this page". The preview adds the causes (blurry, skewed, handwritten, another language) and Read again (OCR) beside them; the row caption has no button (rule 1).
- Scanned pages in a text PDF read "Scanned pages without readable text yet: 2 of 12." (a figure after a colon, no inflection); without the OCR files it adds "Reading them needs the OCR files (AI Model screen)." The caption goes once OCR has read them.
- A photo is "this photo", everywhere: the preview line, the unsure note, and the Read again (OCR) tooltip (for a photo it is a re-index).
- The orientation file is named for what it does. In the install dialog "Page orientation (turns sideways pages upright)"; the dialog label is Files, not Languages; the AI Model row, when it is the only file missing, says "Turning sideways scans upright needs one more OCR file (optional)".
As built: PreviewModal.tsx (.preview-ocr-unsure: the note and its button on one wrapping
line), DocRow.tsx, ocrNotes.ts, ModelsScreen.tsx, OcrInstall.tsx; EN + DE catalogs (German
uses „erkannten Seiten“ and „Bildschirm KI-Modell“). Eyeballed in the real app, light and dark,
German UI (screenshots in the PR). Tests: DocumentsScreen.test.tsx (#576/#538, #574, #575 cases),
OcrInstall.test.tsx (13b), the CODE-8 non-grammatical list in i18n.test.ts.
11.20 "An update for the AI engine is available" — design record (IMPLEMENTED 2026-10-05, #516)
The AI Model screen's offer for an engine on the drive that is older than this app's pin.
Engineering record: architecture.md "In-app engine updates". Code cites this section as
§11.20.
Decisions.
- Quiet, not an alarm. The engine works, and the update only brings it to the version this app
was tested with. So it is an
infoBanner placed after the missing-engine banners, and its Update („Aktualisieren“) is a secondary button. The fixes for faults (§11.17's reinstall, the missing-engine install) keep the primaries. - One notice, one button. The title names what is outdated: "An update for the AI engine is
available", the voice-engine variant, or "Updates for the AI engine and the voice engine are
available". One Update covers all of them, and the
cpu/fallback rides along. - Say what will happen. The explanation states the order the user will see: the download comes first, then the models pause for a few seconds while the files are replaced, then the selected model starts again. Versions stay out of the everyday copy; Diagnostics' "Engine versions" row carries them (§7).
- The same controls as every engine job. Progress and Cancel while it runs, the download gate's reason under a disabled button, Try again with the error. A finished update toasts "The AI engine was updated." and the notice leaves with the refreshed versions.
- No contradicting neighbours. It is not shown for an engine the OS refused (the §11.17 banner leads, and a reinstall fetches the pin anyway), for a newer engine (never a downgrade), for one without a version record, or for the optional knowledge-pack tools. A deep link to a missing model stays at the top while the notice shows (the #539 note).
Copy: models.engineUpdate.*, diag.app.engineVersions, diag.engineVersion.*,
main.engine.{nothingToUpdate, updateBusy} (en + de). Tests: EngineUpdate.test.tsx,
ModelsScreen.test.tsx (the deep-link row).
11.21 An answer the AI model's stop, switch or crash interrupted — design record (IMPLEMENTED 2026-10-06, #600)
What the chat says when the AI model is stopped, switched or crashes while an answer is being
written. Engineering record: architecture.md CB-5 "#600 amendment". Code cites this section as
§11.21.
Decisions (owner, 2026-10-06).
- A stop the user caused ends cleanly, and the answer says so.
- Stopping or switching the model on the AI Model screen ends the answer like the chat's own Stop: no error, and the text so far is kept.
- Unlike a Stop, the user usually did this from another screen, so the answer carries a lasting label: "Reply stopped" (DE „Antwort gestoppt“). Its tooltip reads "The AI model was stopped or switched before this reply was finished."
- It is deliberately not "Reply cut off". That label means the model ran out of room, and its context-window advice would be wrong here. Older app versions show it on any unknown cause, so the marker lives in its own field, which they ignore. The two never share a reply: one the model had already cut at its limit keeps "Reply cut off" alone, since a stop after that cut nothing (#742).
- A question with no answer says why. If the model had not written a word yet (common on CPU: reading a long question takes minutes), the question gets the same quiet note: "Not answered — the AI model was stopped." (DE „Nicht beantwortet – das KI-Modell wurde beendet.“). It shows only while no answer follows the question.
- "Try again" never costs the previous answer. A re-ask that the stop cut keeps the previous complete answer and drops the half-written one. The user acted on the model, not on the answer.
- No confirmation dialog; a note where the decision is made. While an answer is being written, the running model's card on the AI Model screen says: "An answer is being written. Stopping or switching the model ends it — the text so far is kept." Stop stays one click (§1: calm over clever).
- A crash is an error, in words. When the model's program dies (a crash, Task Manager, an antivirus tool), the chat shows "The AI model stopped before the answer was finished. Send your message again — if this keeps happening, restart the model on the AI Model screen." It is never the raw "terminated" / "fetch failed". The unfinished text is not kept (the F-02 rule), and the German screen name follows §7: „im KI-Modell-Bereich“.
Look. Both notes reuse the "Reply cut off" marker's markup (.msg-truncated, ⚠ glyph,
role="note", cause in the tooltip): a quiet labelled line, never colour-only (§9). The card note is a
.hint with role="status".
Copy: chat.endedEarly.{label, hint.model}, chat.unanswered.model, models.answeringNote,
main.chat.connectionLost, review.summary.stopped (en + de). Tests: TruncatedNotice.test.tsx
(#600 block), ModelsScreen.test.tsx (the answering note), model-stop-mid-answer.test.ts.
#612 amendment (owner, 2026-10-06): the Stop button, lock and quit say so too. Before this, an
answer the user stopped, or one cut by "Lock now" or by closing the app, kept no lasting sign. After
a reload, an unlock or a relaunch it looked finished, and an evidence pack built on it said nothing
was cut. Engineering record: architecture.md CB-5 "#612 amendment".
One label, the cause in the tooltip. Every early end shows the same "Reply stopped" („Antwort gestoppt“). The hint says why:
- the model: as above;
- the Stop button: "You stopped this reply before it was finished." („Du hast diese Antwort gestoppt, bevor sie fertig war.“);
- lock or quit: "The workspace was locked or the app was closed before this reply was finished." („Der Arbeitsbereich wurde gesperrt oder die App geschlossen, bevor diese Antwort fertig war.“)
The Stop toast stays as the moment's confirmation; the label is what lasts, in every window.
"Not answered" for every cause. A Stop before the first word: "Not answered — you stopped it." („Nicht beantwortet – du hast die Antwort gestoppt.“). Lock or quit: "Not answered — the workspace was locked or the app was closed." („Nicht beantwortet – der Arbeitsbereich wurde gesperrt oder die App geschlossen.“).
"Try again" keeps the previous answer unless the user stopped the new one. A lock or quit that cuts a re-ask brings the previous complete answer back, as a model stop does. Only the Stop button keeps the half-written one: there the user made the choice about the answer.
The totals stay under a cut bank-statement or invoice answer. The figures the app checked (and their date / text-quality notes) still follow the stopped narration, as they follow a "Reply cut off" one: they are verified, and they contradict a figure the partial got wrong. The label is what says the answer is unfinished.
The evidence pack names the cause in the same sentence the review summary shows, worded for a reader who was not there: "The generated answer is incomplete — it was stopped before it was finished." / "… the workspace was locked or the app was closed before it was finished."
Copy (#612): chat.endedEarly.hint.{user, lock}, chat.unanswered.{user, lock},
review.summary.stopped.{model, user, lock} (the #600 review.summary.stopped became .model), en +
de. Tests: TruncatedNotice.test.tsx (#600, #612 block), evidence-pack-html.test.ts.
#613 amendment (2026-10-06): "Send again" for a question that got no answer. Before, such a
question was a dead end: "Try again" sits only under an answer, the error banner had no retry (although
the crash message says "Send your message again"), and the user retyped the question. Engineering
record: architecture.md CB-5 "#613 amendment".
- One click, under the question. When the conversation ends in a question with no answer (after an error, a crash, or a stop before the first word) the question shows "↺ Send again" („↺ Noch einmal senden“) below it, in chats and document chats alike. It asks the same question again, with the depth and skill the composer shows (a question a Summarize or Categorize run asked keeps that run's skill and document), and does not add the question a second time.
- Always visible, not on hover. It is the answer row's button ("↺ Try again",
.msg-action) in its own row, but it does not wait for hover or focus: it exists only while the question has no answer, and it is the way on. The error banner gets no retry button of its own; one affordance, in the place that lasts after a reload. - The note follows the latest attempt. While the question is being answered again, neither its "Not answered" note nor the button shows. If the new attempt also ends early, the note names the new cause; if it fails with an error, the note goes and the banner explains.
- Only the last question. An older question with no answer keeps its note but has no button; the app answers the conversation's last turn.
Copy (#613): chat.actions.sendAgain; main.chat.nothingToResend if the question stopped being the
last message meanwhile (en + de). Tests: TruncatedNotice.test.tsx and ChatSendFailure.test.tsx
(#613 blocks).
11.22 An AI model that stopped responding, crashed, or is still starting — design record (IMPLEMENTED 2026-10-06, #599)
What the app says when the running model is frozen, crashes in CPU mode, or is still starting.
Engineering record: architecture.md CB-5 "#599 amendment" and GPU §5.3. Code cites this section
as §11.22.
Decisions (owner, 2026-10-06).
- "Not responding", and the user decides. When the running model fails its health re-check or an
answer on it timed out, its card on the AI Model screen keeps "Running" and adds a warning badge,
"Not responding" (DE „Reagiert nicht"), a hint ("The AI model has stopped answering.
Restarting it usually fixes this.") and a one-click Restart (DE „Neu starten") beside Stop.
- The app offers the restart and never performs it: from outside, a slow CPU prefill and a stuck model look the same, and an automatic restart would cut the slow one off.
- Diagnostics keeps its healthy/unhealthy wording; it now reads "unhealthy" here.
- A crash in CPU mode recovers once, then stops honestly. The first crash of a model in a session restarts it, with a notice: "The AI model stopped unexpectedly and is starting again. Send your message again in a moment." A second crash leaves it stopped: "The AI model stopped unexpectedly again, so it was not restarted. You can start it again on the AI Model screen." (DE „im KI-Modell-Bereich", §7). The notices use the existing runtime-notice channel, like the compatibility-mode notice.
- "Starting" means starting. From the moment a start is requested, the weight check included, a question or a document task says "The AI model is starting. Try again in a moment." (DE „Das KI-Modell startet gerade. Versuch es gleich noch einmal."), never "start one first". Chat's waiting screen says "The AI model is starting" (DE „Das KI-Modell startet") instead of "No model is running", and drops the "choose Use this model" line meanwhile.
- A stale "no model" banner goes when the model is back. A "No AI model is running" or "is starting" banner clears when Chat sees the model running again. Any other error stays until it is dismissed — a crash's own message included, because it explains why the question has no answer.
Look. The badge is the existing warning Badge (⚠ glyph and text, never colour-only, §9); the
hint is a .hint with role="status"; Restart is the card's primary action while it shows.
Copy: models.badge.notResponding, models.notRespondingHint, models.restart,
main.runtime.{crashRestarting, crashStopped}, main.modelStarting, chat.noModel.startingTitle
(en + de). Tests: ModelsScreen.test.tsx (#599), ChatSendFailure.test.tsx (#599),
runtime-ladder-exit-wiring.test.ts (the notices), chat-ipc.test.ts / doctasks.test.ts (the
starting copy).
11.23 A search model that failed — design record (IMPLEMENTED 2026-10-07, #634)
What a document row and a document question say when the search model (the E5 embedder) fails.
Engineering record: rag-design.md §12.4 "#634 amendment". Code cites this section as §11.23.
The problem. The row and the banner showed the raw reason. A timeout read "The operation timed out." in a German UI too. A damaged weight file put llama-server's stderr on the row, a wall of log lines with the file's absolute path, on every document of the session.
Decisions (owner, 2026-10-07).
- Name the search model, not the AI model. Users know the chat model as "the AI model"; this is the other one, "the search model" (DE „das Suchmodell", the term the re-index copy already uses). Each line says what failed, what it cost ("this document could not be indexed" / "your documents could not be searched") and the next step.
- A start failure points at the fix: "On the AI Model screen, choose Check all model files — then try again." (DE „Wähle im Bereich „KI-Modell“ „Alle Modelldateien prüfen“ — versuch es danach erneut."; English names the button without quotes, German quotes its exact label, §11.17). The check flags a damaged file and offers the download; after it, Try again works at once. A check that finds the file intact re-arms the start too, so Try again is always a real attempt.
- Timeout gets its own line; everything else shares one. "did not respond in time" vs "ran into a problem". An HTTP error, a malformed response and a crash have the same next step, so they share the line; the detail goes to the local log.
- A lock is not a failure. A lock or quit that cut an import off shows the existing "Ingestion was interrupted before it finished. Re-index to try again."
- Try again stays offered on every one of these rows (
isRetryableFailure).
Copy: main.ingest.searchModel{Timeout,CannotStart,Failed} (persist-canonical, display-mapped),
main.chat.searchModel{Timeout,CannotStart,Failed} (en + de). Tests: display-map.test.ts
(German round-trip), chat-stream.test.ts, engine-health.test.ts (#634).
11.24 A total the AI model added up itself — design record (IMPLEMENTED 2026-10-12, #649)
What a document answer says when the AI model read a whole document and computed a sum or a grouping
itself. Engineering record: rag-design.md §14.5 "#649". Code cites this section as §11.24.
The problem. Since #649 a sum ask ("How much did I pay in fees?") over one document that fits the window is read whole, not answered with the list of every amount. The listing was exact but gave no total; the whole read gives a total that nothing checks. In the real-app run, qwen3-4b-instruct-q4 summed a one-page statement's four fees wrong twice (5,45 and 8,35 EUR for 13,85), with every line in its prompt, and stated each total plainly. It added a lease's three monthly amounts up right.
Decision (owner, 2026-10-12). Keep the whole read and say who did the arithmetic. Any whole-read answer to a question about a total (a sum, or a grouping of amounts) leads with one line, with or without a deep index: "Heads-up: the model works out totals itself and can miss or miscount items. Check any total against the sources." (DE „Hinweis: Summen rechnet das Modell selbst aus und kann dabei Posten übersehen oder sich verrechnen. Prüfe jede Summe anhand der Quellen.", the du-form of the other notices). It says what the model does with totals, not "added up these amounts". That stays true when the document states the total and the model only read it ("What is the total amount due on the invoice?").
- The same shape as the other answer notices (the deep-index heads-up, the "may miss items" label, the #54 shape hint). It is bold "Heads-up:" plus one sentence of fact and one of action, streamed first, persisted with the answer, and placed after a scope notice. It leads the answer because the risk is the number, and a reader who stops at the number should have seen it.
- No new advice. The sources are already under the answer. For a bank statement, the bank-statement offer (#80) rides along when that skill is enabled; the line does not repeat it.
- Only where a total is asked for and read whole (
isTotalAsk: a sum, an adding-up verb, or a grouping of amounts). A top-k sum keeps #37's notices; a listing keeps the #54 hint. A lookup ("How much is the monthly fee?") and a grouping of anything but amounts ("Gruppiere die Fristen nach Mieter") get none. Every whole read carries it: the bank skill's plausibility fall-through (its extractor found nothing, so the model reads the document), a whole-doc skill's read and a two-document compare.
Copy: analysis.wholeReadSumHint (en + de). Tests: rag-skill-analysis.test.ts (the #54/#649
table and the plausibility fall-through table), rag-whole-doc-skill.test.ts, rag-whole-doc-compare.test.ts,
rag-whole-read.test.ts (a list ask read whole carries none).
11.25 An answer that covers only the beginning of a document — design record (IMPLEMENTED 2026-11-22, #996)
What a whole-document answer says when the document was too long to read in full. Engineering record:
rag-design.md §14.10 "#996". Code cites this section as §11.25.
The problem. A document too long for one call is read in parts: notes on each part, then the answer from the notes. When the notes are still too long for the answer's call, the app cuts them, and the answer covers only the beginning; past about 100 pages the parts themselves stop there. The badge says "covers the beginning", and the prompt asks the model to say so too. In the wave-6 real-model session, qwen3-4b-instruct-q4 said it in 0 of 8 such answers; one copied "Beginning of the document" into every row's source column instead. So the answer's text, which is what gets copied, exported and reviewed, read as complete, and the conversation export carries no badge at all.
Decision (owner, 2026-11-22, follow-ups wave 7, G-7 option A1). The app writes the line itself, and the prompt stays as it was: "Heads-up: this document was too long to read in full, so this answer covers only its beginning. To check something later in the document, ask about that detail directly." (DE „Hinweis: Das Dokument war zu lang, um es ganz zu lesen, daher deckt diese Antwort nur seinen Anfang ab. Wenn du etwas aus dem späteren Teil suchst, frag direkt nach diesem Detail."). Each language uses the heads-up word its other notices use.
- The §11.24 shape. Bold "Heads-up:", one sentence of fact, one of action. The action promises no mechanism: a question about one detail usually searches the passages, but a question under a whole-document skill can still take the whole read, so the line says only what to ask. It streams first and is persisted with the answer. The order is the scope notice, the sum hint (§11.24), this line, then the model's text.
- Only on a proven cut. It appears only when the answer's coverage is the beginning (
coverage.truncatedon a map-reduce answer, over the deep index or the raw sections). A whole read never carries it. - Never on its own. It rides the first token of the model's answer. A Stop before that token, or a reply that is only reasoning, stores nothing, as with the scope notice.
- The model sees nothing new in the turn. Every prompt is byte for byte the same. A later turn sees the line in the history, like the scope notice.
- Where it travels. Copy and the conversation export carry it. Review shows it as one more paragraph block, like the scope notice. Regenerate works it out again. The answer keeps the language it was asked in.
- Left out. The last-resort capped read (both map-reduce paths declined, which only a document without section text reaches) and the two-document compare, which prints its own notice per document.
Copy: analysis.wholeDocBeginningOnly (all ten languages; the owner reads the German). Tests:
rag-whole-doc-mapreduce.test.ts (the #996 A describe: the line rides the first reduce token, the prompts
stay byte for byte, a whole read gets none, a Stop or a reasoning-only reply stores nothing),
rag-whole-doc-tree.test.ts, rag-skill-analysis.test.ts (after the scope notice, through askDocuments),
rag-whole-read.test.ts (a summary over the deep index).
12. Chat-UI polish pass — design record (IMPLEMENTED 2026-06-13)
Branch chat-ui-polish. A focused, renderer-only calm/premium pass on the Chat screen +
conversation history, deepening §3/§7 (visual hierarchy: conversation → history → nav). No
backend/data-contract/IPC changes. Before/after eyeball captures lived in
docs/design-review/chat-screenshots/ (before) and …-after/ (after).
12.1 What changed (decisions + the facts they rest on)
- App nav is a compact rail, not a panel.
.app-shellgrid →100px 1fr; nav items are icon-over-short-label with atitletooltip for the full name. The conversation is the centre of gravity (§1/§2). Active state is a soft neutral fill (--surface-hover) with weight, not an accent fill — accent blue is reserved for the focus ring, links, and the one primary button (§7, fixes accent overuse).- Rail labels never break mid-word (follow-up 2026-06-15). The original rail wrapped
long labels via SOFT HYPHENS (U+00AD) baked into the i18n strings +
hyphens: manual, which rendered as "Docu-ments" / "Doku-mente" / "Einstel-lungen" — reads as broken. Fixed: the soft hyphens are stripped from the nav labels,.nav-labelsetshyphens: none; overflow-wrap: normal; word-break: normal(no soft/auto break ever), and the grid column was widened 80px → 100px so the longest SINGLE-word label in EITHER locale ("Einstellungen", DE — ~72px) fits on one line at the 12px text floor (§4.4; the rail label was also bumped 11px → 12px). 100px is "just enough" (72px label + the rail's ~26px padding/border ≈ 98px) and stays far slimmer than the original ~220px panel; the narrow-window breakpoints (≤760/≤520px) no longer shrink the column below this fit width (a single word can't wrap). Labels with a space or hyphen ("AI Model", "KI-Modell") may still wrap cleanly to two lines. Guard:tests/unit/rail-labels.test.ts. - The rail scrolls at short window heights (#803, 2026-11-15; open-issues wave owner call
G-9). Its content is about 631 px tall on an encrypted workspace (571 px on a plaintext one,
which has no lock button), so below an outer window height of about 670 px (610 plaintext;
Turkish, with its two-line «Yapay zekâ modeli», about 15 px more) its foot, Lock now and the
network indicator, sat under the window and the whole app scrolled to reach it. Those
figures are for the menu bar hidden, as on Windows and Linux since #912; with the bar shown
they are 696 / 636 (the bar takes 26 px). Measured 2026-11-19 in the running dev app at
880 px outer width, 100 % scaling, English UI: the largest outer heights that scroll were 669
(encrypted), 609 (plaintext) and 695 (encrypted, bar shown); Turkish not measured.
.sidebarnow scrolls on its own (overflow-y: auto; min-height: 0), by wheel and keyboard (Tab brings the lock button and the indicator into view), with no visible scrollbar (scrollbar-width: none): a classic bar takes about 15 px of the column, and the labels are sized to the pixel (German «Einstellungen» has 0.3 px to spare). It never scrolls sideways (overflow-x: hidden, owner round 2026-11-15): a label too wide for the column is clipped at its edge. The rail's items never shrink (.sidebar > * { flex-shrink: 0 }, after.nav-list { flex: 1 }on purpose): without it the globalbutton { min-height: 24px }let the brand, the lock button and the indicator squeeze to 24 px before anything scrolled. On an encrypted workspace at 880×600 the lock button shows only partly at the bottom edge, the one sign that the rail scrolls. Guard:tests/unit/min-window-layout.test.tsx.
- Rail labels never break mid-word (follow-up 2026-06-15). The original rail wrapped
long labels via SOFT HYPHENS (U+00AD) baked into the i18n strings +
- One privacy signal. The duplicate lower-left sidebar
LocalIndicatorwas removed; the ambient "Local · Offline" lived only in the chat header (thevariant="sidebar"path +.local-indicator-sidebarCSS were dormant). The lock became a quiet rail button.- Superseded (follow-up 2026-06-16, §11.7). The chat-header-only placement left
Home / Documents / AI Model / Settings with NO privacy signal, and the honest
"downloads allowed" state was surfaced nowhere. The single indicator now lives at the
foot of the app rail (
variant="sidebar"revived) so it shows on EVERY screen, and the chat-header instance was removed — still exactly one signal app-wide. It is honest about the EFFECTIVE state (PolicyStatus.offlineMode, which folds the drive policy ceiling AND the network toggle): internet off / policy forces off → closed padlock + "Offline" / „Offline"; internet allowed → open padlock + "Downloads on" / „Downloads an", tooltip "Downloads allowed — chats and documents stay local." The rail is narrow, so the sidebar variant shows that SHORT one-word label (the full "Local · …" reassurance is the tooltip), wrapping cleanly at its space like "AI Model" does.
- Superseded (follow-up 2026-06-16, §11.7). The chat-header-only placement left
Home / Documents / AI Model / Settings with NO privacy signal, and the honest
"downloads allowed" state was surfaced nowhere. The single indicator now lives at the
foot of the app rail (
- History rows read as a calm list. Selected = a soft fill on the row, never a border
outline (a bordered selection read as keyboard focus).
:focus-visiblekeeps the accent ring (the global baseline), so selection and focus are visually distinct. Rows are structured (title + an optional quiet📄 Documentsmetadata line) and ≥40px tall; the loud filledDOCbadge is gone (the glyph pairs with the word — never color-only, 1.4.1). - Search mode is contextual. A "Results for '{query}'" header (
chat.search.resultsFor) sits above the hits; snippets clamp to 2 lines and the matched term renders in--textweight 600 (not loud accent). Empty copy softened to "I didn't find a match. Try rephrasing." (§7 voice). The searchbox/region ARIA names + the sr-only count are unchanged (the tested L14 contract holds). - Messages are softer. User turns → a neutral tinted surface (
--surface-hover), no strong blue border that read like a focused input. Assistant turns are borderless + shadowless — they read as text on the page, not nested cards; source cards therefore sit one quiet level of nesting deep, not box-in-box (§4 "no nested cards"). UppercaseUSER/ASSISTANTchips → quiet You / HilbertRaum labels (chat.role.*). - Composer is one unit.
.composer-rowis the bordered shell that owns the focus ring (:focus-within); the textarea is borderless inside it and the Send/Ask button sits in the shell — it reads as part of the composer (§6). Enter=send / Shift+Enter=newline, dictation, and stop-generation are unchanged. - Truthful doc-scope copy. Never "Using all 0 documents": zero indexed docs → the footer
becomes a direct "📄 No documents yet · Add documents" jump (
chat.scope.none→ Documents); some selected → "Using N documents"; all (count>0) → "Using all documents" (no count).chat.scope.usingAll.*plurals were collapsed to a singlechat.scope.usingAll. (The "Using …" labels later went unused — the "Answering from:" chip names the scope — and theirchat.scope.using/chat.scope.usingAllkeys were removed in October 2026.) - Responsive (§8). History auto-collapses ≤1150px (
ChatScreen.LIST_AUTO_COLLAPSE_PXvia amatchMedia('change')listener;effectiveCollapsed = narrow ? !narrowPeek : listCollapsed, so the persisted desktop preference is untouched and a session "peek" override re-opens it while narrow). Screen gutters +chat-layoutheight tighten at ≤1280/≤1150px so nothing overflows down to 1024px; the 720px transcript stays centred.
12.2 Intentional non-changes
- History was already collapsible (
LIST_COLLAPSED_KEY, the«/»handles) — this pass refined the collapsed handle, the header toggle, and added the responsive auto-collapse; it did not reimplement collapse. - No backend / IPC / schema changes. Edits are confined to the renderer + the EN/DE i18n string catalogs (the two-rule main-process boundary is untouched).
12.3 As built — files + tests
renderer/App.tsx (rail markup, drop sidebar indicator), renderer/styles.css (rail,
rows, messages, composer shell, responsive media queries),
renderer/chat/{ConversationList,Composer,ScopePopover}.tsx, renderer/screens/ChatScreen.tsx
(responsive collapse), shared/i18n/{en,de}.ts. Verification per §11.4: typecheck clean,
build OK, vitest 1085 passed / 25 skipped (the InformationArchitecture indicator test
now drives the header indicator; scope + no-match copy assertions updated). German copy
for the new/changed strings was completed in the D-L7 review pass (2026-06-14).
13. Brand refresh — design record (IMPLEMENTED 2026-06-19)
Branch design-adjustments. Applied the HilbertRaum brand kit (Logo 02 "the closed room",
v1 · 2026-06) to the app: the accent moved from generic blue to the brand teal, and the
placeholder blue-diamond ◈ became the sealed-room mark (a rounded square holding a
single centre dot). Renderer + static-assets + design-token work only — no backend, IPC,
persistence, schema, security, CSP, permission, encryption, or packaging-runtime changes; the
only non-renderer touches were the vendored brand image assets, the generate-icons.mjs
pipeline, and the dark-theme pre-paint colour was deliberately left alone. The app stays fully
offline (assets vendored same-origin, no web fonts). This record condenses the former
docs/brand-refresh-plan.md (full original in git history); code/comments cite it as §13.
Shipped in six gated phases BR1–BR6; the eyeball captures were reviewed then removed to keep the
repo lean — they are reproducible any time via apps/desktop/scripts/walk-brand-refresh.mjs
(after npm run build).
13.1 The brand in one line
A sealed rounded square (the private room) holding a single teal dot (your data) —
offline, contained, calm. The dot is always teal #57D0A4; the square ink flips with the
background (dark ink #11171F on light, light ink #E8EDF2 on dark). Teal means "the user's
stuff staying put", so it stays rare — a role accent, never a surface.
13.2 Token decisions + the contrast facts they rest on
- Brand primitives (theme-constant,
tokens.css):--brand-teal #57D0A4,--brand-teal-hover #48BE92,--brand-teal-active #3DAE84,--brand-teal-dark #1B7F5F,--brand-ink-dark #11171F,--brand-ink-light #E8EDF2,--brand-surface-dark #0E1319. - The central constraint: bright teal
#57D0A4on white is ~1.98:1 — it FAILS both the 4.5:1 text and the 3:1 UI thresholds. So bright teal is never text/link/focus/a thin boundary on a light surface; light roles use the derived--brand-teal-dark #1B7F5F. - Role re-point (the old blue ramp
--accent-700/600/500/300is fully RETIRED):--accent/--link/--focus/--row-selected-bar=#1B7F5Fon light,#57D0A4on dark. - Primary button — the one deliberate exception: teal fill + dark-ink text in BOTH
themes (not routed through
--accent, which differs per theme).#57D0A4+#11171F≈ 9.98:1 (hover#48BE928.2:1, active#3DAE846.8:1). Teal + white is forbidden (1.98:1). - Filled controls: checkbox/
<progress>use theme-aware--accent(Chromium auto-contrasts the checkmark; light dark-teal on a light track / dark bright-teal on a dark track, both ≥3:1). The custom switch-on track uses--brand-teal-darkin BOTH themes because the thumb is white--n-0— white on dark teal is 5.2:1 (white on bright teal would be 1.98:1). - Dark
--bgnudged#0f1115 → #0E1319(brand-exact;--texton it ≈15.2:1). Light surfaces unchanged. Semantic success/error/warning are untouched — teal never replaces a status colour. - Measured ratios (light bg
#f7f8fa/ dark bg#0E1319): link/focus/accent 4.65:1 (light) / 9.7:1 (dark); selected-bar ≥3:1 both; primary fill+ink 9.98:1; switch-on+thumb 5.2:1. (#151 D-3: corrected with the exact WCAG formula — the earlier figures rode the pre-#137 coefficient.) - Pinned by a test:
tests/unit/token-contrast.test.tsparsestokens.css, resolves everyvar()chain per theme, and asserts each role pairing AA in both themes — INCLUDING the forbidden bright-teal-on-white < 3:1, so the value can't silently drift off the bright hex.
13.3 The mark — assets + component
- Vendored same-origin under
public/brand/(offline CSP):mark-on-{light,dark}.svg,lockup-on-{light,dark}.svg,mark-mono-{ink,white}.svg. Kit names are background-inverted (mark-dark.svg= a LIGHT square FOR dark bg) — each was opened and its fill confirmed before the mandatory semantic rename. Favicon →public/icon.svg(theme-adaptive square ink via an internal@media prefers-color-scheme); app-icon →build/icon.svg(light square + teal dot on the opaque#0E1319surface). components/BrandMark.tsx(BrandMark+BrandLockup): the theme-correct asset is chosen by a CSS[data-theme]pair toggle (both<img>render;.brand-img-light/-darkshow one) — not a JS theme read, so it works pre-unlock in the gate (which follows the OS theme via thedata-themeattribute set at startup).BrandMarkclamps size ≥16 (dev-warns below; the kit's raster floor), bakes clear-space ≥ the dot diameter, and is decorative by default. AssetsrcMUST be RELATIVE (brand/…, not/brand/…): the single-page renderer has no router, so a relative path resolves next toindex.htmlunder both dev (http://localhost) and prod (hilbertraum://app/since #560). The rule dates from thefile://load, where an absolute path resolved to the filesystem root and rendered broken; keep it, because a relative path works under any base.- Placements: rail brand slot (
App.tsx,size 24) and the gate (WorkspaceGate.tsx,size 36, above the "HilbertRaum Lite" edition line). Never inside the chat transcript — the conversation stays the centre of gravity. The◈glyph is gone fromsrc/entirely. The rail slot is a real Home button (issue #47, 2026-07-09): a logo heading a column of clickable rail items reads as "go Home" by universal convention, so a dead click there erodes trust. It sharesnavigate('home')with the labelled Home item, names itselfHilbertRaum — Home(tooltip +aria-label, wordmark + destination), and carriesaria-current="page"on Home — but the visual active highlight stays on the labelled Home row alone, so the rail never shows two lit selections. Hover fill + the global:focus-visiblering supply the affordance (.brandinstyles.css).
13.4 Icon pipeline
scripts/generate-icons.mjs renders the rounded-square + centre-dot (arcTo corners) on the
opaque #0E1319 surface (geometry ported from the 512-unit build/icon.svg), keeping the offline
@napi-rs/canvas draw + the hand-assembled PNG-embedded .ico + the [16,24,32,48,64,128,256]
size set. build/icon.{png,ico} are committed (packaging mustn't depend on running a generator);
electron-builder.yml is unchanged (filenames preserved). The window/taskbar icon is
build/icon.png via the BrowserWindow icon option (dev/Linux) / the embedded .ico (packaged
Windows) — not the document favicon.
13.5 Verification pattern (this wave)
Per phase: npm run typecheck + full vitest from apps/desktop (npm test — repo-root runs
break renderer matchers) + npm run build, then the Playwright _electron eyeball walk
(scripts/walk-brand-refresh.mjs) across all six screens in BOTH themes AND both locales (EN/DE).
Eyeball-harness note: policy.json is parsed NESTED at policy.workspace.encryption_required
— a flat {encryption_required} (as the old §11.4 recipe wrote) is ignored, so the unpackaged
(isDev) build falls back to plaintext_dev and BYPASSES the gate; force it with the nested shape
and drive the gate by CSS/input[type=password] (locale-independent — the dev machine boots
German). New guards added: token-contrast.test.ts (§13.2) and tests/renderer/BrandMark.test.tsx
(theme-asset choice, relative src, min-size clamp, clear-space, a11y, asset existence). Final suite:
1852 passed / 27 skipped; typecheck + build clean.
14. Screen width tiers — design record (IMPLEMENTED 2026-08-09, issue #166)
The app-wide rule for how wide a screen's container is and where its whitespace goes. Code comments cite this section as §14.
The problem (#166): the container caps accreted wave by wave — 860px .screen (a single
undocumented CSS line), 1100px Translate/Images (comments pointing at retired wave plans), 1180px
Documents (§11.6), Review inheriting the 860px prose cap around a two-pane workspace — and every
capped container was left-aligned, so the leftover space piled up as a differently-sized right
gutter on every screen. Chat, which centres its 720px transcript inside a full-bleed grid (§3),
read as designed; the capped screens read as accidental, especially on wide windows.
Decisions (the facts they rest on):
- Two tiers, no more. Reading tier 860px (
.screen): prose, forms, card lists — Home, AI model, Settings, Skills, and the gate/loading/error/empty states. Workspace tier 1180px (.docs-screen,.translate-screen,.images-screen,.review-screen): row sets and two-pane layouts that need more than a reading column — the §11.6 argument, now applied consistently: Translate and Images are structurally the same "more than a reading column" case that gave Documents 1180px (their 1100px had no recorded rationale), and Review's answer canvas had only ~480px beside its 280–360px evidence pane under the inherited reading cap. A new screen picks one of the two tiers; a third width needs a decision recorded here first. - Centred, both tiers.
.screennow carriesmargin: 0 auto, so leftover space splits into symmetric gutters exactly like the chat transcript — capping reads as intent, not as a half-used window. Capping itself stays: §1.1 calm/whitespace, §1.5 legibility, and §8's warning against dashboard sprawl all argue against full-width. This supersedes §11.6's "left-aligned, NOT centred" choice (dated note there); §11.6's width argument stands unchanged. - Chat stays full-bleed (§3):
.chat-layoutfills the content area and the 720px transcript centres inside it; Chat's no-model/empty states are plain.screen(reading tier). - Guarded:
tests/unit/screen-width-tiers.test.tspins the two tier values, the centring margin, and sweeps every*-screencontainer so a third width can't creep back in.
Amendment (2026-08-09, issue #171 — fullscreen follow-up): with the window fully expanded the reading-tier screens still read as under-using the window (~50% used at 1920px, ~36% at 2560px). The owner-ratified resolution re-examined the tier FIT per screen instead of the tier VALUES:
- AI model and Skills move to the workspace tier (
.models-screen,.skills-screen, 1180px). Both are card/row lists with badge clusters and trailing action rows — the same §11.6 "a list needs more than a reading column" argument that placed Documents, Translate, Images and Review; the Skills list even implements the §11.6 row pattern. Their original reading-tier assignment in this record is superseded in place (decision 1's tier lists read accordingly). - Home and Settings stay reading tier, deliberately. They are the prose-heaviest screens: at ~14px system font, 860px already yields ~105–115 characters per line — above the classic 45–90 readability ideal — so widening them optimises the feeling of fullness at the direct cost of what the cap protects. Their fullscreen gutters are the recorded price of the §1.1/§1.5/§8 posture.
- Chat's 720px transcript stands (§3 priority design — the standard chat reading column); its no-model/empty states stay reading tier with it.
- Fluid caps (
clamp()-scaled tiers) were considered and NOT taken: they re-open the "every wave invents a width" drift this record §14 closed, for a perceptual gain the two re-tierings already deliver where it is real. Full width remains rejected (#166, #171). - The scroll container reserves the scrollbar gutter on both edges
(
.content { scrollbar-gutter: stable both-edges }): without it the centred column sat ~8px further left on scrolling pages (Models, Settings) than on non-scrolling ones — the same-width columns visibly jumped between nav clicks. Reserved symmetrically, the §14 gutters measure identical on every screen whether or not a scrollbar is present.
Amendment 2 (2026-08-09, #171 follow-up — owner decision at live review, supersedes the two-tier scheme): clicking through the merged build, the owner judged the remaining per-screen width difference (reading 860 vs workspace 1180) as reading like inconsistency, not intent — the uniform frame won over the per-screen reading cap. End state, chosen over keeping the tiers and over uncapped full width:
- One width: every screen's container is the centred 1180px
.screenframe. The six per-screenmax-widthrules are gone (the class names stay in the markup as semantic hooks); "don't invent a width" now means don't add ANY per-screenmax-width. - The reading measure moved one level down: the prose roles —
.lead,.hint,.offline-statement— cap at 72ch, so Settings/Home explanations keep readable line lengths inside the wide frame while lists, cards and controls use all of it. This preserves what the 860px tier was FOR (§1.1/§1.5/§8) without the frame-width inconsistency it caused. - Chat stays the sole exception (§3): full-bleed grid, 720px centred transcript; its no-model/empty states now share the 1180px frame like every other screen.
- Guards updated in
screen-width-tiers.test.ts: the single width, a no-per-screen-max-width sweep, thescrollbar-gutterreserve, and the three 72ch prose pins.
15. Model library — design record (2026-09-05)
The growing catalog made full cards and repeated quantizations expensive to scan. The AI Model screen now keeps the active chat model pinned above a compact library of alternatives:
- On this drive / Browse models: the view lists a model whose state is KNOWN to be on the
drive —
installed/ready/running, pluschecksum_failed("Can't verify"), whose files are present and whose entire recovery action (re-download) lives on that row (isModelOnDrive). Achecksum_failedmodel with no checksum on record (ModelInfo.noChecksum, #932) is listed the same way but has no recovery action: its badge says "No checksum" (warning tone, ⚠, never the error-tone "Can't verify"), one hint line says it runs only in developer mode on a drive whose policy allows unverified models, and it offers no Download (nor does it count toward the downloads banner). Nothing here infers file presence:unsupportedandnot_recommendeddescribe the machine or the policy, not the drive, and the renderer has no presence contract to read — widening the set needs one first. The INITIAL view is still chosen once from whether anything is usable right now (isModelInstalled), so a damaged-only drive opens in Browse; a completed download does not change the user's view. Browse includes installed and missing entries. Existing installed/recommended/memory-fit ordering and all main-process gates remain intact. - #847 amendment — "Needs a newer HilbertRaum", and the one presence contract. A model for a newer
HilbertRaum (a role this build does not know, or a manifest
min_app_versionabove the app;ModelInfo.role: 'unknown',needsNewerApp) is never a library row, a task or a family option (matchesLibraryViewrefuses it, sovisibleModels,availableFamiliesand the family empty-state count never see it). It renders in ONE trailing section after the five task sections, shown only when non-empty, under the heading "Needs a newer HilbertRaum" (newerAppRows,lib/modelLibrary.ts): a compact card with the name, a NEUTRAL "Needs newer app" badge (never the error-tone "Unsupported" state badge: it must not look like a broken download) and one hint line ("…Update the app on this computer to use it."). It has no Use/Start, no Download and no technical-details disclosure (its "Verify checksum" would be refused as an unknown model). The view rule is the PRESENCE CONTRACT this section adds:filesPresent, computed in the main process from the existence (not the hash) of every file the manifest declares. "On this drive" lists an entry only when it is true — the user's "my downloaded model vanished" case — and Browse lists every entry.isModelOnDriveis unchanged and still infers nothing. The entries serve no task and offer no family, so a task or family filter hides the section; search applies as to every row, and the results count includes the section's rows (so does the empty-state decision: a list holding only such entries shows them, not "no models"). - Search + task + family filters: search display name, exact id and family, case-insensitively,
matching every whitespace-separated term. Filter before grouping so a collapsed variant is
directly discoverable. Tasks are Chat, Document search (embeddings + reranker), Translation,
Images and Voice. Reset/empty states are explicit, and the active model remains visible.
Family options are DERIVED (#313): the
<select>only offers families the current view and task can actually yield (availableFamilies,lib/modelLibrary.ts) — excluding the pinned active model, before search and before the family filter itself apply, so the two can never disagree withvisibleModels. A family already selected that the view/task change drops from that set is never silently cleared or swapped: it stays the rendered value, appended to the<select>with a "(none in this view)" marker. The empty state that follows names the reason instead of the generic "no models match": On this drive names the family and quotes the exact count Browse would then list for it (same task, same active-model exclusion, same search); in Browse it says the family has nothing for the current task. A family-only reset button ("All families") sits beside "Clear filters" so recovering from a dead-end family never has to discard the search text or task too. - Variant identity: renderer-only, strip a recognized terminal quantization label from the
display name, then key by role + family + runtime + remaining name. Preserve sizes, instruction
revisions, generations, and QAT identity; suffixes that do not look like a quantization label
are not stripped, but a
Q<digit>…token is always treated as one — recorded, not endorsed (e.g.Q4KM-betamerges withQ4_K_M), inmodel-library.test.ts. No manifest, IPC, recommender, or runtime identifiers change. Exact names/actions remain on every row. - Groups: one variant stays visible (the FACE, below); a keyboard-accessible button with
aria-expandedreveals the rest, and expanding lists every other variant exactly once in its ordered position. Counts describe matching alternatives, excluding the pinned active model. Single variants need no group shell. Expansion state survives filtering. A group holding achecksum_failedvariant starts EXPANDED — a damaged sibling must not hide behind a click the user has no reason to make — and an explicit toggle by the user always wins over that default, in both directions, keyed by the stable group key so it survives refreshes and filter changes. Heading outline: screen<h2>→ task section<h3>→ variant group<h4>. - Group face (the collapsed card): normally the group's first ordered member. When the leading
members TIE on all three ordering keys (installed, recommended, runnable here) the face is the
first member of that leading cohort that is obtainable — already on the drive, or still offering
a download that has not been withdrawn (#196); otherwise the original leader stays. The scan
stops at the first member that leaves the cohort, so obtainability never lifts a variant across
a priority boundary (an installed-but-withdrawn weight keeps the face; a manual entry with no
downloadblock never wins it). This is a PRESENTATION exception to stable tie order:group.models, group membership and the global sort are untouched, and every row keeps its own exact id and actions. Without it the real 16 GB catalog fronted its six-way-tied Qwen3.8 27B group with a withdrawn weight — the one card the user saw offered nothing to do. - Ordering after grouping (correction): the picker's installed-first key orders the flat list, but the library renders task sections of variant GROUPS, so the list reads group by group (a group takes its leader's rank) and variants keep their relative order inside it. There is no global installed-first boundary across the rendered rows — a group whose leader is installed can expand to needs-download siblings that sit above the next group's leader.
- Compact rows: task, storage, minimum RAM, status badges and existing actions; descriptions
and technical fields share the existing closed disclosure.
Rows stack at narrow widths and retain the shared screen frame and theme tokens.
- #539 amendment — an automatic role says where it is used, on the card. The embeddings, reranker, speech, translation and vision models have nothing to select or start, so the card used to carry no action at all, and the one sentence that explained it ("Installed — ready in the Images tab") sat inside the closed disclosure. A user who downloaded the vision model to fix a failed scan spent hours looking for a way to load it. Now that line sits under the card's subtitle, visibly, for every automatic role. It is moved, not duplicated. The installed vision card also gets Go to Images, its only button. The vision model's plain hint, still in the disclosure, says what it does ("Answers your questions about one picture at a time. It doesn't read PDFs or make scans searchable.") instead of the chat size tier. Copy names the rail destination a "screen" (DE „Bereich „Bilder““), never a "tab".
- Downloads: live progress/cancel appears once above results, so filtering or collapsing a group cannot hide it. Confirmation, license acknowledgement, verification and start gates retain their existing behavior. Context-size settings stay in their existing location.
- Terminal download results: the SAME panel stays mounted through a
failedjob and adonejob that could not be verified — the outcome must not vanish at the moment the user has to act on it, and the model's own row may be filtered away or collapsed. Presentation is derived from the polled job (no second copy of it), independently of the row's state/withdrawal guards, so a refresh that returns the model asinstalledor stops listing it cannot erase the result; the last known display name, falling back to the model id, keeps it named. ONE alert element is mounted for the panel's whole lifetime — empty during progress, filled on the terminal transition — so the outcome is announced on an element that was already in the tree. While the panel owns a job the row does not repeat its progress or result. Naming the model (#315): the row is the identity while it is on screen (a single card, a group's face, or a member of an expanded group), so the panel's own name line renders only while that row is NOT rendered — filtered away by search/task/family/view, collapsed inside a group, or no longer listed — keeping the outcome named exactly once. Retry resolves the exact variant id and reuses the existing confirmation with that variant's license link and a RESET acknowledgement; it is disabled with the reason when downloads are blocked by policy or the Settings toggle, when the refresh reports the model already on this drive (#314), when the source was withdrawn (#196), or when the entry no longer offers a download. Dismiss is remembered by job id — the result does not return on a refresh, a re-render or a re-entry of the screen — and the row's own Resume/verification affordances take over again. The panel is replaced only by an ACCEPTED new job (a cancelled dialog, a rejected start and an IPC rejection all keep the previous result) and disappears on a verified completion or a cancellation, exactly as before. A retained result is not a live job:JOB_LIVEremains the only gate on other models' Download/Use. A renderer reload, which wipes the remembered job entirely, is recovered on mount (#314): the screen asks the main process which downloads still need the user — adopting the live job, else the most recent unresolved result — and Dismiss tells the main process too, so a dismissal made before the reload stays dismissed. - #933 amendment — the Performance rows say the same. On "Models on this computer", a model on the
drive that every start refuses reads, in place of its "not loaded" pill, "failed its file check" (a
check found a file damaged; the card's "Can't verify") or "no checksum on record" (the card's "No
checksum"). Both use the warning tone, lower case like the sibling pills, and both come from
ResidentModelRow.fileCheck(the checksum cache, never a hash). "loaded now" still wins over both. Such a row adds nothing to the processor total or a graphics-card line, and "Your model" shows the same pill instead of a fit claim, keeping its size on disk.
Implementation: ModelsScreen.tsx, lib/modelLibrary.ts (grouping + face, the #847 trailing rows), lib/modelAvailability.ts
(the pure isModelInstalled / isModelOnDrive / isModelRunnableHere / orderPickerModels, split
out of the screen so modelLibrary can share them without importing it back), styles.css, EN/DE
catalogs. Behavioral coverage: ModelsScreen.test.tsx, model-library.test.ts, the real-catalog
grouping/face controls in committed-catalog.test.ts; visual fixtures: models* preview cases.
16. Minimum window — design record (2026-11-15, #803)
The main window can't be made smaller than 880×600 (minWidth / minHeight,
main/index.ts); on Windows that leaves 864×561 for the content since #912 hid the menu bar
(864×535 with the bar; both measured on a bare Electron 43.8.6 window with the app's menu rule, at
100 % scaling, not yet in the running app). Every screen has to work there
in every interface language. What #803 changed for it (open-issues wave owner call G-9 and the
owner rounds in the architecture.md i18n legend):
- Chat: the column shrinks to the window and the composer footer wraps (§3 "At narrow widths").
- Rail: it scrolls on its own at short heights, with no visible scrollbar (§12.1 item 1).
- Documents filter: the search icon's 32 px left padding now wins over the
.text-inputpadding the box also carries (.text-input.docs-filter-input; with one class it lost to the later.text-inputrule by source order), so the placeholder and the typed text start after the icon, at every size and in every language. - "(12 cores)" on the Performance tile and in Settings → Diagnostics: the core count after the
processor's name sits in a no-wrap span (
keepTogether,renderer/i18nNodes.tsx;.nowrap), so the line may break before "(" but not inside it. The Copy reports are plain text and unchanged.
What was checked there: the running app in all ten languages, at 880×600 and maximized, light
and dark (40 states), by element rectangles and a screenshot review per language. Send or Ask and
the memory meter stay inside the window (right edges at most 822 and 825 of 864 px at 880×600 with
the conversation list open); no composer-footer control overlaps another, draws outside its box or
takes two lines; the rail foot is reached by scrolling the rail, and the page itself never
scrolls; every rail label fits its box on one line but the Turkish «Yapay zekâ modeli», two lines
by design; the filter's text starts after its icon. The same check found "(12 cores)" broken after
"(12" in all ten languages maximized and in Turkish at 880×600, the French and Russian
document-mode placeholders wrapped onto a hidden second line, and in plain mode at 880×600 an
active skill's ⓘ and ✕ wrapped alone onto the next footer row; the core-count span, the shorter
placeholders and the skill group came from it, and the last two were measured in the running app
before they were built. Not changed: the document rows, which squeeze the name at 880×600 and
end short of the toolbar's right edge maximized, and the classic scrollbars of the conversation
list and the message area (architecture.md i18n record, the two waves' QA paragraphs). Guard:
tests/unit/min-window-layout.test.tsx reads the real styles.css and resolves which rule wins,
since jsdom lays nothing out; the rectangles above are the behavioral proof.