garage44.eu/jeroen/pinnacle

logclone: git clone https://garage44.eu/jeroen/pinnacle.git

.. /docs/roadmap.md

raw

Roadmap

The aim: a complete, working operating system for devices of every kind (phones, tablets, laptops), responsive from the start, whose whole software stack is written here, in Rust — no third-party code in the system or its tools. Each step lands on its own, with the self-check extended to prove it. What is still missing for daily use, and the projects it will take, is in full-os.md.

StepState
Boot, memory, interrupts, six cores, programsDone
Cores found, not listed: from the GICv3's redistributors (each names its core and whether it is the last), the booting core first; up to 64; boards list none; PINNACLE_CORES boots QEMU with as many, the test checking they all runDone, tested on 6, 16 and 64 (the 16-core stall was the ticket lock under a host with fewer threads: a test-and-set lock now); beyond 64 needs the task table and kernel stacks made at boot
Devices found, not listed (device): every node of the device tree with its registers and interrupts, the GIC and each virtio window among them; a driver claims devices by what they are compatible with, and what no driver took stays listed (Settings → Hardware, devices: at boot); QEMU's ELF boots get their tree too (loaded 2 MiB into RAM, below which QEMU puts it)Done on ARM (no ranges translation or interrupt parents other than the GIC yet; ACPI and PCI for x86 next)
x86-64: one kernel for both architectures (modules with an x86_64/ twin: boot, arch, mmu, irq, timer, smp; board pc); a PC boots by PVH (-kernel in QEMU's q35) or by Multiboot2 (GRUB on UEFI: cargo xtask pc-efi runs the self-check through OVMF, GRUB and the kernel in one target/pinnacle-pc.efi) into long mode, the image in the top 2 GiB and the whole physical address space mapped beside it (1 GiB pages above 4 GiB, up to 64 TiB: RAM write-back, devices' 64-bit windows uncached), RAM up to 128 GiB from the loader's map, serial on the 16550, time from the TSC, off through isa-debug-exit; the loader's memory map keeps firmware out of the allocator; interrupts through an IDT, the local APIC's timer at 100 Hz (the 8259s masked); cores from ACPI's MADT, every one started (INIT, STARTUP, a trampoline at 0x8000 climbing to long mode), each knowing its index through GS; SHA-256 on SHA-NI and AES on AES-NI, checked against the software (cargo xtask pc, in the gate)Started: the whole kernel builds for both (the scheduler, system calls, drivers shared; x86_64/ twins for the GIC, exceptions, timer, cores, tables, address spaces); kernel tasks are scheduled on every core, tickless, preempted and woken by IPIs; programs run in ring 3 (int 0x80), built for x86 by cargo xtask pc: the programs, ipc, threads, unmap, kill, fp and idle checks pass on 6 and 16 cores. ARM's devices over PCI too: the display, both disks (files, confinement, the vault, io), sound (the host hears the tone), the network (DHCP, the package catalog over TCP); without selfcheck it starts the system as on ARM (cargo xtask pc-shot: the first start's password screen). Apps for x86: a PC's system disk and Store packages are its own (target/system-pc.img, the package source's pc/), and cargo xtask pc-demo opens them and installs one; cargo xtask bundle pc runs it in a window, on KVM where the host is x86-64. Next: SYSCALL instead of int 0x80, programs with SSE, a TLB shootdown for threads spread over cores, the PC on KVM tried on a real laptop
PCI Express on both architectures (pci): configuration space by ECAM, from the device tree's pci-host-ecam-generic on ARM and ACPI's MCFG on a PC; every function scanned and listed (pciVVVV,DDDD), its BARs sized and, where no firmware did (ARM's QEMU), placed in the host's 32-bit window; INTx routed by the device tree's interrupt-map on ARM, MSI-X on a PC. virtio over PCI beside MMIO (virtio): the same drivers on either, modern and transitional IDs; the boot's random device is on PCI on both, its interrupt checkedDone (no I/O APIC INTx, no MSI on ARM (needs the GIC's ITS), no bridges behind the root bus yet; the GPU on PCI is s834's)
Channels, shared memory, display server, launcher, appsDone
Own file system, Store installing from a package sourceDone
Network: virtio-net, Ethernet/ARP/IPv4/ICMP/UDP/DHCP/DNS/TCP, sockets as channels, HTTP; the Store over the network; IPv6 (router prefixes, neighbour solicitation, AAAA, connect6) and HTTP/2 by ALPN (s917)Done (UDP for programs IPv4 only)
UDP sockets as channels; two Pinnacles talking in QEMU (cargo xtask pair)Done
Cryptography, own: SHA-2, HMAC, HKDF, ChaCha20-Poly1305, X25519, Ed25519, with the standards' test vectorsDone
A DHT among the devices (Kademlia over UDP): finding a contact by their key, no server; bootstrapped from any known deviceDone
Messenger: contacts by public key, end-to-end encrypted messages (Noise-IK-like handshake with forward secrecy), kept on the deviceDone (no ratchet within a session yet)
An address book: Contacts, everyone the person keeps with or without a Pinnacle device (names, phone numbers, e-mail, address, birthday, organisation, a note), kept by the p2p service in one vCard file, so Messages, Calls and Settings show the names given there; removing a contact removes its card; import and export as vCards in the app's folder, an import of someone already there replacing them by UID or keyDone (no way yet to bring a file onto the device or take it off but the app's folder; no photos, no labels on numbers)
Sessions that heal themselves, as WireGuard's and further: a device learns its address from the nodes it pings (two must agree); one that moves (network_changed, or the nodes see it elsewhere) sends every session a keepalive at once and publishes its presence anew; keepalives keep NAT mappings; fifteen seconds unanswered, a device sends a new HELLO, looks the contact up in the DHT again and asks where it is seen itself, every five seconds until it answers, so two devices that both moved at once meet again (in 25 s in the tests); new keys every two minutes of use, the responder sending on the old ones until the new are confirmed; a stamp that grows across restarts (an epoch on the system disk) refuses a replayed HELLO and tells a contact that the other restarted; unused sessions let go after three minutesDone (tested in a simulated network; IPv4 only)
Through NATs, with no server: a device keeps two introducers, nodes it pings every twenty seconds so its NAT keeps a way in from each, and names them and its address on its own network in its presence record; a HELLO goes to the contact's published and local addresses, and each introducer passes the contact a PUNCH saying where it sees this device, so the contact sends a HELLO back and both NATs let the other through (a PUNCH is not signed, so it only says where a HELLO goes, never where a session sends; once a second at most); tested between simulated routers that map once or per address, filter by address and port, forget a mapping after 30 s and do not hairpin: two homes behind ordinary NATs, one behind a symmetric NAT and one behind a full-cone NAT or none, two devices behind one router, and after five quiet minutesDone (two NATs that each map anew per address, or one of those and one that filters by port, need a relay through a contact: not built; untried between real routers)
Reliable, ordered streams between contacts over those sessions (p2p::stream): numbered frames, cumulative and selective acknowledgements, a window of 64, timeouts from the measured round trip; a stream outlives any one session, so a new handshake or a move carries on with what is unacknowledged; reset when the contact restarts or is not heard from for five minutesDone (200 kB arrive whole with one datagram in five lost and every step reordered; the remote terminal runs on them)
Calls: video and voice peer to peer over UDP, encrypted; own video codec and ADPCM; a stand-in camera and tone on QEMU; a call by video or by voice only, the microphone muted and the camera turned off in a call (nothing of it sent, the other side showing the caller's mark), a ring during another call answered busy, a number typed in and called by phone; every call kept in the app's folder (who, which way, how, when, how long) and listed under Recent, a missed one a notification and counted on its tab (s924)Done in QEMU; camera, microphone, speaker come with hardware drivers
Wi-Fi (wifi, the wifi service, Settings → Wi-Fi): the networks nearby with their signal and protection, joined with a password typed as dots, a wrong one refused and said so; each network joined kept with its password in the vault (data:/wifi/networks, never on the radio: AT+SYSSTORE=0) and joined again by itself after a start or a network lost; a driver over ESP-AT on the kernel's third radio port, simulated access points in cargo xtask (wifi-demo). For a laptop's own radio: WPA2-Personal's handshakes for a radio that leaves them to the host (wifi::wpa); Intel's AX201, AX210 and AX211 (drivers/iwlwifi.rs, hardware.md) as far as their firmware's start: the chip named, its firmware chosen as Linux names it and read from system:/firmware/intel/, loaded by context info (22000 family) or context info v2 with the image loader (AX210 family), the ALIVE notification read; Intel's closed firmware carried as data, apart from the code (firmware/intel-wifi.txt, fetched and checked by cargo xtask firmware, left out with PINNACLE_NO_FIRMWARE=1, said per driver in Settings → Hardware)Done in QEMU for ESP-AT (the radio joins but carries no packets yet: the network stays virtio-net's; no hidden networks or WPA2 Enterprise). Intel's Wi-Fi, stage 1 (2026-11-30): written from Linux's flow and untried (QEMU has no Intel Wi-Fi; the firmware's container and the boot structures are tested on the host, against Intel's own files). Next, and they need a laptop that answers: the PNVM handed over, the firmware's configuration commands, scanning, joining (with wifi::wpa), packets. No driver yet for a phone's or board's radio (the RK3399 boards' SDIO Broadcom)
Ordinary phone calls as the fallback (modem, the phone service): a contact the DHT does not find, or whose device does not say within 8 s that the ring arrived (its p2p service answers RING with RINGING at once), is called on their phone number instead; a call to the device's number rings in Calls, its caller named from the contacts by the number's last nine digits. A modem driver over AT commands (SIM PIN, registration, ATD with +COLP, ATA, +CHUP, +CLIP), the kernel's second serial port, and a simulated cell network in cargo xtaskDone in QEMU (the call's sound is the modem's PCM to the board's codec: with the board)
Texts (SMS) to people with no Pinnacle: Messages lists everyone in the address book, and writes to a person with only a phone number by text through the phone service, the conversation marked "SMS · not encrypted"; a number in no contact that texts has a conversation of its own, and a text that comes is a notification. The modem driver sends and receives in PDU mode (AT+CMGF=0, +CMGS with its > prompt, +CNMI handing texts over as +CMT), GSM's 7-bit alphabet or UCS-2, long texts in parts and put back together (modem::pdu, checked against 23.040's own examples); texts kept in the vault (data:/phone/texts); the simulated cell network carries them, a friend there answers (cargo xtask sms-demo), and the self-check texts the landline. A contact with a Pinnacle whose device does not say within 8 s that a message arrived (its p2p service answers each with DELIVERED), or whom the DHT does not find, is texted on their number instead, as Calls falls back (p2p::delivery); their texts and the messages that went so show in the one conversation, marked "SMS · not encrypted" (cargo xtask pair)Done in QEMU (a message that arrives late after all comes twice, and one the network refused shows as sent once read again; texts that came while the phone was off stay on the SIM, unread; no delivery reports, MMS or group texts; untried on a real modem and network)
Own TrueType reader (ttf), replacing fontdue (the last third-party crate)Done
Threads: tasks sharing one process, across cores; a work pool in rtDone
Responsive from the start: the screen's size from the device, every screen laid out from it (layout), two panes where there is room; demos on any size (PINNACLE_SCREEN)Done
An interface library (docs/interface.md): Mithril, the web's and Cartopolis's library, without std and with no outside code, as pinnacle-view — views styled by the stylesheet in the system's colours, laid out for any window, scrolled by a finger, text fields with the on-screen keyboard and the clipboard, only what changed drawn again; tests tap controls by the names apps announceStarted: About, Settings, Clock, Notes, Calculator, the Store and Contacts on it; the launcher, Paint, Messages, Calls, Bluetooth and the terminal still drawn by hand
A physical keyboard: US layout, shift; typing on one hides the on-screen keyboard, a tap on the text field brings it backDone
Keyboard layouts (docs/time-and-keyboard.md): US, US-International and Dutch, chosen in Settings → Keyboard (system:/locale/keyboard, which apps read); AltGr's third characters, and dead keys whose accent goes on the next letter (' e is é, " e is ë, ' c is ç); ctrl's shortcuts by the letter on the key; cargo xtask time-demo types with bothDone (the on-screen keyboard has no accents yet; the winit port, for Cartopolis and Flitz, still maps US)
The time from the network and time zones (docs/time-and-keyboard.md): the time service sets the kernel's clock by SNTP with Network Time Security (NTS: answers sealed with keys from a TLS key exchange, so nobody on the path can move it), or from an https server's date believed only within its certificates' life (checked at no particular time, as the clock is what is set), and the board's clock with it; IANA's zones as data (zoneinfo/, /zoneinfo, updated with the system like the TLS roots), read by pinnacle_tz (TZif and its footer's rule for later years); Settings → Date and time chooses one, and the Clock, the status bar and the updates service show local time, summer time includedDone in QEMU (the zone is chosen, not found; an RK3399's clock chip has no driver)
Turning the screen while running: a new framebuffer, a new window for every app, laid out afresh (F12 on QEMU; an orientation sensor on a device)Done
Vector renderer in GPU style (vector, after Vello): paths to tiles, exact coverage per tile, tiles in parallel on all cores, behind a device interface for a GPU backend laterDone, tested on the host; the shell draws only glyphs with it so far, on one core
Text drawn by it at run time from the font on disk: any size, every character; the pre-rasterised atlases goDone (blended in sRGB, not yet in linear light)
Text beyond Latin (docs/text-and-access.md, pinnacle-text): the bidirectional algorithm in full (all of Unicode's BidiCharacterTest.txt passes), fallback fonts for what the system's lack (Noto Sans Arabic and Hebrew, Droid Sans Fallback for CJK, Noto Emoji), each read the first time it is needed, Arabic joining, and shaping by the font's own GSUB and GPOS (pinnacle_ttf::layout: the same glyphs and places as HarfBuzz for the tests' lines); every program's text goes through it, Latin as cheaply as beforeDone (no Indic or Thai; emoji in one colour; kerning only in shaped scripts; CJK wraps only at spaces; a caret in right-to-left text moves in logical order)
Languages (pinnacle-locale): Dutch beside English, chosen in Settings → Language (system:/locale/language); texts through t, the English the key, a test failing for any without its Dutch; dates, times and numbers as each language writes them; the display server, the launcher, Settings and Clock translated, and apps told of a change as it happens; Calls, Messages, Notes, Files, the Store, Calculator and Paint too (s924)Done (Contacts, Bluetooth, the terminal, Kees and Fien still in English)
Accessibility: Settings → Accessibility with text size (100–200 %, the interface reflowed) and high contrast for apps built from views; a UI tree each such app makes from its elements (roles, names, states, places), sent to the display server while it asks; the screen reader in the display server (a tap says, a double tap acts, a swipe moves on, Alt and the arrows on a keyboard; the system's own screens read too), spoken by the system's own voice (pinnacle-speech, the speech service); cargo xtask access-demoDone (apps drawn by hand have no tree; the on-screen keyboard is not read; the agent does not read the tree yet)
Apps confined: each sees only its own folder; services grant the restDone (files, starting programs, services, and the network: an app has it only when its manifest says network=yes)
Packages signed (own SHA-256 and Ed25519), checked before installDone (a development key per checkout; the hosted Store's release key on its server, below)
A hosted Store (docs/store.md): package sources as plain files over HTTPS, a package a signed list of its files (each fetched from blobs/<sha256>, checked as it is written, a megabyte at a time), updates that fetch only what changed; https://pinnacle-os.eu/store/cartopolis/ signed on the server with a release key no build node sees, filled by Cartopolis's midas deploy pinnacle-storeDone (one hosted key; no resuming a cut-off install)
Updates as a setting (docs/updates.md): the updates service looks now and then, and tells of new versions or installs them, as Settings → Updates chose; apps by themselves only when they ask for no more rights and are not running; the system into the slot that does not run (/system/a, /system/b, a boot record), started at the next restart by the boot kernel handing the machine to it (MMU and caches off, a jump as a loader's), made current once its screen shows, and the one before run again when a try never got that far; system packages trusted apart (/settings/system-keys), published beside the apps after every landing; a PC's boot kernel hands over too, copying the slot's ELF over itself and entering it as GRUB does (Multiboot2, the slot on its command line)Done in QEMU, ARM and PC (a PC's slot kernel must be read below 4 GiB)
Memory given back: unmapping, window memory of closed appsDone (shared memory; private memory and page tables at exit)
A file system that survives power cuts: every change one transaction, contents copy-on-write, the inode table and bitmap through a journal with a checksum; a check of the whole disk at mount; tested by cutting the power after every one of a run's writesDone
Files of up to 4 GiB, read and written a range at a time (READ_AT, WRITE_AT), with holes; the time each last changed (STAT); one call copies at most 16 MiBDone
Files of up to 4 TiB (a third, three-deep tree of block tables); a large file's space freed after its removal or replacement, from its end down in transactions the journal holds, finished at mount after a power cut; taking a free block in constant time (next-fit, a count of free blocks kept); a directory entry written in its own slot, not the whole directory againDone (disks up to 16 TiB: block numbers are 32 bits)
Files: the person's folders by tapping (programs/src/bin/filer.rs, a system program beside the Terminal): their home and each app's folder under the app's name, a folder or a file opened with a tap (a file's text; a picture, PNG, JPEG, GIF or WebP told by its first bytes and decoded by Wil, fitted to the pane; or that nothing here opens it), a file moved into another folder (Move, the folder, Move here) or deleted on a second tap; a new folder made, a file or folder renamed (a copy under the new name, as the file system has no rename), and a folder of the person's deleted with all in it after asking (an app's own folder keeps its name and stays); what the p2p service keeps (identity, messages, contacts) not shown; cargo xtask files-demoDone (pictures are not zoomed and nothing else opens yet (no PDF, sound or video); nothing comes onto the device or leaves it but through an app's folder)
A code editor, Fien (jeroen/fien, a system program beside Files): many cursors, undo by edit, colour for Rust and Frits, long lines wrapped, a finger's selection by handles; a Frits script checked against the terminal's platform as typing pauses and its names completed; Files opens a text file in it (Edit, through system-fien); Share edits a text with a contact at the same time over the p2p sessions (fien, offered in Settings, Remote access), each seeing the other's cursorDone (one contact at a time; an edit from the other forgets the undo history; Rust is coloured, not checked)
Mail, calendar and contacts, Kees (jeroen/kees, a system program beside Fien): one account and one login for all three, its servers guessed from the address (a known provider's, or the usual names); IMAP and SMTP (TLS, or STARTTLS) over Pinnacle's TLS, every folder's newest 500 messages, read as plain text (HTML shown as its text), with files to save in its folder; replies, forwards, addresses completed from the address books, mail written offline sent with the next sync; CalDAV calendars a week at a time, with time zones and repeats, events made, changed and deleted (a change made elsewhere refused, not overwritten); invites by mail accepted, maybe or declined (the answer mailed to the organiser, the event put in the calendar), cancels and answers applied; CardDAV address books synced into Contacts by UID. The engine on a thread of its own, a sync every five minutes; the self-check syncs a whole account against the provider in memory (kees ok); cargo xtask kees-demoDone (passwords only: no OAuth for Google's calendars or Outlook.com; no HTML layout, no new attachments, no IMAP IDLE; repeating events are shown and their words changed, not made; the zone is system:/locale/zone when Kees knows it (Europe's and four American ones), else Amsterdam)
Text input: an on-screen keyboard; a notes appDone (Notes: a file a note in its own folder, saved half a second after the last key; the caret put down by a tap or moved by the arrow keys, text typed, deleted or pasted where it is)
The everyday apps made whole (s924): Calculator with a decimal key in the language's separator, ±, %, ⌫, pocket-calculator chaining with the sum shown above, and a physical keyboard; Clock with alarms (kept, on and off, ringing while Clock is open), a timer with steps and presets, and a stopwatch with laps; Paint keeping its drawing in its folder as a BMP, with undo and redo by stroke (Clear too), an eraser and four brush sizes; Notes found by their text, pinned to the top, each with its date of change; Messages with each message's time and a line between days, people found by name, one message or a whole conversation deleted from the device; Files making, renaming, copying and deleting folders (a folder with all in it, after asking); the Store uninstalling an app it installed, the person choosing whether its data goes tooDone (alarms ring only while Clock runs; deleting a message does not reach the person's other devices; a rename copies, as the file system has no rename)
Settings: network, storage, aboutDone (a system program: the device's name, the screen and turning it, the network, each disk's free space, the system; the name reaches contacts at the p2p service's next start)
Notifications: any program sends one to the display server, a banner for four seconds unless its app is in front, a tap opens the app; Messages notifies of a message that came while it was not in front; each is kept (the last 50, those that came while the screen was locked too), in the data vault so a restart finds them (data:/display/notices, not synced to other devices), and a bell on the status bar, with how many came since it was last opened, opens their list over the app (drawn by the display server, so no app reads another's), the newest first, a tap on one opening its app, Clear forgetting them; cargo xtask notices-demoDone (no scrolling past the ones that fit, no dismissing one at a time, no grouping by app; a notice's time shows no day)
A clipboard every app shares, in the display server: Copy and Paste in Notes, Paste in Messages, a Paste key on the on-screen keyboard, ctrl+C and ctrl+V on a physical oneDone (texts up to 4 KiB; part of a text selected by dragging the caret's handle or with shift and the arrows, then copied, typed over or pasted over)
Screen lock: one strong password (no PIN: chosen 2026-11-23), the one that opens the data vault; the display server locks after five minutes without input and from Settings, shows the time and the password field and nothing of the apps, passes them no input, checks the password against the vault, and waits 30 s after five wrong ones; Settings changes it (the vault's key sealed again)Done (a fingerprint beside it waits for a device with a sensor and a secure element)
Encrypted storage: the person's data on a vault disk (each block encrypted as a whole, LIONESS from ChaCha20 and HMAC-SHA-256), opened at start by a passphrase stretched with PBKDF2 (100 000 rounds), chosen at the first start; key slots leave room for a key hardware releases after a fingerprintDone: apps reach their own folder as app:, in the vault once it is open; the p2p service keeps the identity, contacts and messages in it; what the system disk kept is moved in when the vault is made or opened
Backup and sync (docs/backup-and-sync.md): the person's own devices linked in Settings → Devices by a code one shows and the other is given, the two cards crossing the DHT sealed under a key from the code; the sync service keeps the vault's files in step with each, every 30 s and soon after a change, over a p2p stream only own devices may open: a three-way sync against what the two last agreed (pinnacle-sync), logs both added to merged, anything else both changed kept twice; the identity and Bluetooth bonds stay on their device. Backup to a disk labelled backup, sealed under the password, every file once by a keyed hash of it, and restored from it onto a new device (cargo xtask sync-demo, cargo xtask backup-demo)Done in QEMU (contacts know devices, not people: a restored phone still has to exchange cards with each contact; deleted is deleted on every device; files above 16 MiB not synced; no backup to a friend's device yet)
Power: tickless idle, cores parked while idleDone (tickless; a core asleep in WFI with its timer off; deeper sleep states and frequency scaling need a board)
Disk IO asynchronous: requests in batches, completed by interrupt on a core of their own, the waiting task asleep (a sleeping Mutex per disk, sched::sleep); a 2 MiB cache of blocks per disk; pfs reads and writes a range's blocks in batchesDone
Sound: virtio-sound; a mixer in the kernel (48 kHz stereo, 10 ms periods, interrupt-driven, the device stopped while nothing plays); programs play and record at their own rate as channels (rt::audio); Calls plays the other side, records the microphone (a stand-in tone where it gives digital silence), and rings; cargo xtask test and pair listen to QEMU's WAV; the volume a slider in Settings → Sound, heard as it moves, a short tone at the release, kept in /settings/volume and given to the mixer at start (cargo xtask sound-demo)Done (any program may still set the volume; no volume keys, and no level per app)
Listening TCP sockets for programs (LISTEN_TCP: each accepted connection arrives as a channel); the self-check is knocked on from the host through QEMU's forwarded portDone
Display behind a virtio-gpu (2D): the framebuffer a resource the device scans out, every changed rectangle sent across (FLUSH_SCREEN from the display server), the screen's size from the device; ramfb kept for a QEMU without the moduleDone (3D, virgl, needs a host GPU: later)
Bluetooth Low Energy, own stack (bt): HCI over H4, L2CAP, ATT, GATT as client and server, as pure state machines; a simulated controller and air (bt::sim) for tests and for QEMU, whose serial port cargo xtask holds the other end of; the bt service advertises this device and serves its contact card; the Bluetooth app lists devices, reads what they tell, adds a Pinnacle nearby as a contactDone (BR/EDR and audio over Bluetooth later; a board's controller over its UART)
Pairing a Bluetooth device securely (bt::smp): LE Secure Connections, P-256 Diffie-Hellman, a six-digit number compared on both screens where both have one ("just works" with a device that has none, its side asked whether it may), the controller encrypting the link with the key agreed; each device paired with kept in the vault (data:/bt/bonds) and its link encrypted again on every connection with no question, identities handed over as they pair (each side's identity resolving key and fixed address), so a phone or watch that moves to a new private address is still the paired one, found and encrypted again with no new pairing (cargo xtask bluetooth-demo, s933); paired devices first in the Bluetooth app whether nearby or not, Forget dropping one; a pairing asked by a device nearby while no app is open becomes a notification; the simulated air encrypts as a controller does (AES-CCM) and keeps what a listener hears, so the tests check nothing written after pairing crosses in the clear; the self-check pairs with the air's PinnacleDone (no legacy pairing, refused as unsafe; Pinnacle itself keeps its public address rather than moving to private ones; GATT does not yet refuse unencrypted reads of what should be private; the P-256 multiplication is not constant time; tried only against the simulated air, not a real controller or phone)
Pairing a Bluetooth keyboard by passkey (bt::smp, bt::hogp): a keyboard pairs by a six-digit code the Bluetooth app shows and the person types on it, then Enter, LE Secure Connections' passkey entry, twenty rounds each proving a bit of it, as safe against a device in the middle as compared numbers (either side showing, or both typing, as the spec's table has it); once paired and its link encrypted, the bt service asks it for the boot protocol over HID over GATT and its keys go to the display server, on a channel the display server gave it at start, as a USB keyboard's do (pinnacle_hid::Keyboard reads the report for both); it stays connected when the app goes back, and a device never paired cannot type (cargo xtask bluetooth-demo, s940)Done in QEMU (the boot protocol only: no media keys, no lights, no report map read; a paired keyboard types again only once opened in Bluetooth, not by itself when it comes back in range; this device never types a code itself, pairing as a screen with buttons; tried only against the simulated air's keyboard)
Ending programs: SPAWN gives a handle that can end the program (KILL); the status bar's close button ends the app in frontDone
Real hardware, step 1: the screen a bootloader left lit, drawn on (drivers::scanout): a simple-framebuffer in the device tree, else on an RK3399 the VOP's first window read from its registers (only with its clocks on); the loader's reserved memory (the header's block, /reserved-memory) kept from the allocator; cargo xtask test boots once as such a loader leaves QEMU, cargo xtask lit-shot photographs that screenDone in QEMU (which boards' loaders leave a lit screen needs a board: a Pinebook Pro's Tow-Boot leaves its panel lit)
A PC's and a laptop's own hardware, on PCI (hardware.md): USB through an xHCI controller (drivers/usb), each device on a root port addressed and configured, plugged in and pulled out at any time, followed by a kernel task; keyboards by the boot protocol (keys as the virtio keyboard's), mice, tablets and touch screens by their report descriptors; sticks and disks by Bulk-Only Transport and SCSI. Disks behind NVMe (nvme) and AHCI (ahci, SATA), each a Controller under the block layer's cache as virtio-blk is; interrupts by MSI-X or MSI on a PC, INTx on ARM, every driver on a shared line asked. cargo xtask test and pc give QEMU all of them; the self-check writes a block on each disk and puts it backDone in QEMU on both architectures (no isochronous transfers or USB 3 streams; one NVMe I/O queue; no SD/eMMC, which waits for the first device)
An Intel laptop without trying one (hardware.md, "A laptop, without one"): the firmware's screen (GOP) drawn on, the boot log on it and a panic over it, the machine left on (a laptop has no serial port); x2APIC; the I/O APIC with the MADT's overrides; the keyboard controller's keyboard and touchpad (PS/2), a pointer the display server draws; ACPI's FADT: off by \_S5, restart by its reset register, the power button; USB hubs (USB 2 and 3, a translator's route for slower devices); Intel's e1000e Ethernet (82574L to I219); randomness from RDSEED/RDRAND; booted with no virtio device at all. cargo xtask laptop: the stick behind a hub installs on NVMe and turns off by ACPI, the disk starts, the password typed on PS/2, the power button turns it offDone in QEMU (2026-11-29); not tried on a laptop. Not here: I²C-HID touchpads, Intel Wi-Fi and graphics, battery and lid (they need AML run), the I219's PHY waking from ULP
Intel graphics, part 1 (drivers/i915.rs, drivers/backlight.rs, hardware.md), Skylake to Alder Lake: the firmware's framebuffer written through a write-combining window (IA32_PAT entry 1, 4 KiB pages beside the direct map, sfence after each copy) instead of uncached; the panel's backlight through the chipset's PWM (Sunrise/Kaby Point's and Cannon Point's on, told by the ISA bridge's ID), else ACPI's _BCM/_BCL/_BQC; never below 5 %; the brightness system call (72), a slider in Settings → Screen shown only where it answers, the level kept in /settings/brightness and set again at startStarted (2026-11-30): the window runs in QEMU (cargo xtask laptop); the backlight is untried, as QEMU has no Intel GPU. Not here: modesetting (native resolutions above the 16 MiB framebuffer, other outputs), panels set over DisplayPort AUX (OLEDs), the OpRegion (ASLE) many laptops' _BCM goes through, and 3D, a project of its own
Intel HDA sound (drivers/hda.rs, hardware.md): the controller reset, CORB/RIRB (immediate registers as the fallback), codecs from STATESTS, the first with an analog output walked from its speaker pin (else line out) and headphone jack to a converter through mixers and selectors, powered, unmuted at 0 dB, EAPD on; one output stream of eight 10 ms periods fed by the kernel's mixer, as virtio-sound's are, an interrupt a period, the position by LPIB, stopped once nothing plays; the speaker off while headphones are in (unsolicited response); cargo xtask laptop hears the self-check's tone through QEMU's ich9-intel-hdaDone in QEMU (2026-11-30); not tried on a laptop. Not here: recording, HDMI/DP audio, vendor coefficient set-ups, Intel's DSP (SOF) mode, the jack's switching (QEMU's codec has none)
A laptop's battery, charger and lid, from its firmware (aml/, x86_64/power.rs, hardware.md): an AML interpreter of Pinnacle's own (no ACPICA) loads the DSDT and SSDTs and runs their methods, bounded (a million loop rounds, 64 calls deep), a device that fails losing itself only; _CRS decoded, GPIO and I²C included; the embedded controller found from AML and driving its regions, its _Qxx events and the firmware's _Lxx/_Exx GPE methods run in a kernel task; _BIX/_BIF, _BST, _PSR, _LID asked live by the power system call (71); a lid or charger change an input event to the display server, which draws the battery in the status bar and locks when the lid closes. cargo xtask laptop gives QEMU a battery, charger and lid as an SSDT written with pinnacle_aml::asmDone in QEMU (2026-11-30): QEMU's DSDT loads with no failure; no embedded controller tried (QEMU has none). Not here: sleep (S3, S0ix), battery warnings (_BTP), thermal zones and fans
A laptop's touchpad on I²C (hid/, drivers/i2c_dw.rs, drivers/i2c_hid.rs, hardware.md): HID report descriptors and the pointer moved out of USB into the crate pinnacle-hid, shared by both; HID over I²C (Microsoft's 1.0) as a state machine over an I2cBus trait: the HID descriptor from the register _DSM names, SET_POWER ON, RESET and its empty answer, the report descriptor, the input register (a length, then a report), the mouse report a precision touchpad sends until told otherwise turned into pointer moves; Intel's LPSS DesignWare I²C controllers (8th to 13th generation) as polled masters, their timings from FMCN/SSCN; the touchpad found as PNP0C50 in the AML, its controller by _ADR, read every 8 ms by a kernel taskDone in QEMU (2026-11-30) as far as QEMU goes: it has no DesignWare controller (i2c: 0 DesignWare controllers), so only the protocol is tested, against a fake ELAN touchpad; untried on a laptop. Not here: GPIO interrupts (the touchpad is polled), the precision touchpad's fingers and gestures, I²C keyboards and touch screens, LPSS in ACPI mode
Disks with partitions (pinnacle-disk: GPT and FAT32, shared with xtask): Pinnacle's system and data partitions mounted, the system the one the loader names (root=), any other disk free; Settings → Disks lists each, what it holds and where Pinnacle can goDone
Installing on a disk (install, Settings → Disks → Install): from a USB stick (cargo xtask installer [pc]), a partition table, a boot partition with the stick's loader and kernel and a command line naming the new system, the system copied file by file, a blank data partition the first start makes a vault; cargo xtask install-test [pc] installs on NVMe in QEMU under edk2 and starts from it, install-demo [pc] does it in Settings with a USB tablet and keyboardDone in QEMU on both (no UEFI boot entry written: the disk is found by the path every firmware tries)
Pinnacle's own UEFI loader (boot/): the kernel and its command line read from the boot partition, started as a boot image on ARM (the command line in a copy of the device tree) and by Multiboot2 on a PC (the memory map, GOP's framebuffer, ACPI's root pointer); no GRUB (cargo xtask pc-efi)Done in QEMU (edk2); U-Boot's UEFI untried
Real hardware: the first board (rk3399): display controller and panel, touch, SD/eMMC, PMICWaits for a board with a serial console
TLS 1.3, own: AES and AES-GCM (on the core's AES instructions), SHA-384, RSA and ECDSA checks, X.509 chains to Mozilla's roots (certificates/), the client byte for byte as RFC 8448 has it; https in rt (redirects followed); cargo xtask https <url> fetches from the internet in QEMUDone (no session resumption, HelloRetryRequest or client certificates; P-521 roots skipped)
Rust's std: Pinnacle a target Rust knows (aarch64-unknown-pinnacle), its std Rust's nightly with a platform layer of our own (std/): heap, threads, futex-based locks, thread-locals through TPIDR_EL0, clocks from the counter programs read themselves, console, randomness, files (std::fs on the kernel's path calls), the network (std::net on its socket channels), processes with pipes, arguments and environment; the self-check runs a std programDone (next: what Cartopolis's crates need, and the GPU)
Crates from crates.io ported (ports/), switched in for an app's build only: getrandom, errno, hostname, mio (a selector on the kernel's new wait), tokio, winit (a backend on the display server), bevy_asset, ring (Rust on Pinnacle's crypto, no C); the self-check runs tokio and ring's vectors over them, a TCP connection included; cargo xtask winit-demo a winit app; Cartopolis's client checks clean for PinnacleDone (next: Vulkan via Venus, so it can draw)
GPU, step 1: the 3D virtio-gpu (QEMU's virtio-gpu-gl on PCI, beside the 2D screen) found, its capsets read, a Venus context made (Venus: the guest's Vulkan run by the host's), its 256 MiB of host-visible memory found; cargo xtask gives QEMU the device on a machine with a render node (vps-1: vgem)Done
GPU, step 2: Venus's command stream — a reply stream in host-shared memory, the host's Vulkan asked its version and answering; on the Mac nodes too, where tools/macos-venus builds a QEMU that runs Venus on MoltenVK with no GL display (a two-line QEMU patch), and cargo xtask uses it when it is thereDone
GPU, step 3: a Vulkan instance made on the host through Venus (object ids the guest's), its physical devices listed and each one's properties read: the self-check names the host's GPUDone
GPU, step 4: the first command run on the host's GPU — a logical device and its queue (on a Venus ring), a buffer in host-visible memory shared into the window as a blob, a command buffer filling it, submitted with a fence asked until signalled (Venus refuses waits that block the host), the buffer read back wholeDone
GPU, step 5: the GPU for programs — a gpu call gives a program a channel to a Venus context of its own; its messages carry command streams and ask for memory the host shares, which comes back as memory to map (given back to the host with its last hold); installed apps are not granted it yet. Vulkan moved out of the kernel into pinnacle-venus, which speaks it over any host; the self-check's Venus check is now a program'sDone
GPU, step 6: Vulkan's encoding generated, not written: cargo xtask venus-gen reads Vulkan's registry (vk.xml 1.4) and Venus's two additions (venus/registry/) by venus-protocol's rules, and writes Vulkan's types as C lays them out (venus/src/vk.rs) and Venus's encoders and reply decoders for all 329 commands it carries (venus/src/encode.rs); what it selects matches venus-protocol's own generator name for name; the self-check's Venus session runs on itDone
GPU, step 7: a Vulkan driver for programs (vulkan/): the functions callers take from vkGetInstanceProcAddr, generated for every command Venus carries (vulkan/src/commands.rs: the handles a command makes named by ids of the driver's, vkCmd* recorded, commands with outputs called and their replies read, one ordered stream, long streams run from memory the host shares), and by hand where Venus asks otherwise (extensions, the physical devices' ids, queues on rings of their own, memory mapped as a blob, every wait a fence asked); ash from crates.io runs on it unchanged in the self-checkDone
GPU, step 8: wgpu on it, headless — wgpu 30 as Cartopolis has it (Vulkan backend), on ports of ash (no library loaded: the driver linked in) and of wgpu/wgpu-core (their Vulkan backend on for Pinnacle); the driver offers no extension Venus only does guest-side (external memory by fd, swapchains), and a new instance asks its physical devices afresh; the self-check's ports program runs a WGSL compute shaderDone
GPU, step 9: on the screen — surfaces and swapchains done by the driver (vulkan/src/wsi.rs): a surface is a winit window of the display server (its port hands over a pointer to the window's size and a present, as raw-window-handle's Orbital variant; wgpu-hal ported to make a surface of it), a swapchain's images the host GPU's, presenting one copies it through memory the host shares into the window's pixels; apps get the GPU when their manifest says gpu=yes; memory the host may share is allocated in whole 64 KiB, so a blob of it matches; cargo xtask wgpu-demo photographs a triangle drawn by the host's GPU in an app's windowDone
Cartopolis, step 1: its client builds and links for Pinnacle (cargo xtask cartopolis <checkout>, with Pinnacle's std and ports, its own copy of wgpu left to it): a program of 141 MiB, 106 MiB of it loadedDone
Cartopolis, step 2: it runs and draws — the kernel loads an installed program from its disk a range at a time (never whole), and gives the pages the device tree says the machine has (QEMU's board mapped for 2.5 GiB; PINNACLE_MEMORY); a program asks its own path (program, call 57), which is std's current_exe, so Bevy finds its assets beside it; winit's port leaves is_visible unsaid (AccessKit); cargo xtask cartopolis installs it with its assets, opens it in 3 GiB, and photographs it: the map drawn by the host's GPU, flat, ~5 s a frameDone
Cartopolis, step 3: the city, right and stable — Groningen drawn (bloom's blend constants were garbage: a C array parameter is a pointer; its assets beside its program; a reply read only once whole), memory given back and stacks that grow, AES on the core's instructions for std programs, the driver waiting only where an answer is needed, a sampling profiler (PINNACLE_PROFILE, cargo xtask profile), names kept in pfs, and on a Mac its mapped GPU memory as guest blobs past the 256 MiB window (tools/macos-venus)Done (0.5 to 1 s a frame; next: copying each frame to the window on the CPU, pfs's one lock a disk, debug info in the kernel's programs)
The terminal (docs/terminal-and-agent.md): output as typed records, not a byte stream (records: text, tables, progress, files, images, questions, a status; a record starts with a byte UTF-8 never has, so a plain program's println! arrives as lines beside them); a command started as a std program is (STD_START and its start message), stdout and stderr channels, its exit code watched; Stop ends it (KILL); one column laid out for any width; a system program, its tile beside Settings; the commands info, devices, echo; cargo xtask terminal-demoDone (files, images and questions are listed, not drawn or answered yet; the session is not kept yet)
The terminal, step 2: images drawn (pixels as shared memory beside the record, scaled to the page); questions answered (text in the field, a choice or yes/no as buttons; the answer an Answer record on the command's stdin, rt::output::Output::ask); the session kept in the vault and back when the terminal starts; the commands ask and paletteDone (images are kept by their size only)
The terminal on another device: remote <contact> runs what follows on that contact's device until local, over the p2p layer's encrypted stream (pinnacle_ui::remote: the command line, stdin, Stop one way; stdout, stderr, images as pixels, the exit code the other); the device runs only the commands its own terminal would (pinnacle_ui::command), and only for contacts its person allowed in Settings, Remote access (/settings/remote, which apps cannot reach); each command shows as a notice there; the terminal asks through system-p2p, a service the kernel keeps installed apps from (any service named system-…); cargo xtask remote drives it between two devicesDone (a session is not resumed after the terminal closes, only across a network break of up to five minutes; no port forwarding yet)
Frits in the terminal (jeroen/frits, the system's scripting language): the command frits — run a script's on main() with the words after it, test its test blocks, check it and list the effects its first line asks for before anything runs, fmt, show, guide, examples; alone, lines typed at its prompt run one by one, definitions kept. A script's platform (programs/frits/terminal.frits): Console (text, tables, a progress bar and questions, as records), Files (a path without a disk is on data:), Clock, Net (its answer Untrusted<Str>); three examples come with it (hello, todo, countdown). The compiler and VM run in the program, without std; the self-check tests the examples (frits ok); cargo xtask frits-demoDone (a script is a file or an example: no editor in the terminal yet, and words are split at spaces, so a quoted argument is not one word; a var changed by a typed line starts afresh on the next)
A web browser, Flitz (jeroen/flitz, an app on the ports like Cartopolis): Blitz's crates (Servo's html5ever and Stylo, Taffy, Parley) painted by Vello on the CPU into its window; an address bar, links followed by a tap, a drag scrolls, ← goes back; HTTP/1.1 and HTTP/2 of its own on hyper with rustls on ring; nothing in its build compiles C (a test there). Ports it added: stylo 0.24; it fixed mio's selector waiting on a closed socket. cargo xtask flitz <checkout>Started (no JavaScript yet: Boa is next; no on-screen keyboard for the address; one connection per request)
What the agent stands on (docs/agent-environment.md, step 0): HTTP/1.1 of any method with headers, chunked replies and server-sent events (pinnacle_net::http, rt::net::request); an own JSON reader and writer (pinnacle-json); a kernel file handle with rights (read, write, add only), which a confined holder may use (open_file, file); an append-only log format (records::log); a mark on synthesised input (InputEvent::synthetic); a service tag on p2p streams; a stand-in model provider in cargo xtaskDone
Services that say what they can do (records::verbs, step 1): describe answers a service's verbs, their parameters' types, each verb's effect (reads, its own data, shared, out of the device, final) and the verb that undoes it; a call is checked against it and its answer carries the call that undoes it; the p2p service describes contacts, history, send; a service's name is a command (p2p send contact=Anna text="Hi", through verbs); a manifest says effects= beside network= and gpu=, and the Store shows an app's rights before it installs and refuses a package that asks for more than it showedDone (no forms yet; the terminal does not complete)
The model service and Settings → Agent (step 2): the one program of the agent with the network, system-model, started with the system and sending nothing until the person turns the agent on; it takes one conversation format (pinnacle_ui::model) and speaks Anthropic's Messages API, streamed, sending back text and whole tool calls as they come; the key only in the vault; every prompt kept, whole but the key, in an append-only log (data:/agent/sent); Settings → Agent: on or off, host, model, key, and what was sent; cargo xtask agent-demoDone (one provider's protocol; no host over the DHT yet)
The agent's gatekeeper in the terminal (step 3): agent +service @file the task starts agent, a program per task that the kernel seals (SPAWN_SEALED: no network, no service by name, no path, no programs), given the model service, the display server's confirmation (system-confirm), its log and what the person named; each tool call checked against the verb's description, counted against a budget (20 actions, 512 KB to the model), confirmed on a screen the display server draws over everything when its effect says so, logged with the call that undoes it; agent undo undoes the last task; Stop ends itDone (the person's grants are typed; no file picker yet)
The taint rule (step 4): once a task read untrusted text (a verb whose description says its answer is, or a file it was given), everything that reaches others asks the person each time, naming where that text came fromDone
The agent at a workbench (docs/agent-workbench.md): a contact's services over p2p (+workbench@Bench, p2p@Bo; the other device offers them per contact in Settings, Remote access), untrusted for the taint rule; workbench, a program for Linux and macOS with a toolchain: a git worktree and branch agent/<task> per task, typed verbs (read, search, write, edit, run a job, diff, commit, propose), jobs from its owner's list in bubblewrap or sandbox-exec with no network and nothing writable outside the task, none without a sandbox; only propose leaves the machine, confirmed on the device; cargo xtask workbench-demoDone (no rlimits on jobs; a workbench behind a symmetric NAT needs a relay)
The terminal, step 3a: pipelines of records — commands joined by `, each one's stdout channel the next one's stdin (pinnacle_ui::command::start_in), the first's stdin still the terminal's, so a question asked before the
The terminal for looking after a device: words in quotes kept whole; a; b and a && b; > file and >> file (a last stage save, text and tab-separated tables); the filters last, count, unique, and head, tail, grep, wc on files or after a |; find, du, df, hex; a program admin with ps, kill (by number or name, a system program after a yes, never the display server), services, log (the kernel's last 64 KiB of serial output, kept in memory), apps, net (on, off), lookup, ping, fetch, date, env, restart; the kernel's calls PROCESSES, KILL_ID and LOG, for system programs only; cargo xtask admin-demoDone (ping times HTTP(S) requests, not ICMP; no variables; ps's memory leaves out a program's code)
The terminal, step 3b: files picked as handles; completion and forms from describeNext
The agent, what is left (docs/agent-environment.md, steps 5–8): the display server's UI tree and an act protocol whose input carries the synthetic mark, and the status bar showing when and where the agent acts; Frits scripts as the checked plan; pfs snapshots by reference-counted blocks; a model on the device; the person's own machine as the host over the DHTNext