interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / docs / FIRST_RUN_UX.md

328 lines · 19343 bytes Raw Blame History Rendered
1# First run: from power on to "Allen is ready"
2
3Status: DRAFT 3 (L266, 2026-10-20). This is the spec the setup wizard (L267) and the driver builder (L268) build
4against. Change it by ledger note on L266; the owner folds the notes in and bumps the draft number.
5
6What this page fixes: every screen a person sees after AienOS is installed (or after `aienos-run` starts it), in
7order, with the exact words, what happens on its own, what is asked, what is never asked, how long a step may run
8before the person sees it moving, and how to undo each part.
9
10## 0. Rules every screen follows
11
121. **Ask for intent and consent, nothing else.** The machine finds every fact it can find. The only questions are
13 "what do you want this computer for", "may I do this", and secrets only the person holds (a Wi-Fi password, a key
14 for an AI service), each asked once and only when needed.
152. **Nothing manual that the machine can discover.** No device lists to tick, no driver names, no disk layouts, no
16 model file paths, no port numbers.
173. **Plain words.** No product names of my own parts on the screen (no "Aienux", "Interplane", "Store", "contract",
18 "kernel"). Hardware is named by what it does first ("Graphics", "Screen", "Network"), then its maker's name.
19 No marketing words: no "blazing", "seamless", "revolutionary", "magic". No exclamation marks.
204. **One thing at a time, in the middle of the screen.** Allen's look (night sky, Allen as light in the centre, one
21 input bar at the bottom). No windows, menus, tabs or progress bars that jump. Every change eases in; nothing cuts.
225. **Always moving, never frozen.** Every step shows motion within its progress budget (section 3). If a step is
23 slower than its budget, Allen says what it is waiting on in one line, in plain words.
246. **Every step can be skipped and resumed.** "Not now" is on every question. Setup picks up where it stopped after a
25 restart. Saying "set up again" to Allen at any time starts it over without losing anything.
267. **Honest numbers only.** Any number on the screen (frames a second, model speed, memory) comes from a measurement
27 made on this machine, or it is not shown. "Not measured yet" is a valid answer.
288. **Keyboard, mouse and touch all work.** Enter or a click picks the lit choice; arrow keys move between choices;
29 Escape is "Not now". Typing a sentence goes to Allen on the intent screen; elsewhere in kernel images letters are ignored.
30 (Kernel images today have no mouse driver: choices move with the arrow keys, Tab or a digit, Enter picks, Escape
31 is "Not now". A mouse or touch works only in a window of a host that has one, such as `aienos-run`.)
32
33## 1. The two ways people arrive
34
35| Arrival | What they did | What starts the screens below |
36|---|---|---|
37| **Native** | Booted the AienOS USB stick or installed image (PC, Spark, Pi 5, iMac) | the computer's power button |
38| **In a window** | Ran `aienos-run` on Windows, macOS or Linux (the try page, L264) | the runner opens one window; the window IS the screen below (the VM's own framebuffer and sound, not a web page) |
39
40Both see the same screens, in the same order, with the same timing and the same sound. Differences are called out
41per screen as **Native:** and **In a window:**.
42
43## 2. The screens, in order
44
45### Screen 1. Power on (not mine)
46
47- **Native:** the computer's own maker logo for as long as its firmware takes (observed on the iMac: 13.5 s from
48 power on to my first instruction, iMac report `boot_time` line, aienos_commit 0930240). I cannot shorten this;
49 I never add to it.
50- **In a window:** the runner window opens black, already the size of the screen it will be. No runner logo, no
51 console text.
52- **Words:** none.
53
54### Screen 2. The night (the boot sequence)
55
56The same on every machine: one shared module (`native/kernel/ui/`, section 5).
57
58| Time on the night's clock | What the person sees and hears |
59|---|---|
60| 0 to 6.8 s | Black, then the eyes adjust: the brightest stars first, then the faint ones, then the Milky Way, in slow patches |
61| 2.6 s | Two black holes start to bend the starlight behind them, then show their shadows, circling |
62| 6.0 s | They spiral in, faster and closer |
63| 11.4 s | The sound comes in: a short rising "blirp", the chirp two merging black holes make, raised into hearing |
64| 12.0 s | They merge; a ripple runs out through the stars; the sound peaks and rings away by 12.3 s |
65| 12.0 to 15.2 s | The last black hole rings, then dissolves; the light of the merger stays in the centre |
66
67- **Words:** none. Nothing is asked. Nothing can go wrong on this screen that the person has to deal with.
68- **What happens underneath, automatically:** the computer starts all its processor cores, finds its disks,
69 network, sound, keyboard and mouse, and begins the device scan of screen 5. The night is not dead time; the
70 machine works while it plays.
71- **Keys:** a key press does nothing during the first run (the person is meant to see it once). On later boots any
72 key brings Allen in at once (the night jumps to its last second).
73- **Sound:** played through whatever the machine speaks with (HD Audio natively, the VM's sound device in a
74 window). No sound device: the night plays silent, nobody is told.
75- **Native:** if the screen cannot be drawn (no framebuffer), the machine goes on to screen 3 as text.
76- **In a window:** if the host has no sound output, the runner plays silent; it never pops up an audio error.
77
78### Screen 3. Allen arrives
79
80From the merger's light Allen gathers in the centre (the mind drawn as light). Then, word by word under him:
81
82> Hello. I'm Allen.
83>
84> I'm going to look after this computer with you.
85
86After a pause (about as long as it takes to read the lines), the question comes up above the choices of screen 4:
87
88> What would you like this computer to do best?
89
90The bar at the bottom says: **Or just tell me**.
91
92### Screen 4. The one question (intent)
93
94Three choices, in this order, the first one lit:
95
96> **Play games smoothly**
97> Faster, steadier frames from your graphics and screen.
98>
99> **Run an AI model here**
100> An AI that runs on this computer and stays on it.
101>
102> **Something else**
103> Tell me in your own words.
104
105Under them, small: **Not now**
106
107- **Something else** opens the bar: "Tell me what you'd like to do." Allen answers in one line with what he
108 understood ("You want a quiet machine for writing. I'll keep things simple and save power.") and a **That's right** /
109 **Not quite** pair. **Not quite** reopens the bar.
110- More than one goal: the person can say it ("both games and AI"); Allen keeps both and runs both paths in screen 7.
111- **Not now:** Allen says "That's fine. I'll set up the basics and you can tell me later." and goes to screen 5
112 with no intent; screen 7 is skipped.
113- **Never asked here:** language (taken from the firmware, the keyboard layout, or the host in a window; the person
114 can say "speak French" at any time), time zone (from the network), computer name (made from the maker and model,
115 e.g. "Drake's iMac" if the host gives a user name, else "iMac").
116
117### Screen 5. Getting to know this computer (automatic)
118
119Allen says:
120
121> Getting to know this computer.
122
123Then what he finds appears one line at a time, each line easing in as soon as it is known (never all at once at the
124end). The words follow this pattern; the bracketed parts come from the scan:
125
126> Screen: [2560 by 1440], [144] times a second
127> Graphics: [NVIDIA GeForce RTX 4070], [12 GB] of its own memory
128> Processor: [AMD Ryzen 7 7800X3D], [8] cores
129> Memory: [32 GB]
130> Storage: [1 TB] fast drive, [2 TB] drive
131> Network: wired, connected
132> Sound: speakers and a microphone
133> Keyboard and mouse: working
134
135Then, if anything is on the network:
136
137> Also nearby: [2] other AienOS computers, [a printer]
138
139- **What happens underneath:** PCI, USB, ACPI, disks, displays (modes and refresh rates from the monitor's own
140 description), processors and their kinds, and the network (other AienOS machines by Interplane discovery, L263;
141 printers and storage later). In a window, the host launcher also hands in what the host has (its real graphics
142 card, its installed AI models and running model servers, section 4 of L267's brief).
143- **Not found / not working** lines are said plainly: "Wi-Fi: found, I don't have a way to drive it yet. I'll build
144 one (screen 8)." Never red, never an error code.
145- **Never asked here:** which devices to scan, permission to scan (scanning reads, it changes nothing).
146
147### Screen 6. The one consent
148
149Allen shows, in a short list, what he wants to do, then asks once:
150
151> Here's what I'd like to set up:
152>
153> - [Use my own drivers for the graphics, network and storage]
154> - [Set your screen to 144 times a second]
155> - [Run the AI on your graphics card]
156> - [Build drivers for the 2 parts I can't drive yet]
157>
158> I won't touch your other drives, and you can undo any of this.
159>
160> **Set it up** **Show me each one** **Not now**
161
162- **Set it up:** everything in the list, in that order, with screens 7 to 9 showing progress.
163- **Show me each one:** the same list, one line at a time, each with **Yes** / **Skip**.
164- **Not now:** Allen keeps what already works (the machine is usable) and offers again the next time the person
165 asks him anything about setup.
166- The list only holds things that change the machine. Reading, measuring and testing in a sandbox never need consent.
167
168### Screen 7. The intent path
169
170#### 7a. Play games smoothly
171
172> Making games smoother.
173
174Lines appear as each is done:
175
176> Screen set to [144] times a second.
177> Graphics: [using my driver / using the maker's driver].
178> Processor: set to keep the fast cores free for the game.
179> Measured on this computer: [118] frames a second in my test scene. [Before: 97.]
180
181- Every number is a measurement on this machine (rule 7). If nothing could be measured yet: "I couldn't measure
182 this yet. I'll tell you when I can."
183- What Allen cannot do yet is said once, with what would fix it: "I can't tune this graphics card's clock speed yet.
184 I'm building a driver that can (screen 8)."
185- **Never asked:** refresh rate, resolution, power plan, driver versions. The highest refresh the monitor reports at
186 its native resolution is chosen; the person can say "lower the refresh rate" later.
187
188#### 7b. Run an AI model here
189
190> Finding the best way to run an AI here.
191
192> Your graphics card has [12 GB] of its own memory. [Models up to about 14 billion parameters fit on it. The 30
193> billion one fits if I share it with main memory, but it runs slower.]
194
195Then the model choice (screen 7c).
196
197- The fit numbers come from the model's measured size on disk plus its working memory, not from a table of guesses.
198- **Never asked:** which GPU (the biggest one is used; both if the person later asks), quantisation, context length,
199 batch size, server ports.
200
201#### 7c. Which AI (the LLM pick)
202
203Allen checks, in this order, without asking: models already on this computer (local disks; in a window, the host's
204Ollama, LM Studio, llama.cpp model folders and any running model server), then models on nearby AienOS machines
205(for example the Spark's model pair, the 27B and the 30B working together, L190). The default local AI is that
206pair when a machine on the network serves it, else the 30B on this computer when it fits (L267 note).
207
208- **Exactly one found:**
209 > I found [Qwen 30B] on this computer. I'll use it.
210 >
211 > **Use it** **Choose another**
212 ("Use it" is lit; if the person does nothing for 10 s it is chosen and Allen says so.)
213- **Several found:** a short list, the best fit first and lit, each with one plain line ("Runs on your graphics
214 card", "On the Spark next door, fast"), plus **Connect my own**.
215- **None found:**
216 > I didn't find an AI model on this computer.
217 >
218 > **Get one for me** ([the 30B model, 18 GB download]; or the size that fits)
219 > **Connect my own** (Claude, ChatGPT, or another service)
220- **Connect my own:**
221 > Which service? **Claude** **ChatGPT** **Another service**
222 >
223 > Paste your key for [Claude]. I'll keep it sealed on this computer and won't show it again.
224 (Another service also asks for its web address, with "the address your service's settings show for
225 OpenAI-compatible apps" as the hint.) Allen tests it with one short request: "That works." or "That key didn't
226 work. [Claude said the key isn't valid.] Try again?"
227- **Never asked:** endpoints of known services, model file paths, model names the machine can read itself.
228
229### Screen 8. Setting up the hardware (the driver builder, L268)
230
231Starts right after screen 6's consent and keeps running in the background while the person uses the computer.
232
233> Setting up your hardware.
234
235One line per device, each with a calm state word:
236
237> Graphics ([AMD Radeon Pro 580]): ready, my driver
238> Network ([Broadcom]): ready, my driver
239> Wi-Fi ([Broadcom BCM4360]): building a driver for it. This can take a while. You can keep using the computer.
240> Webcam: ready, the maker's driver
241
242- **States, and nothing else:** "ready, my driver", "ready, the maker's driver", "building a driver for it",
243 "testing the driver I built", "waiting for you", "can't drive this yet".
244- **Building:** Allen uses the AI chosen in screen 7c (by default the local pair or the 30B, as in 7c). The driver is
245 written and tested in a sandbox against a model of the chip; the real device is never touched until the tests
246 pass and the person agrees.
247- **The second consent** (only when a built driver is ready for a real device):
248 > I built a driver for your [Wi-Fi] and tested it without touching the real one. Turn it on?
249 >
250 > **Turn it on** **Not now**
251 If it fails on the real device, Allen puts the old one back by himself and says: "That didn't work on the real
252 [Wi-Fi]. I've put the old driver back, and I'll keep working on it."
253- **Never asked:** which driver to use, whether to unbind the maker's driver (Allen asks to turn his on; the swap is
254 his job), log levels, test settings.
255
256### Screen 9. "Allen is ready"
257
258> Allen is ready.
259>
260> [Games will use your screen at 144 times a second.] [Your AI is Qwen 30B, on your graphics card.]
261> [I'm still building a driver for your Wi-Fi; I'll tell you when it's ready.]
262>
263> Ask me anything, or tell me what you'd like to do.
264
265The bar stays at the bottom: "Speak to Allen". The night stays in the sky behind him. Setup is over; anything left
266(driver builds, downloads) carries on quietly and Allen mentions it only when it finishes or needs a yes.
267
268## 3. Progress budgets
269
270A budget is the longest a step may go before the person sees it move. These are design limits for L267/L268 to
271meet and measure; they are not measurements. Each build reports its observed time against them.
272
273| Step | Shows motion within | Says what it is waiting on after | Observed so far |
274|---|---|---|---|
275| My first pixel after the firmware hands over (screen 2) | 1 s | (no words on this screen) | iMac: night on screen 15260 ms after power on, firmware 13548 ms of that (report, 0930240) |
276| The night itself | plays 15.2 s, fixed | n/a | same clock on every machine (section 5) |
277| Allen arrives after the night | immediately (it eases out of the merger light) | 5 s: "Still starting. [The disk is slow to answer.]" | not measured on the PC/VM yet |
278| Each answer to a choice | 0.1 s (the choice lights up) | 2 s | not measured |
279| First line of the scan (screen 5) | 1 s | 10 s with no new line | not measured |
280| AI key test (7c) | 0.5 s (a moving dot by the key) | 10 s: "[Claude] is slow to answer." | not measured |
281| A model download | 1 s (size and time left, from the measured rate) | 30 s with no progress: "The download stopped. I'll keep trying." | not measured |
282| A driver build (screen 8) | 2 s (the state word changes) | 60 s per state: one line on what it is testing | not measured |
283
284## 4. Undo and uninstall
285
286| What | How to undo | What it leaves |
287|---|---|---|
288| Any setup choice | say "undo that" or "set up again", or choose it again in Allen's list | everything else stays as it is |
289| A driver Allen turned on | "Put the old driver back" (one choice on the device's line), or automatic if it fails | the maker's driver was only set aside, never deleted |
290| Screen refresh / processor setting | "Put the screen back" | the monitor's previous mode |
291| A connected AI service key | "Forget my Claude key" | the key is erased from the sealed store |
292| A downloaded model | "Delete the model" (Allen says how much space it gives back) | nothing else |
293| **In a window** (aienos-run) | the runner's own "Remove AienOS" (`aienos-run --reset` removes the per-user disk; deleting the runner removes the rest; exact flags in L261/L262/L265) | the host computer is untouched; AienOS only ever lived in its cache folder and its own disk file |
294| **Native, from the USB stick** | shut down and pull the stick | the computer starts as it did before; its own disks were not written |
295| **Native, installed** | the installer's restore path (L260 owns it); until it exists, this row is UNKNOWN and the installer must not offer to install over an existing system | to be set by L260 |
296
297## 5. The boot sequence is one module (for builders)
298
299- Source: `native/kernel/ui/` (night.c, chirp.c, paint.c, allen_font.c, mind.c, allen_ui.c), byte-identical to
300 what the iMac runs (aienos_commit 0930240). Every image builds the same files; nothing is redrawn per platform.
301- Timing: the night's clock constants in `night.h` (CK_NIGHT_*), the sound's in `chirp.h` (CK_CHIRP_*). Change
302 them there or nowhere.
303- The sound is made from a formula at boot (a real merger's chirp shape, 200 Hz rising to 1000 Hz, peak at the
304 merger). There is no sound file and no third-party audio; its licence is this repository's.
305- Measurement of frame rate and dropped frames per machine: `docs/BOOT_EVERYWHERE.md` (L266).
306
307## 6. Open questions (answer by ledger note on L266)
308
3091. L267: does the wizard need words for a machine with no keyboard at all (Spark headless)? Draft answer: the
310 wizard runs on the screen if one exists, else it waits for the first Interplane peer to open Allen's window for
311 this machine.
3122. L268: the exact state words in screen 8: are six enough?
3133. L260: the installed (not live) undo path, row "Native, installed".
3144. All: the 10 s auto-choose in 7c: keep or drop?
315
316## Change log
317
318- Draft 3 (2026-10-20): wording from L282's mockups taken (docs/design/screens/README.md, 9 changes: screens 3, 4, 6, 7b, 7c, 8)
319 and the L267 build notes: no mouse in kernel images, letters outside the intent screen ignored. Also, from
320 L267: the AI pick runs on the games path too (the driver builder needs an AI); there is no sealed key store on x86 yet.
321 The current iMac build refuses custom service setup before asking for a key because its courier is unencrypted.
322 A stale key-test state is refused locally and its key is wiped. Configure service credentials on the host and select
323 its local model here. `llm.conf` names
324 the key variable only; https services cannot be tested yet (no TLS in the relay, none hand-rolled);
325 the host description reader is only in the launcher image.
326- Draft 2 (2026-10-20): default local AI is the 27B + 30B pair when the network has it (L267 note); section 5
327 points to the measured boot sequence.
328- Draft 1 (2026-10-20): first version, from Drake's words in the L266/L267/L268 briefs and the iMac's boot.