okami.mom/strata

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

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

main
4.8 KiB92 linesraw

09 · First run

Modal over the shell · File src/screens/Setup.tsx (425 lines)

The first five minutes decide whether the app is trusted. The audience is explicitly people who find computers intimidating, so every step has to answer "what is happening and is it safe?" without being asked.

What it is today

  • A five-step wizard — Check PC · Model · Basics · Install · Ready — as a modal over the live shell, with direction-aware step transitions.
  • Step 1 — a hardware scan with an animated scan line and a settling checklist.
  • Step 2 — model choice with MetricGrid specs.
  • Step 3 — three Selects (context length, images, memory mode).
  • Step 4 — install progress with staged marks.
  • Step 5 — a ready state with a mark-pop animation.
  • A step rail at the top showing 1–5 with the current step underlined.

Where it falls short

  1. The step rail is a progress bar, not a map. Half wrong. The rail already renders every step name — 1·Check PC 2·Model 3·Basics 4·Install 5·Ready — so what is coming was always visible. What was genuinely missing is the duration, which is now stated up front.
  2. No time estimate anywhere. Fixed. The header states 5 steps · about N minutes · nothing leaves this computer, computed from the selected model's download size, and the install row switches to the host's own ETA once a download is running.
  3. Step 3 asks questions the user cannot answer. Fixed. Each field now carries the consequence of its current value on the row itself — Comfortable · about 1.9 GB of 12 GB, Text only — nothing extra loaded, Strata decides, and adjusts as it goes — using the same /api/engine/validate preview the Engine tuning screen uses, so the two screens cannot give different answers to the same question.
  4. The exit does not explain itself. Fixed. It is now Finish later with a tooltip naming where to resume from. The plan over-claimed that no exit existed — one did, it was simply named for leaving rather than pausing.
  5. The scan is a spectacle with no substance. It animates convincingly, then reports four facts. The wait should be doing something useful — it is the natural moment to reveal the plan.
  6. No confirmation that anything is local. The reassurance is present in the copy but not as a visible, verifiable fact at the moment of the download.
  7. Step 5 ends flat. The most satisfying moment in the product is a check mark and a button.

The plan

Substance — remove anxiety at each step

  1. Open with the shape of the task. Done. Verified rendering as 5 steps · about 2 minutes · nothing leaves this computer for the default model. The estimate follows the formula max(2, 1 + downloadGb × 1.2) — 2 min for the 0.5 GB default, 13–16 min for the 9.6–12.9 GB options — but the model switch itself is unverified in the UI, because setup is already complete on this machine and the wizard renders its completed path.
  2. The step rail shows all step names with icons, and the current one expanded, so the map is legible rather than a set of tick marks.
  3. Real time estimates on download and install. Done, and the step-3 fields now state their consequences.
  4. Step 1's scan reveals its result progressively and ends on a summary that says plainly what the machine can and cannot do — the same fit language the Models plan introduces, so the vocabulary is learned once.
  5. "Finish later" is explicit and says what will and will not work until setup completes. Today the modal can be dismissed without telling you the consequence.

Fluidity

  1. Step 5 becomes a hand-off, not a dead end: the ready state names the model, states that it is loaded, and offers the first prompt directly in the modal — or closes into Chat with the composer focused.
  2. The completion mark settles with the existing st-markpop, then the modal fades rather than cutting.

Motion

The wizard is the one place the choreographed tier is appropriate — it is seen once, and it sets the tone.

InteractionSpec
Step forward/backDirection-aware slide, --st-t-choreo, already built
Scan lineLoops only while scanning; stops entirely when done
Check marks settlingst-checkin staggered 60 ms — built
Completionst-markpop spring, then a --st-t-surface fade of the modal
Reduced motionEvery step becomes a cross-fade; the scan becomes a static progress line

Verification

  • Assert the modal can be dismissed and reopened with state intact.
  • Assert every step renders a name in the rail, not just a number.
  • Assert the download step shows a time estimate.
  • flow setup already exists; extend it to dismiss mid-way and resume.
1# 09 · First run
2
3**Modal over the shell** · **File** `src/screens/Setup.tsx` (425 lines)
4
5The first five minutes decide whether the app is trusted. The audience is
6explicitly people who find computers intimidating, so every step has to answer
7"what is happening and is it safe?" without being asked.
8
9## What it is today
10
11- **A five-step wizard** — Check PC · Model · Basics · Install · Ready — as a
12  modal over the live shell, with direction-aware step transitions.
13- **Step 1** — a hardware scan with an animated scan line and a settling checklist.
14- **Step 2** — model choice with `MetricGrid` specs.
15- **Step 3** — three `Select`s (context length, images, memory mode).
16- **Step 4** — install progress with staged marks.
17- **Step 5** — a ready state with a mark-pop animation.
18- **A step rail** at the top showing 1–5 with the current step underlined.
19
20## Where it falls short
21
221. ~~The step rail is a progress bar, not a map.~~ **Half wrong.** The rail
23   already renders every step *name* — `1·Check PC 2·Model 3·Basics 4·Install
24   5·Ready` — so what is coming was always visible. What was genuinely missing is
25   the duration, which is now stated up front.
262. ~~No time estimate anywhere.~~ **Fixed.** The header states `5 steps · about
27   N minutes · nothing leaves this computer`, computed from the selected model's
28   download size, and the install row switches to the host's own ETA once a
29   download is running.
303. ~~Step 3 asks questions the user cannot answer.~~ **Fixed.** Each field now
31   carries the consequence of its current value on the row itself — `Comfortable
32   · about 1.9 GB of 12 GB`, `Text only — nothing extra loaded`, `Strata decides,
33   and adjusts as it goes` — using the same `/api/engine/validate` preview the
34   Engine tuning screen uses, so the two screens cannot give different answers to
35   the same question.
364. ~~The exit does not explain itself.~~ **Fixed.** It is now *Finish later* with
37   a tooltip naming where to resume from. The plan over-claimed that no exit
38   existed — one did, it was simply named for leaving rather than pausing.
395. **The scan is a spectacle with no substance.** It animates convincingly, then
40   reports four facts. The wait should be doing something useful — it is the
41   natural moment to reveal the plan.
426. **No confirmation that anything is local.** The reassurance is present in the
43   copy but not as a visible, verifiable fact at the moment of the download.
447. **Step 5 ends flat.** The most satisfying moment in the product is a check
45   mark and a button.
46
47## The plan
48
49### Substance — remove anxiety at each step
501. ~~Open with the shape of the task.~~ **Done.** Verified rendering as
51   `5 steps · about 2 minutes · nothing leaves this computer` for the default
52   model. The estimate follows the formula `max(2, 1 + downloadGb × 1.2)` —
53   2 min for the 0.5 GB default, 13–16 min for the 9.6–12.9 GB options — but
54   **the model switch itself is unverified in the UI**, because setup is already
55   complete on this machine and the wizard renders its completed path.
562. **The step rail shows all step names with icons**, and the current one
57   expanded, so the map is legible rather than a set of tick marks.
583. ~~Real time estimates on download and install.~~ **Done**, and the step-3
59   fields now state their consequences.
604. **Step 1's scan reveals its result progressively** and ends on a summary that
61   says plainly what the machine can and cannot do — the same fit language the
62   Models plan introduces, so the vocabulary is learned once.
635. **"Finish later" is explicit** and says what will and will not work until
64   setup completes. Today the modal can be dismissed without telling you the
65   consequence.
66
67### Fluidity
686. **Step 5 becomes a hand-off, not a dead end**: the ready state names the model,
69   states that it is loaded, and offers the first prompt directly in the modal —
70   or closes into Chat with the composer focused.
717. **The completion mark settles** with the existing `st-markpop`, then the modal
72   fades rather than cutting.
73
74## Motion
75
76The wizard is the one place the choreographed tier is appropriate — it is seen
77once, and it sets the tone.
78
79| Interaction | Spec |
80|---|---|
81| Step forward/back | Direction-aware slide, `--st-t-choreo`, already built |
82| Scan line | Loops only while scanning; stops entirely when done |
83| Check marks settling | `st-checkin` staggered 60 ms — built |
84| Completion | `st-markpop` spring, then a `--st-t-surface` fade of the modal |
85| Reduced motion | Every step becomes a cross-fade; the scan becomes a static progress line |
86
87## Verification
88
89- Assert the modal can be dismissed and **reopened with state intact**.
90- Assert every step renders a name in the rail, not just a number.
91- Assert the download step shows a time estimate.
92- `flow setup` already exists; extend it to dismiss mid-way and resume.