Roadmap

Plan

Plan

The order of work. Each phase ends with something a person can run. Decisions and their reasons are in design/architecture.md and design/state-and-theme.md; what we tried, built and learned before this order was set is in design/prototype-notes.md. This file is the sequence.

Where we are (11 October 2026)

fictty stays a runtime on ratatui. json-render, OpenTUI and the ratatui ecosystem were tried first; none has the loop an outside agent needs (push, patch, read back, answer in place), so we build that and borrow formats and components from them. The store-and-theme prototype works: a notes app, a ledger, a live market and a gallery, all JSON over one store and three themes (examples/showcase/). It was merged into main on 11 October, and anyone can run it in one line (curl -fsSL https://fictty.com/try.sh | sh) from the top of fictty.com.

The order below follows what the prototype showed: first land it, then close the agent loop (watch, rebased text edits), then make records addressable, then layout and the kit.

New direction, 11 October 2026: fictty leaves the terminal. A screen becomes a native window drawn by GPUI, in pixels with real type, and the terminal target goes; the Elm core, the UI as data, the socket and the host stay. A spike held 120 fps on every stress scenario with agents writing as fast as before. The plan is design/native.md; its phases are section 0 below and come first. Terminal-only items in the sections after it (OSC 52, terminal recordings, cell-level polish) are superseded; the rest carry over.

13 October 2026: how screens will look. A wringer of nine designed screens in six themes showed where fictty’s line is (app screens, yes; no size-to-content, one text size, rows that are text, nothing wraps or scrolls but lists). design/expressive.md is the answer, decided with Aram: adopt what GPUI already has (its Taffy layout, text and paint), make themes whole styles resolved in the core, add a layout vocabulary, rows as nodes, and drag and motion as data. No more terminal work. Where to start: section 0, “Next”.

14 October 2026: step 2, the Kestrel demo and Daybook are on main, and CI is green. Step 3’s 3a (units and the box: pad, margin, gap, min, max in any unit) is on main too; 3b (fit and alignment) follows the gallery work in design/selection.md, from “Start here” in design/layout-step.md.

Later on 14 October 2026: the gallery is done, built from parts (clicks that bubble, image in the window, multi, fields over picked rows, rows as nodes with cols, smooth scrolling), and other agents build screens with fictty through the global fictty-ui skill. A second agent used it all afternoon on a real catalog; what that found and fixed is in design/gallery-notes.md. Old terminal-only to-dos are gone from this file (they’re in its history). Where to start: 3b, from “Start here” in layout-step.md.

17 October 2026: 3b is on main, and Nocturne (examples/nocturne), a listening room, pushed the window as far as it goes; the gaps it found are fixed or placed in step 3. Where to start: 3f, from “Start here” in layout-step.md (3c, 3d and 3e landed the same day).

Done

42 of 42 done

Extraction (2026-10-10)

The prototype grew on a branch of Thought Control (crates/scene, called thc-scene) and moved here with its history.

  • Own repo, crate and binary: fictty, MIT
  • Renamed throughout (fictty binary, FICTTY_* environment variables, fictty.sock)
  • README, guide, architecture, time-travel proposal, identity explorations, agent files
  • fictty.com: the site in web/, with the posts and the landscape research

The store and the theme (merged 2026-10-11)

  • Themes as their own layer: tokens, parts (a skin per primitive) and variants, loaded with --themes, switched by key or fictty theme; nodes ask for variant and tone
  • The store: the app’s data apart from the UI, versioned entries, conditional writes (put, merge, edit with --if-rev), seeds, --store persistence, store actions on keys
  • problems: wrong shapes at binds and unknown variants, tones or accept, in words, in replies
  • input and editor on caretline (single-line for inputs), their text in the store; doc templates make an editor follow a list’s selection
  • Markdown styling in editors (headings, lists, quotes, code), and clicking to place the caret
  • accept: "number" inputs; $log with clock times and refused writes; $store; $theme
  • The showcase: notes, a ledger with a helper process, a live market, a gallery, an agent’s log

Shipping it (2026-10-11)

  • fictty.com pages for state-and-theme and prototype-notes; the first milestone post, with screenshots
  • Demos in one line: try.sh (the latest, on the landing page) and a frozen copy per post, pinned to its commit (scripts/freeze-demo.sh), tested like a reader runs them (scripts/try-test.py); a demo link component (name, date, version, copy)
  • A copy action (OSC 52) and $self: the showcase’s Agent screen hands out commands that reach it from any terminal
  • A Tokens panel on posts (scripts/blog-tokens.py), and the blog-post and ship skills
  • A release workflow that builds macOS and Linux binaries on a version tag

The kit, the library and the tour (2026-10-11)

Thought Control started building its screens on fictty in a second session, and asked for what it needed as behaviour; what was generic landed here, what was app-specific stayed there.

  • fictty as a library: App (a UI value or file, a socket, a store, themes), Host (sources and actions in process, a Notifier to say the world changed), Headless for tests; upgrade re-runs the same command line, so an embedding app survives it
  • Store entries the host keeps (pages in a vault): loaded when shown, saved when settled, reloaded as an edit when they change at the host
  • tree (folds, filters, $ptr so store actions reach nested rows), toggle, filter on lists, tables and trees; lists and trees share their row options (Rows): marks, row variants, lines, keep, and a selection that follows its row’s key
  • stack with float and modal (dialogs), when on nodes and layers ($screen makes panes responsive), button, toasts, spinner, scroll bars, gap, min/max
  • Editors: Markdown task items, readonly; the Mac editing keys with twins, the kitty keyboard protocol, bracketed paste, the mouse (shift-click, drag, double and triple click), the system clipboard; tests/editing.rs is the contract Thought Control wrote
  • Templates: {key:11} widths, <<, theme parts as tags, tabs from |markup values; tab titles as templates with a lead and a trail; chords ("p h", $keys); a UI’s focus; Esc leaves a field; remove with where; host source args from the selection and store
  • The tour: the one-liner opens nine chapters with a quest each, an autopilot and a firehose (114 fps at 12,000 messages a second beside a filtered 100,000-row list, release build)

Built for a real app (2026-10-11)

Thought Control ran its screens on fictty in a real terminal (WezTerm, through a harness of over a hundred scenarios with real key and mouse bytes) and sent what was missing, round by round.

  • fictty setup wezterm (and fictty::setup): WezTerm drops ⌘, so a module sends ⌘ keys as kitty bytes to panes running a fictty screen (a terminal user var), for any app on fictty
  • The wheel scrolls a list’s view and leaves its selection
  • each: a template per item of a bound list ({$item.path}), for panels and sidebars
  • Container queries: $width and $height in when are the node’s own area
  • Links in editors (wiki, tag, url; click, Shift-click, {$link}, md.link)
  • Markdown editing: tab (indent, indent-lines), Enter continues a list, Ctrl-T makes a line a task (tasks: "cycle"), caret: "end"
  • Writes that last (for_ms, expiring on the screen’s clock), toasts in a toasts node with a part per tone, $toasting
  • Tabs that take the focus in, {"tab": N, "of": id}, $prev and templated focus, selection by key (Set { key }, select), socket writes that set off their effects, typed-ahead keys while a page loads, a push that keeps unchanged sources
  • v0.2.0 with binaries; the tour’s Pages chapter shows the new pieces together

Fuzzing (2026-10-11)

Thought Control asked for testing at the terminal level, fast enough to fuzz. The first two layers run in process, at Headless speed.

  • Headless takes the mouse, pastes and resizes as a terminal delivers them, and reads its frame from what it drew (the backend’s buffer kept a stale character under wide ones)
  • App::commands(false): no run and no command sources, for tests and fuzzing
  • fictty::fuzz (the fuzz feature): generated acts, built-in properties (no panic, a time budget, replay, the terminal shows the frame), the editing invariants, app properties, shrinking to a scenario in the editing notation, replay
  • What it found: undo renumbered what it put back (so it could never get past it), a paste didn’t renumber, numbers after bullets weren’t a list of their own, and a toast drawn over half a wide character lost its corner on a real terminal
  • From Thought Control’s profiling and runs: a Markdown line’s looks worked out once per line, not per cell (a key in a 1,200-character paragraph took 573 ms in a release build); a running screen knows its size before the first push, as a headless one does; host actions with wait hold keys until they and what they refresh have landed; a list bound to its own selection reads nothing and says so, instead of overflowing the stack
  • fictty::sim (the sim feature): any fictty binary in a pty with vt100 on the other end, answering the terminal’s queries, keys encoded under the keyboard flags the app pushed (so crossterm’s own decoder reads them), SGR mouse, bracketed paste, resize; random acts through it end where they end on a headless screen
  • Thought Control’s fuzz run (5,000 headless cases, 200 in a pty): bullets made numbers after a numbered list carry it on; the undo check undoes in an editor, not a read-only preview; a click or the wheel outside a showing modal goes nowhere; an editor beside a preview of its text seeds it; dropping a Sim drains the pty so the child can exit; a headless screen’s clock stays still through agent requests (the same writes replay the same)
  • Driver: host acts (Act::Host, the app’s handler run inside the act), Config::normalize before replay compares, Config::class so shrinking keeps to one failure
  • From its replay lines: the focus moves off a node that hid by any message (the screen narrowing past a when on $screen left it there); a host reload of an entry with unsaved typing saves the typing first, so the host merges both; a headless reload no longer saves straight back what it loaded
  • A put of a whole text changes only what differs (caretline’s diff), so the caret stays after what the person typed when a host’s reload adds a marker or a line end around it; State::derive works out the tree of a state read back from get --state

0 · Into the window (now)

21 of 31 done

The phases of design/native.md, where each is broken down.

  • Phase 0 · The seam (M): the core as its own crate, the engine on its own thread, readback, the spike’s window behind fictty run --window (2026-10-11)
  • Phase 1 · Parity in the window (L): every component, theme and input; the tour and Thought Control run in it; the terminal code goes
    • The window reports its layout to the engine (rectangles, hits, editor and list sizes, wake) and its size; editors draw caretline’s frame, with Markdown styles; themes and template markup; lists and tables scroll from the state; ⌘V and hover (2026-10-12)
    • The window under test: App::in_window (GPUI’s test platform), every input through it, the fuzz driver over editors, lists, tables and the tour through it; a test workflow on every push (2026-10-12)
    • Step 1, layout: px sizes (Size::measure, in the core for both), min/max, pad, align, floats, a modal’s scrim; the no-overlap property (fuzz::laid_out) in the window’s fuzzing; ten grid tests moved into the window (2026-10-12)
    • The layout and style stack decided (2026-10-13): design/expressive.md. The terminal is dropped (no more terminal work), what GPUI has is adopted, themes become whole styles; the wringer (nine screens, six themes) is in examples/window/ as the test of done
    • Step 2a, style resolution in the core: style.rs resolves each shown node’s style (its part with the parts of its states layered over it, its variant, its tone, its own style; tokens as colours), the readback carries it (screen --nodes --style, render --nodes --style), and wrong names in a theme are problems (2026-10-13)
    • The public demo decided and started (2026-10-13): one app an agent builds live in the window (design/demo.md, examples/demo/). It grows with each step and is part of each step’s test of done, beside the wringer
    • Step 2b, parts as whole styles: a part is an ink or a whole style (fg, bg or a gradient, type, pad, radius, border, shadow, ring, shape, opacity, cursor), as are a node’s and a variant’s style; the theme’s scales (space, radius, depth, type) and fonts; problems for wrong names and fields (2026-10-13)
    • Step 2c, the window draws the resolved style (Look::boxed): the window’s own looks are default parts in the core, inner parts resolve like nodes, hover holds for any node, tabs take a shape (2026-10-13)
    • Step 2d, type: roles on nodes (style.type) and in markup, theme fonts (files loaded), tabular numbers; our own ellipsis and keep, wrap and lines on text, (cut) in the readback; tab bars’ lead and trail in the window (2026-10-13)
    • Step 2e, cards and the status bar: backdrops resolve into cards (fill or gradient, border, corners, shadow or glow); the status line is the UI’s (status, problems, hints; "status_bar": "speed" for the meter); the demo’s typo beat (2026-10-13)
    • Step 2f, the styling study (design/styling-study.md): the six themes as whole styles (examples/window/themes.py), one vocabulary of roles, scales and variants, the screens and the demo naming roles, before and after screenshots (2026-10-13)
    • Daybook (examples/journal/), a journal written as data after Thought Control’s, its flows tested in the window (tests/journal.rs) and fuzzed. It found and fixed: ⌃/⌥/⌘ keys an editor doesn’t use reach the UI’s keys; action templates read sources; toggle of a store entry; a selection a do moved no longer snaps back on a write; a click on a task’s box keeps the caret; required inputs (2026-10-13). Still open, in its README: a task action to bind (⌃T is wired in), proportional editors (phase 4), a map’s catch-all reading its value
    • CI green on macOS and Linux again (2026-10-13): the fuzz’s emulator rebuilt on a resize (no terminal on CI), openpty on Linux, a debug time budget for the fuzz, and the pty test’s presses spaced apart. AGENTS.md has the lessons
    • Galleries, first part (design/selection.md, Aram’s call on 14 October 2026): a click runs the nearest click, image in the window (from a template, fit), multi selection on lists, trees and tables, and editors over a multi-selection (2026-10-14). The fuzz has a gallery, in the grid and the window
    • Rows as nodes for lists, with cols for a grid of them, brought forward for picking from thumbnails (2026-10-14). Still open: fit row heights, clicks on a row’s own buttons
    • What a second agent’s real use found (2026-10-14, design/gallery-notes.md): fictty quit and one screen to a store (its lock in the temporary directory), a screen removes only its own socket, binds name store keys with dots, a when filled from its bound value, an editor’s text on its own grid under any type role, smooth list scrolling with a scrollbar, flags per picked row, fictty delete, a source hidden by a store entry is a problem, a default token is a tone with no theme, border in short
    • Small, any time, from the gallery notes: a parse error names the node it’s in; input with doc, so a one-line field follows a selection; the keys an editor takes, listed, and a problem when a UI key can’t reach a focused editor; an image that can’t be read is a problem (handed back with the frame, as fonts are); clearing a mixed field at once
    • 3b, fit and alignment: self, justify, items, aspect, size: "fit"
    • 3c, wrap and grid: wrap, grid with cols (a count, as many as fit, or a size per column) and span, an each with cols, a list’s cols as many as fit
    • 3d, scroll: scroll on a col, row, grid or each, the wheel chained from lists, Page Up and Down, the focus scrolled into view, (scroll a/b) in the readback
    • 3e, data placement: {$index} and {$count}, float x and y, an each as a stack
    • Next: 3f’s look: settings, landing and calendar are rebuilt without tricks and tested in every theme (tests/wringer.rs), the Kestrel Floor wraps (tests/demo.rs); left are screenshots in three themes, a look in a real window, Kestrel’s settings dialog, and the frame time against the baseline
    • Step 4, rows as nodes, planned in design/rows-step.md: 4a (one model of a list’s view, fit rows) and 4b (a row’s own buttons) are done, chat and kanban rebuilt, and every demo audited for workarounds (design/building-blocks.md, with the next steps in order); 4c (trees and tables in the window) is done; next Kestrel’s inbox and Jobs as row templates, then row templates without the JSON round trip
    • Step 3, the layout vocabulary, planned in design/layout-step.md. Then: lists and rows as nodes, the rest of editors, charts and icons, toasts and layers, embedding and the examples, then the terminal goes. Each step moves its share of the 32 grid tests left into the window
  • Phase 2 · The agent’s portal (M): watch and emit, drop zones, tabs (fictty open --tab), screenshots, the command policy
  • Phase 3 · Media (M): images, video, pasted and dropped media, animation
  • Phase 4 · Typography (M–L): proportional text; caretline measuring through the renderer
  • Phase 5 · Ship (M): fictty.app, signed; try.sh opens a window; docs, site, a post; v0.3.0
  • Waiting, from Thought Control’s fuzzer: a task made between 2. and 3. (⌃T) splits the list, as CommonMark reads it, so the items after it should number from 1 (renumber after a task toggle, as after list_style)

1 · Land the prototype

3 of 9 done
  • Review and merge store-theme-prototype into main
  • Errors about a field show on the field (its border and title), not only on the status line, which screens may hide
  • An escape for < in template markup (<<)
  • Problem checks only for nodes whose bind or data changed, to win back the 13% of flat-out push speed they cost
  • The first release, v0.1.0: binaries for macOS and Linux (Intel Macs cross-built), so the one-liners need no Rust; how to release is releasing.md
  • A pull request to json-render for its Tab focus bug (one line in the Ink renderer)
  • The phosphor theme’s heat colours: the market’s watchlist is unreadable in it
  • Close the Thought Control draft PR that carried the prototype, and drop crates/scene there
  • Move the Thought Control examples (examples/thc/, the Today screens in examples/pixels/) to the Thought Control repo as a consumer; the showcase replaces them here

2 · Close the agent loop

2 of 8 done

The live session showed both gaps: the agent couldn’t know the person had typed until told, and --if-rev on text is refused by every keystroke in between.

  • watch: wait for events (a store write by the person, a submit, a click on a named action, a key) without polling, with the revision to read from
  • Text edits rebased onto the person’s typing (caretline maps edits through, as it does for live editors); --if-rev stays strict for values
  • Keep unchanged data sources on push (a push fetches only new and changed ones)
  • Validated batches: several writes applied together, or none, naming the bad ones
  • The skill: fictty-ui, global (outside the repo), for agents making screens for a person’s task: the window, the store, a ready-made image path with a live manifest, the rules and the pitfalls (2026-10-14). Keep it in step with the format
  • MCP server: a thin adapter over the socket; semantic tools first (read, put, edit, watch, push), raw keys and mouse as the fallback; the screen as an image
  • Command policy: data-only by default for pushed UIs; commands from an allowlist; allow/ask/deny
  • The test: rebuild the ownpurse walkthrough on fictty

3 · Records

0 of 5 done
  • Collections keyed by id with an order; lists and tables bind to them (selection already follows a row’s key, so an insert or a removal doesn’t move it)
  • Writes by JSON Pointer path, with a revision per record, so two writers on different rows don’t collide
  • Store actions that address a record: remove with where is done; put by id next
  • More accept kinds where a form needs them: a date, one of a list, required
  • JSON Patch (RFC 6902) as the patch dialect for values

4 · Layout and the kit

4 of 11 done

Layout itself is step 3 of phase 1 now, and motion is phase 3. What’s left here is the kit.

  • Popups and dialogs (a stack with a floating, modal child), toasts
  • Scroll bars on lists, tables and trees; readonly editors for long text and logs
  • Markdown rendered (not only styled in an editor), code with syntax colour, a diff view
  • An embedded terminal for live command output, drawn in the window
  • A copy action onto the system clipboard (OSC 52), and $self, so a screen can hand out commands that reach it from any terminal
  • Editors: dragging to select, copy and paste with the system clipboard
  • Editors: search
  • Project components: JSON with named parameters, loaded from the project, {"use": "kpi", …}
  • Review the drawing-only components (gauge, big, bars, sparkline, chart, map) as they move into the window (phase 1): keep what’s worth drawing, move the rest to recipes
  • A catalog: what this screen can render (alphabet, project components, registered widgets)
  • Widget registry: an element registered by an embedding app (the escape hatch); waits until Thought Control finds something the kit can’t do

5 · Design system

0 of 8 done

The identity is the glass direction: every stroke a pane of tinted glass, overlapping like the panes and layers of a terminal UI, generated on the terminal’s cell grid from a seed. Explorations are in design/identity/ (open explorations.html); the light version is the reference, the dark version isn’t there yet. The showcase’s glass, paper and phosphor themes are the first in-terminal drafts.

  • Push the glass direction further: the mark, the wordmark’s legibility at full scatter, motion
  • A dark version that works as well as the light one (screen blending on night, edge light)
  • The wordmark generator as code: one seeded generator that emits SVG and PNG, and the chosen seed
  • Favicon and small sizes; the social card
  • Brand tokens: grounds, tints, neutrals, semantic colours, type for docs and site
  • fictty’s default theme: the brand’s palette in the theme format, so the brand and the product’s default look are one thing
  • Where themes live: the person’s, the project’s, or both merged
  • Vocabulary: names for theme, throw/shape (push/patch) and the escape hatch, if the glass direction wants different words than the clay ones

6 · History

As proposed in design/time-travel.md: record inputs, snapshot sparsely, then history, state_at, screen_at, diff, seek, fork, replay, marks, export and import; if_seq on every write. First release: reproducible agent sessions. Tours come after. The store’s revisions and the $log are the first pieces of it.

7 · Standards

0 of 2 done
  • json-render specs as an input format, mapped onto our nodes (agents already write them)
  • A2UI input adapter onto assembly, once the spec reaches 1.0

8 · Apps and release

1 of 5 done
  • Put the showcase beside a browser artifact for the same task, in front of a few people who supervise agents: do they want this in the terminal?
  • Thought Control builds a screen on fictty (under way: nine views on App and Host)
  • ownpurse’s walkthrough runs on fictty
  • fictty as a library crate an app embeds, not only a binary
  • Publish the crate