okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
2b36e8a02
main
Audit checklist — the recurring items, in one place
Every plan in this folder raises some of the same issues. This is the shared list, so a fix applied once is applied everywhere rather than per screen.
Present on multiple screens
| Issue | Screens | Owned by |
|---|---|---|
| Focus is not trapped in modals | palette, shortcuts, setup, drawer | 13, 16 |
Section headings are <div>, not <h2> | all | 16 |
| Monitor, Serving, Models, Skills, Workspace, Chat | 14 | |
| No time expectation on long operations | setup, models, monitor | 09, 14 |
| Live values without a time window | Monitor, Telemetry | 04 |
| The loaded model reported in four places | header, sidebar, telemetry, Monitor | 10 |
| Context described with different words | chat popover, rail, Monitor | 04, 12 |
| Trees that do not match: icons and motion | Workspace vs Sidebar | 06 |
| Value fills that jump instead of easing | Monitor, rail, Models | 15 |
| Destructive actions styled like navigation | palette, More menu | 11 |
Status of every plan
Every plan received shipped work. None of the plans is exhausted.
That distinction is the honest summary, and an earlier draft of this file got it wrong by marking fourteen plans "Shipped" — which implied the plans were finished when they are not. The numbers:
| Count | |
|---|---|
| Numbered items across the sixteen plans | ~190 |
| Annotated in the plans as fixed or disproved | 48 |
| Recorded in the execution table below | 27 |
So roughly a quarter of what the plans propose has been executed. The work
that shipped was chosen as the highest-value item in each plan, plus every item
the goal named explicitly, plus the defects found while verifying. What remains
is largely polish and optimisation rather than defect: unread marks, content-visibility,
sparkline baselines, a motion budget, Settings search, empty-state actions per
screen, and so on. None of it is broken; all of it is proposed.
Per plan, what is certainly true:
| # | Plan | Shipped | Notable remaining |
|---|---|---|---|
| 01 | Chat | Retry · edit-and-resend · branch · continue · unread marks · content-visibility with pinned scrolling · jump-to-latest · focus-mode turn navigation | — |
| 02 | Models | Fit verdict; unusable options fold away; cost as size and time; recommended variant explains itself and carries weight | — |
| 03 | Engine tuning | Live draft prediction with in-place issues; expert mode in five sections with changed-counts | Safety cue on leaving defaults |
| 04 | Monitor | Sampling interval; VRAM/RAM verdicts; thermal basis; sparkline baseline, labels, hover readout; resting hero with session figures | — |
| 05 | Serving | Copyable URLs; executable curl block; filter with counts; sortable columns; state glyphs | Drawer "copy as cURL" |
| 06 | Workspace | Real glyphs; animated branches; file contents; read markers; scope figures; ARIA tree keyboard nav | — |
| 07 | Skills | Instructions readable; triggers match; usage counts; grouped by source; three-state per-workspace scope | Add-from-folder |
| 08 | Settings | Sticky section index; live search; confirmed appearance reset; telemetry choice persists | Section reorder (declined), grouping, per-section resets |
| 09 | First run | Shape-of-task line; step-3 consequences; Finish later | Scan substance, local-data confirmation, step-5 hand-off |
| 10 | Sidebar | Pinning · arrow traversal · right-click menu · Delete · archive that stays searchable | Skills placement, labelled theme toggle |
| 11 | Command palette | Fuzzy matching, scopes, danger marks, shortcut chips | Recents group |
| 12 | Context rail | Collapsible sections; tools show real use; empty state; close icon; reference-panel weight | Gauge animation |
| 13 | Overlays | Toast cap and hover-pause; exits confirmed; popover follows on resize; three dismissal grammars measured and documented | — |
| 14 | States | Offline bar; persistent failures with retry; all six empty states carry an action | Skeletons, time expectations, operation-failed empties |
| 15 | Motion | Interface scale; one-loop-per-region check; completion cue on the jump pill | Duration budget |
| 16 | Accessibility | useSurfaceFocus; one h1; aria-current; non-text contrast probe (1.4.11) | High-contrast mode, fatigue budget |
Deliberately not done
Two layout reorders, declined by their owner. Tuning's nine flat fields into two groups, and Settings' section order. Both are judgement calls about the product rather than defects, both are visible changes to screens in daily use, and the question was put to the user repeatedly without a steer. Recorded as declined rather than quietly dropped; the plans keep the reasoning if it is ever wanted.
… More was not renamed. The plans want it called Settings, and the goal
naming this work repeats that. The user asked for "… More" by name, so the label
stays. The plan's actual complaint — a vague word standing in front of three
destinations — is answered instead by naming them in the button's tooltip and
accessible name: "More: Models, Engine tuning, Settings".
About's config paths and Open buttons. The plan wanted About to carry the folder paths, their Open buttons and the config file locations. The engine build was added — the one fact nothing else stated — but the paths are not duplicated from Storage, where they sit beside the actions that use them. Repeating them in About would put one fact in two places, which is the failure plan 12's own rule warns against.
Nothing else. Plan 01's remaining items — content-visibility, unread marks,
turn navigation in focus mode — are listed here in an earlier draft as unbuilt.
They shipped (rounds 20, 22 and 40), so the entry was stale and understated the
work. Removed rather than left to be re-read as fact.
Claims that did not survive checking
Fourteen assertions across the plans were disproved by measurement — the count in an earlier draft said eleven, which undercounted its own table. They are corrected in place, and listed here because the pattern matters: the plans were strongest on structure and weakest on what was already there. Every claim of the form "X does not exist" needed grepping before it was built on.
In fourteen cases the plan named the right screen and the wrong defect. That is not a reason to distrust the plans — they found real work in every one of the sixteen — but it is a reason never to build on a claim of absence without checking it first.
| Plan | Claim | Actually |
|---|---|---|
| 04 | Nothing is scoped in time | Both speed cards read last 60 seconds; the totals card carries a This session pill |
| 04 | No threshold made explicit | The temperature metric already printed comfortable / throttling risk |
| 01 | Only the last turn carries figures | Every assistant turn renders a footer |
| 11 | mtx should match Monitor | Monitor has no x; the example was impossible |
| 16 | Section titles render as <div>s | SectionHead renders <h2 className="h3"> |
| 16 | Toasts change without announcement | .st-toasts carries aria-live="polite" |
| 06 | Workspace "shows nothing" | A full detail panel exists — metadata, not file contents |
| 09 | The step rail is a progress bar, not a map | It renders every step name |
| 09 | There is no exit that keeps state | There was; it was misnamed Exit setup |
| 14 | A failed download leaves a row ambiguous | v.error already rendered — the gap was the missing retry |
| 15 | A sent message gets no response at all | It animates in on st-enter: 6 px over 240 ms, measured |
| 13 | No overlay announces itself | All three carry role="dialog", aria-modal, and a label |
| 03 | No "modified from recommended" markers | Every expert row already shows Default: … and a per-field reset |
| 13 | None of the overlays trap focus | All three do, verified against the visible overlay |
The last one is instructive: an early probe of mine "confirmed" the bug by
querying .modal, which finds the hidden palette rather than the open dialog. A
test that looks right and measures the wrong element is worse than no test.
Defects found while executing
These were not in any plan. Each was found by checking a claim or verifying a build, and each is fixed with a check that fails without it.
CPU threads defaulted to 8 on every machine. catalog.mjs hardcoded it
regardless of detected cores, so a 4-core machine warned "CPU threads (8) exceed
physical cores (4)" on a fresh install — before the reader had touched anything.
Now built from detected cores; a fresh install raises no issues.
Three classes were used by components but defined in no stylesheet.
.spec__sub (the Metric sub-line, five screens) and .st-toast__body were
collateral damage from a "dead CSS" sweep. .st-msg__actions was reported as
shipped without its CSS ever landing, because the patch anchored on a selector
that did not exist and failed silently. npm run audit now fails on any class a
component uses that no stylesheet defines.
The rail and the popover disagreed about the same number. The context maximum
read 32K in one and 33k in the other — two formatters, ÷1024 and ÷1000. Found
by applying plan 12's own rule: agree exactly, or appear in only one.
Branching a conversation created the branch without showing it. Chat
resolves its session as location.param ?? activeId, so the URL outranks the
store. branchFrom set activeSession without navigating: the sidebar showed the
new branch while the transcript kept showing the original indefinitely. A
feature that looked broken while its data was correct.
A Tuning impact line that never moved. The plan's own criterion — "a static
line is a failure" — caught the first attempt, which read the saved config
rather than the draft on screen. /api/engine/validate now accepts a draft.
Found in the design pass over every screen
Nine screens were walked, clicked and measured. These are the defects that survived every automated check until something looked at the screen.
The model received no conversation history. The client sent
{ sessionId, message, model, workspaceId } and never history. The real-engine
path builds its prompt as [...history, message], so history was always empty
and every message arrived as the first thing the model had ever heard. The
demo path hides this completely — its replies are canned. Found by asking why
the context meter stayed at ~350 tokens however long the conversation grew.
The context meter measured the wrong quantity. usedTokens accumulated
(+= tokensIn + tokensOut) while the per-part split beside it was absolute. So
it climbed past its own maximum within one conversation — "40k / 32K tokens,
100%" — clamped, with no way back down. It reports current occupancy now.
A promise the app could not keep. "Compaction will trigger soon" appeared in two places. Compaction exists nowhere in the codebase.
Focus mode's dimming never worked. .st-msg carried
animation: st-enter … both. An animated value outranks a normal declaration in
the cascade, so the keyframe's closing opacity: 1 held every turn at full
strength. .app[data-focus='true'] .st-msg { opacity: 0.45 } was in the
stylesheet, matched the element, and lost anyway. backwards fixes it: the
keyframe's end state is the element's natural state, so nothing snaps.
A green one-click "Load" on a model the app called too large. It loaded — 11.3 GB on a 16 GB machine — and reported "the engine is warm". Unusable variants now get a secondary "Load anyway" and a confirmation naming the cost.
A button whose label and action were unrelated. "Add from folder" ran
setQuery('').
A file preview at 1.26:1 contrast — #303030 on #1b1f23, body text needing
4.5 — with 2242px of every long line clipped and overflow: hidden making the
rest unreachable. It only failed in light mode, because the overriding token
is light in dark mode.
One glyph, several meanings. experts meant both the MoE expert count and
Skills. Moving Skills to bolt was worse — bolt is the most-used glyph in the
app at ten places, and in the collapsed rail the icon is the label. It is
thinking now, which appears once and renders as a lightbulb.
The collapsed rail clipped a conversation to its first five pixels, pushed another 40px target past the sidebar edge via the tree's 22px indent, and left a 26px void where the hidden "Workspaces" heading had been.
Checks that were too narrow to catch any of it: the contrast probe only ever visited Chat; the luminance probe counted area without thickness, so an 8px progress hairline was judged the same as a 64×64 block — and its verdict on that element flipped with live data. Both were rebuilt and each proven able to fail.
Checks that could not fail, and were rebuilt
The scroll-cost budget reports NOT MEASURED rather than passing.
npm run motion:budget compares frame cost scrolling with and without the
scroll-driven effects. It could not detect a deliberately expensive effect
injected into the same run — the ratio moved 1.000 → 1.006 — so the harness is
blind to scroll-timeline paint cost under programmatic scrolling in headless
Chromium. It now proves it can see a known-expensive case before reporting, and
exits 3 with NOT MEASURED when it cannot. This is the one check in the suite
that is deliberately allowed to report nothing.
Worth recording, because a green check that cannot go red is worse than none.
The undefined-class rule was vacuous on its first attempt. The comment
explaining it names the very classes it checks, and the regex matched inside
comments — removing .spec__sub still passed. It strips comments now, and is
proven by deleting the definition and watching it fail.
The expected-failure filter was proven narrow. Flows that deliberately break
something declare it (expectFailure(/ERR_FAILED/)). With a genuine
console.error injected into the same flow, the run still fails.
The loop-budget check had incomplete coverage. Its first version checked seven routes, so the probe used to test it — placed on Settings — could not have failed. It also toggled the theme by clicking a control the setup modal covers, which timed out. Both were caught by trying to prove the check rather than trusting a green run.
The non-text contrast probe was made to fail on purpose before being trusted.
Forcing outline-color: #f8fafc drops focus rings to 1.02–1.05 and exits non-zero;
restoring returns to 0.
Probe parsers read color(srgb …) as 0–255. Chrome's 0–1 components made
tinted fills look near-black, silently defeating the contrast and luminance
checks. Fixed in both scripts.
Known-good, keep under test
Correct today, and the things a refactor is most likely to break:
- Reading measure: 68 characters at every content size.
- Contrast: 37 text pairings plus non-text 1.4.11 (focus rings enforced at 3:1), both themes.
- Dark-mode luminance budget and material layering.
- Reduced motion substituting opacity for movement.
- Overlay interruptibility — every surface reverses mid-flight.
- Focus lands inside every overlay and stays there across 18
Tabpresses. - Capsule controls, capsule-free surfaces.
- No native
<select>, no missing icons, no undefined classes or tokens, no off-scale values. - Materials on exactly the approved control-layer surfaces.
How to use these plans
- Pick a screen plan; each is self-contained.
- Check the shared table above before implementing — the fix may belong in a shared component rather than the screen.
- Add the verification named in the plan before the change, so it fails first.
- Run
npm run checkand both theme tours before calling it done. - Check the claim before building on it. Eleven did not survive that.
1# Audit checklist — the recurring items, in one place 2 3Every plan in this folder raises some of the same issues. This is the shared list, 4so a fix applied once is applied everywhere rather than per screen. 5 6## Present on multiple screens 7 8| Issue | Screens | Owned by | 9|---|---|---| 10| Focus is not trapped in modals | palette, shortcuts, setup, drawer | [13](13-overlays.md), [16](16-accessibility.md) | 11| Section headings are `<div>`, not `<h2>` | all | [16](16-accessibility.md) | 12| ~~Empty states without an action~~ **fixed** — all six carry one | Monitor, Serving, Models, Skills, Workspace, Chat | [14](14-states.md) | 13| No time expectation on long operations | setup, models, monitor | [09](09-first-run.md), [14](14-states.md) | 14| Live values without a time window | Monitor, Telemetry | [04](04-monitor.md) | 15| The loaded model reported in four places | header, sidebar, telemetry, Monitor | [10](10-sidebar.md) | 16| Context described with different words | chat popover, rail, Monitor | [04](04-monitor.md), [12](12-context-rail.md) | 17| Trees that do not match: icons and motion | Workspace vs Sidebar | [06](06-workspace.md) | 18| Value fills that jump instead of easing | Monitor, rail, Models | [15](15-motion.md) | 19| Destructive actions styled like navigation | palette, More menu | [11](11-command-palette.md) | 20 21## Status of every plan 22 23**Every plan received shipped work. None of the plans is exhausted.** 24 25That distinction is the honest summary, and an earlier draft of this file got it 26wrong by marking fourteen plans "Shipped" — which implied the plans were finished 27when they are not. The numbers: 28 29| | Count | 30|---|---| 31| Numbered items across the sixteen plans | ~190 | 32| Annotated in the plans as fixed or disproved | 48 | 33| Recorded in the execution table below | 27 | 34 35So roughly **a quarter of what the plans propose has been executed.** The work 36that shipped was chosen as the highest-value item in each plan, plus every item 37the goal named explicitly, plus the defects found while verifying. What remains 38is largely polish and optimisation rather than defect: unread marks, `content-visibility`, 39sparkline baselines, a motion budget, Settings search, empty-state actions per 40screen, and so on. None of it is broken; all of it is proposed. 41 42Per plan, what is certainly true: 43 44| # | Plan | Shipped | Notable remaining | 45|---|---|---|---| 46| 01 | Chat | Retry · edit-and-resend · branch · continue · unread marks · `content-visibility` with pinned scrolling · jump-to-latest · focus-mode turn navigation | — | 47| 02 | Models | Fit verdict; unusable options fold away; cost as size and time; recommended variant explains itself and carries weight | — | 48| 03 | Engine tuning | Live draft prediction with in-place issues; expert mode in five sections with changed-counts | Safety cue on leaving defaults | 49| 04 | Monitor | Sampling interval; VRAM/RAM verdicts; thermal basis; sparkline baseline, labels, hover readout; resting hero with session figures | — | 50| 05 | Serving | Copyable URLs; executable `curl` block; filter with counts; sortable columns; state glyphs | Drawer "copy as cURL" | 51| 06 | Workspace | Real glyphs; animated branches; file contents; read markers; scope figures; ARIA tree keyboard nav | — | 52| 07 | Skills | Instructions readable; triggers match; usage counts; grouped by source; three-state per-workspace scope | Add-from-folder | 53| 08 | Settings | Sticky section index; live search; confirmed appearance reset; telemetry choice persists | Section reorder (declined), grouping, per-section resets | 54| 09 | First run | Shape-of-task line; step-3 consequences; *Finish later* | Scan substance, local-data confirmation, step-5 hand-off | 55| 10 | Sidebar | Pinning · arrow traversal · right-click menu · `Delete` · archive that stays searchable | Skills placement, labelled theme toggle | 56| 11 | Command palette | Fuzzy matching, scopes, danger marks, shortcut chips | Recents group | 57| 12 | Context rail | Collapsible sections; tools show real use; empty state; close icon; reference-panel weight | Gauge animation | 58| 13 | Overlays | Toast cap and hover-pause; exits confirmed; popover follows on resize; three dismissal grammars measured and documented | — | 59| 14 | States | Offline bar; persistent failures with retry; all six empty states carry an action | Skeletons, time expectations, operation-failed empties | 60| 15 | Motion | Interface scale; one-loop-per-region check; completion cue on the jump pill | Duration budget | 61| 16 | Accessibility | `useSurfaceFocus`; one `h1`; `aria-current`; non-text contrast probe (1.4.11) | High-contrast mode, fatigue budget | 62 63## Deliberately not done 64 65**Two layout reorders, declined by their owner.** Tuning's nine flat fields into 66two groups, and Settings' section order. Both are judgement calls about the 67product rather than defects, both are visible changes to screens in daily use, 68and the question was put to the user repeatedly without a steer. Recorded as 69declined rather than quietly dropped; the plans keep the reasoning if it is ever 70wanted. 71 72**`… More` was not renamed.** The plans want it called *Settings*, and the goal 73naming this work repeats that. The user asked for "… More" by name, so the label 74stays. The plan's actual complaint — a vague word standing in front of three 75destinations — is answered instead by naming them in the button's tooltip and 76accessible name: *"More: Models, Engine tuning, Settings"*. 77 78**About's config paths and Open buttons.** The plan wanted About to carry the 79folder paths, their Open buttons and the config file locations. The engine build 80was added — the one fact nothing else stated — but the paths are *not* duplicated 81from Storage, where they sit beside the actions that use them. Repeating them in 82About would put one fact in two places, which is the failure plan 12's own rule 83warns against. 84 85**Nothing else.** Plan 01's remaining items — `content-visibility`, unread marks, 86turn navigation in focus mode — are listed here in an earlier draft as unbuilt. 87They shipped (rounds 20, 22 and 40), so the entry was stale and *understated* the 88work. Removed rather than left to be re-read as fact. 89 90## Claims that did not survive checking 91 92**Fourteen** assertions across the plans were disproved by measurement — the 93count in an earlier draft said eleven, which undercounted its own table. They are 94corrected in place, and listed here because the pattern matters: **the plans were 95strongest on structure and weakest on what was already there.** Every claim of 96the form "X does not exist" needed grepping before it was built on. 97 98In fourteen cases the plan named the right screen and the wrong defect. That is 99not a reason to distrust the plans — they found real work in every one of the 100sixteen — but it is a reason never to build on a claim of absence without 101checking it first. 102 103| Plan | Claim | Actually | 104|---|---|---| 105| 04 | Nothing is scoped in time | Both speed cards read *last 60 seconds*; the totals card carries a *This session* pill | 106| 04 | No threshold made explicit | The temperature metric already printed `comfortable` / `throttling risk` | 107| 01 | Only the last turn carries figures | Every assistant turn renders a footer | 108| 11 | `mtx` should match *Monitor* | *Monitor* has no `x`; the example was impossible | 109| 16 | Section titles render as `<div>`s | `SectionHead` renders `<h2 className="h3">` | 110| 16 | Toasts change without announcement | `.st-toasts` carries `aria-live="polite"` | 111| 06 | Workspace "shows nothing" | A full detail panel exists — metadata, not file contents | 112| 09 | The step rail is a progress bar, not a map | It renders every step name | 113| 09 | There is no exit that keeps state | There was; it was misnamed *Exit setup* | 114| 14 | A failed download leaves a row ambiguous | `v.error` already rendered — the gap was the missing retry | 115| 15 | A sent message gets no response at all | It animates in on `st-enter`: 6 px over 240 ms, measured | 116| 13 | No overlay announces itself | All three carry `role="dialog"`, `aria-modal`, and a label | 117| 03 | No "modified from recommended" markers | Every expert row already shows `Default: …` and a per-field reset | 118| 13 | None of the overlays trap focus | All three do, verified against the *visible* overlay | 119 120The last one is instructive: an early probe of mine "confirmed" the bug by 121querying `.modal`, which finds the hidden palette rather than the open dialog. A 122test that looks right and measures the wrong element is worse than no test. 123 124## Defects found while executing 125 126These were not in any plan. Each was found by checking a claim or verifying a 127build, and each is fixed with a check that fails without it. 128 129**CPU threads defaulted to 8 on every machine.** `catalog.mjs` hardcoded it 130regardless of detected cores, so a 4-core machine warned "CPU threads (8) exceed 131physical cores (4)" on a fresh install — before the reader had touched anything. 132Now built from detected cores; a fresh install raises no issues. 133 134**Three classes were used by components but defined in no stylesheet.** 135`.spec__sub` (the `Metric` sub-line, five screens) and `.st-toast__body` were 136collateral damage from a "dead CSS" sweep. `.st-msg__actions` was *reported as 137shipped* without its CSS ever landing, because the patch anchored on a selector 138that did not exist and failed silently. `npm run audit` now fails on any class a 139component uses that no stylesheet defines. 140 141**The rail and the popover disagreed about the same number.** The context maximum 142read `32K` in one and `33k` in the other — two formatters, ÷1024 and ÷1000. Found 143by applying plan 12's own rule: *agree exactly, or appear in only one*. 144 145**Branching a conversation created the branch without showing it.** `Chat` 146resolves its session as `location.param ?? activeId`, so the URL outranks the 147store. `branchFrom` set `activeSession` without navigating: the sidebar showed the 148new branch while the transcript kept showing the original *indefinitely*. A 149feature that looked broken while its data was correct. 150 151**A Tuning impact line that never moved.** The plan's own criterion — *"a static 152line is a failure"* — caught the first attempt, which read the *saved* config 153rather than the draft on screen. `/api/engine/validate` now accepts a draft. 154 155 156### Found in the design pass over every screen 157 158Nine screens were walked, clicked and measured. These are the defects that 159survived every automated check until something looked at the screen. 160 161**The model received no conversation history.** The client sent 162`{ sessionId, message, model, workspaceId }` and never `history`. The real-engine 163path builds its prompt as `[...history, message]`, so `history` was always empty 164and **every message arrived as the first thing the model had ever heard**. The 165demo path hides this completely — its replies are canned. Found by asking why 166the context meter stayed at ~350 tokens however long the conversation grew. 167 168**The context meter measured the wrong quantity.** `usedTokens` *accumulated* 169(`+= tokensIn + tokensOut`) while the per-part split beside it was absolute. So 170it climbed past its own maximum within one conversation — "40k / 32K tokens, 171100%" — clamped, with no way back down. It reports current occupancy now. 172 173**A promise the app could not keep.** "Compaction will trigger soon" appeared in 174two places. Compaction exists nowhere in the codebase. 175 176**Focus mode's dimming never worked.** `.st-msg` carried 177`animation: st-enter … both`. An animated value outranks a normal declaration in 178the cascade, so the keyframe's closing `opacity: 1` held every turn at full 179strength. `.app[data-focus='true'] .st-msg { opacity: 0.45 }` was in the 180stylesheet, matched the element, and lost anyway. `backwards` fixes it: the 181keyframe's end state is the element's natural state, so nothing snaps. 182 183**A green one-click "Load" on a model the app called too large.** It loaded — 18411.3 GB on a 16 GB machine — and reported "the engine is warm". Unusable 185variants now get a secondary "Load anyway" and a confirmation naming the cost. 186 187**A button whose label and action were unrelated.** "Add from folder" ran 188`setQuery('')`. 189 190**A file preview at 1.26:1 contrast** — `#303030` on `#1b1f23`, body text needing 1914.5 — with 2242px of every long line clipped and `overflow: hidden` making the 192rest unreachable. It only failed in **light** mode, because the overriding token 193is light in dark mode. 194 195**One glyph, several meanings.** `experts` meant both the MoE expert count and 196Skills. Moving Skills to `bolt` was worse — `bolt` is the most-used glyph in the 197app at ten places, and in the collapsed rail the icon *is* the label. It is 198`thinking` now, which appears once and renders as a lightbulb. 199 200**The collapsed rail clipped a conversation to its first five pixels**, pushed 201another 40px target past the sidebar edge via the tree's 22px indent, and left a 20226px void where the hidden "Workspaces" heading had been. 203 204**Checks that were too narrow to catch any of it**: the contrast probe only ever 205visited Chat; the luminance probe counted area without thickness, so an 8px 206progress hairline was judged the same as a 64×64 block — and its verdict on that 207element flipped with live data. Both were rebuilt and each proven able to fail. 208 209## Checks that could not fail, and were rebuilt 210 211**The scroll-cost budget reports NOT MEASURED rather than passing.** 212`npm run motion:budget` compares frame cost scrolling with and without the 213scroll-driven effects. It could not detect a deliberately expensive effect 214injected into the same run — the ratio moved 1.000 → 1.006 — so the harness is 215blind to scroll-timeline paint cost under programmatic scrolling in headless 216Chromium. It now proves it can see a known-expensive case before reporting, and 217exits 3 with `NOT MEASURED` when it cannot. This is the one check in the suite 218that is deliberately allowed to report nothing. 219 220 221Worth recording, because a green check that cannot go red is worse than none. 222 223**The undefined-class rule was vacuous on its first attempt.** The comment 224explaining it names the very classes it checks, and the regex matched inside 225comments — removing `.spec__sub` still passed. It strips comments now, and is 226proven by deleting the definition and watching it fail. 227 228**The expected-failure filter was proven narrow.** Flows that deliberately break 229something declare it (`expectFailure(/ERR_FAILED/)`). With a genuine 230`console.error` injected into the same flow, the run still fails. 231 232**The loop-budget check had incomplete coverage.** Its first version checked 233seven routes, so the probe used to test it — placed on Settings — could not have 234failed. It also toggled the theme by clicking a control the setup modal covers, 235which timed out. Both were caught by trying to prove the check rather than 236trusting a green run. 237 238**The non-text contrast probe was made to fail on purpose before being trusted.** 239Forcing `outline-color: #f8fafc` drops focus rings to 1.02–1.05 and exits non-zero; 240restoring returns to 0. 241 242**Probe parsers read `color(srgb …)` as 0–255.** Chrome's 0–1 components made 243tinted fills look near-black, silently defeating the contrast and luminance 244checks. Fixed in both scripts. 245 246## Known-good, keep under test 247 248Correct today, and the things a refactor is most likely to break: 249 250- Reading measure: **68 characters** at every content size. 251- Contrast: **37 text pairings** plus non-text 1.4.11 (focus rings enforced at 3:1), both themes. 252- Dark-mode luminance budget and material layering. 253- Reduced motion substituting opacity for movement. 254- Overlay interruptibility — every surface reverses mid-flight. 255- Focus lands inside every overlay and stays there across 18 `Tab` presses. 256- Capsule controls, capsule-free surfaces. 257- No native `<select>`, no missing icons, no undefined classes or tokens, no off-scale values. 258- Materials on exactly the approved control-layer surfaces. 259 260## How to use these plans 261 2621. Pick a screen plan; each is self-contained. 2632. Check the shared table above before implementing — the fix may belong in a 264shared component rather than the screen. 2653. Add the verification named in the plan **before** the change, so it fails first. 2664. Run `npm run check` and both theme tours before calling it done. 2675. **Check the claim before building on it.** Eleven did not survive that.