Log
This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.
[2026-07-16] decision | Architecture locked after research + grilling session
Researched four paths (MS-DOS base, Windows debloat wizard, Ubuntu/Arch remix, from-scratch) and grilled every branch. Locked: minimal Ubuntu LTS base, LXQt on X11 for v1 (labwc/Wayland + custom shell as v2 path), Flatpak/no-snap, ~10-app curated preinstall, ISO-releases-only updates, scripted debootstrap + live-build with local-only runs (no CI), Calamares, visible branding + custom Qt Welcome app, friend-install bar as the v1 finish line. Full record in wiki/decisions.md.
[2026-07-16] maintenance | Corpus bootstrapped
Created the corpus skeleton (CLAUDE.md, index, routing, lint, wiki spine) and seeded the wiki from the session's findings. Repo was empty before this.
[2026-07-16] decision | Build-tech grilling: pipeline, language, versions, theming, host
Second grilling session resolved every technical unknown: hand-rolled
4-step pipeline (debootstrap/chroot/mksquashfs/xorriso) with AnduinOS as
reference; build.c on tsoding's nob.h driving versioned .sh chroot
steps (hybrid shape); Ubuntu 26.04 LTS (LXQt 2.3/Qt6/Kvantum); SDDM +
PipeWire + NetworkManager; theming = forked Fluent skeleton + ImbatranimOS
identity layer (from-scratch identity considered, deferred — same shape as
the labwc deferral); Welcome app in QML; KDE Discover Flatpak-only;
privileged Docker on WSL2 as build host with Hyper-V VM fallback.
Details in wiki/decisions.md; resolved items cleared
from wiki/open-questions.md.
[2026-07-16] decision | Product/UX grilling: layout, identity, boot, updates, distribution
Third grilling closed every documentation gap: Win7-classic layout in modern flat (not Aero), desktop icons + Win-key + Windows shortcuts, 2GB-with-zram floor (4GB rec), hybrid UEFI+BIOS ISO, Secure Boot via Ubuntu shim, dual-boot supported, notify+one-click updates, English-only v1, VLC, B&W retro-simple identity with parameterized accents (mockup pick inside brief 03), semantic versioning, build-from-source distribution (clone + build, ISO in dist/), Welcome app = tour + status check. Full record in wiki/decisions.md.
[2026-07-16] todo | Briefs 01-07 filed — the complete v1 path
Filed seven briefs decomposing v1: 01 build-scaffold, 02 desktop-experience, 03 identity-theming, 04 app-layer, 05 installer, 06 welcome-app, 07 v1-release. Dependency order and one-liners in wiki/status.md. scaffold-iso-build todo marked promoted into brief 01.
[2026-07-16] done | Brief 01 (partial) — pipeline proven, then superseded mid-flight
Before the pivot landed: the gate smoke test PASSED (debootstrap + chroot
- mksquashfs inside privileged Docker on WSL2 — durable finding, WSL2 is a
viable root-build host), Ubuntu 26.04 codename verified as
resolute, nob.h v3.9.0 vendored, build.c compiled clean (-Wall -Wextra), the signed shim chain extracted (26.04 quirk: MokManager ships as plain mmx64.efi), tool image built, full ISO build started and was interrupted by the pivot. Code deleted uncommitted by explicit user choice — this entry is the record.
[2026-07-16] decision | THE PIVOT — from installable ISO to web-OS-in-a-container
Fourth grilling. ImbatranimOS is now a real Alpine-based Docker container
whose entire GUI is a React web desktop ("B: real OS, browser = screen" —
real PTY terminal, real FS, real processes). Locked: Docker runtime;
NestJS backend (fork reuse over Go's smaller image); fork of
<owner>/minimal-web-desktop as the frontend/backend base; internet-
exposable with proper auth day 1 (single user, sessions + password, TOTP
option); shell as imbatranim with NO sudo; volume-backed /home; v1 apps
= terminal/files/system-monitor + notes/todo/bookmarks/notepad; identity
carryover (Win7-classic, B&W + accent); friend-run bar replaces
friend-install bar. ISO-era decisions superseded — compressed record kept
in wiki/decisions.md.
[2026-07-16] maintenance | Corpus rewritten for the web-OS era
Wiki spine rewritten (overview, architecture, decisions, status, open-questions, CLAUDE.md invariants, routing). Briefs 01–07 moved to superseded/ with top notes; briefs 08–15 filed covering the whole v1 path: fork-bootstrap → container-image → auth → {terminal, files, monitor} → reskin → v1-release. ISO-era files deleted from the working tree.
[2026-07-16] decision | Brief 08 grilled — fork recon + layout/container/metadata calls
Inspected minimal-web-desktop (main): layout apps/frontend + apps/backend
- infrastructure/, 2 containers (:5173/:3001), bind-mount ../data, and it ALREADY ships xterm + a service-launcher, plus its own corpus/CLAUDE.md/ .agents/UBIQUITOUS_LANGUAGE.md. Grilling resolved: (1) keep fork's apps/ layout, update our architecture.md to match; (2) container = ONE multi-stage Dockerfile, dev target (Nest+Vite HMR, 2 ports) / prod target (Nest serves statics, 1 port, slim) — amends decision 09's one-port rule to mean prod-only; (3) import code only, drop the fork's corpus/CLAUDE/ .agents/UBIQUITOUS_LANGUAGE (ours is source of truth), mine for facts first; (4) xterm terminal already exists — brief 08 investigates the backend PTY reality and adjusts brief 11's scope, does not rebuild blind. Briefs 08 + 09 rewritten with these; architecture.md + decisions.md updated.
[2026-07-16] done | Brief 08 — fork imported, pruned, dev loop verified
Imported apps/ + infrastructure/ from minimal-web-desktop (upstream 1a72385, clean copy). Pruned docker-desktop + service-launcher (FE) and the docker + services modules (BE) + orphaned dockerode. Both apps typecheck + build clean; node-pty native loads; dev loop smoke-tested (backend /health + /api/todos, DB inits at configured path, Vite HMR serves). Load-bearing findings folded into wiki: fork's "terminal" is an HTTP command-runner not a live PTY (brief 11 stays real work, adjusted); fork has ZERO auth (brief 10 greenfield); frontend deps split across apps/package.json + apps/frontend/package.json; file-manager/notes overlap brief 12. Committed to main in 3 commits (pivot corpus, raw import, prune).
[2026-07-16] done | Brief 09 — dual-mode container image (desktop+API on one port)
One multi-stage infrastructure/Dockerfile: deps → builder → proddeps → prod
- dev targets. Backend gained a conditional ServeStaticModule (prod serves the built desktop on the API port, excludes /api + /health, SPA fallback); prod frontend built same-origin (VITE_API_URL=/api). imbatranim user uid 1000 (default node user dropped), volume /home/imbatranim, idempotent entrypoint. Verified: one-port desktop+API, unprivileged user, todo survives container recreate on the volume, better-sqlite3 + node-pty load in-image. Compose: prod service + dev profile (bind-mount + HMR, 2 ports).
REVISIT FLAGGED: prod image is 364 MB (cut from 657 MB by dropping the frontend's hoisted node_modules from runtime + stripping native build intermediates), over the ~150 MB target and the 200 MB tripwire. Backend- language decision (NestJS vs Go) is up for a user revisit; recorded in wiki/open-questions.md + status.md, not silently resolved.
[2026-07-16] decision | Image-size revisit resolved — keep NestJS, retire 150MB target
User revisited the 364 MB prod image (brief 09 tripwire). Decision: keep NestJS (fork reuse >> image bytes for a run-once container), retire the ~150 MB target / 200 MB tripwire as unrealistic for Node+Nest, set a new bar of ≤~400 MB image with cold-start + idle RAM as the real "lightweight" measure (recorded in brief 15). Amended in wiki/decisions.md.
[2026-07-16] todo | Brief 16 filed — Turborepo integration
Filed briefs/done/16-turborepo.md: convert the repo to a real npm workspace (root package.json + single lockfile; today there are THREE independent npm ci roots — apps/, apps/backend, apps/frontend — and apps/package.json looks vestigial from the fork), add turbo.json pipeline (build/lint/test/dev), adapt infrastructure/Dockerfile install+build layers. Layout stays locked per decisions.md.
[2026-07-16] decision | Brief 16 grilled — turbo design locked
Grilling closed four branches: npm workspaces (not pnpm/bun); prod image
stays backend-only via npm ci --omit=dev --workspace=backend (not turbo
prune, not root ci); turbo dev replaces the dev CMD &-shell; local
cache only (no remote cache/CI — revisit with brief 15). Code check found
apps/package.json is PARTIALLY load-bearing: frontend resolves tailwindcss
- @tailwindcss/vite from apps/node_modules (phantom deps) — brief now rehomes those two and drops the three unused. Brief 16 rewritten as the complete spec; build deferred.
[2026-07-16] todo | Brief 17 filed — backend / core / add-ons restructure
Filed briefs/done/17-os-restructure.md: user-requested split into backend, core (desktop + main OS functions), and add-ons with one directory per app. Flags an explicit revisit of the locked "keep the fork's repo layout" decision (amend decisions.md when it lands) and the interplay with brief 16's workspace/Dockerfile paths (sequencing to be grilled). Ungrilled — open questions recorded in the brief.
[2026-07-16] decision | Brief 17 grilled — restructure design locked
Grilling closed the open branches: roots at apps/{backend,core,add-ons/
[2026-07-17] done | Brief 10 built — auth lands, the OS has a lock
Auth is live end-to-end: single-user credential store in SQLite (argon2id),
httpOnly imb_session cookies (SHA-256 stored server-side), first-run
password wizard (no default password ever), optional TOTP (QR enroll in
Settings), per-IP login throttle with backoff, and a global NestJS guard —
every REST route 401s without a session except @Public() auth routes. WS
upgrades get SessionService.validateFromRequest via the ws-auth barrel
(consumed by brief 11). Frontend: AuthGate gates the whole desktop behind
LockScreen/FirstRunWizard. HTTPS open question RESOLVED: reverse-proxy TLS
(Caddy), recipe in infrastructure/README.md; cookies get Secure via
COOKIE_SECURE/TRUST_PROXY env switches. 32 unit + 11 e2e tests green.
Caveat: argon2-on-Alpine docker build verified by analogy, re-verified in
brief 15's security pass.
[2026-07-17] done | Brief 11 built — a real terminal, the old repl absorbed
Streaming WS PTY bridge at /api/pty: node-pty login shell per socket,
cookie-session auth at upgrade (unauthenticated → 401), resize→SIGWINCH,
WS backpressure so output floods can't kill the tab, revoked sessions kill
their PTYs within 30s. Frontend Terminal (xterm + fit) replaces the
repl-interpreter UI; registry entry is now terminal, multi-instance (two
windows = two shells, verified by PID in e2e). The fork's config-based
repl module (HTTP command-runner) is deleted — absorbed by the real
terminal, resolving that open question. 17 unit + 3 e2e tests.
[2026-07-17] done | Brief 12 built — the real filesystem in a window
files module extended with a home root over the actual home dir;
full REST surface (list/stat/content/download/upload/mkdir/move/copy/
delete) behind the global auth guard. Path jail is defence-in-depth
(percent-decode loop, NUL reject, absolute re-root strip, lexical
containment, realpath symlink verification incl. not-yet-existing
targets) — refusals proven by tests (../../etc/passwd, %2e%2e,
%252e, symlink-out). Binary upload/download round-trips byte-equal.
file-manager UI: tree + list panes, context menu, drag-drop upload,
notes→notepad open intent (also killed the old cross-module store import).
Resolves the files-vs-file-manager/notes reconciliation question: extend,
no duplication; notes module untouched and now rides the hardened service.
[2026-07-17] done | Brief 13 built — live vitals, and the app-install stance
System Monitor lands: real CPU% (delta cache), memory, home-volume disk,
process table (pid/uid/cpu/mem via ps), About panel (hostname, kernel,
uptime, IMAGE_VERSION), and a kill endpoint hard-scoped to the server
process's own uid (/proc/
[2026-07-17] done | Brief 14 built — ImbatranimOS looks like itself
The Win7-classic B&W identity is on screen: bottom taskbar with running- window buttons and a live tray clock, start button wearing a new geometric hourglass mark ("îmbătrânim" = we age), compact start menu with the app list + Lock/Log off, flat near-black/off-white window chrome with an accent focus tick, themed lock screen/first-run wizard, token-driven xterm theme. Dark is the shipped default; Space Grotesk + Inter kept. One parameterized accent var with 4 Settings presets; crimson #c0263a ships as the PROVISIONAL default (recommended: distinctive vs OS-blue cliché, best white-on-accent contrast ~6.5:1) — the accent open question stays open until the user picks from the live desktop. No fork branding remains. Browser-verified; builds clean.
[2026-07-17] progress | Brief 15 engineering slice — hardened, measured, stamped
Security pass: route-by-route enumeration + live container probes found NO auth bypasses (unknown /api/* is 404 JSON not SPA, HEAD hits the guard, PTY upgrade fails closed on odd paths); FS jail re-reviewed adversarially — solid, +4 traversal unit tests; multipart filename traversal verified harmless (busboy basenames + jail backstop). Fixes: over-cap upload now a clean 413; leftover repl_configs table dropped; dependency-free security headers (nosniff, frame DENY, no-referrer, CSP tuned to the real build; HSTS left to Caddy). Backend tests 73 unit + 29 e2e. README rewritten as the product page (honest no-reset-flow FAQ); everything stamped 1.0.0 (package.jsons, compose imbatranimos:1.0, OCI labels, IMAGE_VERSION). REAL prod container verified: argon2-on-Alpine WORKS (question closed), full curl auth flow correct, headers live. Numbers: image 382 MB (≤400 ✓), cold start 1.42 s, idle RAM 41.3 MiB — "lightweight" receipt recorded. npm audit triage (nothing applied, lockfiles untouched): bump @nestjs/platform-express (patched multer DoS) and axios (frontend, runtime); vite/build-chain items dev-only. Brief 15 stays in todo/ — remaining acceptance is human-gated: friend-run QA, VPS+HTTPS deploy, accent final pick, dep bumps, git tag v1.0.
2026-07-17 — Brief 16 (turborepo) landed
npm workspaces + turbo 2.10.5, commit 15ae437. One root lockfile
replaces the three per-dir installs; apps/package.json deleted —
tailwindcss + @tailwindcss/vite rehomed to frontend devDeps, the three
unused deps (react-router, react-hook-form, xterm) dropped as decided.
Root npm run build/lint/test/format:check/dev via turbo; FULL TURBO
cache hit verified. Dockerfile: one npm ci at /app, npx turbo build,
proddeps npm ci --omit=dev --workspace=backend; prod image 385 MB
(zero frontend deps confirmed), health 200 ~1.1 s; compose dev = Nest
watch + Vite HMR under npx turbo dev. Two decisions made while
landing: (1) turbo envMode: loose — strict mode filtered runtime env
(DB_PATH etc.) from tasks and crashed Nest in the dev container;
(2) prettier pinned exactly 3.8.3 in both apps — the regenerated
lockfile pulled 3.9.5 which reformats ~30 files. Found + fixed in
passing: dev image never copied entrypoint.sh (pre-existing; container
could not start). Found, NOT fixed (src off-limits): frontend eslint
errors + backend never prettier-clean → todos/lint-format-debt.md.
Fresh npm audit: 0 vulnerabilities at the new lockfile — the brief-15
audit-triage item is effectively closed by the dep refresh.
2026-07-17 — Brief 17 (restructure) landed
apps/{backend, core, add-ons/}, commit 63876e9. apps/frontend became
apps/core (shell + auth + settings + Vite host, published as
@imbatranim/core via a deliberate public-surface barrel); SEVEN windowed
apps extracted to workspace packages under apps/add-ons/ (the grilled six
plus system-monitor, which landed via brief 13 after the spec was
written — the roster decision covers it). The dependency direction is
inverted for real: add-ons export manifests (AppConfig + optional
commandSources), core/src/manifest.ts is the single composition root
that may import @imbatranim/ (eslint no-restricted-imports enforced in
BOTH directions, proven by deliberate violations), and the old
registry.tsx is a re-export shim so shell consumers didn't churn.
bookmarks/recent-files palette sources moved into their add-ons;
recent-files now delivers the opened path as an intent via openApp (the
shell-owned version opened an empty window). Verified end-to-end in a
real browser (agent-driven): wizard → login → all 8 apps open, live PTY,
add-on bookmark results in the palette; built CSS byte-identical.
Two significant finds: (1) REAL BUG, pre-existing — the taskbar Tray
typed /api/system/stats as {cpu: number, ramUsedGb…} but the API returns
{cpu:{percent,cores}, memory:{…}}; the desktop white-screened after
login on every deploy since the brief 13/14 seam. curl-based verify
(brief 15) could never see it — a browser-level check now exists as the
bar. Fixed in core. (2) The "backend was never prettier-clean" debt got
paid: formatting sweep 934619f (89 files, verified neutral: tests +
byte-identical CSS), after root-pinning prettier 3.8.3 so backend's
eslint-plugin-prettier stops resolving whatever npm hoists. Root lint is
green for core + all 7 add-ons; backend#lint stays red on pre-existing
unsafe-any in raw sqlite code (out of scope for 17; still in
todos/lint-format-debt.md). Also fixed while acceptance demanded green
lint on the moved surface: 6 pre-existing react-hooks setState-in-effect
errors (render-time adjustment pattern) and dead ReplInterpreter.tsx
deleted.
[2026-07-17] todo | Brief 18 filed — Alpine kiosk ISO, researched
Filed briefs/todo/18-alpine-kiosk-iso.md: the post-v1 bare-metal variant — a bootable Alpine ISO whose whole interface is one fullscreen chromium (cage Wayland kiosk) rendering the web UI served by a local backend. Research done inline and folded into the brief: cage 0.2.0 + chromium 142 (263 MiB installed) are in Alpine 3.22 community; greetd/agetty autologin recipes exist and are proven (~235 MB X11 signage image as prior art); cog/wpewebkit not packaged, ruled out. Build = aports mkimage.sh custom profile (mkimg.imbatranim.sh + genapkovl-imbatranim.sh) driven by build.c + vendored nob.h in Docker, per the user's spec — same pipeline shape as the superseded ISO era. Diskless run-from-RAM model; est. 1.5–2 GB RAM floor, to be measured. Docker stays the primary dev/test loop; doesn't flip the "bootable is not v1" decision.
2026-07-17 — Office suite grilled: todo promoted to briefs 19 + 20
Grilled todos/office-suite-addon.md into two post-v1 briefs. Locked:
client-side JS engines only (no OnlyOffice/Collabora server, no
LibreOffice in the image — slim-container identity holds). Four
packages, Google-flavored names: PDF Viewer (react-pdf, view-only),
Slides (best-effort pptx renderer, view-only, spike-gated), Sheets
(Univer Apache-2.0 + SheetJS CE xlsx bridge, editing, spike-gated),
Docs (SuperDoc, real docx round-trip editing). SuperDoc is AGPL-3.0 —
user approved relicensing the repo AGPL-3.0-only (source stays public
on GitHub, no sale plans); the relicense lands in brief 20. UX locked:
explicit Save only (Ctrl+S, overwrite in place, dirty •, no autosave
despite the notepad precedent), new documents via file-manager
right-click → New → Spreadsheet/Document (editors stay dialog-free).
Brief 19 = viewers + file-manager ext→app map; brief 20 = editors +
LICENSE. Both queued after brief 15 (v1), non-gating. Brief number 18
was already taken by the kiosk ISO.
2026-07-17 — Snipping Tool + preview pane grilled: briefs 21 + 22
Grilled todos/screenshot-tool-addon.md and todos/file-preview-pane.md. Brief 21 (Snipping Tool, @imbatranim/snipping-tool — the Win7-era name): capture = DOM rasterization, spike-gated (getDisplayMedia rejected — permission dialog breaks the OS illusion; server-side rendering rejected — slim-image invariant). One flow: dim + crosshair overlay via body portal (covers taskbar), drag region / Enter = full desktop; annotation kit arrow/rect/text/pixelate/freehand + undo + color; exits = Save to ~/Pictures/Screenshots (primary) + Copy (clipboard, secure-context best-effort) + Download. Per-window capture and keybinds deferred. Brief 22 (preview pane): extends the existing file-manager (no new package) with an Explorer-style toggleable pane — text/images/audio/video via native rendering, zero new deps, metadata card fallback; PDF/markdown previews deferred (removes any dep on brief 19). Both post-v1, non-gating, independent.
2026-07-17 — Brief 18 done: Alpine kiosk ISO boots into the browser
Built the post-v1 bare-metal variant under iso/ (own lane, no
apps/** or infrastructure/** touched). ./build iso = a C driver on
vendored nob.h v3.10.0 that exports a clean git archive HEAD snapshot,
builds an Alpine 3.22 Docker toolbox, and runs the official aports
mkimage.sh unprivileged (fakeroot) — the WSL2 smoke test passed on
the first try (no privileged fallback needed; that durable ISO-era
finding still holds, now for mkimage too).
Decisions (open questions resolved, rationale in iso/README.md):
- App delivery = custom signed
.apk(not tarball-in-overlay). The payload — backend dist + core statics + prod node_modules with better-sqlite3/node-pty/argon2 compiled for Alpine's musl+nodejs ABI — ships asimbatranim-os, served to mkimage from a local signed repo. Itsdepends=drags in the whole kiosk stack so the apkovl world is two lines (alpine-base + imbatranim-os) and the overlay stays tiny (~950 B), which matters for diskless RAM. Feasible, so the fallback wasn't needed. - Autologin = greetd (not agetty+profile):
initial_sessionexecs the kiosk launcher asimbatranimwith no greeter and no getty on any VT → satisfies "no console / no shell flash" cleanly. seatd for seat mgmt, XDG_RUNTIME_DIR set by the launcher (no elogind, lighter). - Kernel lts, stateless tmpfs (fresh setup each boot — invariant- clean; lbu persistence is the later path), browser knob deferred.
Verification (QEMU/VirtualBox binaries absent, but /dev/kvm present, so
booted qemu inside Docker with --device /dev/kvm): the ISO boots via
BIOS straight into fullscreen chromium showing the ImbatranimOS first-run
login — hourglass logo, "Set up this computer" password form, crimson
theme, no console, no window chrome, no shell. Screenshot-verified. Two
bugs found+fixed this way: (1) the launcher couldn't mkdir /run/user/<uid>
(no elogind) → fall back to a /tmp runtime dir; (2) when the session
failed greetd showed a fallback login: prompt → launcher now never exits
(loops forever) so the browser always owns the screen. Measured: ISO
580 MiB, RAM floor 2 GB (1 GB reaches OpenRC but the run-from-RAM
install exhausts tmpfs), boot-to-login < ~2 min under emulation.
Human-gated remainder (couldn't do headless): UEFI live boot (the ISO
has the UEFI El Torito image + bootx64.efi structurally, and BIOS boot
works), VirtualBox/Hyper-V, real/old hardware, and the interactive
type-password → terminal/files walkthrough. Docker dev loop untouched;
root README gained one iso/ pointer (docker stays the headline).
2026-07-17 — Briefs 22 + 21 done: preview pane and Snipping Tool
Wave 1 of the post-v1 backlog run (orchestrated: plan-split-dispatch in
waves, one commit per brief). Brief 22 (2b014b2): Explorer-style
toggleable preview pane inside file-manager — text/images/AV native,
metadata card for everything else (never an error), 1 MB text cap,
debounced selection with stale-fetch protection, drag-resizable width +
toggle persisted in localStorage, auto-collapse below 640 px, zero new
deps. Found + fixed a pre-existing FileList bug: row clicks bubbled to
the background clear-selection handler, so mouse click-to-select had
never worked. Brief 21 (acfe862): Snipping Tool on html-to-image
(spike passed — xterm v6 runs the DOM renderer here, so terminal
content rasterizes as real DOM), dim+crosshair portal overlay, 5
annotation tools + undo, Save/Copy/Download exits; rasterizer a lazy
chunk; tray icon + PrintScreen deliberately skipped (scope latitude,
rationale in the brief outcome).
2026-07-17 — Brief 19 done: PDF Viewer + Slides, ext→app open map
Commit 685012c. Spike PASSED on a real 11-slide deck → Slides ships
(pptx-preview; synthetic pptxgenjs decks render empty, so a "nothing
rendered → Download" fallback covers unparseables). Deviation: PDF
engine is pdfjs-dist direct instead of react-pdf (cleaner lazy
loading). The shared plumbing both office briefs need landed here:
file-manager lib/openWith.ts extension→app map driving double-click,
Enter, and context menu. Durable pattern for all document apps: latch
the open-intent in a ref-guarded effect (notepad's render-selector
consume is StrictMode-unsafe — captured as
todos/notepad-intent-strictmode.md), fetch bytes via core's authed
client, keep engines behind dynamic import (verified separate chunks).
2026-07-17 — Brief 20 done: Sheets + Docs, AGPL relicense; sheets engine REVISED
Commits b9fe0fa (relicense) + 3531b41 (editors). The SheetJS CE ↔
Univer spike FAILED the locked formatting bar: SheetJS CE's writer
strips fonts/fills/borders on save (Pro-only) — confirmed with a pure
read→write→read, independent of the bridge. User re-decided same day:
ExcelJS (MIT) is the xlsx bridge (decisions.md revised); its spike
passed the full bar (values, formulas, number formats, bold, colors,
fills, multi-sheet; verified via independent openpyxl read). Docs hit a
second landmine: SuperDoc 1.45 export silently returns the ORIGINAL
bytes when a docx lacks styles.xml / document.xml.rels / custom.xml
(unguarded convertedXml[...].elements[0] reads, throw swallowed) —
root-caused and fixed with normalizeDocx() injecting minimal parts on
open; round-trip then verified on disk. Repo is now AGPL-3.0-only
(SuperDoc requirement, approved at grilling). Core windowStore gained
generic updateTitle + close-guard hooks (the brief's "one manifest
line" core assumption was wrong; controller-authorized). Explicit-Save
UX per spec: Ctrl+S, dirty •, close warning, New → Spreadsheet/Document
from embedded blank templates.
2026-07-17 — Review pass over the backlog run: 6 findings fixed
Three scoped sonnet finders (integration/wiring, new-module logic,
security/invariants) swept the cumulative diff; integration finder came
back clean. Six confirmed findings fixed in b46f64e: (1) xlsx bridge
read value.sharedFormula — the master ADDRESS, not a formula — for
fill-down followers, corrupting every shared formula on save; now reads
the translated cell.formula (round-trip-proven). (2+3) both editors
cleared the dirty flag after an in-flight save even when edits arrived
during the upload (close-guard then silent → data loss); fixed with an
edit-counter snapshot. (4) Slides stale renders could interleave two
decks in the shared stage node; renders now own detached targets
committed only if current. (5) screenshot filenames collided within the
same second; ms suffix. (6) ISO post-install ran passwd -u (unlock)
under a "lock the password" comment — the belt-and-braces * line made
the end state safe incidentally; now passwd -l. Reuse debt (4×
duplicated fileBytes/openedFileStore helpers, hand-rolled download
URLs) deliberately NOT refactored at the tail of the run — captured as
todos/office-addon-shared-helpers.md for a core-contract brief.
2026-07-17 — Full review pass + brief 23 (shared-addon-kit)
Ran a 3-reviewer + verifier sweep (security / performance / code-smell,
each opus; opus verifier to drop false positives) over the whole
codebase. 30 findings survived verification (no outright false positives;
one dedup, a few line corrections). Applied + committed the safe
subset: the genuinely dangerous security items (session cookie
auto-Secure from req protocol, TOTP enroll step-up password, WS terminal
Origin check, PTY concurrency cap + geometry clamp, throttle global
backstop, /files/content size cap, Content-Disposition sanitize) plus
perf/code-quality wins (debounced layout persist, tab-gated system-monitor
poll + row cap, streamed uploads, bookmarks index/typing, query-DTO
validation, dead-code + magic-number cleanup, PTY types). Backend 80 unit
- 29 e2e green; monorepo typecheck/format clean; backend#lint debt
unchanged (pre-existing, lint-format-debt).
Deferred the larger refactors + product-decision security items as todos.
Two commits on
main.
Then built brief 23 via plan-split-dispatch (1 senior core surface +
8 consumer chunks). Collapsed the duplicated add-on spine into
@imbatranim/core: fetchFileBytes/uploadFileBytes/UploadTooLargeError/
downloadUrl/fileName, createOpenedFileStore,
useOpenIntent/useSaveHotkey/useUnsavedGuard, ConfirmDialog/
useConfirm. All four document add-ons deleted their local
api/fileBytes.ts + store/openedFileStore.ts (8 files) and adopted the
hooks; download buttons route through core downloadUrl;
bookmarks/sticky-notes/notepad dropped native confirm() for the themed
dialog (file-manager kept its already-correct themed delete Dialog — a
deliberate scope trim). Net −333 LOC. Gates: turbo typecheck 13/13,
format 14/14, lint 13/13, build ✓. A 2-finder review (opus integration +
sonnet core-logic) confirmed the single shared opened-file store is a safe
singleton (uuid windowIds, multiInstance) and hook behavior parity is
exact; its findings (useConfirm re-entrancy + unmount promise-hang, a
param-shadow, a sheets fallback drift workbook.xlsx) were fixed.
Promoted todos office-addon-shared-helpers + destructive-action-confirm-ux
removed on completion; discovered nits captured in
add-on-cleanup-nits (dead zustand deps, notepad native prompt() — both
since resolved in brief 30). Human-gated remainder: the in-browser
walkthrough per the brief's verify bar.
2026-07-17 — Full-auto backlog run: briefs 24 + 25 (review-pass todos)
Master-orchestrator run through the deferred review todos (standing authorization). Briefs 24 and 25 built in parallel (disjoint file sets), verified together, committed separately.
- Brief 24 (window-render-perf, PERF-1): one senior agent, indivisible
core change.
WindowContainersubscribes only{id,appId,zIndex, isVisible}viauseShallow;WindowisReact.memoreading its own instance vias.windows.find;ResizeHandlereadsgetState()in its handler. Untouched windows keep object identity + the container's projected list is drag-invariant, so only the moving window's chrome re-renders and no app subtree reconciles. Per-frame store updates kept (snapping byte-identical). No transform-drag (out of scope). - Brief 25 (notes/FilesService dedup, CS-7): backend
notescollapsed to/notes/recent; Notepad repointed to/files?root=notes; removed the 8 delegation methods, the FilesService dep, and the file-ops/directory-ops/ path-query DTOs.createFileis now an upsert (no create-only/filesendpoint) — accepted for single-user Notepad.FilesService.ROOTS.noteskept so File Manager + Notepad share one validated surface.
Gates (both): turbo typecheck 13/13, build ✓, format 14/14, lint 13/13, backend 80 unit + 29 e2e green. Human-gated remainders: in-browser drag feel (24) and Notepad walkthrough (25). Remaining backlog: CS-3 (26), PERF-6 (27), SEC-2 (28), lint-debt (29), add-on polish (30); SEC-9 + SEC-10 deferred (browser/ISO-gated).
2026-07-17 — Full-auto backlog: briefs 26 + 27
- Brief 26 (filemanager-split, CS-3): one senior agent split the 752-line FileManager into a 531-line orchestrator + 6 focused units (useFileSelection / useFileClipboard / useDeleteFlow / usePaneResize / useListKeyboardNav + lib/buildMenuItems.tsx). The two delete states became one discriminated union; the CS-4 partial-failure banner is preserved. "Move, don't rewrite" — no shift-range invented. A sonnet behavior-preservation review traced every unit line-by-line: no drift.
- Brief 27 (docx-offthread-unzip, PERF-6 docx slice): docxNormalize
swapped fflate sync
unzipSync/zipSyncfor asyncunzip/zip(off-thread), identical output. The xlsx/ExcelJS worker slice stays open in office-parsing-blocks-ui-thread.md (needs a real worker + browser verification — not headless-verifiable, so out of this pass).
Gates (both): turbo typecheck 13/13, build ✓, format 14/14, lint 13/13. Committed separately. Remaining: SEC-2 (28), lint-debt (29), add-on polish (30); SEC-9 + SEC-10 stay deferred (browser/ISO-gated).
2026-07-17 — Full-auto backlog: briefs 28 + 29
Parallel wave (auth-feature vs backend-lint lanes), combined-verified.
- Brief 28 (first-run-setup-token, SEC-2): opt-in
SETUP_TOKEN, default-OFF (byte-identical to before when unset). Set →/auth/statusadvertisessetupTokenRequiredand/auth/setupdemands a matching token (constant-time:timingSafeEqualover SHA-256 of both sides) before any account is created. Wizard shows the field via the existing status path. New auth-setup-token e2e; 80 unit + 34 e2e green. Localhost-bind alternative deliberately not taken (would break remote first-run). - Brief 29 (backend-lint-typing): paid the backend
no-unsafe-*debt — typed the raw better-sqlite3 sites + pty/main/testany.backend#lintand rootnpm run lintare now green (0/0) — the last lint red is gone. Types only, zero behavior change. Two auth-lane leftovers (auth.guard + spec) that fell between the 28/29 lanes were fixed by the orchestrator at the combined verify.
Gates: turbo typecheck 13/13, build ✓, format 14/14, lint 13/13, backend 80 unit + 34 e2e. Remaining: B30 add-on polish; SEC-9 + SEC-10 deferred (browser/ISO-gated).
2026-07-17 — Full-auto backlog: brief 30 (add-on polish) + run close
- Brief 30 (addon-polish): (1) Notepad's open-intent now drains in a
ref-guarded effect (StrictMode-safe) instead of a render selector; (2) new
PromptDialog/usePromptin core (sibling of ConfirmDialog, same re-entrancy/unmount safety) replaces notepad's nativewindow.prompt; (3) dropped the deadzustanddependency from docs/sheets/slides/pdf-viewer and regenerated the root lockfile. Gates: typecheck 13/13, build ✓, format 14/14, lint 13/13.
Full-auto review-cleanup wave complete (briefs 23–30). Realized todos
removed on completion; the promoted-but-historical captures kept. Still
open: the xlsx/ExcelJS Web-Worker slice of PERF-6
(office-parsing-blocks-ui-thread.md), and the two browser/ISO-gated security
items — SEC-9 CSP ws: scoping (csp-connect-src-ws-wildcard.md, risks the
terminal on some browsers) and SEC-10 kiosk --no-sandbox
(kiosk-no-sandbox.md, needs Alpine userns + a QEMU boot test). Every shipped
brief carries a human-gated in-browser verification remainder.
2026-07-17 — Daily-driver expansion: research capture + brief 31
- Test run: all gates green on brief 30 (
format:check9/9,typecheck13/13 FULL TURBO,lint0/0,test80/80, clean--forcebuild 9.1 s). Bundle finding: eager login chunk = 1.30 MB raw / 397 KB gzip in ONE chunk; root cause = zeroReact.lazy(every add-oncomponentis a static import inmanifest.ts); office engines split, app shells don't. - Research capture: "what to build next for a daily driver (normal users + web/low-level programmers, no gaming)" pass captured 14 todos — dev apps (Monaco code editor, git GUI, REST client, markdown preview), normal-user apps (calculator, archive mgr, image viewer, media player, clock, calendar), platform (notification center, global search, addon manager), and the eager-bundle-lazy-load perf/tooling item.
- TanStack question: confirmed Query is already the data layer and well configured (nothing to add); the gap is virtualization.
- Brief 31 (virtualize-long-lists): promoted after grilling — TanStack
Virtual on ProcessTable + FileList, dep centralized in
@imbatranim/corevia auseVirtualListhelper, always-virtualize; keyboard-navscrollToIndexand scroll-stable-across-refetch called out as the integration risks. - eager-bundle-lazy-load: grilled → held as a todo, not promoted. Trigger to promote = when a heavy app (Monaco) lands in the eager bundle; no hard size target then. A draft brief for it was written and removed per this decision; brief number 31 was reassigned to the virtualization work (draft never committed).
2026-07-17 — Full-auto backlog run (PAUSED near quota; see HANDOFF.md)
User: "go full auto with the remaining todos" via the orchestrate skill; scope
"everything actionable" (excl. human-gated SEC-9/SEC-10 + brief 15 remainder).
Ran as a controller + dispatched-subagent loop, one commit per brief. Paused
mid-run for quota; resume point captured in corpus/HANDOFF.md.
Shipped + committed on main (all gates green at each commit):
- Brief 31 (virtualize-long-lists)
e8652b5— TanStack Virtual on ProcessTable + FileList via coreuseVirtualList; coreScrollAreagained aviewportRefso the virtualizer reads the scroll node directly (no reliance on Base UI internal DOM attrs). - Brief 32 (xlsx-offthread-worker, PERF-6 xlsx slice)
e37bdd3— ExcelJS round-trip moved into a lazy module Web Worker;xlsxToUniver/univerToXlsxsignatures unchanged (Sheets.tsx untouched); id-correlated requests, buffer transfer, and an onerror/onmessageerror backstop; exceljs now bundles into the worker chunk, off the main thread. - Brief 33 (eager-bundle-lazy-load)
0341230— the held todo's trigger fired (Monaco is landing this run), so every app component becameReact.lazy+<Suspense>in WindowContainer. Eager index gzip 399.6 KB → 121.5 KB (−69.6%); contract widened to accept lazy components; snipping-toolAPP_NAMEmoved to a sibling module so a static metadata import stopped defeating its split.
Bookkeeping still owed (first resume task): move briefs 31/32/33 to done/ with
outcome notes, add status rows, mark source todos promoted. Remaining waves
(34 notification-center → light apps 35-40 → heavy/backend 41-44 → platform
45-46) are fully specced in HANDOFF.md.
Note: turbo core:build cache key omits add-on src — use
npm run build -- --force when measuring bundle output.
2026-07-18 — Resume full-auto backlog run; 31/32/33 bookkeeping settled
Resumed the paused run (see HANDOFF.md). Cleared the owed first-resume task:
briefs 31/32/33 moved to briefs/done/ with Outcome notes (commits
e8652b5/e37bdd3/0341230), wiki/status.md rows updated (31→done, 32/33
added, summary + daily-driver section refreshed), and source todos marked
promoted (virtualize-long-lists already was; office-parsing-blocks-ui-thread
— both docx+xlsx slices now shipped; eager-bundle-lazy-load — trigger met).
Verified typecheck 13/13 green before recording. Committed as docs(corpus).
Continuing into Wave B tail: brief 34 notification-center.
2026-07-18 — Brief 34 (notification-center) shipped
CORE platform surface (commit 82c635b). Persist-backed notificationStore
(zustand + persist, partialized so live toasts never resurrect on reload;
history bounded 100); public notify(input) => id + useNotificationStore +
types on @imbatranim/core. ToastHost = bottom-right auto-dismiss stack above
the taskbar (errors sticky, pointer-events scoped, cap 5), mounted in App.
NotificationPanel = tray-bell popover with unread badge, history list, mark-all
-read / clear-all / DnD, click-to-open. Level visual is icon + accent/error token
only (no new palette); LevelIcon + levelStyle split to satisfy
react-refresh/static-components. Gates green (typecheck 13/13, lint 14/14,
format, build); eager index gzip 121.5 → 125.1 KB (+3.6 KB shell cost). First
callers will be clock alarms (36) + calendar reminders (40). Next: Wave C.
2026-07-18 — Wave E: platform surfaces (45–46) shipped; full-auto backlog COMPLETE
Two CORE surfaces, built by a 2-agent parallel batch (disjoint file sets, no
conflicts), integrated + gated, commit 3e72333:
- 45 global-search-launcher — jailed + bounded backend FS search
(
GET /api/files/search: filename + opt-in content grep; root viaresolveSafe, walk joins only dirent names, symlinks never followed, caps on results/entries/depth/time →truncated, skips node_modules/.git/dotdirs; content grep size-capped + binary-sniff; 9 tests). Frontend: a "Files" command source, apaletteStore(App.tsx refactored so Mod+K + a new Taskbar Search button share open-state), and a file-manager{navigatePath}intent to reveal a hit's folder. ExtendsCommandSourcesRegistry— no fork. - 46 addon-manager — persisted per-user disabled-set (
imbatranimos:addons)- a single
enabledAppsfilter for the launchers (Start/palette/Desktop), anopenAppguard, and a Settings "Apps" section; runtime (Taskbar running windows, WindowContainer render) stays on the full registry; settings/file-manager/terminal are non-disableable.
- a single
Gates: FE typecheck 23/23 + lint 24/24 + build; BE build + tests 135/135 +
lint. No new dependency. The search endpoint was self-reviewed (read-only, jailed
via the proven resolveSafe, symlink-skip, bounded) rather than given a full
adversarial subagent pass like Wave D's exec/proxy surfaces.
The full-auto daily-driver backlog (briefs 34–46) is now COMPLETE. Across the
run: 1 CORE notification center, 6 light apps, 4 heavy/backend apps (3 backend
modules, adversarially security-reviewed + hardened), 2 CORE platform surfaces —
13 briefs, each committed with green gates, plus a docs(corpus) per wave and
the SSRF decision recorded. Desktop = 23 apps; backend = 135 tests. What remains
before v1.0 is only the human-gated set the run explicitly excluded (SEC-9,
SEC-10, brief 15 remainder) + per-brief human walkthroughs. HANDOFF.md retired.
2026-07-18 — Wave D: heavy/backend apps (briefs 41–44) shipped + security-reviewed
Built by a 4-agent opus batch (each scoped to its own module/package dir),
integrated serially by the controller (app.module.ts for 3 backend modules,
manifest.ts + openWith.ts + file-manager context menu, one npm install adding
monaco). Then — per the user's "all 4 with extra security review" choice — 3
adversarial security-review subagents (git-arg-injection/jail-escape, SSRF,
zip-slip) ran over the backend modules. No exploitable finding in any module.
Four hardening findings were fixed (with tests) before commit. Landed as one Wave
D commit 4be1777.
- 41 code-editor (Monaco) — self-hosted (no CDN;
loader.config({ monaco })- Vite
?workerchunks), fully lazy → eagerindex-*.jsgzip unchanged. Multi-tab, find/replace, real-FS save. Deps monaco-editor + @monaco-editor/react (justified: lazy). Code exts rerouted from notepad. The lonecdn.jsdelivr.netstring is the library's inert default (bypassed; CSP blocks it anyway).
- Vite
- 42 git-gui — backend git module:
execaarray-args, no shell,--pathspec guard,GIT_LITERAL_PATHSPECS=1, jailedcwdviaresolveSafe, work-tree + (hardening)--show-toplevel-within-jail check. 20 tests. LOW ancestor-.gitfinding closed. - 43 rest-api-client — owner-authed HTTP proxy; scheme allowlist per redirect hop, size/timeout/redirect caps, no cookie/auth leak (+ cross-host strip hardening). SSRF stance recorded in decisions.md. 13 tests. Reviewer: safe as-is.
- 44 archive-manager — zip (fflate) + tar.gz (tar via execFile) with per-entry
resolveSafe(zip-slip-proof), temp+realpath symlink walk, ratio-bounded caps fixing a Medium forged-header amplification DoS (387 B → 512 MiB), + a hardlink guard. 13 tests (incl. amplification regression). UsedexecFile(not execa: ESM/CJS) — same no-shell guarantee.
Desktop now 23 apps; backend has git/http-proxy/archive modules, all authed
- jailed. Gates: frontend typecheck 23/23 + lint 24/24 + build (Monaco lazy, eager unchanged); backend build + tests 126/126 + lint + format. No new backend dependency. Next: Wave E platform surfaces (45 global-search-launcher, 46 addon-manager).
2026-07-18 — Wave C: six daily-driver apps (briefs 35–40) shipped
Built as a 6-agent parallel batch (sonnet build subagents, each scoped to
one apps/add-ons/<app>/ dir, no shared-file edits), then integrated serially
by the controller (manifest.ts 6 imports+entries, openWith.ts image+media exts
and md/markdown reroute + labels, one npm install). Landed as one Wave C
commit a7632ab — a deliberate deviation from strict one-commit-per-brief:
the six were a cohesive parallel wave sharing manifest.ts / openWith.ts /
package-lock, each brief is named in the commit body + has an outcome note, and
the tree gates green so nothing is left uncommitted. Apps:
- 35 calculator — Basic (shunting-yard, no
eval) + Programmer (BigInt 64-bit, HEX/DEC/OCT/BIN + bitwise/shift). Own lazy chunk 3.82 KB gz. - 36 clock — world clocks (Intl, no tz lib), stopwatch, timer, alarms;
timestamp-driven; alarm/timer →
notify(). 4.52 KB gz. - 37 image-viewer — root-aware
<img>viadownloadUrl, zoom/fit/rotate, folder prev/next; registered 9 image exts. 2.68 KB gz. - 38 media-player — native
<audio>/<video>range-streamed (no buffering, memory-cap posture), custom transport, folder queue; registered 14 AV exts. 4.00 KB gz. - 39 markdown-editor — split-view react-markdown + remark-gfm, no
rehype-raw (XSS-safe), full save flow;
md+markdownreroute from notepad. 1.81 KB gz (renderer shared). - 40 calendar — month/week, persisted events (own store), reminders →
notify(). 3.98 KB gz.
Clock (36) + calendar (40) are the first real notification-center callers. No
new dependencies (all hoisted). Desktop now 19 apps; every new app is its
own lazy chunk, eager index-*.js gzip unchanged (~125 KB). Gates: typecheck
19/19, lint 20/20, format, build all green. npm install reports 4 moderate
audit findings — pre-existing transitive dev-dep advisories, not introduced by
these client-only apps (no runtime dep added); flagged for a later audit pass,
not gating this wave. Next: Wave D (heavy/backend — Monaco, git-gui,
rest-api-client, archive-manager).
[2026-07-19] qa | First human walkthrough of v1 — findings + fixes
A real person drove the desktop (docker-compose run) and reported issues; this session triaged and fixed the writable ones. Fixed:
- Media Player seek (backend).
GET /api/files/downloadpiped the whole file with 200 and noAccept-Ranges, so the media element could never seek to an unbuffered position (auto-advance worked because it just plays to the end). Added HTTP Range support:statFile/openRangein FilesService, 206 +Content-Range/Content-Length+Accept-Ranges: bytes+ 416-on-unsatisfiable in the controller (parseRangeHeader), range-less GET still 200. 3 new e2e tests; files e2e 11/11. - Global search scroll-reset (core). CommandPalette auto-scrolled the
active row into view on every selectedIndex change, and hover set the
selection — so wheel-scrolling dragged the pointer across rows, reselected,
and yanked the list back. Now only keyboard nav (
keyboardNavRef) triggers scrollIntoView, and it queries the real[aria-selected]row (the oldchildren[selectedIndex]indexed group<li>wrappers, not rows). - Git GUI crash (core).
SelectplacedBaseSelect.LabeloutsideBaseSelect.Root→ "SelectRootContext is missing" whenever alabelprop was passed (only git-gui does). Moved Label inside Root; fixes the crash + the nested-<button>warning for every Select consumer. core typecheck green. - SEC-9 — CSP
connect-srctightened from'self' ws: wss:to'self'(CSP3 covers same-origin ws/wss). Removes the XSS exfiltration wildcard; needs cross-browser terminal re-verify (the reason it was left broad).
Decisions this session: crimson accent CONFIRMED as the default; the 4 presets stay selectable in Settings. VPS+HTTPS deploy dropped from the v1 bar (deferred, recipe stays documented). git tag dropped — version lives in package.json (already 1.0.0 across all 25 workspaces + Dockerfile LABEL/IMAGE_VERSION + ISO init; About panel reads it). Kiosk ISO deferred until the OS is feature-complete. Code-editor VS-Code-style File menu (open / open-recent) → v1.* (post-1.0).
Not done / needs a decision:
- Clock timer off-by-one (05:00 flashes 05:01 at Start — stale
useNowtick makesendAt - nowmomentarily exceed durationMs and round up). Fix is a one-line clamp todurationMs; BLOCKED —apps/add-ons/clock/srcis read-only (owned byimbatranim, groupimbdevhas no write; same for git-gui/calendar/media-player/code-editor/… — every Wave C/D add-on source dir, created with a restrictive umask during the autonomous run). Patch saved to scratchpadclock-timer-fix.patch. Unblock:sudo chmod -R g+w apps/add-ons/*/src(needs the sudo password this session doesn't have). - uuid advisories —
npm auditnow shows 6 moderate (uuid<11.1.1, bounds-check-on-buf) viaexceljs(Sheets) +pptx-preview(Slides). NOT exploitable here (both use randomv4, neverbuf). The brief-15 "dep bumps" (@nestjs/platform-express, multer) are already at latest (11.1.28 / multer 2.2.0); axios is not a dependency at all. The clean surgical fix (rootoverrides→ uuid^11.1.1) is silently ignored by npm here (never written to the lockfile even via--package-lock-only); it only takes with a fullrm -rf node_modulesreinstall, not run unattended given native modules (argon2/better-sqlite3/node-pty) and no way to smoke-test Sheets/Slides. Left at baseline (6 moderate, lockfile unchanged) pending a decision.
[2026-07-19] design | OS-layering grilling — the compositor seam
Grilled the os-architecture-layering-research todo end-to-end (grill-me).
Drivers resolved as (b) SSH-session feel + (c) app isolation + (d) soul — not
app-layer pain. Locked a three-layer model (kernel/userland ↔ compositor/display
↔ apps) with the app↔OS seam as an injected system capability handle
(mechanism B, not narrowed imports — so the transport can swap from direct calls
to sandboxed-iframe postMessage later without rewriting apps). Bisected the
@imbatranim/core barrel by "can it cross postMessage?": components/hooks →
@imbatranim/ui (library), data/effects → system.{fs,http,window,intents, notify,on}. New session/dotfile split: ephemeral per-tab window layout (fixes
the shared-localStorage stomp bug) + durable $HOME dotfiles for user config.
Kill-list: no runtime package manager, no session-manager daemon, no D-Bus. App
isolation = per-window error boundaries now (first-party threat model); hard
sandboxing gated on third-party apps arriving. DOM stays the substrate;
canvas/WebGPU (raw-surface primitive + effects overlay) parked, not rejected.
Notable: this reopened no locked decision — it reinforces the client-rendered
desktop and first-party/build-from-source locks. Recorded in
wiki/decisions.md + new page
wiki/os-layering.md; todo promoted to briefs 47
(per-window error boundaries) + 48 (the protocol seam) + 49 (ephemeral per-tab
session + durable server-side dotfiles); todo removed.
[2026-07-19] research+grill | Web browser (Tier-2 proxy) + containerized dev pipeline
Researched the "add a web navigator" ask (2026 MV3 landscape, service-worker
proxies) and grilled it end-to-end (grill-me). It is not a Chrome add-on —
it's a Browser desktop app for ImbatranimOS, which is itself a React desktop in
a tab. Resolved the tree: Tier 2 proxied-interactive (real sites, not
reader/headless); engine = Scramjet (Mercury Workshop, service-worker +
WASM rewriter + Wisp backend, AGPL-3.0, consumed as prebuilt dist — no
Rust); the "without iframes" idea dropped (blocker was X-Frame-Options/CSP,
not iframes; the sandboxed iframe is the point). Housing = OS capability
(backend Wisp module + core SW registration + <ProxyView> via the barrel;
thin add-on) rather than a self-contained add-on. Egress = auth-gate + SSRF
filter that blocks private ranges — deliberately the OPPOSITE of brief 43's
REST-client stance (there the owner types every URL; here arbitrary
third-party JS drives the proxy, so an XSS = SSRF cannon). Profile = OS-level,
synced, encrypted cookie jar in the home volume/db (follows the container,
not the laptop). v1 = thin MVP (URL bar + back/fwd/reload, prove Google +
YouTube; reuse Bookmarks via openApp); DRM/Widevine out of scope. → brief
50. Mid-grill the user also asked to containerize dev: npm run dev →
docker compose --profile dev watch (sync apps/**, ignore node_modules —
kills the stale hand-listed anonymous volumes), plus de-staling the Dockerfile
deps/proddeps manifest lists (same 7-of-24 rot — the real blocker to
"contained"), host tooling reduced to Node/npm via npm install --ignore-scripts (Dev Containers rejected). → brief 51. Notable: reopened
no locked decision — reinforces auth-everywhere, lightweight, build-from-
source; adds a second (stricter) SSRF stance to record alongside brief 43's.
Both briefs land in briefs/todo/; decisions to be recorded in
wiki/decisions.md when the work executes (per the brief-43 pattern).
[2026-07-31] sweep | Improvement research: 3 shipped bugs fixed, briefs 52-86
Asked for research on what more the OS could do and how to improve the existing apps, one brief per app, plus what it would take to mimic a real OS more.
Method changed the result. The OS was run locally — backend + Vite dev
servers against a sandbox home — and driven with a scripted browser walkthrough
that opened all 23 desktop icons, collected console errors, and flagged controls
clipped under the taskbar. Docker image pulls are blocked by this environment's
proxy, so the container itself could not be built or booted; everything
container-specific below was verified from source instead (busybox's own ps.c
and tar.c, the Dockerfile, the ISO APKBUILD).
Three bugs that were live in the shipped artifacts, all invisible in development — which is exactly why they passed review:
-
System Monitor's process table was empty in every shipped image.
getProcesses()ranps -eo pid,ruid,pcpu,pmem,rss,comm --no-headers, which is GNU procps syntax. Both artifacts are Alpine/busybox, whosepstakes short options only, has noruid/pmem, and haspcpucommented out of its column table. The call always threw, the catch swallowed it intoreturn []. Replaced with a/procwalk — no binary needed, and the same interfacepsitself reads. A shared-baseline bug in the first implementation (two concurrent pollers collapsing the CPU delta window to 0%) was caught only by hitting the live API twice; unit tests passed straight through it. -
The Git app was dead in production.
gitis installed in neither the Docker prod stage (which runs noapk add) nor the ISO'sdepends=. Both fixed, plus a 503 that names the problem — the execa seam runs withreject: false, so a missing binary was arriving asexitCode: 1with an empty stderr, i.e. every operation failing with nothing to show the user. -
Core's
Tooltipemitted<button>inside<button>at 33 call sites. base-ui's Trigger renders its own button unless givenrender. This was the source of the 2026-07-19 walkthrough's console errors, which had been attributed to the File Manager subtree — the subtree was innocent. Note the warning is development-only in React, so a production build looks clean. -
Notepad's notes were written outside the volume — found later the same day by chasing a 404 in the browser walkthrough.
NOTES_DIRis in the env schema, set in both Dockerfile stages, and created byentrypoint.sh, butfiles.service.tshardcodedresolve(cwd, 'data/notes')and never read it. In the container that is/app/data/notes, the image's writable layer, while the volume is/home/imbatranim. Every note was destroyed on container recreation — which the README actively encourages. The 404 was the symptom; the data loss was underneath it. This is the only one of the four that lost user data rather than disabling a feature.
Cleared one claim: busybox tar does support --no-same-owner and the
-czf/-tzf forms, so the archive module is not affected.
Also fixed, both pre-existing on main: the repo could not npm install with
its own declared packageManager: npm@11.11.0 (npm 11 blocks install scripts;
esbuild, the eslint resolver and all three native modules were unbuilt), and
format:check was red in pdfcore-engine (16 files) and the backend.
Briefs 52-86 — 35, all explicitly ungrilled. 52-54 cross-cutting platform
(window clamp, desktop icon overlap, a shared Open dialog for the 8 apps that
dead-end), 55-78 one per app covering all 24 registry apps, 79-86 real-OS
parity. New wiki pages: backlog-2026-07-31.md (one line per brief +
dependency order), real-os-gaps.md (Tier 2 + the standing rejection list with
reasons), ui-conventions.md (the house style as 46 rules + a 14-item
pre-flight checklist, derived by reading the kit).
Notable findings recorded in the briefs: Settings has no change-password
route at all; Calendar and Clock persist to the viewing browser's
localStorage rather than the container; openWith maps .pdf to the
340-line viewer, hiding the 3886-line norPDF suite, which is itself the largest
undocumented thing in the repo and writes PDFs with no tests; System Monitor's
kill has no confirmation despite being uid-scoped to the process running the
OS; and unmapped double-clicks silently do nothing.
Twelve research subagents were dispatched; two returned (parity research and the UI conventions), ten died without output or notification, so briefs 52-86 were written directly instead.
[2026-07-31] build | Implementation wave: briefs 52, 53, 54, 79, 86 + a test runner
Went down the dependency order agreed with the user, building as specified and choosing the conservative option wherever a brief flagged a contentious call.
- Core got a test runner.
apps/corehad none, so all frontend logic was unverifiable except by driving a browser. vitest, node environment by default, jsdom per-file only where a DOM is genuinely needed. The 11 backfilled tests were mutation-tested: reintroducing the original bugs fails 8 of them. - 52 window clamp and 53 desktop icon layout — both reproduced at
1280×577 before and verified gone after. 53 turned out to have three
compounding causes, including
settingsconsuming a grid cell it never renders into. - 86 shortcut registry — registration and binding happen in one call, so a
binding cannot exist undocumented.
?/F1 overlay, verified not to steal keystrokes from the Terminal. - 79 Trash — freedesktop spec,
renamenot copy, restore treats the recorded original path as untrusted. 20 tests including the adversarial set. - 54 shared Open dialog — all eight dead-ending apps wired. The pick latches
into the store
useOpenIntentalready reads, so each app needed only a button.
Two deviations worth knowing: no Undo button in the Trash toast (notify() has
no action support, and adding one is a change to a shared surface that deserves
its own decision), and the Open dialog is a new focused picker rather than a
promotion of Notepad's FileBrowser, which on reading is a notes manager
rather than a picker.
Gates at the end: typecheck 25/25, lint 26/26, format 26/26, build ok, tests 262 (168 backend + 70 engine + 24 core) — up from 135 backend-only.
[2026-07-31] brief 83 + todo housekeeping | Storage, disk-full, and a legible todos/
Brief 83 shipped. GET /api/files/size (bounded walk, truncated flag,
symlinks never followed), ENOSPC/EDQUOT translated to a human 503 across
every write path, and Settings → Storage with a per-folder breakdown, drill-down
and a once-per-session 90 % warning driven off the Tray's existing poll. A full
volume no longer presents as random unexplained save failures. Backend 168 → 174.
corpus/todos/ was 28 files of which only 5 were open work. The rest were
already status: promoted with pointers to their briefs — history the corpus
deliberately keeps ("Kept for history" in lint-format-debt), so deleting them
would have destroyed the record. Moved the 23 promoted/resolved ones to
corpus/todos/promoted/ instead: the top level now shows only genuinely open
work, and nothing is lost. Two were closed by this session's work and carry a
resolution note — app-walkthrough-bugs (all three findings fixed) and
desktop-icon-layout-resolution-bugs (superseded by brief 53, which found the
cause was worse than described).
Still open at the top level: code-editor-file-menu (consumed by brief 61),
csp-connect-src-ws-wildcard (SEC-9) and kiosk-no-sandbox (SEC-10) — both
human-gated — desktop-drag-selection, and install-apps-from-github.
corpus lint caught four sibling links into the moved files; repaired.
[2026-08-02] briefs 87, 88, 89 | The user's four feature asks, three shipped
Four features requested directly: a file-explorer context menu, code-editor file creation with VS Code features, VLC-grade media transport, and medium Word / Excel / PowerPoint parity. Briefs 87-90 written; 87, 88 and 89 shipped. 90 is gated on briefs 62-64 and is the remaining one.
Brief 87 — File Manager. Properties (name, where, type, size with the
bounded folder walk, modified, created, permissions) and New File… with any
extension. The find underneath it: the entry context menu was implemented but
unreachable. The row's onContextMenu did not stop the bubble, so every
right-click on a file reached the wrapper's background handler and reopened the
menu with entry: null — the empty-space menu. Rename / Copy / Cut / Delete had
been shipped and could not be clicked. One e.stopPropagation(), matching the
onClick handler three lines above that already had one.
Brief 89 — Media Player. ±5s buttons, a real scrub bar with buffered ranges
and pointer capture, 0.25×-4× speed, VLC's key tiering registered through brief
86. clampSeek is unit-tested because duration is NaN before metadata and
Infinity on a stream, and assigning either wedges the element.
Brief 88 — Code Editor. File / Edit / View menus, New File (name picks the
Monaco language, same rule as 87), New Folder, Save As with model retargeting,
and the app's last window.confirm replaced by the themed dialog. FilePicker
gained a directory mode and useFileDialog a pickDirectory, so every app
can ask for a folder now. Manifest default height 680 → 620, which fits a 720px
viewport.
The brief asked whether the Monaco workers are genuinely active or silently
falling back to the main thread. They are active: editor.worker.js and
ts.worker.js both spawn, and the TypeScript worker returns a real type error
for const answer: number = 'not a number' in a .ts tab. Nothing to fix.
Tab restore shipped narrower than the brief asked and the reason is structural:
PersistedWindow has no window id, so ids are re-minted on reload and a
per-window record could never be matched to its window. One session record,
claimed by the first editor window, is what is honest.
The recurring theme across all three. react-hooks' set-state-in-effect and
ref-during-render rules fired five times this session, and every one pointed at
a real defect rather than a style preference — a stale-response race in three
components, a hover value read from a ref during render in the Timebar, and in
88 a StrictMode bug where cancel-on-cleanup would have discarded the restored
tabs, because claimTabSession answers once and the second mount run no longer
asks. None were suppressed; each was restructured.
Tests 275 → 283 (174 backend + 70 engine + 24 core + 7 media-player + 8 code-editor). Eager bundle 125.71 → 125.77 KB gzip; Monaco stayed lazy.
[2026-08-03] brief 62 | Docs could not open a single .docx in any shipped image
Brief 62 was written as "a failed save is silent". It was. Verifying that turned up something worse.
docxNormalize used fflate's async API, which spawns a worker from a blob:
URL — and this OS's own CSP refuses that. worker-src is unset, so it falls
back to script-src 'self', and a blob URL is not 'self'. fflate 0.4.8 then
throws inside its own error handler instead of calling our callback, so the
promise never settled: no rejection, no timeout, no notification, and the window
sat on "Loading document…" forever. Every .docx, every shipped image.
Confirmed against the production build served by the real backend with the real
CSP, and reproduced identically on HEAD before any of this brief's changes.
It failed in dev too, by a different route (Vite's optimized fflate dep breaks
its inlined worker source) — which is exactly why it had never been diagnosed as
environment-specific. Fixed with fflate's synchronous API: same output, no
worker, no blob URL, and a comment saying not to go back.
That makes six production bugs from this sweep, and the second whose symptom was "the app looks like it is working". The first five were "green in dev, dead in the image"; this one was dead in both, which is the harder kind to notice, because there is nothing to compare against.
Second find, from the same CSP log: SuperDoc defaults to
telemetry: { enabled: true } and POSTs to ingest.superdoc.dev on every
document open. The CSP refused it — that refusal is how it was found — but
relying on CSP to suppress a call the app deliberately makes is the wrong layer.
Now disabled at the source. The desktop's only offsite request is the Google
Fonts stylesheet the CSP already allows.
Shared error reporting landed in core. reportFileFailure /
reportFileRefusal return the inline banner text and raise the notification,
so the two cannot drift and neither can be forgotten — brief 86's
useRegisteredHotkeys reasoning applied to failures. Briefs 63 and 64 adopt it
rather than each growing their own. A disk-full 503's message (brief 83) is
passed through verbatim instead of being replaced by a generic failure, and "the
backend did not answer" reads differently from "the backend said no".
The dirty-clear condition was already correct and is now a tested pure function,
because "never clear dirty unless the write succeeded" is one accidental
finally away from wrong and that mistake loses work silently.
Tests 283 → 317 (174 backend + 70 engine + 36 core + 22 docs + 8 code-editor + 7 media-player): core 24 → 36, docs 0 → 22.
[2026-08-03] brief 63 | No workbook with a chart would open, and merges were multiplied
Brief 63 asked what the ExcelJS bridge drops on write. Measuring it turned up three defects that mattered more than the inventory.
Sheets could not open any .xlsx containing a chart. xlsx.load reconciles
drawings against their rels and reads drawing.anchors, but ExcelJS only builds
anchors for <xdr:pic>; a chart's <xdr:graphicFrame> leaves the model empty and
it throws. Verified with both absolute and Excel-style relative rel targets, so
not a writer quirk — charts are one of the most common things in a real workbook
and every one of those files failed.
Comments broke for anything not written by Excel. ExcelJS matches
xl/commentsN.xml at the package root only; openpyxl writes
xl/comments/comment1.xml. Excel's files loaded, a Python pipeline's did not.
A merged range was multiplied rather than dropped. ExcelJS reports the
master's value for every cell in a merge, so A8:D8 came back as four copies of
"merged header" and a save wrote four copies into the file — data it never
contained. Found by looking at a screenshot, not by a test; the test that claimed
to cover merges only checked the anchor cell, so it passed while the bug was in
front of it.
All three fixed in the pass that already had to unzip: strip the parts ExcelJS cannot be handed (drawings, charts, media, comments), prune the rels and sheet references that point at them, and read only the master cell of a merge. The stripped copy exists only as ExcelJS's input — the saved file is built fresh — and stripping is not hiding, because the open-time warning still names them.
The fidelity matrix is a test, not a paragraph. An openpyxl-built fixture (independent writer, so not our own bug reflected back) carries charts, CF, data validation, defined names, comments, merges, frozen panes, autofilter, hyperlinks, currency/percent formats and two sheets. The test asserts both directions — what survives, and that every feature the scan reports is genuinely gone after a round-trip — so the warning list cannot drift from the loss list.
The warning is a standing banner, not only a toast: the moment it matters is the moment the user reaches for Save, which can be an hour after a toast has gone.
CSV in and out, no dependency, and csv → sheets in openWith — it was not
mapped at all, so double-clicking one did nothing. Three coercions are refused on
purpose: a leading zero stays text (01234 is a postcode; coercing it makes the
save write 1234), >15 significant digits stays text (a double cannot hold them),
and a field starting with = stays a literal rather than becoming a formula.
Also added a 120s request timeout to the bridge. onerror catches a worker that
fails loudly, not one that is alive and silent — brief 62's fflate hang is the
standing lesson that an unsettled promise is a spinner forever with nothing to
report.
That is nine production bugs from this sweep. The pattern worth naming: three of the last four were found by looking at the running app rather than by reading the code — the fflate hang, the chart failure, and the merge smear. Two of them had passing tests nearby.
Tests 317 → 360 (174 backend + 70 engine + 43 sheets + 36 core + 22 docs + 8 code-editor + 7 media-player).
[2026-08-03] briefs 91-92 | Every PDF page was blank, and wasm cannot run here at all
Both found while gathering evidence for a study, not from a brief.
Brief 91 — the PDF Viewer rendered nothing, for every PDF. pdf.js 6.1 calls
Map.prototype.getOrInsertComputed inside getOptionalContentConfig, which
render() runs for every page. That method shipped in Chrome 142; the browser
under test was Chromium 141, released weeks earlier and entirely current,
where it is undefined. So render() threw and the canvas stayed empty — a
595×841 surface with zero non-white pixels, in the shipped production build,
with no error shown to the user. Measured by counting pixels rather than looking
at a screenshot, which is how it was distinguished from "still loading".
Fixed with a polyfill in core (and a deliberate copy inside pdfcore-engine,
which is standalone by design), installed before pdf.js loads in all three PDF
surfaces. Same canvas now has 17 822 non-white pixels. pdf.js also calls these
methods inside its worker on conditional paths; that gap is recorded in the brief
rather than papered over.
Brief 92 — the study. Answer to "can we use wasm": not today, not one byte.
The shipped CSP refuses every WebAssembly entry point —
new WebAssembly.Module, compile, instantiate, instantiateStreaming — with
"Refused to compile or instantiate WebAssembly module because 'unsafe-eval' is
not an allowed source of script". It would take adding 'wasm-unsafe-eval' to
script-src, which is a security decision in the same file and class as SEC-9
and therefore human-gated. Not done.
The repo already has a wasm dependency: pdfjs-dist ships openjpeg, jbig2, qcms
and quickjs-eval. None are copied into the build output, so they would 404 before
the CSP refused the compile. A plain PDF never asks for them; a scanned PDF with
a JBIG2 image would render that image as nothing.
Workers, measured rather than assumed: xlsx at 50 000 cells costs 240 ms to parse and 328 ms to serialize, so its worker is vindicated by the numbers. The docx normalize brief 62 made synchronous is 31 ms for a real file and 76 ms for a pathological one — a worker there would add a round-trip and a failure mode to save nothing perceptible. CSV is the one genuine candidate: 95 ms at 1.5 MB is fine, the same code at 15 MB is a second of frozen desktop, and the xlsx worker already speaks a request/reply protocol, so it is a message kind rather than new infrastructure. Archive, hashing and SQLite — the classic wasm candidates — are already server-side.
The rule that comes out of both: our own module workers are fine, any library
that builds its own worker from a blob: URL is not, and the CSP is
load-bearing runtime behaviour that is invisible in dev because Vite sets no CSP
at all. Three of this sweep's bugs came from that blind spot.
Tests 360 → 369 (core 36 → 45).
[2026-08-03] brief 64 | Slides is a viewer, and now a good one
The decision is locked: Slides stays a viewer. pptx-preview has no editing model, so "light editing" would mean a second engine and owning write fidelity for a third Office format — the risk surface briefs 62 and 63 spent their time containing. Brief 90 inherits the answer.
Shipped: a thumbnail rail, keyboard navigation, presenter mode, zoom, speaker
notes, notify() on failure, and PNG export of the current slide.
The thumbnails are clones of the rendered slides, scaled with a transform.
Exact by construction, and no second parse — which is the expensive part, since
pptx-preview rebuilds everything from OpenXML on each call. Clones are
aria-hidden and pointer-events: none so a link inside a slide is unreachable
from the rail. Zoom is a transform for the same reason: re-rendering to change
zoom would re-parse the deck and hand the stale-render interleave a fresh chance.
Two findings worth keeping:
notesSlideN.xml is not numbered to match slides. Notes parts are allocated
only for slides that have them, so a deck with notes on 1, 2, 4 and 5 produces
notesSlide1..4 — index by slide number and slide 4 shows slide 5's note. The
parser follows <p:sldIdLst> → presentation.xml.rels → the slide's own rels,
finding the notesSlide by relationship type. The fixture leaves slide 3 without
notes precisely so the wrong-mapping case is under test.
pptx-preview consumes the buffer. Parsing notes after the render came back empty every time, because there was nothing left to unzip. Notes are read first now.
And a bug of my own, caught in the browser: requestFullscreen can be refused,
presenting in-window is a fair fallback, but then no fullscreenchange fires and
the user was trapped in a black overlay. Escape is handled independently now, plus
a visible Exit button.
Also worth naming: two of this session's "failures" were my test, not the app. The notes panel appeared broken because my regex was case-sensitive against CSS-uppercased text, and the merged-cell test passed while the bug was in front of it because it only checked the anchor cell. Verifying in a browser catches things tests miss; it also produces its own false signals, and both directions need checking before anything is reported.
Tests 369 → 384 (slides 0 → 15).
[2026-08-03] brief 90 | The Office gap was not missing UI — it was the bridge dropping what the UI produced
The brief said Docs "exposes almost no editing surface — no find/replace, no styles UI, no tables". That was measured against the app's own toolbar. SuperDoc mounts its own, with 31 controls — including tables and table actions, linked styles, lists, alignment, colour, highlight, and accept/reject tracked changes. Almost the whole Docs list was already shipped; building a second toolbar would have duplicated it worse.
The real gap was Sheets, and it was silent data loss reachable from the toolbar
the app already had. Univer's ribbon sets underline, strikethrough, font family,
font size, alignment, wrap and borders — and the ExcelJS bridge carried none of
them. Univer's IStyleData has ul, st, ff, fs, ht, vt, tb, bd; the
mapping handled bl, it, cl, bg, n. Underline a heading, set 18pt
Georgia, centre a column, draw a border → save → reopen → gone, with no warning,
because brief 63's open-time scan reports what the package holds and not what the
ribbon can produce.
All eight now map in both directions, with the awkward parts written down: ExcelJS
reports vertical centre as middle (xlsx writes center); borders are per-edge
with independent styles, so a double bottom and a dashed left must both survive;
Excel's border vocabulary is wider than Univer's, so dashDot and friends map to
their nearest neighbour rather than vanishing; Univer requires a colour on a
border and Excel's default is black; wrap wins over shrink-to-fit because Univer
has one strategy. And no style is invented on a plain cell, which has its own test.
There is a combined-attributes test on purpose: an implementation that assigns
cell.font twice, or replaces cell.alignment while setting borders, passes every
single-attribute test and loses half a cell that has everything.
Docs got the two things genuinely absent: find (Ctrl+F, match counter,
wrapping next/previous) and word count. The search text is regex-escaped —
unescaped, a.b matches axb and a bare ( throws mid-typing. The count reads
the rendered text, turns block tags into newlines so end</p><p>Begin is two
words, and counts code points so an emoji is one character.
Replace is not built and is recorded as blocked on the engine. SuperDoc
exposes search but no replace command; replaceAll in its types is a label for
its own search UI. Doing it anyway means driving ProseMirror transactions against
the docx model and owning mark and tracked-change correctness by hand — the exact
silent-corruption surface briefs 62 and 63 exist to contain.
One self-inflicted bug caught in the browser: the word count read "0 words" over a
19-word document, because it was computed when the engine object was constructed
rather than when the document was loaded — getHTML() has nothing to give at that
point. Moved into onReady.
This closes briefs 62, 63, 64 and 90 — the whole Office group — plus 87, 88, 89 from the user's four asks, and 91/92 found while verifying. Tests 384 → 406 (174 backend + 70 engine + 51 sheets + 45 core + 36 docs + 15 slides + 8 code-editor + 7 media-player).
[2026-08-03] brief 65 | norPDF owns .pdf, and its Open was reading the wrong computer
Brief 65 was a decision: which of the two PDF apps the OS opens. Measured on the same 40-page PDF, cold, in the shipped build — PDF Viewer reaches first inked page in 4.2 s and costs 5.2 KB gzip of its own code; norPDF takes 5.3 s and 202 KB, and pdf.js's 642 KB is shared by both.
openWith now routes pdf → norpdf, and PDF Viewer is kept. The default had
to move — while it pointed at the 340-line viewer, norPDF's 3886 lines of outline,
thumbnails, search, annotate, forms, organise and save were reachable only by
launching it from the desktop. But the brief's preferred "retire PDF Viewer" is
what the measurement argues against: it buys 5 KB, because the weight is pdf.js and
that is shared. It is also faster with a fraction of the bytes, and brief 81's
"Open with ▸" is the chooser that makes keeping it worthwhile. Deleting the
alternative before the chooser exists removes the option to gain nothing.
Time-to-first-page was measured by sampling canvas pixels, not by waiting for a canvas element — brief 91 is the standing reason that distinction matters.
Found while doing it: norPDF's "Open a PDF" was a native <input type="file">,
which reads the host machine. Brief 54 rules that out by name — "the computer is
the container", and a dialog browsing the user's laptop instead of their home
directory is actively wrong here. Now useFileDialog, so the pick runs the same
path a File Manager double-click does. Drag-and-drop from the host stays: that is an
explicit, visible gesture, not a dialog impersonating the OS's.
The routing table now has tests, which is the actual reason .pdf pointed at
the weaker app unnoticed for so long. One of them documents a dead end instead of
fixing it: .txt under home resolves to nothing, because Notepad is not
root-aware and its rule is notes-only. That is brief 59's headline, so it is
asserted as current behaviour with a pointer — brief 59 gets a test to flip rather
than a surprise to find.
Recorded, not hidden: norPDF is ~1.2 s slower to first page, because it paints seven canvases (page + thumbnail rail) and fetches several times the code. The fix is first-page-before-rail, and it belongs to brief 66, which owns norPDF.
Also split decisions.md — adding this decision pushed it past the 200-line cap,
so the ISO-era inheritance moved to decisions-iso-era.md. Still binding; only the
location changed.
Tests 406 → 415 (file-manager 0 → 9).
[2026-08-03] brief 66 | Every save in the OS could truncate the user's file
Brief 66 asked for an atomic save in norPDF so an interrupted write could not
truncate a PDF. Chasing it found the problem one layer down and much wider:
FilesService.uploadFile did fs.copyFile straight onto the destination, and
copyFile truncates before writing. Any failure part-way — full disk, OOM kill,
container restart — left the file truncated with the original bytes gone.
Every save in the OS goes through that method: Docs, Sheets, Slides, Notepad,
Code Editor, Markdown, images, norPDF. So the fix went in once, at the backend —
stage a sibling temp in the destination's own directory, then rename over it. A
rename within one directory is atomic on POSIX; staging beside the destination
rather than in the OS temp dir is what makes that hold, because a
cross-filesystem rename is not atomic and degrades to a copy. The previous file's
mode is copied across first, or the rename would quietly widen a 0600 file.
Seven tests, provoking failures with real filesystem conditions rather than
mocking fs — its exports are non-configurable in Node 24. Both windows covered:
the source vanishing before the staged copy, and a commit failing after it.
The write path is now proven to preserve, not just to write. A rich fixture — three pages with distinct text, full Info metadata, two filled AcroForm fields — goes through annotate, forms, sign and page reorder/delete/rotate/extract, and each asserts both that the change landed and that everything else survived: page count and order, the other pages' text, metadata, the form field the user did not edit, that annotations stay on their page, that a second save does not duplicate them, and that saving an untouched document does not damage it. The brief called this its highest-value item and was right. The engine already had 70 tests proving the intended change lands; what was missing was the half that costs a user their file.
Second green-test-proving-nothing of the session. The first draft called
doc.text.extract(p) with a bare page number; extract takes { pages }, and a
number is silently accepted as an options object with no pages — extracting the
whole document. Every per-page assertion was reading all three pages and passing
for the wrong reason. Typecheck caught it, not the test run. The behaviour was
correct anyway, so no expectation changed — but that is now twice.
corpus/wiki/norpdf.md finally documents the largest app in the OS: the
app/engine split, the three platform entries and why UnsupportedPlatform is
load-bearing, the read-vs-write model separation, the save→reloadDocument() cache
contract that until now lived in one comment, and the known gaps.
Also: confirmed the rounded-* classes §46 calls dead really are — index.css
has * { border-radius: 0 !important }, so every one in the tree is inert.
Removed the four it names. SignatureDialog's literal colour is kept, with the
reason written down: it previews ink on paper and must match what lands in the PDF,
so a semantic token would show white ink in dark mode for a signature that saves
black. §46 read it as an oversight; it is a decision.
Noted, not fixed (FIXED 2026-08-04 in brief 58): the backend has no typecheck script, so its test/
directory has never been type-checked and carries two pre-existing supertest typing
errors. src/ is still compiled by nest build under turbo build.
Tests 415 → 439 (backend 174 → 182, engine 70 → 82).
2026-08-04 — brief 67 (Image Viewer): pan, a rotation that survives, and "Fit" fixed in three apps
Brief 67 done. Pan, rotate that persists via a canvas re-encode, and a refusal path with the reason on screen for formats that cannot take one. 24 unit tests, zero new dependencies.
The brief's EXIF item was measured wrong and deliberately not built. It asks
for an orientation parse "applied as the initial transform"; the browser has been
honouring EXIF all along (imageOrientation: from-image is the default), so that
would double-rotate every phone photo. Two JPEGs with identical pixels, one
tagged Orientation=6: the tagged one reports naturalWidth/Height as 200×400
where the plain one reports 400×200, and drawImage receives the already-rotated
pixels. A canvas re-encode is therefore naturally orientation-safe — it bakes in
what the user sees and writes no EXIF, so the output cannot disagree with itself.
That is the third brief this sweep whose premise did not survive measurement
(after 90 and 66's "no tests").
"Fit to window" had never fit anything, in three apps. Image Viewer, PDF
Viewer and Slides had each hand-rolled a ResizeObserver in a useEffect(…, [])
against a ref that is null on the first commit — all three early-return an
"Nothing open" tree until useOpenIntent drains the intent in an effect. With []
deps there is no retry, so the measured size stayed at its initial value for the
window's entire life. Image Viewer showed every image at 100%; PDF Viewer's
containerWidth stayed null, making fitWidth && containerWidth falsy, so Fit
width silently fell back to 100% zoom (canvas 595px in a 718px pane, vs 686px
after); Slides' fit target was {0,0} so resolveScale returned its
degenerate-input fallback of 1 and the slide overflowed the pane. Fixed once as
core's useElementSize — a ref callback, which binds whenever the node
attaches and has no dependency array to get wrong.
Two more, found the same way:
- Image Viewer applied its scale twice. The
<img>is a flex child, so its layout box was already shrunk to the pane before any transform ran andscale(fitScale)shrank the shrunken box: fit came out a third of the right size and "100%" showed 638px of a 2000px photo. Now sized explicitly, transform reserved for rotation + pan, paneoverflow-hiddenso panning is the only way to move the image. - Slides had a second instance of the class, independent of the pane:
slideBoxtook oneoffsetWidthreading in an effect keyed on[slideCount], which commits while pptx-preview is still laying out. It was flaky, not consistently broken — the same build measured 0.84 on one run and 1 on the next, which is precisely why one reading is not enough. Now observed.
Also: navigating to a sibling silently discarded an unsaved rotation.
useUnsavedGuard only guards closing a window, so an arrow key reset every
per-image state without a word — the same defect as rotate not persisting, just
harder to notice. It asks first now. And a Tooltip on a disabled button never
opens, so the reason Save was greyed out for a .gif was unreachable; there is
no dead button any more, the reason is inline.
Deferred with reasons in the brief: thumbnail strip, file actions (want Trash +
the system seam), and the large-image guard (no threshold measured). The listing
cache is not deferred — the brief's premise was wrong, the app already lists
once per window rather than per step.
Tests 439 → 463 (vitest 277, backend jest unchanged at 182).
2026-08-04 — brief 55 (File Manager): sorting, Icons view, Ctrl+H, one dialog dialect
Brief 55 done. 28 unit tests, zero new dependencies.
Two of its six items were already fixed by later briefs and the brief did not know. Properties shipped in brief 87; the Details list already had Size and Modified columns, so item 2's premise ("no columns to sort by") was wrong — what was missing was only the sorting. Stated here because acting on a stale brief is how a second Properties dialog gets built. That is now four briefs this sweep whose premises did not survive contact with the code (90, 66, 67, 55).
The real hazard was where sorting happens, not sorting itself. sortEntries was
called twice — in FileManager for the virtualizer count and keyboard nav, and again
inside FileList for rendering — and FileList was in fact being handed the raw,
unsorted query array while the virtualizer counted the sorted one. It lined up only
because it re-sorted identically. User-controlled sorting turns that into two chances
to disagree, whose failure mode is arrow keys moving to a different row than the one
highlighted. Now filtered and sorted once, in FileManager, and passed down;
FileList no longer sorts and fileKind.ts's old sortEntries is deleted rather
than left as a second way to do it.
Decisions worth keeping: a directory's size is an inode size the user cannot see,
so two directories fall back to name; an unparseable modifiedAt sorts last rather
than returning NaN (which makes the order depend on input order and the engine's
sort); name is the tiebreak for every key so equal-size files never swap between
renders; and clicking a new column starts at its natural direction (A→Z for names,
biggest/newest first otherwise) instead of inheriting the previous column's.
A draft I had to correct against Explorer rather than against my tests. I first special-cased directories to stay A→Z under a descending sort; two tests caught it. Explorer reverses them, and folders running A→Z while the files beneath them run Z→A from the same click reads as a bug — so the tests were corrected to match Explorer and the reason written down at the comparator.
Icons view is virtualized with one virtual item per row of tiles. Count, size
estimate and the scrollMargin (which must be 0 with no <thead>) are all derived
in one place so they cannot disagree. useListKeyboardNav gained columns: Up/Down
move a row, Left/Right one tile, and Left/Right stay unclaimed in Details.
One dialog dialect at last (ui-conventions §44): the bespoke delete <Dialog> is
core's ConfirmDialog, whose message was widened from string to ReactNode so
the bolded filename survived — forcing plain text would have made the shared
component worse than the bespoke one it replaced. Failures now go through one
failAction() that raises the notification and sets the banner: the notification
is what gets noticed in a background window, the banner is what stays readable while
the user fixes it.
A bug I introduced, and the hardening it earned. Composing the pane's measuring
ref with the existing listContainerRef as an inline arrow blanked the whole
desktop: React re-runs a fresh-closure ref callback (cleanup then attach) every
render, useElementSize wrote state on attach, and that drove the next render —
an infinite loop surfacing only as minified React error #185 on a white screen. Fixed
at the call site with useCallback and in the hook, which now writes state only
when the box actually changed. That hook is a day old and has four call sites; it
must not be a footgun.
Measured in the production bundle (uitest/fm55.mjs, uitest/fmscroll.mjs): every
column sorts both ways with aria-sort tracking and clearing, Ctrl+H reveals and
hides, the grid renders 25 tiles at 96×92 across 5 wrapped rows in the same order as
the list, ArrowRight moves one tile and ArrowDown a whole row, and Details rows stay
a uniform 25.50px apart with no cumulative drift (0.5px over 24 rows). Zero page
errors.
Two lessons about probing a virtualized list, recorded in the scripts: only mounted
rows exist in the DOM, so assertions must check the rendered names are a
subsequence of the expected order, not equal to it; and useFileSelection
documents that a plain click on the sole selected entry clears it, so a probe that
clicks an already-selected tile reads a correct app as broken. Both cost a round.
Noted, not fixed: the Details row estimate is 29px where rows measure 25.50px.
Harmless (measureElement corrects mounted rows; only the scrollbar length is
slightly off) and it predates this brief.
Tests 463 → 478 (vitest 277 → 296, backend jest 182).
2026-08-04 — brief 56 (Terminal): reconnect proven against a real process kill
Brief 56 done. 25 unit tests, two new first-party xterm addons (search, web-links).
The reconnect is a decision table, not a retry loop. "Retry on close" would have
been wrong: several closes are the user or the server saying stop. closeReason.ts
classifies first, off the codes in pty.gateway.ts/pty-session.ts — pty-exit
(the user typed exit) and session-revoked never retry, shutdown always does,
1000 is a normal closure per RFC 6455 and gets a manual button instead.
The 1006 ambiguity is the part worth remembering. An unauthorized upgrade is
refused with a raw 401 and socket.destroy(), which the browser never surfaces to
script — a refused handshake and a yanked cable both arrive as 1006 with no reason. So
the brief's "must not retry forever against a 401" cannot be satisfied by reading
the close code. Covered instead by an everOpened flag (never-opened ⇒ refused at the
handshake, the case worth suspecting auth for) plus a bounded budget, after which the
hook asks /auth/status and reports the real cause rather than guessing.
Two premises did not survive measurement — that is four briefs in a row now (90, 66, 67, 55, and both halves of this one):
- "No paste… not possible at all" is wrong on this platform, and my own first
implementation proved it: Ctrl+Shift+V produces one keydown and one native
pasteevent on xterm's helper textarea, and xterm already writes that to the pty — so my handler made every paste arrive twice (echo PASTED_OKecho PASTED_OK). ReturningfalsefromattachCustomKeyEventHandlerdoes not help; the paste event is not xterm's key processing. Keyboard paste now belongs to the browser, which also works for Cmd+V on macOS and needs noclipboard-readpermission. Middle-click and right-click have no native path, so those keepreadText()with anotify()on rejection — the genuinely missing part. - Reading the surface token is not enough to theme a terminal. xterm's default
ANSI 16 are tuned for dark; on
#f3f3f1bright yellow/cyan/white are invisible, so everyls --colorwould have unreadable words.xtermTheme.tscarries a palette per mode with tests asserting each entry clears 3:1 on its own surface; on light, "bright" means more saturated, andbrightWhitemaps to near-black.
Measured in the production bundle, and the headline is a real kill -9 and
restart rather than a mocked close: the terminal reconnects on its own with the
prior scrollback intact, is usable again, and stty size is still 28 86 — SIGWINCH
survives. Killed and left down, it gives up after exactly 5 attempts (1s, 2s, 4s, 8s,
8s), names the cause, keeps the scrollback and offers Reconnect. Theme measured in
pixels — [13,13,14] → [230,233,236], switched live through the real Settings
UI with the Terminal already open. Computed styles cannot answer that one: xterm's DOM
renderer leaves .xterm-viewport at xterm.css's own #000 whatever the theme says,
which had an earlier probe reporting black in both themes. Four open/close cycles
leave zero xterm nodes behind. No page errors anywhere.
Also: the xterm instance moved from useState into a ref built by a ref callback,
because xterm's API is mutation (term.options.theme = …) and React's immutability
rule refuses mutation of a useState value. And the whole socket lifecycle collapsed
into one effect with plain local closures — an earlier draft used useCallbacks
with mirror refs, which needed a self-referencing callback for the retry and got
rejected by the lint rules twice.
ui-conventions.md §8/§46 updated: the Terminal's bg-[#0d0d0e] violation is gone,
and §46 now records that a light terminal needs its own ANSI palette.
Not done, deliberately: the unicode-width addon for CJK/emoji alignment — a third dependency for a narrower problem, worth its own decision.
Tests 478 → 503 (vitest 296 → 321, backend jest 182).
2026-08-04 — brief 57 (Settings): the OS can rotate its own password
Brief 57 done. The OS had no way to change its password at all — a password typed once at first-run could only be replaced by deleting the database and losing the account, which for a system the README recommends exposing behind a reverse proxy was a real gap.
POST /auth/password is authenticated (no @Public()), re-proves the current
password even though the caller already holds a session (a cookie is a bearer token;
a thief must not be able to lock the owner out), demands a TOTP code when TOTP is on,
enforces the same ≥10 minimum as first-run, and re-hashes with identical argon2id
parameters.
Three orderings inside it are load-bearing, and each has a test:
- Verify the current password BEFORE validating the new one — the reverse lets someone with a stolen session probe the strength rule, and get a distinguishable error, without knowing the current password.
- Change the password BEFORE dropping sessions — dropping first would sign the user out of every device on a failed change, a denial of service anyone with a session could trigger at will.
- A no-op change is refused — "succeeding" while evicting every other session would look like a rotation that rotated nothing.
Every session dies, including the caller's, and the caller gets a fresh cookie in
the same response. destroyAll() rather than "all but mine": the reason to rotate is
usually that a credential may have leaked, and the caller's current token is as
plausibly leaked as any other. Throttled on login's own counter, because the route
re-verifies the current password and is therefore an oracle for it — otherwise a
stolen session could brute-force from inside the OS while the lock screen stayed
protected. Only a failed credential check feeds the throttle; a rejected weak or
unchanged password is the user fumbling their form and must not lock them out.
TOTP is untouched by a password change, with a test, because silently dropping the
second factor would be the worst possible side effect of a security action.
About this machine was three hardcoded strings (OS: ImbatranimOS, Shell: React desktop on Alpine, Status: Developer Preview) plus a v0.1 · preview footer, while
/api/system/about had always returned the real hostname, kernel, platform, arch,
uptime and IMAGE_VERSION and package.json was at 1.0.0. Now five rows from the API,
with the version lifted into Settings so the panel and the footer come from one fetch
and cannot drift. The error state says it could not read the machine rather than
asserting something false — the old rows could never fail, which is exactly what was
wrong with them.
Under the change form, stated plainly rather than implied: there is no password recovery, and the only way back in is deleting the data volume. The brief rejects a reset flow and is right — with one local account, any recovery path is a back door.
Verified with two independent browser contexts (separate cookie jars, so two
genuinely signed-in browsers): after the change the changing browser is still
authenticated and the other is not; a failed change signs nobody out; the old
password then 401s at login and the new one 200s. About renders hostname=vm,
kernel=6.18.5-fc-v18, uptime=13m, IMAGE VERSION=1.0.0-dev matching the API field
for field, and the footer reads v1.0.0-dev.
Backend 192 unit + 46 e2e (was 182 + 36). Frontend vitest 321 → 336.
Still worth a todo: TOTP recovery codes. Lose your phone today and you are locked out with no fallback — the same class of gap this brief just closed for passwords.
2026-08-04 — brief 58 (System Monitor): the kill asks first, and the OS knows its own pid
Brief 58 done. All five problems closed, plus a piece of missing test infrastructure the work itself exposed.
The kill now confirms, naming the process and pid, with the outcome through
notify() instead of an inline "not permitted" sitting in a virtualized row that
scrolls away. The case worth building: /api/system/about now reports serverPid, so
the backend's own row is marked (this OS) and killing it gets a different dialog
saying it will disconnect every app and end the session. Warned, not forbidden — a
real OS lets you shoot your own foot, it just should not happen by accident. The kill
was already uid-scoped, but the backend runs as that same uid, so "you are allowed to"
and "you meant to" are different questions and only the client can ask the second.
Three of the new stats were already being measured and thrown away. Per-core CPU
came free — sampleCpus() computed per-core samples and then summed them, discarding
the detail. Swap comes out of the same /proc/meminfo read as memory (reading twice
would be two syscalls and two chances for the halves to disagree about one instant).
Load average and uptime are one call each. Only network is genuinely new.
Two /proc/net/dev traps, both now tested. Loopback must be excluded and that is
the load-bearing one: in this OS the desktop talks to its own backend over lo — every
file read, every stats poll, the whole PTY stream — so counting it would report the
machine's internal chatter as network traffic and a box with no network at all would
show megabytes. And there may be no space after the colon: once a counter outgrows
its column the kernel prints eth0:123456789012 flush against it, so tokenising the
line on whitespace reads the byte count as the interface name — only on the busy
machines whose numbers you care about.
cpuPercent is now number | null and renders —. The first poll has no baseline,
so nothing is known, and a confident 0.0 for a busy process is a lie that lasts 1.5s.
An existing test asserted === 0 on the first poll; that encoded the behaviour being
fixed, so it was changed deliberately with the reason written into it.
History with no charting dependency: a 120-sample ring buffer (~3 min at the existing poll), gone when the window closes — honest, since nothing records while the app is shut. The scale is fixed at 0–100, not auto-fitted, and the tests pin that: auto-fitting would make a series wobbling between 0.1% and 0.4% fill the box and turn idle noise into a crisis.
Found while working: the backend was never type-checked. nest build rejected a
change turbo run typecheck had just passed, because the backend had no typecheck
script — only build ever checked src/. It also carried two long-standing supertest
typing errors in test/, which is presumably why nobody added one. Both fixed:
binaryParser takes unknown and narrows (superagent declares its parser's first
parameter as its own Response type, so a ReadableStream parameter was never
assignable, even though the runtime object is a readable stream — which is why it
worked), and the script exists. turbo run typecheck went 25 → 26 tasks. This closes
the "noted, not fixed" item from the 2026-08-03 brief-66 entry.
Also worth remembering: I filtered away the error I was hunting. tsc | grep "^src/"
matches nothing when tsc emits colour, because the line begins with an ANSI escape.
Verified in the shipped bundle by spawning a real sleep 600 in the container: the
confirm names it, Cancel leaves it alive (checked with kill -0 from outside the
browser), confirming really ends it, and the backend row produces the backend-specific
warning. loadAvg {0.34, 0.62, 0.3}, 4 per-core cells for 4 cores, real network rates,
and this swapless host reports zeros → "none configured". First poll renders —; the
filter narrows to one row by name and by pid; sparklines grow 3 → 8 points. No page
errors.
Tests: backend 208 unit + 46 e2e (was 192 + 46), frontend vitest 336 → 353.
2026-08-04 — brief 59 (Notepad): one filesystem, and the save spine it was assumed to have
Brief 59 done. 36 unit tests, one 183-line private component deleted.
The brief was wrong about its own biggest item, in a way that inverted the work. It
lists autosave under "rejected" and puts "the save spine: useOpenIntent,
useSaveHotkey, useUnsavedGuard, the dirty • … and the close guard" under must
preserve — but Notepad was the autosaving app, writing on a 1-second debounce after
every keystroke and using none of those hooks. No dirty marker, no Ctrl+S, no close
prompt. So the brief's non-change was its largest change: converting Notepad to the
spine it was believed to already have. That is the fifth brief this sweep whose premise
did not survive contact with the code (90, 66, 67, 55, 56, and now both halves of 59).
Explicit save is the right way round here: there is no version history and no undo across a reload, so a debounce put a stray keystroke on disk within a second with nothing to recover from. The reload path is now careful about the case the old code could not be — when the file changes on disk and the user has unsaved edits, the new content is deliberately not adopted, because silently replacing what someone is typing is the worst available resolution.
Second half of the root problem, unmentioned by the brief: a .txt in your home
directory opened nothing at all. openWith.ts gated Notepad to onlyRoots: ['notes'], so home/notes.txt resolved to null — no app claimed it and the
double-click was silently swallowed. A test left by brief 65 already recorded this as
"a dead end … brief 59 has a test to flip", and it is flipped.
The migration decision: default to home, keep notes reachable, and decide per
install rather than storing a flag — notes while it still holds files, home
otherwise. Silently switching would show a returning user an empty home directory and
read as "my notes are gone", which is worse than the inconsistency being fixed. The
store now holds { root, path } instead of a bare path, because a path alone became
ambiguous the moment the app stopped being hardwired: Documents/todo.txt exists in
both roots, and a window remembering only the path would read one and save to the other.
Find/replace is pure and tested because each piece has a silent failure in it: an empty
query must not report a match at every position; aa in aaaa is two matches not
three; and replace-all scans the original and assembles a new string, because
replacing in place re-searches text that already contains the replacement, so a → aa
never terminates. The query is literal, not regex — typing ( into a find box must not
throw. The size guard refuses >1 MiB and hands the file to Code Editor rather than
just saying no, reading the size from the directory listing (downloading a 200 MB log to
discover it is too big to open is the problem the guard exists to avoid).
Measured in the shipped bundle: double-clicking note59.txt in home opens Notepad and
the toolbar badge reads home; Ln/Col tracks the caret (Ln 1 → Ln 3 after two
ArrowDowns); find reports 1 of 8 and a miss says "No results" in words rather than
colour alone; the dirty • appears and the file on disk is still unchanged at that
point, proving autosave is gone; Ctrl+S writes it and the marker clears; a 1 MiB .log
is refused with an explanation and Monaco opens it. No page errors.
Probe lesson worth keeping: a >1 MiB JSON PUT to /files/content silently 413s, so
the first version of that test was exercising a file that had never been created. Big
fixtures go through multipart /files/upload.
Tests: frontend vitest 353 → 389, backend unchanged at 208 + 46.
2026-08-05 — brief 60, Markdown Editor: an authoring tool, not a preview pane
Toolbar, keymap, scroll sync, draggable split, outline rail, images into the real filesystem, and lazily-loaded syntax highlighting. Brief moved to done/60-markdown-editor-authoring.md.
The first brief in this run whose problem list was accurate. Five apps in a row
had briefs that misdescribed their own code; this one's six problems were all real.
What it got wrong was one-directional: it framed images as a missing input ("no
image paste"), and the output path was broken too — a document that already
contained an image at docs/shot.png never showed it, because the src went to the
web origin rather than the filesystem. In an OS whose selling point is real files, the
markdown app could not see them. Two neighbours fell out of the same fix: remote
images are refused by the shipped CSP with no explanation (now a labelled chip), and
inline data: images rendered as nothing because react-markdown's own sanitizer
strips the scheme (now permitted for image src only, data:text/html in an href
still stripped, both pinned by tests).
Not in the brief at all: links in the preview navigated the whole desktop away.
An <a href> in there is a live link inside the single-page app hosting the entire
OS, so clicking one in someone's README replaced the desktop, unsaved buffer
included. External links now open in a new tab with noopener — this page holds an
authenticated session — #anchors scroll the preview's own container (headings
gained id slugs, so a document's table of contents works), and relative links are
intercepted.
Scroll sync is anchored on every block, not the brief's headings-only proposal: a
checklist or a changelog has no headings and would get no sync at all. The editor
half is the part nobody plans for — a textarea exposes scrollTop and nothing else,
and line * lineHeight is wrong as soon as a line wraps, which in prose is every
line — so line tops are measured with a mirror element, capped at 4000 lines.
Measured on a 2800px document with one full-width image: anchored sync lands the
target heading 0px from the top, proportional would be 140px out. On pure prose
the two agree, which is precisely how this ships broken.
The toolbar does not go through React state, and that is deliberate: assigning
textarea.value — which a state update does — clears the element's undo history,
so one Bold click would cost the user every undo step they had. Edits apply as a
selection plus execCommand('insertText') over the minimal changed span. Measured:
Ctrl+Z reverses a toolbar edit and keeps going into the typing before it.
Found in the browser and not in review: Ctrl+K inserted a link and opened the
command palette on top of it, because the shell binds mod+K globally on window.
stopPropagation at the React root fixes it; the shadowing is now a documented row
in the shortcut registry, with the same "only while X has focus" note File Manager's
mod+H carries. Headings are on mod+shift+1..3 because Ctrl+1..9 is a reserved
browser accelerator a page cannot cancel, and shifted digits match on event.code
since Ctrl+Shift+8 arrives as key: '*'.
Highlighting adopted with the numbers the brief asked for: the lazy chunk is
53.68 kB gzipped (167.79 kB raw) plus 0.32 kB of CSS, loaded only when a document
turns out to contain a fence, and the loader costs 0.26 kB in the editor's own chunk.
Dropping eight of sixteen grammars saved 0.19 kB — the engine is the entire cost,
so a shorter list buys nothing and extending it later is nearly free; lowlight's
common (37 grammars) would not be. The theme is hand-written against the OS tokens
rather than an imported highlight.js stylesheet, which hardcodes a palette that looks
wrong in half the desktop's themes and contradicts the locked B&W + accent identity:
comments recede, declarations are bold, literals take the accent.
Two more, unasked: task checkboxes are clickable (remark-gfm renders them
disabled, which is right for a static preview and useless in an editor), and
md-preview — a class with no CSS anywhere in the repo — is now load-bearing for
the anchor lookup and the highlight scope.
An environment note worth keeping: installing a dependency with the default node22
rebuilt better-sqlite3 against the wrong ABI, and 37 backend tests started failing
with "Module did not self-register" — nothing to do with the code. PATH=/opt/node24/bin npm rebuild better-sqlite3 restores it. Use node24's npm for installs in this repo.
Tests: frontend vitest 389 → 492 (103 new in a package that had none), backend
unchanged at 208 unit + 46 e2e, turbo typecheck lint test format:check build green
across 94 tasks. New dependency: rehype-highlight (pulling lowlight + highlight.js),
justified by the measurement above.
2026-08-05 — brief 68, Media Player: remember the queue, name the codec, keep the volume
Persistence (volume, mute, rate, repeat, shuffle, per-file resume), shuffle and repeat on a derived order, durations in the queue, sidecar subtitles, and the deferred keys from brief 89. Brief moved to done/68-media-player-playlist-and-codecs.md.
Six of its seven problems were real. The seventh — "an unplayable codec is a black box" —
was half-fixed already by the work around brief 89, which the brief predates: the error
mapping, the overlay and the "Download instead" button existed. What was missing was
naming the file (the queue auto-advances, so the message was about an unidentified one of
twelve tracks), a container hint, a notify() for when the window is behind others, and a
test. Deliberately still not done: skipping a failed track and carrying on, which VLC does
and which here would make the diagnosis invisible again.
Two bugs the brief did not know about. The Open dialog offered formats the app rejects —
its extension list had drifted from mediaKind, offering avi/weba (pick one and you got
"Unsupported file type", a dead end reached through the app's own dialog) and omitting
oga/ogv; it is now derived from the same constants. And the icon-only transport buttons —
Prev, Next, Play/Pause, Mute — carried a <Tooltip> and no accessible name, which a
tooltip is not. Found because the probe could not address them.
Subtitles have no <track> element, for two measured reasons: /files/download serves
application/octet-stream and a text track is only parsed as text/vtt, and the usual
blob: workaround is refused by the shipped CSP — there is no media-src, so <track>
falls back to default-src 'self'. Cues are therefore parsed in-app (one parser for WebVTT
and SubRip) and pushed in with addTextTrack + VTTCue: no new route, no dependency, and
no CSP relaxation, which matters because widening the policy is human-gated here.
Whether a cue is actually painted is not queryable — activeCues stays populated when a
track is hidden — so it was measured by screenshotting the video frame with subtitles on
and off and comparing bytes.
Three design errors the browser caught, all mine:
- Shuffle pinned the playing track first so switching it on would not "jump away". That re-derives the order on every track change, so Next re-permutes the queue: a three-track folder played b, c, b. The pin is gone; the order depends only on paths + seed, and a full cycle provably returns to its start.
- Repeat-one did nothing. Re-selecting the path already playing changes no state, so nothing remounted and the track just stopped. The element replays itself now.
- Repeat-one disabled Next on the last track. A repeat mode that disables navigation is
a bug; manual moves wrap, only
endedreplays.
Resume remembers nothing under 60s and treats the last 15s as finished, so short clips
accumulate no state and the credits are never offered as a resume point; writes are
throttled to one per 5s (a timeupdate fires ~4×/second) and the map is capped at 200 with
the least-recently-written dropped. Durations come from a detached element with
preload="metadata" — sequential, capped at 60 tracks, cached per session, because this is
the one feature here that can otherwise fire dozens of requests nobody asked for.
Prefs are hand-rolled localStorage (still zero non-core dependencies in this add-on). The
brief wants them on brief 49's durable dotfiles and it is right, but CONFIGS_DIR is
declared in the backend env schema and used by no module — there is nowhere durable to put
them yet. One function to move when 49 lands.
Probe technique worth keeping: all the media was generated in the page — WAV bytes
written by hand (a 150-second file for the resume test) and a canvas recorded with
MediaRecorder for real vp8 video — then uploaded through the API. Real decodable files the
backend range-streams, with no binary fixtures in the repo.
Tests: frontend vitest 492 → 550 (58 new here, which had 7), backend unchanged at 208 + 46. All 94 turbo tasks green.
2026-08-05 — brief 69, Snipping Tool: say what it can capture, and destroy what it redacts
A launcher instead of an ambush, delay capture, an opaque redaction beside the pixelate one, per-region detection of what a DOM raster cannot see, and reopening a saved capture. Brief moved to done/69-snipping-tool-honest-capture.md.
The question the brief asked to have answered — is the Terminal actually captured? — is
yes. Measured against ground truth rather than asserted: the browser's own screenshot of a
rectangle over a text-filled Terminal, versus the tool's capture of the same rectangle. The
per-row ink profiles correlate 0.986 at a 0px offset, with total ink 31% vs 39%; that gap
is subpixel versus grayscale antialiasing, not missing glyphs, and the stacked pair reads
identically by eye. It is contingent, as the brief suspected: xterm runs its DOM renderer
here (measured: zero canvases inside .xterm) and @xterm/addon-webgl would silently
invert the answer — which is why the new detection looks at what is in the region rather than
at a list of apps.
Two probe bugs produced a confident wrong answer before that number: opening a Terminal window does not focus xterm's textarea (so the first comparison was of two empty prompts), and taking the ground-truth screenshot after launching the tool put the tool's own window inside the rectangle (so the two images were of different desktops, and correlation fell to 0.5). Both are the same lesson: when a measurement disagrees with the picture, suspect the measurement.
Item 3 was wrong. "Five annotation tools exist, but not the one with a real purpose" —
the fifth was the redaction tool, pixelate, sampling from the pristine base image. But the
brief's reasoning survives its own error: it argues for opacity because a blur can be
reversed, and so can a mosaic — recovering pixelated text is a solved exercise, and the old
8×ratio blocks were squarely in range. So Black out (flat, opaque, fixed colour, first
in the toolbar) now sits beside a much coarser pixelate, and the labels say which is which.
getDisplayMedia is rejected, which the brief flagged as its one contested call. It
captures the host browser surface — chrome, other tabs, whatever the user picks in the
browser's own picker — and the illusion this project rests on is that the tab is the
display; it also needs a permission prompt per capture, which is the same ambush the
launcher exists to remove. The gap it would close is now visible instead: the region is
scanned for canvas, video and cross-origin images, and the capture carries a dismissible
banner naming what may be missing. Deliberately "may not" — whether an element survives
depends on the browser and on how it draws itself.
The hijack is fixed (the app opens to Region / Whole desktop / after 3s / after 5s / Open a
saved capture, and arms only on a choice), and Escape now returns to that launcher instead of
closing the app. Half of the brief's complaint there was already false: the overlay has
always carried a "Drag to select a region · Enter for the whole desktop · Esc to cancel"
hint. Delay capture's countdown badge is pointer-events: none — load-bearing, since the
whole purpose is photographing things that vanish when clicked — proven three ways, including
opening a real menu mid-countdown.
The calc(100vh - 140px) line was real but not for §16's reason: this stage is a full-screen
portal, so 100vh genuinely is its height. The bug is the hardcoded 140px of chrome under a
wrapping toolbar. Now flex-sized; measured at 1280×577 the canvas sits 13px inside its
stage instead of overflowing.
The redaction check is the brief's verify-bar item, done as a browser measurement rather than
a unit test: the saved PNG is fetched back off the filesystem, decoded, and the pixel inside
the redacted rect read out — [11,11,13] where it was [236,236,233]. A unit test could
only have checked a canvas mock; this checks the file.
Tests: frontend vitest 550 → 568 (18 new in a package that had none), backend unchanged. All 95 turbo tasks green, no dependency added.
2026-08-05 — brief 70, Calculator: every key reachable, then worth reaching
Scientific mode on the existing evaluator, memory keys and a tape, a measured minSize, and
full precision through a chained calculation. Brief moved to
done/70-calculator-reach-and-depth.md.
Item 4 was already done, and was hiding a worse bug. The brief says 0.1 + 0.2 renders as
0.30000000000000004; formatResult had been rounding to 12 significant digits all along, so
it read 0.3 before this brief started. But the brief's reasoning — "keep full precision
internally" — pointed at a real defect nobody had spotted: only the rounded string was
kept, and the next operation re-parsed it, so 1÷3 then ×3 gave 0.999999999999. A number
token now carries an optional exact value beside its display text: the expression shows
0.333333333333×3 and evaluates to exactly 1. The display says when it is rounded and a
copy button hands over 0.30000000000000004.
The layout diagnosis in the brief is backwards. It blames the keypad for losing the flex
fight, but flex-1 on the display already meant the display shrinks first and flex-none kept
the keypad at its natural height. What was missing is a floor for the display and, mainly, an
honest minSize — the manifest's 280×420 predates Programmer mode and was never measured.
Scientific is the tallest mode: 276px keypad + 27px memory row + 36px display floor + ~29px
tabs + ~32px chrome = 400px before the display shows anything, so minSize is now 300×430.
Verified by measuring every key's rect against where the taskbar starts, at 1400×900, at
1280×577, and at exactly 300×430.
One measurement to pass on: a window opened at 1280×577 is fine; a window opened tall and
then squeezed by shrinking the desktop puts its keypad ~200px below the taskbar. That is brief
52's own recorded follow-up (reflow-on-resize, and restoreLayout not re-clamping), left alone
deliberately — it belongs to the window manager, not to this app.
Scientific mode extends the same tokenizer rather than forking one, so Basic is unchanged
by construction (its expressions are a strict subset) and the two tabs cannot drift. Three
details the tests forced out: ^ must be right-associative (2^3^2 is 512, and the loop that
was there would have said 64); factorial cannot be folded into the number as it is read,
because at the closing paren of (2+2)! the value does not exist yet — it is a postfix token
emitted straight to RPN; and function names must be matched before constants, or the e in
exp is read as Euler's number. Domain errors explain themselves (sqrt(-1) → "sqrt needs a
value that is not negative") instead of returning NaN, and = closes parentheses the user left
open. No eval, no new Function — grepped as well as read.
Memory and tape are session-scoped and live at the Calculator level so they survive a Basic ⇄
Scientific switch. Programmer mode takes neither: BigInt at a fixed 64-bit width, where a
double from the register would be right in one tab and wrong in another.
Probe lesson: the Programmer check reported "base conversion is broken" and it was not —
Programmer mode opens in HEX, so typing 255 and pressing HEX changes nothing. Diagnosed by
writing a unit test for setBase. That mode now has 9 tests of its own (all four bases and
back, AND/OR/XOR, shifts, NOT 0 = 18446744073709551615, division by zero), because it is on
the must-preserve list and had none.
Tests: frontend vitest 568 → 647 — 79 new in a package that had zero, which is worth naming: 1123 lines of arithmetic engine had shipped untested.
2026-08-05 — Brief 71: Clock, the countdown off-by-one and the storage decision for two apps
Brief 71 done. The first
brief in this run whose problem list was accurate in every item: the Math.round
was exactly where it said, the disclosure it told me not to touch was already there
and already right, and the storage complaint was correct for the reason it gave. The
work was to do it, not to correct it.
Math.round → Math.ceil in formatClockDuration, with the comment the brief asked
for on both formatters explaining why they differ — a countdown answers "how long
until it fires?" so any non-zero remainder reads at least 00:01; a stopwatch answers
"how much has passed?" so unelapsed time must not be shown. Sampled from inside the
page on a 6-second timer: 00:06 for 1036ms, then 983 / 1018 / 993 / 992 / 1013ms,
and 00:00 first at 6036ms — the instant it fires, not 400ms early.
The brief's verify bar asks to watch a 5-second timer, which the app could not
express: presets are whole minutes and the custom box parsed minutes, so 1:00 was
the floor. parseDurationInput now keeps a bare number meaning minutes (what the box
always meant) and reads a colon form as clock parts — 0:30, 1:30, 1:02:03.
Found by the probe, in no brief: pressing Start on that 6-second timer flashed
00:08 for 263ms. useNow freezes while inactive, so the first render after active
flipped true used a now from before the click and endAt - staleNow exceeded the
duration. Fixed twice: a zero-delay catch-up tick beside the interval, and
remainingMs clamped to durationMs — a countdown can never have more time left than
its own length, which is worth asserting in code whoever calls it.
The storage decision, landed once for Clock and Calendar (brief 72): there is no new
mechanism. A typed table per domain plus a NestJS module, exactly as todos,
sticky_notes and bookmarks already do. A generic key-value blob store was
considered and rejected — it would accept a malformed alarm time silently, where DTOs
reject 7:00, 25:00 and MTWTF.. at the door. Brief 72 should copy this shape
rather than invent a second one. Two deliberate choices inside it: rows map to
camelCase at the service boundary (the older modules leak pos_x and created_at
into React props; new surface starts clean, old ones keep their shape because changing
them is a client-visible break for no user gain), and lastFiredAt is opaque to the
server — a "07:00" alarm is due by the viewer's wall clock, so a server clock
deciding it would be a second, disagreeing source of truth.
The migration is a POST /clock/import that refuses a non-empty table, in a
transaction, so two tabs opening at once cannot double every alarm. Imported alarms
get the every-day mask because that is what they did before repeat existed;
importing them as one-shots would quietly change what the user had. Unreadable
entries are counted and reported rather than dropped. Verified by seeding the exact
zustand blob the old app wrote: both alarms and the world clock adopted, the legacy
key removed, two notifications raised, and everything still there after a reload with
no clock localStorage at all.
Snooze has to live in the window, because notify() raises a toast and there is
no notification-action API — a Snooze reachable only from the notification centre is
one the user cannot press. A ringing alarm banners above the tab strip, visible from
every tab. Snoozing patches enabled: true as well as snoozedUntil: a one-shot
alarm has just disabled itself, and without the re-arm the snooze silently never
arrives. A pending snooze also suppresses the scheduled time, or snoozing at 07:00:10
rings again at 07:00:11 while the clock still reads 07:00. Waited for a real minute
boundary to check all of it, including the one-shot disabling itself with
lastFiredAt set and the row reading "Snoozed — rings again at 17:29".
Multiple timers without reintroducing drift: the transitions moved into timerModel
as pure functions taking now, one shared interval for the tab, nothing counting
ticks. Against a genuinely backgrounded tab (a second page brought to the front, so
Chromium really throttles) the display read 03:49 after 72s away where the wall
clock said 03:49.
Two UI facts worth carrying: core's Input forwards className to the <input>
and leaves its own wrapper div intrinsically sized, so sizing the component does
nothing to its footprint — the width must go on a wrapper you own; and the spacing
scale is rem against a 13px root, so w-36 is 117px, not 144, which is why the
original w-28 (91px) clipped the time field to :24 PM in a 12-hour locale.
The core scheduler stays unbuilt, as the brief directs — a closed app has no code running and the honest fix is OS-level, so no half-scheduler went into Clock. The existing disclosure stays, extended by one sentence now that the alarms genuinely are in the container.
Tests: frontend vitest 647 → 701 (54 new in a package that had zero), backend e2e 46 → 59, unit unchanged at 208. All 97 turbo tasks green. Zero new dependencies.
2026-08-05 — Brief 72: Calendar, the storage mechanism reused and recurrence that stays a rule
Brief 72 done. The storage complaint and the recurrence gap were exactly right; two smaller items were not — one was already implemented, and another had been fixed by a different brief since this one was written.
Storage reuses brief 71's shape on purpose. A calendar_events table, camelCase at
the service boundary, class-validator DTOs, global SessionAuthGuard (the e2e asserts
401 on all five routes). Fifth app to persist here, nothing invented: the DTOs reject
FREQ=HOURLY, interval: 0, a 2026-7-6 exception date and an off-palette colour at
the door, which is the whole argument against the generic blob store that brief 71
already rejected. POST /calendar/import serves both the one-time localStorage
hand-over and ICS import, differing only by an onlyIfEmpty flag.
reminderFired is deliberately not migrated. It was a persisted boolean per event
and that model cannot survive recurrence — the first ring would silence every later
occurrence of the series forever. The guard is now eventId:YYYY-MM-DD in a
session-scoped Set; FIRE_WINDOW_MS already prevents replaying old triggers, so
persistence would only add silence for a reminder that is still due.
Recurrence stays a rule. No library, dayjs remains the only date dependency, and
instances are never materialised — a weekly standup is one row and the views ask for the
occurrences in the window they paint. Two behaviours that look identical and are not,
both now pinned: a month too short to hold the date (Feb for a "31st" rule) generates
nothing and therefore consumes no count, while an instance removed by an
exception does consume its index and its count. My first test asserted the opposite
of the former; the implementation was right and the test was wrong. Jan 31 also does not
slide to Feb 28 — sliding invents an occurrence on a date the user never picked.
The three edit scopes are pure plans (seriesEdit.ts returns patch/create/delete
rather than mutating), which is what made the subtle case obvious: "all events" must
apply the change as a delta, so editing the third Monday to 10:00 moves the series to
10:00 on its own original date. Setting the series start to the edited occurrence is
the obvious implementation and it silently deletes every earlier occurrence. "This
event" detaches (exception + standalone event, no override table). "This and following"
splits, dividing a count — 10 split at the third leaves head-ends-on-a-date and
tail=8, still ten in total — and collapses to "all" at the first occurrence, because
truncating a series to end before its own start leaves an empty series behind. A test
expands both halves and asserts they cover the original dates exactly once each.
ICS refuses to pretend. All-day DTEND is written exclusive as the spec requires
(the classic off-by-one), times are floating local with no TZID, and an RRULE outside
the subset — FREQ=MONTHLY;BYDAY=-1FR — imports as a single event and increments a
counter rather than becoming "monthly on the 26th", which would be wrong every month
with no way to notice. Round-tripped through the real filesystem via the OS save/open
dialogs.
Two brief items that were not what the brief said. "No all-day events" is wrong —
allDay was in the type, the dialog and both views since Wave C. The real gap was
multi-day rendering: both views filtered on isSame(event.start, day), so a
three-day trip was visible on its first day and invisible on the other two (measured: 1
cell, now 4). And "the bottom row clips at 1280×577" was already fixed by brief 52's
window clamp — measured at that viewport, the window is clamped to 533px and the last
row's bottom is 513 against a taskbar top of 533. The minSize was still dishonest
though, for a different reason: the grid compresses rather than overflows, so the
question is not "does it fit" but "does it still say anything", and at 480×380 a week row
is 25px — the date number and nothing else, six times over. Below 520px wide the
toolbar also wraps and eats 31px of grid. Now 520×400, where a row is 46px.
Found while probing, in no brief. A midnight-crossing timed event was drawn as an
all-day banner, turning a 22:00→02:00 night shift into a two-day bar with no times; the
banner is now all-day only and timed events clip per day (measured as two blocks,
top:1056 h:96 and top:0 h:96). And unticking "All day" on a month-cell creation left
a midnight-to-midnight 24-hour block — it now snaps to 09:00–10:00, unless the event
spans more than one day.
Also delivered: an Agenda view (the more useful reading of "day or agenda" — a day view is a week view with one column) which is the only place search is meaningful, and a six-colour palette shared by all three views through one module so an event cannot be amber in one and blue in another.
Tests: frontend vitest 701 → 782 (81 new in a package that had zero), backend e2e 59 → 80, unit unchanged at 208. All 98 turbo tasks green. Zero new dependencies.
2026-08-05 — Brief 73: Todo, and an ordering bug hiding under a wrong problem statement
Brief 73 done. Due dates, priority, one level of lists, bulk actions and keyboard-first adding all landed as specified. Two of the six problems were not what the brief said, and the one it got half wrong was sitting on a real bug it had not noticed.
"No ordering" is half wrong. Manual drag-to-reorder has been there all along and
works end to end — a useDrag handle, PATCH /todos/reorder, a transaction writing
position, ORDER BY position ASC. What was missing is the priority flag and
sort options. But the brief's instinct that ordering was unreliable was right for a
reason it did not give: reorder(ids) wrote positions 1..N onto whatever ids it was
handed, and the client hands over the visible rows. Reordering on the Active tab
therefore stamped 1..N over the completed rows' positions, two todos ended up sharing
position 3, and ORDER BY position was free to pick either. It looked correct because
the list being renumbered was exactly the list on screen. reorder now treats the ids
as a relative reordering of a subset — normalise to 1..N, find the slots those ids
occupy, place them into those slots in their new order — so rows the client cannot see
keep their exact places. Measured with b/d completed: Active [a,c] swapped gives
c@1 b@2 a@3 d@4, positions still unique, surviving a reload.
The position column shipped with DEFAULT 0, so every row predating it tied at
zero and the reorder above wrote over ties. The migration normalises to 1..N by
(position, id) and runs only when there is something to fix. DbService.migrate()
became public to test that: a :memory: database is per connection, so re-running
onModuleInit silently hands back an empty one, whereas migrate() is idempotent by
construction and can just be called again.
Item 5's clipped input measures fine, and I did not prove why. At 1280×577 with a
26-row list the add input sits 66px above the taskbar. I tried to isolate whether
this brief's min-h-0 is what fixed it by stripping the class live, the strip hit a
nested element inside core's ScrollArea (which has its own overflow-hidden, so its
min-content was already zero), and that experiment proved nothing — so no cause is
claimed. Most likely brief 52's clamp, same as Calendar's equivalent item. The
minSize did need changing for a different reason: two new header rows mean 130px of
measured chrome, which left the old 280×300 with 138px of list, under four rows. Now
300×340.
Due dates store the deadline instant, not the day. A date-only due date is
23:59:59.999 of that day, so isOverdue is a plain dueAt < now — correct across a
day boundary by construction, with no special case in any caller. The alternative
(store midnight and remember to treat it as end-of-day) pushes that reasoning into
every call site, which is where off-by-a-day bugs live: a todo due "today" would read
as late from 00:01. The cost lands on display instead — a 23:59:59.999 value is
shown as a bare date, so someone deliberately picking 23:59 gets a label off by a
minute. Cheaper than being off by a day in the comparison, and taken deliberately.
Overdue uses error tokens only; due-today gets a plain emphasis and the two states
are exclusive.
Manual order does not float priority. Priority leads the due and created
comparators and is purely a marker in manual, because a list that reorders itself
after you drag it is not a list you can arrange. Dragging is disabled outside manual
order for the same reason, and the toolbar says so instead of leaving a dead handle.
The module also moved to camelCase at the service boundary with completed as a
real boolean — it arrived as 0 | 1 and the frontend type read
completed: boolean | number, which is a type admitting it had a problem. Brief 71
deliberately left older modules alone, but this brief rewrites both sides in one
commit and Todo is the only consumer, so the exception is bounded.
Found while probing, in no brief: "Clear completed" was a dead button on the
Active tab — its count came from the loaded list, which by definition has no
completed todos, so it was disabled exactly where a user would reach for it. It now
asks without a number and reports what the server deleted. Write failures also
notified nowhere: a rejected PATCH rolled back and the row silently sprang into its
old state. And a query-key collision caught while writing it — lists under
['todos','lists'] would be swept up by peekTodos's ['todos'] prefix and
flattened into its Todo[].
Handed to brief 75 (Bookmarks): PRAGMA foreign_keys is never enabled on this
connection, so bookmark_links … ON DELETE CASCADE is decorative, and
removeGroup deletes the group without its links — deleting a bookmark group
orphans every link in it. Not fixed here; enabling the pragma globally would change
behaviour for a module this brief has no business touching. Todo's own list deletion
therefore unfiles its todos and deletes the list in one transaction rather than
trusting an FK — which is the right behaviour anyway.
Tests: frontend vitest 782 → 811 (29 new in a package that had zero), backend e2e 80 → 101 (21 new), unit unchanged at 208. All 99 turbo tasks green. Zero new dependencies.
2026-08-05 — Brief 74: Sticky Notes are sticky, and on-style
Two halves, and the first one mattered for the whole repo:
wiki/ui-conventions.md §45 named this file as "NOT a template", and it was still
the app a newcomer would copy. Rows were <div onClick> (unreachable from a
keyboard), delete was a raw <button>, scrolling was a raw overflow-y-auto, and
console.error was the only signal a write had failed — three briefs after
notify() shipped. All four are fixed, and the row controls are now siblings of
the row button rather than nested inside it, which also avoids the
<button>-in-<button> trap (§42). That was the better answer to the brief's
suspicion that clicking delete also opened the note: it did not
(stopPropagation was already there), and with siblings there is nothing to
propagate. This was also the last console-only failure path in any add-on.
The second half gave core a new seam. desktopLayer went onto AppConfig, not
AddonManifest — the shell reads AppConfig[] from useEnabledApps(), so the
manifest type typechecks in the add-on and fails in core. Core still imports no
add-on package; it knows only "some app contributed a layer", exactly as it knows
only "some app contributed a command source". The layer sits above the icon grid
(which spans the whole desktop and would otherwise intercept every click aimed at a
note) and below every window, inside one pointer-events-none wrapper that each
interactive element opts back out of. ui-conventions.md §47–48 now carry that
contract, and §45 was rewritten from a defect list into a fix record.
The colour decision the brief asked to be grilled: it was already settled one brief earlier. Brief 72 gave Calendar a six-name palette applied as a tinted border plus a low-alpha fill, on exactly the reasoning this brief re-raises — enough hue to tell two things apart, not enough to read as a saturated block. So this reuses that palette and treatment rather than inventing a second scheme. Rejected: saturated sticky yellow (off-identity), and the brief's own suggestion of surface-container steps alone (on-identity but five near-identical greys, which defeats the only organisational affordance a note colour has). The map is duplicated deliberately — the rule promotes a shared helper to core on the third copy, and this is the second.
pos_x/pos_y were reused as the desktop position rather than replaced, so the
migration moves no data, and existing notes default to list-only: putting a note on
the desktop is a user action, never a migration's decision. Drag and resize persist
once on release via setPointerCapture in about twenty lines rather than a new
dependency, and the clamp is a pure tested module because it is the one thing here
that can lose data — a note dropped past the edge is unreachable after a reload.
Found while probing, in no brief: the layer mounts the notes query at page
load instead of when the window opens, so the cache now lives for the whole
session and a stale cache is reachable for the first time (a second tab, or brief
80's restore). Verified it degrades correctly: a delete on a vanished id 404s, the
user is told, and the list converges to the server's truth instead of showing a
phantom row. It also invalidated an assumption in my own probes, which seeded via
raw fetch and then drove the UI — safe when the window mounted the query
afterwards, wrong now. The probes reload after seeding and say why.
Tests: frontend vitest 811 → 828 (17 new in a package that had zero), backend
e2e 101 → 115 (14 new), unit unchanged at 208. All 100 turbo tasks green —
the 100th is this package's new test task. Zero new dependencies.
2026-08-05 — Brief 75: Bookmarks becomes a model, and three bugs surface
The brief existed because brief 50 (web browser) plans to reuse this app as the
OS's bookmark store rather than build its own, which turns a flat one-level model into
a load-bearing limitation. So: nested folders via parentId with a cycle guard,
href → url renamed all the way to the SQLite column, Netscape-HTML import/export,
search that keeps the path to a match, and duplicate detection on a normalised URL.
The contract brief 50 will consume is written into this app's index.ts — the field is
url, only http(s) can be stored, the tree is flat + parentId with reusable
helpers — so it is settled once instead of translated at that seam forever.
The bug brief 73 handed over is fixed. deleteGroup relied on
ON DELETE CASCADE, and even carried a comment saying SQLite handled it — but
PRAGMA foreign_keys is never enabled on this connection, so the constraint was
decorative and every folder deletion silently orphaned its links, invisibly and
forever. Now an explicit subtree delete in one transaction, plus a migrate-time sweep
for what the shipped bug already produced: orphaned links are deleted (the user
confirmed "delete the group and all its links", so undoing that would be the wrong
repair) while a folder whose parent is gone is promoted to the root, because
nobody ever confirmed losing that. The pragma stays off — flipping it globally would
change behaviour for every module at once — so each column that would want a foreign
key now carries a comment saying why it has none.
Found while probing, in no brief: @IsUrl() was wrong in both directions at once.
Measured, it rejected http://localhost:3000 and http://imbatranim — the OS is
itself a localhost web app, so a user could not bookmark their own dev server — while
accepting ftp://x.com, a scheme nothing here can open. Replaced with an explicit
http:/https: allow-list parsed by the platform's URL. That became
security-relevant the moment this brief added import: a Netscape file is untrusted
input, bookmarks render as <a href>, and a javascript: URL in the table would be
stored XSS. The whole import is refused rather than partially applied if one URL fails.
Found while probing, in no brief: core's Select showed values instead of labels.
The new folder picker read 6 rather than Work / Specs. <Select.Value> with no
children renders the raw value, because base-ui can only resolve a label when
Select.Root gets an items map — so every Select whose value differed from its
label was affected, including git-gui's repository picker and Calendar's reminder
offsets. Fixed once in ui/Select.tsx; verified in the browser that git-gui's picker
now reads "Home". No jsdom added: core's vitest config explicitly defers component
tests until a brief needs them, and a browser check is the stronger evidence anyway.
And one of mine: the new delete confirm said "the empty folder Work" about a folder holding a subfolder and two bookmarks — the subtree walk recursed with the same "is this the target?" predicate and so kept looking for the target instead of collecting its children. A confirm that understates what will be lost is the one direction that must never happen; it is now a tested pure function.
The app also owed the same style debt brief 74 just paid for sticky-notes: raw
<button>s, a <span onClick> rename no keyboard could reach, and no failure signal
at all — every mutation had onSuccess only, so a rejected write did nothing
visible. Kit Buttons, real rows, one reportFailure() per mutation.
Tests: frontend vitest 828 → 886 (58 new in a package that had zero), backend e2e 115 → 138 (23 new), unit unchanged at 208. All 101 turbo tasks green. Zero new dependencies.
2026-08-05 — Brief 76: the Git allowlist grows, without loosening
The git backend was already the most carefully built thing in the repo — one execa
seam, array args, never a shell, a -- pathspec guard, GIT_LITERAL_PATHSPECS=1, a
jailed cwd, and an adversarial security review behind it. Brief 76 is the first
extension of its subcommand allowlist since that review, from 7 to 12, so the point
was to add capability without adding surface. Grepped afterwards to be sure: still
exactly one execa( call site, still one shell: false.
The crux is that a ref is not a pathspec. -- separates options from pathspecs;
there is no equivalent for git switch <name>, so a branch name beginning with -
would simply be read as a flag. assertRefName enforces git's own ref-format rules
in-process and refuses such input before it becomes an argument — 27 hostile names
are tested, --upload-pack=/bin/sh among them. The existing pathspec guard is
deliberately not reused: it permits - and .. on purpose, which is precisely what
must not pass for a ref. stash@{n} is built from a validated integer for the same
reason: the client names an item, never a revision expression.
Per-hunk staging is git apply --cached with the patch on stdin, which is the one
new capability the seam gained. Stdin is itself the safety choice — a patch is the only
large structured client-supplied text here, and this way it is never an argument, never
a temp file, never anything a shell sees. The path safety is git's own default, and it
was measured on git 2.43 before the code was written to depend on it: ../outside
is refused with "does not exist in index", ../../etc/x with "invalid path". So
--unsafe-paths must never be passed, and a test asserts its absence.
Two considered departures from the brief, both now locked in decisions.md.
No server-side dirty-tree block on a switch: git already refuses a switch that would
overwrite local changes and deliberately allows one that carries clean changes across,
which is a normal safe workflow — blocking it would make the app worse than the
Terminal it exists to replace, so the warning lives in the UI and git's refusal is
surfaced verbatim. And discard is tracked-files-only: discarding an untracked file
means deleting it, which is git clean, a different and more dangerous verb, so the
user is told that instead of getting a silent no-op.
Push/pull/fetch are explicitly out, with the reason written down rather than left as an implied gap: they need a credential living in the container and an outbound path, which is a real security design owed its own brief alongside brief 50's SSRF stance.
Found while probing, in no brief: the 10 MB output cap failed silently — with
reject: false an overrun arrives as a result with empty stdout, indistinguishable
from "no changes", so a big diff read as "this file has no changes". Fixed with a 413
carrying a real sentence… and then my own frontend swallowed it, because I put the
message into the diff state where the parser found no files and rendered "0 hunks"
over an empty body. Found only by actually opening a 16.7 MB diff instead of trusting
the backend test. Also: a phantom context line in every parsed hunk (a bare '' from
split('\n') treated as context, when git writes an empty context line as a space)
which corrupted every rebuilt patch's @@ counts — caught by the parse → patch → parse
round-trip test before it ever reached git.
Recents got their own git_recent_repos table rather than reusing Notes'
recent_files: that one is a bare path with no root, and folding two meanings into one
table is the pattern this repo has refused since brief 71.
The security review was run through the real HTTP API, not only unit tests: every case on the brief's list refused, all 13 new routes 401 without a session, and zero of 8 candidate artefacts created anywhere outside the work tree.
decisions.md passed its 200-line cap and was split — the 2026-07-16/17 pivot-era
decisions moved to decisions-pivot-era.md, unchanged and still locked.
Tests: backend unit 208 → 282 (74 new), frontend vitest 886 → 916 (30 new in a package that had zero). Backend e2e unchanged at 138. All 102 turbo tasks green. Zero new dependencies.
2026-08-05 — Brief 77: the REST client gets a workflow
Environments are the feature that makes a REST client usable rather than a curiosity:
{{var}} in URL, headers and body, substituted at send time and never stored, so
one saved request works against localhost and a deployed instance without editing.
The security-relevant part is that a variable ends up inside a URL the proxy fetches,
so the reviewer's trick is a value that smuggles a scheme — an innocent
{{base}}/users with base = file:///etc/passwd. That is refused in the client and
by the proxy: defence in depth, where the shallower layer exists to give the better
message (which scheme, and where to fix it) rather than an opaque backend error. Same
for a variable injecting \r\n into a header. A missing variable, by contrast, is
only a warning — sending is still the user's call — and the strip offers to add it to
the environment in one click.
Secrets are stated plainly to be unencrypted on disk, at the top of the editor, because encrypting them needs a key and the honest home for that key is brief 50's account-derived one. What the flag buys is real and listed: masked, excluded from an export by default (name kept so the recipient fills in their own), and never baked into a saved request.
The brief's item 2 was half wrong, and the half that was right hid a real bug.
History was surfaced with a replay handler — but HistoryEntry stored only method,
url, status and ts, so replay set those two fields and left whatever headers and body
were already in the builder. Click a GET from history while a POST body and an
Authorization header are loaded, press Send, and you send a different request with
the previous request's credentials attached. Worse than no replay. History now carries
headers, body and elapsed time.
curl in and out is hand-written with 40 tests, and explicitly not a shell: $(…)
and backticks stay literal, because a pasted command is untrusted data. The
round-trip test earned its keep immediately — the tokenizer only handled a backslash
before a newline, so shellQuote("it's") (which emits 'it'\''s') came back with a
stray backslash. Import previews what it parsed before applying it and names anything
dropped, so a -o out.json cannot vanish silently.
Multipart and raw binary needed one backend change: bodyBase64 on the proxy DTO. It
bypasses nothing — the scheme allowlist, size cap, timeout, redirect cap and header
sanitising are all upstream of the body — and the review re-checked that a
bodyBase64 request to file:// is still refused. The envelope is built client-side,
keeping the proxy a dumb relay whose guardrails are about where a request goes.
Found in my own work: the Bearer helper defaulted to the first variable, which in
a normal environment is base — producing Authorization: Bearer {{base}}, wrong in
a way that still looks plausible. It now prefers a secret-looking name. Also, every
notify() in this app was missing appId, so its toasts had no icon (§23).
The SSRF stance is unchanged and was re-verified: private ranges stay allowed here
because the owner types every URL, and decisions.md explicitly forbids "harmonising"
it with brief 50. The review also confirmed the pre-existing guarantees still hold: a
redirect that changes host drops authorization and cookie while an ordinary header
travels, and a 14 MB response is capped at 10 MB and flagged rather than hanging.
Tests: frontend vitest 916 → 1022 (106 new in a package that had zero), backend unit 282 → 287. e2e unchanged at 138. All 103 turbo tasks green. Zero new dependencies.
(Housekeeping: brief 76's outcome recorded its frontend totals as "828 → 858". The baseline was carried over from brief 74 rather than brief 75; the true figures are 886 → 916, corrected in place. The "30 new" count was right, and no other number in that entry was affected.)
2026-08-05 — Brief 78: Archive Manager stops being a progress bar
The most defensively written module in the repo got a new surface, and the whole job
was making sure the new surface routes through the existing guards rather than
around them. The shape is unchanged: same execFile with array args, same
resolveSafe jail, same temp-dir-then-realpath-walk, same ratio caps.
The format question was checked, not guessed — the brief said so explicitly,
because this is the class of assumption that broke ps and git. Docker pulls are
blocked here, so it was cleared the way brief 68 cleared --no-same-owner: busybox's
own source plus aports@3.22-stable main/busybox/busyboxconfig, cross-read on
3.21-stable. The answer is asymmetric, which is exactly why a guess would have
been wrong. Reading uses busybox's built-in decompressors, and
CONFIG_FEATURE_SEAMLESS_GZ/_BZ2/_XZ/_LZMA are all =y — so .tar.xz lists fine.
Creating is a different mechanism entirely: tar vforks and execlps a separate
compressor applet (archival/tar.c:573-621), and Alpine sets CONFIG_GZIP=y,
CONFIG_BZIP2=y, but # CONFIG_XZ is not set. A tar -cJf would have died at
exec time with a message about xz that says nothing about the real cause. So xz is
offered for extraction only. (The brief's item asking to "add .tar and .tgz" was
half wrong — detectFormat already had them.)
Browse-inside is the headline. GET /archive/list reads a zip's central directory
or runs tar -tv, and extracts nothing — proved by a test that snapshots the directory
before and after, not by reading the code and believing it. The load-bearing choice:
a refused entry is reported, not hidden. Every declared name goes through the same
resolveEntry a real extraction uses, and a failure lands in refused with its reason
rather than being quietly dropped. A listing that hid the dangerous entries would be a
listing that lies about the file; the UI turns it into a banner naming them, so the user
learns the archive is hostile before pressing anything.
Selective extraction is a new road into the zip-slip machinery, since a selection is
client input. Three guards, all tested. Each chosen name goes through the jail. A name
the archive does not declare is refused outright instead of being handed to tar and
hoped over. And every declared entry is still checked, not just the selected ones —
otherwise not-selecting the bad entry is the bypass. Verified: a zip holding one safe
file and one ../ entry is refused even when only the safe file is picked. Chosen tar
members go after --, tested with an archive containing a member literally named
-rf.txt.
Progress is a polled job, not a new transport — a WebSocket for one feature would be
a second realtime channel to secure, while an id plus a status endpoint reuses the guard
that already exists. The id is a CSPRNG UUID rather than a counter, because it is the
only thing naming a result; jobs are TTL-swept and capped. The failure path got as much
attention as the progress: a job that dies minutes in reports state: 'failed' carrying
the service's own sentence, instead of ending in silence.
Non-UTF8 names are decoded lossily and the row is flagged repaired — deliberately not a CP437 guess, because the "names are UTF-8" flag is frequently wrong in the wild and a mis-guessed codepage yields a different wrong name with no warning attached. A replacement character is visibly wrong, which is the honest failure, and the repaired text is slash- and NUL-free so it cannot become a traversal the raw bytes were not. Encrypted zips are detected from the general-purpose bit and declined with the reason, rather than failing cryptically part-way through.
Add-to-existing-archive was dropped, with the reason recorded: appending means either re-packing (which is "compress" with extra steps) or mutating the file in place, and both give up the property that a failed operation leaves the original untouched.
Verified against real fixtures — a 43-entry zip, a .tar.gz, a .tar.bz2, and an
evil.zip built with fflate containing ../../ESCAPED.txt — through the production
bundle on the real backend: listing extracted nothing, the traversal entry was reported
then refused with nothing escaping anywhere, ../../etc/passwd / /etc/passwd / an
invented name were each refused, 2 of 43 files extracted meant exactly 2 on disk, the
job reached 100% with its result, a failing job named its reason, an unknown id 404'd,
a created archive re-opened, and all three new routes 401 without a session.
Tests: backend unit 287 → 319. Frontend vitest unchanged at 1022, e2e unchanged at 138. All 103 turbo tasks green. Zero new dependencies.
2026-08-06 — Brief 80: the OS learns to back itself up
The README's answer to "how do I back this up" was a host docker run, and its answer
to a forgotten password was "delete the volume". A product that tells you to delete
your data as a recovery step should be able to back it up first — and the shell command
is impossible for two of its own audiences: the kiosk ISO has no host shell, and
nobody handed a VPS instance has docker access. Settings → Backup replaces it.
The archive never touches disk. tar -czf - streams straight to the response.
Writing the tarball into the tree being archived is both a recursion trap and a
disk-space trap on a volume that may already be near full — and if tar fails after the
headers are out, the socket is destroyed, so the client gets a truncated gzip that
fails its own CRC. A partial backup can never look like a complete one.
Brief 78's habit paid twice more, and both answers changed the design. Reading
busybox's source rather than assuming GNU behaviour turned up that -C is
single-valued — it parses into one base_dir and calls xchdir once, after option
parsing — so the GNU idiom of several -C interleaved with paths would have produced a
differently-rooted archive on Alpine, discovered at the worst possible moment. The
manifest and the database snapshot therefore ride inside the tree being archived.
Then --exclude turned out to be unanchored in both tars, matching at every /
boundary: a bare .imbatranim/db.sqlite would also have silently eaten a user's own
Documents/.imbatranim/db.sqlite. Every pattern is ./-prefixed, which anchors it
because member names keep their ./ — strip_unsafe_prefix strips a leading / and
../ but deliberately not ./. Measured on GNU tar 1.35, read out of busybox for
Alpine, and there is a test that plants exactly that file and asserts it survives.
The database is snapshotted, not copied. It lives inside the volume, in WAL mode;
tarring it hot gives a torn file and omits the -wal, so the archive would look fine
and restore to a database missing its most recent writes. VACUUM INTO — bound as a
parameter, never interpolated — builds a checkpointed single-file copy from a read
transaction. A test extracts it, opens it read-only, and reads back a row.
Restore reuses the hardened extractor by splitting it, not by copying it.
extractTar became stageTarExtraction() + mergeTree(); restore calls the staging
half and does its own swap. A second copy of a traversal check is a second place for it
to rot. One resource bound moves and is stated: the 512 MB zip-bomb cap is right for an
archive a user found somewhere and wrong for a home volume, so restore's cap comes from
actual free disk. Traversal, symlink, hardlink, entry-count and --no-same-owner are
unchanged, and the review confirmed it by throwing a crafted ../ESCAPED.txt archive
and a symlink-to-/etc archive at the live server: both refused, nothing planted.
The swap detail that matters: the undo list records one entry per completed rename, not one per name. A failure between parking the live entry and moving the new one leaves that name missing from the home directory entirely, and a per-name record would not know to put it back. Restore also replaces only what the backup declares and deletes nothing else — making home exactly match the archive would mean deleting files created since, which is a bigger blast radius than the word "restore" implies.
Refusal happens before staging. No manifest, a manifest naming another product, an
unparseable date, or a snapshot missing from the staged tree — all refused before
anything moves. That last one is not paranoia: discovering it after the swap would
leave a restored tree whose database is not at the path the process reopens, i.e. an OS
booting into its setup screen with the user's data present but unreachable. Free space
is checked against an exact figure from tar -tzv (parsed with brief 78's
parseTarListLine, reused), so the preview can say "this will not fit" before the user
commits rather than filling the volume and dying halfway.
Two access decisions, both written down. No password re-prompt on the download,
despite it being the most sensitive route in the OS: it grants nothing the session
lacks, because db.sqlite — password hash and TOTP secret included — is inside the
home volume and already readable through /api/files. A prompt would be theatre.
A typed RESTORE, enforced with @Equals on the server and not only in the UI,
because a stray POST to that route replaces a home directory. Afterwards every session
is revoked and the cookie cleared: the restored database carries the backup's password,
so whoever holds this session is no longer necessarily the owner of the machine.
Progress is the browser's own download UI, not a byte counter of ours — reading the
archive through fetch to draw one would mean holding the entire volume in the tab's
heap before a byte reached disk, which is exactly the failure the streaming backend
exists to avoid. What the panel adds is the number the browser cannot know: how big the
backup will be, and what is deliberately left out of it.
Verified end to end in a browser against the real backend: take a backup, delete a
file, restore, the file comes back byte for byte, the session is gone, auth/status
agrees, and signing in again works. Zero page errors, no scratch directories left
behind.
Tests: backend unit 319 → 356 (37 new). Frontend vitest unchanged at 1022, e2e unchanged at 138. All 103 turbo tasks green. Zero new dependencies.
2026-08-06 — Brief 47: a faulty app can no longer take down the OS
Pulled forward out of order because brief 84 lists it as a prerequisite — a caught app crash needs somewhere to land. It is small, grilled and standalone, so doing it first was the cheap correct order rather than a detour.
Every windowed app renders into core's shared React tree, so one uncaught throw
unmounted the whole desktop. Apps here are first-party and built in, so the
threat is a buggy app rather than a malicious one, which a boundary addresses
completely at no API cost.
Reload had to be a key change, not a state reset. The obvious error boundary
exposes reset() — clear the error, render the children again. That ships a Reload
button that visibly does nothing: the same child re-renders in the same state that
just threw, throws again, and the panel comes straight back. Recovery therefore
belongs to the caller — WindowSlot owns a remount counter and Reload bumps the
boundary's key, so the app genuinely remounts. The prop is fallback(error), with
no reset to misuse. That is also why the container's map became a component: a key
needs state, and a map callback cannot hold a hook.
The boundary is inside the chrome, and that is load-bearing. A crashed app keeps
a title bar that drags, a taskbar button that focuses it, and a close button that
works — wrapping the chrome would remove the exact controls needed to deal with the
crash. Verified by dragging a crashed window 137px. Suspense sits inside the
boundary too: a lazy chunk that fails to load throws, and that deserves the same
handling as any other crash.
Crash toasts are deduped per app, because a render loop turns the notification centre
into a denial of service against itself. The guard started as a module-scoped Map
inside the boundary file and eslint's react-refresh/only-export-components
rejected it — the same rule that caught a real defect in brief 83. Moving it to its
own module fixed fast refresh and made the policy testable without mounting anything,
which is the only reason the window-expiry case has a test.
A DOM test, and still no new dependency. vitest.config.ts had said component
tests "would need jsdom plus @testing-library/react; add those the day a brief
actually requires them". This brief required the DOM; jsdom was already there, so
.test.tsx is now included with a per-file // @vitest-environment jsdom. RTL was
not added — react-dom/client plus React 19's act covers the whole surface in
a dozen lines.
Two React 19 behaviours had to be understood rather than papered over, and both had
already made my first draft of the spec pass vacuously. Dev mode re-invokes a
component after it throws to build a better stack, so a "throw once" test app
succeeds on the retry and the boundary never latches; the broken state is now the
test's to control. And a caught error is re-reported to window.onerror, which
vitest counts as an unhandled failure — onCaughtError is the supported way to say
the boundary handled it. A third came from the spec itself: rendering two boundaries
one after another into the same root does not test per-app dedupe, because the same
element type in the same position means React reuses the instance, which is already
latched and never catches again.
Verified with a real deliberate crash — a temporary throw in Calculator, a
production build, the real backend — and the blast radius held: both windows alive,
the taskbar intact, the desktop root at 364 elements, one notification rather than a
storm, Reload recovering the app, and Close closing that window and no other. Two
compositor-internal test hooks fell out of writing the probe (data-window-id /
data-app-id on the window root, data-testid on the taskbar); every UI probe so
far has had to find a window by its text.
The documented limit stands and is not half-solved: this catches throws, not hangs. An app in an infinite loop still freezes the tab. That needs brief 48's transport swap, and a watchdog here would be a worse version of it.
Tests: frontend vitest 1022 → 1032 (10 new). Backend unchanged at 356 unit, 138 e2e. All 103 turbo tasks green. Zero new dependencies.
2026-08-06 — Brief 84: the machine gets a memory of itself
/var/log is empty and nothing runs there — entrypoint.sh execs node as PID 1, so
Nest's output goes to stdout where only docker logs sees it, which is to say nowhere
at all on the kiosk ISO. "Was anyone trying to log in as me last week?" was
unanswerable on a product whose README suggests exposing it to the internet.
The brief's own argument overruled the brief's own proposal. It asks for a Nest
logger transport writing JSONL. Two paragraphs earlier it says the thing that rules
that out: "an audit trail assembled from incidental log lines is not a trail." A
transport would pour every RouterExplorer mapping line into the file, pushing the
events that matter out of the 2 MB rotation window faster, and swapping the global
logger risks the stdout path the brief separately asks to preserve. So Nest's logging
is untouched and record() is called on purpose at each site that matters. Backend
errors come in through an exception filter that records only 5xx — a 404 is the
system working, and logging refusals buries real incidents within minutes — and it
extends BaseExceptionFilter and delegates, so no response changes. An audit trail
that alters behaviour is a liability, not a record.
Never logging a secret is enforced, not promised. Redaction lives inside
record(), not at the call sites: a rule applied in one place is a rule, and a rule
each caller has to remember is a leak waiting for the one caller who forgets. It
denies by key name and errs towards dropping, including hash — an argon2 hash is
not a password but it is the input to an offline cracking attempt, and a log file is a
far easier thing to end up in a bug report than a database is. The failed-login site
goes further and never hands the DTO to the logger at all. Verified against the
running server: three refused sign-ins are in the file and neither the attempted nor
the real password appears anywhere in it.
Writes are fire and forget through a serialising queue, so a full disk cannot fail
the request that triggered it — a login must not stop working because the audit log
cannot be written; that turns a disk problem into a lockout. Reads walk backwards in
64 KB chunks, filter the raw line before paying for a JSON parse, and stop the moment
limit matches are in hand: a size cap is pointless if reading it needs the whole file
in the heap. A line torn by a crash mid-append is skipped rather than poisoning the
rest. Both routes are authed, and that is not boilerplate — log content names the
addresses that tried to sign in and the files that were deleted, so an open read would
be a reconnaissance endpoint for the exact attacker the log exists to catch.
Brief 47's boundary makes the browser a writer, and it is handled as one: a DTO
with an app id and 300 characters and nothing else, because a client-controlled object
in a log file is log injection with no upside; a per-process budget so a render loop
cannot fill the volume; and source: 'client' on the entry so it can never be read as
something the server saw for itself. A request that also sent source: 'server' and
event: 'auth.login.ok' had both silently dropped by the whitelisting pipe.
Two dependency bugs the tools caught, both real. @Global on the logs module was
not enough — the e2e suites build partial module graphs, and a global module that was
never imported does not exist, so all twelve failed to boot. Modules whose providers
require the logger now import it explicitly; services that unit tests construct with
new take it @Optional() so rate limiting does not stop working because nothing is
listening. Then core's eslint refused RecentSignIns importing toSignIns from the
add-on — correctly: that inverts the dependency the composition root exists to keep
one-way. The log's shape is a backend contract, so it moved into core; the
presentation stayed in the app.
Ships the System Log app (virtualized rows, level chips, debounced text filter, Follow, click-to-expand raw JSON, dotted events shown as English) with filtering done server-side — pulling the whole log down to filter in the browser would undo the point of a capped tail. And Settings → Security → Recent sign-ins, placed first in that section because "has anyone been trying to get in?" is the question people open Security to answer, with refusals shown beside successes.
Tests: backend unit 356 → 385, frontend vitest 1032 → 1044 in a package that did not exist this morning. e2e unchanged at 138. All 107 turbo tasks green. Zero new dependencies.
2026-08-06 — Feature exploration: seven new ungrilled briefs (93-99)
Charter: "do code exploration and a deep research; write a brief for new features or add-ons we should implement." A platform-capability map of the code plus an external landscape pass (Puter, daedalOS, AnuraOS, CasaOS/Umbrel) went into wiki/feature-exploration-2026-08-06.md.
The sharp finding: the OS keeps building capabilities and giving them exactly
one consumer — the HTTP proxy (REST client only), content search (palette
only), the recents table (Notepad only, with git-gui growing a parallel one),
desktopLayer (sticky notes only), commandSources (2 of 23 apps). And Clock,
Calendar and Todo each apologise in their own UI for the same missing core
scheduler. So the sweep proposes mostly second consumers for existing seams,
plus the two missing app categories: an image editor and games.
New briefs, all ungrilled: 93 core reminder scheduler (desktop-lifetime; the
SW variant stays gated on brief 50), 94 OS-wide recent files (one service,
three consumers: Start menu / FilePicker / palette), 95 Paint (lift the
snipping tool's annotation layer), 96 desktop widgets (generalise
desktopLayer; clock / agenda / system sparkline), 97 auto-lock on idle
(the cheap VPS security win), 98 Minesweeper + Solitaire (the
identity-affirming tier every comparable ships; zero deps), 99 diff tool
(Monaco's DiffEditor is already in the bundle; second manifest in the
code-editor package).
Kept out of brief form, with reasons on the wiki page: a cheap-wins list (more palette sources, find-in-files UI, hotkey-registry coverage), a grill-first tier (RSS reader, PWA installability, sound recorder, hex viewer, image wallpaper + custom accent as a decisions.md revisit, disk treemap, file share links vs "auth everywhere"), and an explicit no-relitigation pass over wiki/real-os-gaps.md — no emulators, no multi-user, no i18n, no email/sync. The sweep endorses the two standing todos (install-apps-from-github as the strategic add-on story, gated on 47→48 + a kill-list revisit; TOTP recovery codes).
2026-08-06 — Briefs 93-99 BUILT: the exploration sweep shipped the same day
Full-auto run in the proposed order (97 → 93 → 94 → 99 → 98 → 95 → 96), one
commit per brief, every gate green at each commit. The desktop is 28 apps
(Diff, Minesweeper, Solitaire, Paint joined; Settings counted as ever), the
eager bundle moved 121.5 → 122.1 KB gzip (+0.6 for three background
services, the widget host and five manifest entries — the lazy discipline
held), backend tests 287 unit + 144 e2e (3 new), frontend gained ~80
tests across six packages. Two new packages (games, paint), zero new
dependencies anywhere.
The run's architectural yield is two new platform seams, both born from
brief 93's implementation forcing a rethink. The brief proposed a backend
read-model; the code refused it — alarm times and calendar epoch-ms carry
local wall-clock meaning and the container deliberately knows no timezone
— so occurrence math stayed client-side and the seam became general:
AppConfig.background, a headless desktop-lifetime service the shell mounts
for every enabled add-on. Clock/Calendar/Todo moved their tested watchers in;
their three "only while this window is open" apologies are deleted. The
backend got the one thing tabs cannot decide alone: POST /api/schedule/claim,
an atomic INSERT-or-lose on (domain, item, occurrence) that fails open. The
clock's minute-equality due check would skip alarms in throttled hidden tabs
— found and replaced with a windowed dueOccurrence whose occurrence instant
doubles as the claim key. The second seam is AppConfig.widgets (brief 96):
hosted Win7-gadget-style widgets where core owns placement/drag/clamp/
persistence and apps own content — the desktop also grew its first context
menu to toggle them.
Brief 94 promoted recents to /api/files/recent and deleted the two-route
notes module (all it had left after brief 25). Brief 97's idle lock shipped
at 15 min with the media inhibitor. Brief 99 put Monaco's DiffEditor in a
window as a second manifest from the code-editor package — a pattern brief 98
then reused for one games package exporting two apps. Brief 95's Paint kept
the snipping tool separate on a real distinction (object-annotations vs
bitmap) and built the 'Edit in Paint' pipeline instead.
Found in my own work during the run, before commit: useRegisteredHotkeys
captures handlers once per key set, so closures over state go stale — F2 in
Solitaire would have dealt at the first render's difficulty forever; routed
through refs in 98 and the trap then avoided in 95/96. Also a
setState-inside-updater that would have double-pushed the undo stack under
StrictMode.
Deferred, recorded in the outcome notes: Solitaire free drag (click-to-place
is the accessible model), Diff↔Git-GUI integration (git show is a new
allowlist argument deserving brief-76-grade scrutiny), the missed-while-away
digest (contradicts the apps' grilled stale-toast refusal), and brief 96's
Settings duplicate list.
2026-08-06 — Brief 85: four virtual desktops, and two bugs that were already there
24 apps share one browser tab with no second monitor to escape to. The compositor already owned z-order, focus and the window list, so this is mostly a filter over state that exists — which is exactly why the interesting parts were the three places the obvious implementation is wrong.
Switching must hide windows, not unmount them. Filtering the list in
WindowContainer looks identical and would tear down the Terminal's PTY socket,
discard an editor's unsaved buffer and restart every in-flight request, once per
switch. A window on an inactive workspace uses the same display:none a minimised
window already used. Verified rather than reasoned about: a digit typed into the
Calculator on workspace 2 is still on its display after switching to 1 and back.
The brief was wrong about persistence, and wrong in the invisible direction. It
calls workspace assignment "session state" and puts persistence out of scope — but
the window layout is already persisted to localStorage and restored on boot,
geometry and all. Omitting workspaceId would silently collapse four workspaces onto
one on every reload, destroying the arrangement the feature exists to create with no
error and nothing to undo. That is worse than either option the brief weighed. The
active workspace is persisted too: reloading a session whose windows all live on
workspace 3 and landing on an empty workspace 1 reads as "everything is gone".
clampWorkspace is where the hard invariant lives — a hand-edited workspaceId: 47
lands on 4, not nowhere.
Focus follows the window, which is where "reachable" actually is. One change to
focusWindow, at the single place the taskbar, Alt+Tab, openApp and notification
clicks all funnel through. Without it, clicking a toast raised by an app on another
desktop raises the z-index of a window you cannot see and appears to do nothing.
Then the probe found two bugs that predate this brief entirely.
Ctrl+Alt+← did not fire, and the cause was that no ctrl+… binding had ever
worked off a mac. The matcher computes modPressed = mac ? metaKey : ctrlKey and
then rejected any event with the mod key held when the binding did not say mod — so
on Linux and Windows an explicit ctrl+ binding was refused by the very key it asked
for. Invisible for as long as it existed, because every binding in the OS used mod.
Fixed, with eight tests on the matcher itself.
And desktop icons and the Start menu both bypassed the single-instance rule. Each
had grown its own three-line "open an app" calling openWindow directly, skipping the
check intents/openApp.ts exists to enforce. Before workspaces that was untidy — two
Calculators stacked on one desktop. With them it is much worse: the duplicate opens on
whichever desktop you are on while the original sits invisible on another, so the app
looks lost and the pip counts lie. Both now call the shared openApp.
Smaller calls, all stated in the brief's outcome: all four window hotkeys are scoped to
the active workspace rather than just Alt+Tab (the same selector drives Ctrl+W, which
could otherwise close something you cannot see); focus is computed per-workspace;
moving a window un-minimises it on arrival; switching wraps in both directions; empty
pips stay visible with an occupancy dot; and the taskbar context menu stays local
rather than being promoted to core, since this is the second use and the rule is to
promote on the third.
Tests: frontend vitest 1044 → 1071 (19 on the store, 8 on the hotkey matcher). Backend unchanged at 385 unit, 138 e2e. All 107 turbo tasks green. Zero new dependencies.
2026-08-06 — Browser walkthrough of briefs 93-99: all verified live
Ran the production build for real (backend serving the built desktop on
:8080, scratch home volume) and drove it with headless Chromium. Verified
end-to-end, with screenshots: first-run wizard and lock screen; an alarm
firing as a toast with the Clock app never opened (claim {claimed:true},
firedPatch and the schedule_fired row all stamped at the occurrence's exact
second); widgets added from the desktop context menu, dragged with a live
preview and the position persisted; Minesweeper's first click flooding 36
cells; Solitaire dealing and drawing; Paint drawing a stroke and saving a
real PNG into the home volume; that PNG then appearing in Start → Recent;
two files selected in the File Manager showing Compare and opening a
rendered Monaco diff with Save right armed; the Auto-lock control live in
Settings → Security.
Every failure the first pass reported turned out to be the test script, not
the OS (a text=Start selector for an icon-only button, ctrl+right-click
toggling the selection before the menu opened, a wrong localStorage key).
One real, bounded caveat surfaced: an alarm created from outside the
app — another device or raw API — for less than ~60s in the future can be
missed entirely: the background service's cache refetches every 60s, and a
one-shot occurrence more than 90s stale refuses to late-fire by design.
In-app creation invalidates the cache immediately, so normal use is
unaffected. Recorded here rather than fixed: tightening it means either a
faster poll (chatty) or server push (the killed daemon's shape).
[2026-08-06] todo | Brief 100 — code-health sweep filed from a six-lane audit
Deep exploration at commit aaa128b: six parallel audit lanes (backend, core shell, heavy add-ons, light add-ons, @pdfcore/engine, infra/build) with all gates green at baseline. ~75 verified findings filed as brief 100, ranked in tiers. Headlines: the prod Docker image cannot build (packages/ never COPYed — proven by npm-install simulation); pdf-lib's stale page cache makes delete→reorder resurrect a deleted page (proven by executed repro); Sheets converts every Excel date cell to ISO text on save; the backend's default 100 KB JSON body cap silently breaks Notepad/REST-client/git-apply; norPDF never writes back to the opened file and has no unsaved guard; calendar recurrence dies after 750 occurrences from series start and "does not repeat" doesn't (both proven by repro tests); turbo can serve stale desktop bundles (core declares no add-on deps — hash-proven). Audit lanes also recorded what came up clean so it is not re-audited. All items are ungrilled proposals; grill before building.
[2026-08-06] done | Brief 100 — code-health sweep implemented (10 commits, 75/75 gate)
Worked the full brief 100 backlog end to end on claude/code-exploration-improvements-0epjig.
Structure: a foundation commit (T3-1 turbo stale-cache fix via a core-scoped
inputs override — a topological dependsOn is impossible, core↔add-on is a
package cycle — plus the useTopWindowKeydown/isTopWindow seam), then six
package-disjoint lanes run as parallel subagents in two waves (wave 1: backend,
core, pdfcore-engine, infra — none read each other's source mid-edit; wave 2:
heavy + light add-ons, against the committed core), each verified per-package
and committed as a unit, then a final cross-cutting config pass.
Every Tier 0–2 finding shipped. T2-10 (pdf.js dispose) was missed in the
initial dispatch and caught in a self-audit — engine + norPDF now release
worker-side documents. T3-7 (strict) was free: strict across all add-ons +
core and backend noImplicitAny produced 0 errors (config lagged, not code).
T3-8's backend TS6/eslint10 half is deferred (a real migration; see
decisions.md 2026-08-06) — its dev-compose half shipped.
Verification: forced turbo typecheck lint test = 75/75 after each wave and
the final pass. New regression tests in every lane. Prod-image unbuildability
(T0-1) reproduced then fixed; Docker/ISO not built here (no daemon). Brief moved
to done/ with a full outcome
note; wiki folded below.
2026-08-06 — Brief 49: the session becomes per-tab, the config becomes an account
The grilled split from the layering session, finally built: a session is per-tab and dies with the tab; user config belongs to the account and follows you to any browser. Two of the brief's implementation instructions changed, both because the brief's own reasoning points somewhere better once you read the code.
sessionStorage, not "delete the persistence". The brief says to hold each
session purely in memory. That ends the two-tab stomp, and it also throws away
reload survival for the overwhelmingly common single-tab case — refresh and your
whole arrangement is gone. Under the brief's own SSH analogy that is the wrong cut:
closing the tab is logging out, reloading is the terminal redrawing.
sessionStorage is exactly that boundary, meets every acceptance criterion the
brief lists, and needs no server state, no reattach and no GC because the browser
drops it. One word changed and the bug class went with it — localStorage is
shared by every tab of an origin, which is why two desktops fought over one key.
It also preserves brief 85 instead of reverting it: workspace assignment rides
in the same per-tab store, which is simultaneously the answer to "a reload must not
collapse four workspaces onto one" and "two tabs must not fight over the active
one".
Server as source of truth, localStorage as a first-paint cache. The brief says
to replace each dotfile store's persist(localStorage) outright. For appearance
that is structurally impossible: main.tsx applies theme and accent synchronously
before React mounts, so the lock screen is branded — and that paint happens
before authentication, while /api/prefs is behind the session guard, as it must
be. There is no server to read at the moment the value is needed. So paint from the
mirror, hydrate once there is a session, re-apply, keep the mirror fresh. A browser
that has never seen this machine shows the default behind the lock and picks up the
real values on sign-in — correct, because your wallpaper lives behind your password.
The mirror is also why the adapter is synchronous: an async StateStorage makes
zustand hydrate a tick later, and every visual store would flash its default first.
The step that was easy to miss, and it did not work without it. persist
hydrates once, at store creation — at import, long before there is a session.
Filling the cache afterwards changes nothing on its own; the stores are still
sitting on what they read at import. rehydrate() on each dotfile store after the
fetch is what makes the server's copy take effect. Without it the feature appeared
to work in the tab that made the change and silently did nothing in a fresh browser
— the only case it exists for. The probe caught it; reasoning had not.
And the bug the unit test could not see. PrefsService.put handed the DTO
straight to better-sqlite3 and every real request 500'd with "Named parameters can
only be passed within plain objects", while the spec stayed green: the global
ValidationPipe runs with transform: true, so the controller receives a class
instance, and a spec naturally writes object literals — a shape production never
produces. Destructured, with a test that builds a real DTO instance.
Smaller calls: the stored value is opaque to the server (a backend that knew
each client store's schema would need changing every time one gained a field); the
migration is the hydrate, because "the server has not got it yet" and "this is a
legacy local value" are the same condition; writes are debounced, coalesced, and
flushed on visibilitychange and beforeunload; a non-dotfile key is refused at
the adapter so window layout can never reach the server by accident; and a failed
fetch keeps the desktop running on the mirror, because refusing to render over an
unreadable wallpaper would be the worse failure.
Verified with two real tabs: tab A keeps its two windows while tab B opens its own and neither disturbs the other, a reload keeps each tab's own arrangement, a browser that has never seen this machine gets the theme and accent but no windows, and no prefs request is made while the lock screen is showing.
Tests: backend unit 385 → 408, frontend vitest 1071 → 1147. e2e unchanged at 141. All 115 turbo tasks green. Zero new dependencies. Unblocks briefs 81 and 82.
2026-08-06 — Brief 81: default apps, and the end of the dead double-click
Association moved out of a constant inside one add-on and into the manifests. Each
app declares opens?: string[]; core derives ext → candidates from APP_REGISTRY
and resolves user override → declared candidate → text fallback → nothing. The
100-line EXTENSION_APP_MAP is deleted, so adding an app no longer means editing a
different app — the coupling manifest.ts exists to avoid, and the reason brief 65's
PDF mismatch sat unnoticed.
resolveOpener returns why it chose, and that is what makes the UX honest.
Text-ish files open in Code Editor; an unknown binary opens the Open with
chooser with "No app claims this file type" at the top. The brief wanted a
Properties card there first — one extra click to reach the only action it offers, so
the chooser opens directly and Properties stays a right-click away.
Text-ishness is derived from what the text apps claim, not hand-listed. The
first cut listed extensions by hand, missed .md, and so reintroduced the exact
dead click this brief exists to remove the moment Markdown Editor was disabled.
.pdf needed pinning for the opposite reason: both PDF apps claim it and
pdf-viewer is registered first, so "first candidate wins" would have quietly
undone brief 65.
The bug only a second browser could see. The override was wired to brief 49's
prefsStorage and passed every same-tab check, reload included — while never
leaving localStorage, because writePref silently drops any key absent from
DOTFILE_KEYS and imbatranimos:file-associations was not in it.
rehydrateDotfileStores was missing the store as well, so even with the key
registered a fresh browser would have kept its import-time default. A same-tab
reload cannot distinguish "dotfile" from "localStorage", which is exactly why it
went unnoticed. Registering a store in DOTFILE_KEYS is load-bearing rather than
bookkeeping, now said so in the code and pinned two ways: a unit test on the key,
and a probe that sets the default in one browser profile and reads it in an empty
one.
Archives are the single new mapping, and it nearly shipped broken. Archive
Manager drains a typed intent and ignored the generic { openPath, root } payload
every other opener gets, so a double-click launched it idle and empty — worse than
a dead click, because it looks like the app is broken rather than the association.
Fixed inside the app that owns the knowledge, mapping "open" onto brief 78's
list-and-wait browse. The general rule: opens is a promise that the app can act
on the generic open payload, and reading its intent handler is the check.
Not built as brief 48's system.intents — 48 has not landed — so it ships as a core
export shaped as free functions over a store, which 48 can re-export and delete
without touching callers. Recorded debt, not a resolution.
Also removed core's declared dependency on @imbatranim/logs (brief 84), the only
add-on it declared, which made turbo print a circular-dependency warning on every
build.
Verified with three Playwright probes on a production bundle behind the real
backend, 23 checks green: .csv → Sheets, Dockerfile/nginx.conf → Code Editor,
firmware.bin → the chooser; Open-with once vs "always", the choice appearing in
/api/prefs and surviving a reload; Settings listing the types, reporting
Reset all (1) and clearing the server copy; a second empty profile on the same
account opening .md in Code Editor; and a real bundle.zip double-click landing
in Archive Manager already listing its two files.
Frontend vitest 1147 → 1150. Backend unit 408 and e2e 141 unchanged. All 115 turbo tasks green. Zero new dependencies.
2026-08-06 — Brief 82: startup apps, and a brief whose premise had expired
An ordered list of apps that open when you sign in, stored as a brief-49 dotfile. Cheap feature; the interesting part is that the brief was wrong about the code it was written against, and following it literally would have shipped a bug on every reload.
Brief 82 says brief 49 "deliberately deletes" the layout restore, so every load
lands on a bare desktop and startup apps are the honest replacement. 49 did not
delete it — it moved the layout to sessionStorage. A reload of the same tab still
comes back with its windows; only a new tab starts bare. "Open the set once per
session, after authentication" would therefore have re-opened everything on top
of the restored windows: a second Notepad, a second Code Editor, and focus yanked
to the end of the list every time anyone pressed F5.
The corrected rule: never when a layout was restored, because those windows are
this session's arrangement; and never twice in one tab even when the desktop is
empty, because otherwise an app on the startup list can never be got rid of. The
marker lives in sessionStorage so it shares its lifetime with the layout it
guards, and a duplicated tab — which copies sessionStorage — inherits both
together. That is 49's own session/dotfile split applied one level further in than
82 could see. A consequence worth writing down: a reload is not a test of this
feature. Every meaningful probe check opens a fresh browser context.
imbatranimos:startup was registered in both DOTFILE_KEYS and
rehydrateDotfileStores — the pairing brief 81 learned the hard way, where a store
had the first without the second and the setting silently never left the browser.
startupCandidates() skips ids the registry no longer has and apps disabled in
brief 46, and Settings shows that same function's result — so the "2 apps will open
at startup" line cannot drift from what boot does. A disabled entry stays in the
list, struck through, saying it will be skipped: silently dropping it would lose the
setting, and re-enabling the app should bring its entry back.
Three judgement calls against the brief's letter. No hand-rolled cascade: the
brief asks that several startup windows respect brief 52's clamp, which openWindow
already does, and it also scatters new windows ±100px around centre — a wider spread
than any stagger worth writing, so runStartupApps calls plain openApp with no
placement argument. Buttons, not drag, for reordering: for a two-to-four item
list, move-earlier/later is keyboard-accessible, screen-reader-legible, needs no
gesture library and cannot half-complete. Two lists rather than one checkbox
list: order is the only reason this is a list rather than a set — the last app
opened is the one in front — and an alphabetical checkbox list would hide exactly
that. "Use my current windows" takes z-order, so the arrangement you are looking
at is the one you get back.
Verified with one probe, 19 checks green: a new session opens exactly the two configured apps and nothing else; a reload leaves two windows and not four; closing them and reloading leaves the desktop empty; the snapshot button rewrites the list and the next session honours it; a disabled app is skipped while its entry is kept; and two tabs of one account each open their own set, keep their own layout, and closing everything in one leaves the other untouched across a reload — brief 49's model intact.
Frontend vitest 1272 → 1286. Backend unit 423 and e2e 141 unchanged. All 115 turbo tasks green. Zero new dependencies.
2026-08-06 — Brief 48: the protocol seam is live
The largest brief in the backlog, closed. Apps import nothing from the OS
any more: the UI kit and pure helpers come from the new @imbatranim/ui SDK
package, and every runtime ability arrives through one injected system handle
whose TypeScript interface — packages/ui/src/system.ts — is the versioned
protocol spec. Core's public barrel shrank to the add-on contract's types, and
eslint in every add-on now rejects a value import from core (planted one to
watch it fail; type-only passes). Swap the in-process transport for a sandboxed
iframe someday and no app changes — which is the entire point.
Departures from the brief, each recorded in the outcome: the spec lives in the
SDK rather than core (both sides must resolve the same context, and it makes
the eslint rule absolute); the file dialog became a portal capability
(system.fs.pick* — the OS renders its one dialog, apps await pure data, and
seventeen apps' copy-pasted {fileDialog} render line is gone); and three
namespaces the 2026-07-19 grilling did not foresee were added as API decisions
(shortcuts, appearance, schedule), plus a ctx parameter on
CommandSource.search because palette sources run with no mount.
Scoping is the security model, and it caught a real design flaw: notify has
no appId field — the handle stamps it — which forced File Manager's habit of
recording OS recents attributed to the app it launches into the right place.
Core's openApp now records "file X opened with app Y" at the one choke point
every launcher shares.
Mechanically: seven commits, gates green at each. Package split with core-side
re-export shims (core's ~200 internal cn imports never moved); protocol +
per-window injection + ten scoping tests; sticky-notes proof (including the
windowless desktop-layer path); file-manager stress test (the brief-81 probes
pass through the handle unchanged); then the remaining 24 apps in a parallel
agent fan-out — one agent per app on a shared recipe, structured results,
interrupted once by the session usage cap and resumed with the finished half
replayed from cache; then the flip. The shrink exposed one genuine latent bug:
pdfcore-engine's isNodeEnvironment() only ever type-checked through an
accidental import-graph leak into @types/node.
Verified: 119/119 turbo tasks (the ui package adds four), backend unit 423 and e2e 141, frontend vitest 1286 → 1292. Boot bundle byte-identical across the flip (36,476 KB dist, 396 KB entry chunk) — the brief's no-growth bar met exactly. In the browser, production build: all 29 apps open clean from search with zero page errors, and the four regression probes (brief 81 ×2, the sticky-notes seam probe, brief 82's startup probe) all pass.
2026-08-06 — Brief 51: the contained dev pipeline, and a broken image build caught statically
npm run dev is now docker compose --profile dev watch: source syncs from
apps/ AND packages/ into the container's own filesystem, dependency changes
rebuild the image, and the hand-list of per-add-on anonymous volumes is gone.
It had rotted twice — 7/24 covered when the brief was grilled, then a
23-entry rewrite that was already missing games/logs/paint and never
covered packages/* at all, which since brief 48 means host edits to the
@imbatranim/ui SDK silently did nothing in the dev container. The dev image
also never copied packages/ — turbo dev inside it has been unbootable since
the SDK split. Lists that cannot glob rot; compose watch enumerates nothing.
The grill found a worse bug than the brief asked about: the prod image build
has been silently broken since the documentation site landed. apps/docs
joined the workspaces, the deps stage copies no manifest for it (tolerated —
npm ci skips an absent dir), but the builder's COPY apps ./apps brings the
site in afterwards and turbo build then runs @imbatranim/docs-site#build
with its Astro deps never installed. Proven by simulating a fresh-clone
install from exactly the Dockerfile's manifest set. Fixed in .dockerignore:
the documentation site is not product runtime, so it never enters the build
context.
install:tooling (npm install --ignore-scripts) verified in a scratch clone:
no native compile, no C toolchain, and tsc --noEmit on a real app — which
transitively typechecks the whole manifest graph — passes against that install.
The container-run half of the verify bar is environment-gated: this
sandbox's egress policy denies Docker Hub's blob CDN, so the images cannot be
built here. The exact commands, and why games + packages/ui are the right
HMR probes (both dead under the old list), are in the outcome note.
All 119 turbo tasks and backend e2e 141 green; the prod runtime path is untouched by design.
2026-08-07 — Research sweep: the 101-136 backlog
With the autonomous backlog empty (only human-gated 15 and 50 remain from the old numbering), a new exploration ran: five parallel read-only lenses over the code and corpus — deferral harvest, shell UX, app depth, platform resilience, fit-and-finish — each returning evidence-cited candidates. The synthesis is wiki/backlog-2026-08-07.md: 36 rows in three waves. Brief files 101-113 were authored the same day, each re-verified against the code before writing; rows 114-136 get their brief at grill time.
Findings worth logging on their own, because they are bugs, not just briefs:
- Desktop right-click leaks through window interiors. Windows are DOM
children of the desktop container and nothing stops
contextmenupropagation, so Terminal right-click-paste and Minesweeper flagging each ALSO open the desktop's widgets menu on top, and the File Manager's background menu opens two menus at once. The icons/widgets guard is dead code — no element ever sets the attributes it checks. (Brief 106.) - The PTY revoke sweep would defeat sliding sessions naïvely built: it
calls
sessions.validate()every 30 s per live terminal, so renewal insidevalidate()would let any open terminal immortalize its own session. And the session cookie's Max-Age is set once at login, so server-side sliding alone is theater. Both traps are in brief 101's decisions. mod+alt+arrowscannot be the snap binding: on non-Mac,modIS ctrl, colliding with brief 85's workspace arrows; andShift+1produces!ine.key, so digit combos need ane.codematcher. Both in brief 103.- Alt+Tab today lands on the least-recently-used window (ascending z sort wrapping to 0), so pairwise quick-toggle has never worked. (Brief 104.)
- The files search endpoint has no folder-scope parameter — briefs 112/113
spec one additive jailed
pathparam they share.
The sweep + authoring ran as two agent fan-outs (~1.7M tokens); the second hit the session usage cap after 5 of 11 authors finished, which is why 114-136 are rows without files. The five explorers' corrections are folded into the briefs they touched.
2026-08-07 — Brief 101: lock keeps the desktop, sessions slide
Brief 101 DONE — the first of
the new backlog. Locking (idle or Start menu) and session loss are now an
opaque overlay over a still-mounted desktop (visibility:hidden + inert +
aria-hidden, behind an everAuthenticated per-tab latch): PTY sockets stay
open, dirty buffers survive, and typing at the password field reaches no app —
keyboard gated at exactly three chokepoints via isShellSuspended(), with
topVisibleWindowId() returning null to silence every app-side save/keydown
hook at once. Explicit log off clears the window store and the per-tab layout,
staying the honest teardown contrast. Backend: sliding expiry as a guard-only
renewIfDue (min(now+TTL, created_at+SESSION_ABSOLUTE_MAX_HOURS, default
720 h); sub-hour gains skipped so it writes at most hourly) that re-issues the
cookie Max-Age — never inside validate(), so the 30 s pty revoke sweep can't
immortalize sessions; login over a still-valid session renews in place so the
terminal's upgrade-time cookie survives lock/unlock. Verified: 7 new unit
tests (auth suites 53; e2e 141; turbo 119/119) and a 10/10 Playwright probe on
the production bundle — same shell ticked 9→20 across lock, buffers survived a
hard 401, the reaped shell printed "Session ended", log off left nothing.
2026-08-07 — Brief 102: the last native dialog is gone
Brief 102 DONE —
protocol v2. onCloseRequest guards may now settle asynchronously
(boolean | Promise<boolean>); closeWindow keeps the same-tick sync fast
path and holds a promise-guarded close in a pendingCloses set (second
request = no-op, cleanup exactly once, rejection keeps the window open). The
kit gained UnsavedChangesDialog — Save / Don't Save / Cancel, Win7 phrasing,
two-button form when the app has no save — and useUnsavedGuard returns the
dialog node with an optional onSave; save-and-close proceeds only when the
dirty flag actually cleared, with the verdict read in a post-commit effect
(reading the ref right after await onSave() would see the stale dirty and
abort every successful save — the one trap the spec missed). All nine editor
call sites migrated (notepad's save became awaitable mutateAsync;
code-editor saves every dirty tab that has a home; norpdf's guard moved
inside EditorProvider to reach saveToDisk); image-viewer's
sibling-navigation discard rides kit useConfirm. window.confirm greps to
zero under apps/ + packages/; ui-conventions §43 now says so as the rule.
Verified: 11 new units (6 windowStore async-guard, 5 SDK hook through a real
React root), turbo 119/119, and probes 12/12 + 6/6 against the production
bundle — the themed dialog up while the Terminal behind it kept streaming
(10→13 ticks), Save-and-close wrote the bytes, Don't Save didn't, Cancel kept
the dirty marker, nothing stacked, zero native dialogs observed.
2026-08-07 — Brief 103: the desktop reflows, and the missing reflexes ship
Brief 103 DONE — the
brief-52 deferral is paid: reflowToViewport() re-fits every window when the
browser viewport changes (200 ms trailing debounce + one boot pass after
restoreLayout, and restoreWindow/unsnap re-clamp saved geometry too).
Maximized windows refill the usable desktop exactly, snapped windows retile,
floaters shrink only when overflowing and keep their title bar reachable —
minSize still wins, resolved through an injected setMinSizeResolver so the
store never imports the manifest graph; a no-op reflow returns the same array
so nothing persists. The reflexes: double-click-titlebar maximize/restore,
keyboard snapping on mod+alt+shift+arrows over a pure nextSnapState
Windows-semantics table (the obvious mod+alt+arrows genuinely collides with
brief 85's workspace arrows off a mac), show desktop on ctrl+alt+d with a
per-workspace stash that restores stacking order, and the pips' advertised
ctrl+alt+1..4 finally fires (plus ctrl+alt+shift+1..4 carry) via an
e.code DigitN matcher extension — Shift+1 produces ! in e.key, so the
carry family could never have matched otherwise. Taskbar right-click menu
gained Maximize/Restore. Verified: 24 new units, turbo 119/119, Playwright
14/14 against the production bundle including the exact-fill reflow numbers
and the ?-overlay listing every new row.
2026-08-07 — Brief 104: Alt+Tab shows you where you are going
Brief 104 DONE — the blind cycle is
replaced by a visual MRU switcher. The ordering costs no new bookkeeping:
focusWindow mints a monotonic z on every focus, so z-descending IS the
recency list — minimized windows included, which makes them keyboard-reachable
for the first time. Hold Alt: Tab advances, Shift+Tab retreats, arrows move,
Enter or releasing Alt commits, Esc cancels; a window blur commits the shown
selection (the host OS stealing focus mid-switch would otherwise eat the
switch). Opening selects the SECOND-most-recent entry, so a quick tap toggles
the last two windows — the single most common switch on any desktop, which
today's (idx+1)%len over ascending z had turned into lands-on-LRU. Selection
is component state: the store is untouched until commit (Esc leaves z-order,
persist payload and focus byte-identical), and commit is showWindow-if-
minimized + focusWindow, the taskbar's own path. The component owns its
listeners (keyup semantics; gated on isShellSuspended per brief 101) and its
two bindings are documented rows with the host-OS interception note; the old
window.cycle registration is deleted. Verified: 10 model units, turbo
119/119, Playwright 15/15 against the production bundle.
2026-08-07 — Brief 105: one context menu, promoted at last
Brief 105 DONE — the OS had three
hand-rolled right-click menus and they already disagreed on positioning,
dismissal, shadow, surface and danger styling; none of them had a keyboard
contract. @imbatranim/ui now owns the only one: a thin wrap of base-ui's
Menu primitives with a point VirtualElement anchor at the cursor, so edge
clamping and flipping come from floating-ui instead of three sets of
hand-maintained size guesses (MENU_WIDTH = 190, `(available.length + 1) * 28
- 16
, and the file manager's none-at-all), androle="menu"+ Arrow/Home/End/Enter/Escape + focus management come free. Items stay data: the file manager's union pluschecked?(realmenuitemcheckboxwitharia-checked) and acustomescape hatch for the taskbar's workspace grid. All three call sites migrated, the file-manager's local component deleted, andDesktop.tsx` now hands over raw viewport coordinates because the menu portals to body. Verified: 8 kit units, turbo 119/119, and 16/16 in a browser — the bottom-right corner right-click that used to clip off-screen now flips up-and-left and sits fully inside the viewport. ui-conventions §27 rewritten: never hand-roll one again.
Two pre-existing bugs the probe confirmed, both owned by brief 106: an
in-window right-click ALSO opens the desktop's widgets menu (windows are DOM
children of the desktop and nothing stops propagation), and the [data-widget]
half of that handler's guard matches nothing — no element sets the attribute.
2026-08-07 — Brief 106: the desktop answers the mouse
Brief 106 DONE — four
defects in one 12-line handler, plus the user's marquee todo. The exclusion
guard was dead code: nothing in the repo sets [data-desktop-icon] or
[data-widget], so right-clicking an app icon opened the Widgets menu and
the desktop had no Open verb anywhere. Worse, windows are DOM children of the
desktop, so any app that called preventDefault without stopPropagation —
the Terminal's right-click paste, Minesweeper's flag — ALSO summoned that menu
on top of its own. The guard is now an early-return on
closest('[data-window-id]'), an attribute that actually exists, and both
probes confirm no desktop menu appears. Icons stop their own bubble and open
an Icon menu (Open, acting on the whole selection, plus Auto-arrange icons =
clearPins() + the hoisted place(), which round-trips through the existing
dotfile). The background menu can no longer swallow a click: the null return
is gone and Change wallpaper is always there. And the 2026-07-19 marquee todo
is shipped — selection lifted to ephemeral component state (deliberately NOT
the persisted store), press-drag on bare wallpaper draws the band with a 4px
threshold and pointer capture, intersected icons highlight live, Ctrl+click
toggles, Ctrl+drag adds, Escape clears, Enter opens the set. Escape/Enter had
to be a window listener rather than a container handler: after a marquee drag
nothing inside the desktop holds focus. Verified: 11 marquee units, turbo
119/119, Playwright 24/24 first run.
2026-08-07 — Brief 108: onIntent finally has a consumer
Brief 108 DONE — the shell's half
of re-delivery always worked (openApp on an open single-instance app focuses
the window and re-sets its intent), but Archive Manager drained its intent once
behind a startedRef and never looked again. It is the only manifest that is
both single-instance and declares opens, so it was the one app where a user
hit it: open zip A, double-click zip B in Files, and the window focuses still
showing A with B's payload rotting in the intent map. It now subscribes
through system.intents.onIntent — the seam's first caller since brief 48
shipped it — with a ref-indirected callback so the subscription is made once
per handle. startedRef retires because onIntent consumes the pending
launch payload on subscribe, leaving a StrictMode remount nothing to re-run.
The delivery rule moved out of the component into a pure
lib/intentDelivery.ts (normaliseIntent + deliveryFor(phase, intent)),
which is what made it unit-testable without mounting React; archive-manager
gained its first vitest config for the 6 units. A payload arriving
mid-extraction defers rather than aborting — there is no job-cancel endpoint,
so "abandon" could only orphan a running backend write — and several arrivals
collapse to the newest, because the intent map holds exactly one slot per
window. Everything else resets totally and runs at once. Verified: turbo
120/120, Playwright 10/10 — the A→B switch happens in one window, Extract all
still completes afterwards, and a delivery in the done phase switches back.
2026-08-07 — Brief 107: a toast you can actually answer
Brief 107 DONE — a live
toast was strictly less capable than its own history entry: the panel row for
an item opened the raising app, the toast had only a dismiss X, and it
auto-dismissed in six seconds while the user hunted for the window.
RingingBanner.tsx said the cost out loud — "a toast has no buttons — so a
snooze offered only from the notification centre would be a snooze the user
cannot press" — and since brief 93 alarms fire with no Clock window open at
all, which is exactly when that hurts.
SystemNotifyInput now takes actions: {label, payload}[]. They are
intent-shaped DATA, never closures: activating one calls
openApp(<raising app>, payload), which survives postMessage, the persisted
history, and the window that raised it being closed — none of which a callback
can do. The handle needed no change, because it already spreads the input
while stamping appId, so an app can only press buttons in its own name. The
addition is optional, so PROTOCOL_VERSION stays at 2, and notify only
writes the key when non-empty so existing callers' persisted JSON is
unchanged. Toasts also gained click-to-open, a shared NotificationIcon used
by BOTH surfaces (ui-conventions §23 promised the raising app's icon and
neither surface had ever rendered one), and a hover/focus-within hold on the
auto-dismiss — a button must not be a race against six seconds. History rows
deliberately render no actions: a stale Undo pressed hours later is a footgun.
Clock is the first adopter, applying the snoozed alarm through onIntent.
The probe caught a real regression of my own from brief 106: its
Enter-opens-selection listener called preventDefault on Enter globally
whenever a desktop icon happened to be selected, so a focused button anywhere
in the OS silently stopped working. It is now scoped to
e.target === document.body — the after-a-marquee case it was written for —
and brief 106's probe still passes 24/24. Verified: 8 new units, turbo
120/120, and 13/13 in a browser.
2026-08-07 — Brief 109: dotfile writes that actually stick
Brief 109 DONE — the
dotfile pipe every registered store shares had a quiet data-loss bug:
flushPrefs cleared pendingWrites before the PUT and swallowed the
rejection, so one blip, one 500 or one badly-timed expiry meant the write
simply never happened. Worse, hydratePrefs merges server-over-local, so the
change looked applied — the localStorage mirror lied — until the next sign-in
snapped it back to the stale server copy. Exactly the class of bug brief 81
recorded as invisible: only a second browser can see it.
The batch now leaves the queue only on confirmation, and only for keys whose
queued value is still the one that was sent, so a mid-flight rewrite keeps the
newer value. Failures are classified rather than swallowed: 401 holds the
batch and stops retrying (the write is fine, the session is not), any other
4xx drops it with a single notification rather than looping on a body the
server will never accept, and 5xx/network backs off from 5 s to a 60 s cap. An
in-flight guard plus a follow-up flag replaces the accidental
one-request-at-a-time protection the old clear-before-PUT provided. The unload
path is now fetch(..., {keepalive: true}) on pagehide — the previous
beforeunload + XHR was an aspiration, since browsers routinely abort
in-flight XHR as the page goes away — and AuthGate re-flushes on the
authenticated transition, which is what makes a 401-held batch land after
re-login. The backend PUT echoes per-key updated_at so a two-browser
conflict has a timestamp to reason with; last-writer-wins stays the merge rule.
Verified: 5 frontend units + the backend echo test (turbo 120/120, backend 431
- 141 e2e) and 12/12 in a browser — under a simulated 503 outage the wallpaper applied locally while the server kept the old value, the retry landed it when the outage lifted, hiding the tab inside the debounce window still delivered, and a 401 held the batch without hammering until re-auth flushed it.
2026-08-07 — Brief 110: the migration ledger, and Wave A closes
Brief 110 DONE — migrate() ran
all of history on every boot behind six bare try/catch blocks whose
catch-all swallowed SQLITE_FULL, SQLITE_IOERR and SQLITE_READONLY exactly as
it swallowed a duplicate column. A disk-full boot left the schema silently
half-migrated, every later INSERT naming the missing column 500'd, and the
audit filter dutifully recorded server.error lines pointing nowhere near the
cause.
PRAGMA user_version is now the ledger: six numbered steps carved out of the
old body verbatim, each run with its stamp inside one transaction, so a
throwing step leaves the stamp behind it and the next boot resumes exactly
there. A current database boots on a single PRAGMA read. The historical
catches became narrow matchers through one shared isAlreadyApplied helper —
duplicate-column for the ADD COLUMNs, no-such-column for the href→url rename —
and steps added from now on get no catch at all, because the ledger already
guarantees once-only execution. A failure is state rather than a crash:
throwing out of onModuleInit would give a restart-looping container with no
UI and, on the kiosk ISO, no host shell to read why. Instead the flag is set,
the reason is recorded (audit + stdout), boot continues, every API request
answers 503 naming the failed step, and /health says degraded at HTTP 200
so a compose healthcheck cannot flap the container and hide the message.
Two findings from writing the fixtures. chmod 444 cannot simulate a write
failure in this container because we run as root, so the failure case
obstructs the schema instead — a VIEW named sticky_notes slips past
CREATE TABLE IF NOT EXISTS and fails step 2's ALTER with a plain
SQLITE_ERROR, which is precisely the class the old catch ate. And a column
that exists only in the baseline CREATE is never backfilled onto an older
table, so a new column must always ship as its own step — recorded in the
brief because it is a standing rule now, not a one-off.
Verified: a new 5-case db.service spec (including an old-shape database
migrating to a schema byte-identical to a fresh one, and a VACUUM INTO
snapshot carrying the stamp so brief-80 restores stay current), turbo 120/120,
backend 431 + 141 e2e, and a live check — an obstructed database served
degraded/503 with the step named, and the real in-use dev database, a
genuine pre-ledger version 0, converted in place on boot with its 14 tables
unchanged.
Wave A of the 2026-08-07 backlog (101-110) is complete.
2026-08-07 — Brief 112: the file manager gets the search box its backend has had since brief 45
The endpoint was already jailed, bounded and authed; it just could not be
pointed at a folder. One additive optional path on SearchQueryDto fixes
that — the walk starts at resolveSafe(root, opts.path ?? '') and still emits
relative(rootDir, abs), so hit paths stay root-relative and the command
palette's responses are byte-identical. Seven new spec cases hold that line,
including a ../.. scope rejected by the same resolver as every other path.
The interesting part was not the box, it was where the results go. Rendering them inside the existing list pane would have inherited four things that belong to the current directory — the upload dropzone, the clear-on-click, the background context menu and the listing's arrow-key handler — so ArrowDown would have moved an invisible selection through a hidden folder and a dropped file would have landed in the wrong place. The results view is a sibling that replaces the pane outright.
Three corrections the code demanded over the brief. The brief asked for a
hand-rolled fetch with a request-id guard; this app already has exactly one
data-fetching dialect, and a keyed react-query IS the out-of-order guard, so
that is what it uses. The brief said bind Ctrl+F "exactly like Ctrl+H" —
Ctrl+H's app-root handler is dead until something inside the window has focus
and bails on INPUT, which would have made Ctrl+F dead inside the very box it
focuses and given the key to Chrome; useTopWindowKeydown is the real window
scope. And the status bar and preview pane were both quietly lying under
results — "47 items" over three hits, and a blank preview because a hit is not
in orderedEntries. Both now tell the truth, the preview by resolving the hit
through its own parent listing rather than a synthesized size: 0.
One toolchain fact worth remembering: React Compiler bails on a component
that passes a module-level-constant-derived value into an imported function
during render. scopeLabel(rootCfg.label, path) — rootCfg comes from the
module's FS_ROOTS — silently cost FileManager.tsx its whole memoization, with
the error reported against an unrelated useCallback 300 lines away. The same
call inside a child that receives rootLabel as a prop is fine. Formatting
moved into SearchBox/SearchResults/SearchStatus, all reading one pure
searchPresentation.ts, which is where it belonged anyway.
Verified: turbo 120/120, backend 443 + 141 e2e, an 11-test presentation spec,
and a 27-check browser probe on the production bundle — scoped hits, the
"Results in /docs" header, Enter opening Markdown Editor through the
association registry, Esc restoring the listing byte-for-byte, content mode
waiting for Enter, Ctrl+F from both the listing and inside the box, the palette
unchanged, console clean — plus a FILES_SEARCH_MAX_RESULTS=2 run proving the
truncation banner the palette drops on the floor.
2026-08-07 — Brief 111: the file manager grows a keyboard
Every verb in the flagship app was right-click-only, and the menu itself had no keyboard route into it. F2, Delete, Shift+Delete, Ctrl+C/X/V/A, Shift+F10 and the menu key are all bound now — on the list wrapper that already hosts the arrow keys, never on the window, because the kit's dialogs portal to body and a window-level Delete would fire while a confirm dialog has focus.
The clipboard had to go multi-entry to make Ctrl+C honest: copying five
selected files and silently taking one is a trap. It pastes with
Promise.allSettled, reports "2 of 3" rather than all-or-nothing, and extends
the old cut-clears-only-after-success rule to a batch by keeping exactly the
entries that failed.
Range selection needed two refs, not one. The anchor is obvious. The cursor
— where the next arrow moves from — is not, and the browser probe is what
proved it: with a range on screen there is no single "current row", and picking
an end of the range by direction of travel makes Shift+Up after Shift+Down walk
off the start of the range instead of pulling its end back. Both live beside
the selection rather than one level up, because clear() must reset them and
clear() is called from four places.
The probe also caught a crash this brief introduced: the new verbCount called
a helper that reads selectedEntries, which is derived fifty lines further down
the component — a temporal-dead-zone throw that fires only at the instant a
context menu opens. Types, lint and 36 new unit tests were all green. Opening
the menu in a real browser is the only thing that found it, which is the whole
argument for the verify bar.
Verified: turbo 120/120, backend 443 + 141 untouched, 36 new pure tests
(range maths in both directions and with a vanished anchor; every verb key and
every key that is deliberately not ours; inertness for all eight verbs across
rename, modal, open-menu and text-field), and a 27-check browser probe covering
ranges, F2, both delete dialogs, a two-file copy-paste, a cut that clears only
after landing, the row-anchored menu key, "Copy 2 items", and a splitter that is
finally the same role="separator" markdown-editor has always had.
2026-08-07 — Brief 113: find in files, and the loader finally has one door
Brief 88 deferred this with a condition ("should follow the File menu"), and
the File menu shipped in 88. The grep has been live since 45; what it could not
do was say where in a file it matched, so there was nothing to group a
results panel under. SearchHit now carries an optional matches array behind
a second opt-in flag, which keeps the palette's and the file manager's
responses byte-identical — a test pins that literally.
The interesting change is contentMatches → contentLines. The old boolean
answered "did this file match", conflating it with "could this file be
searched at all" — unreadable, oversized and binary files all returned false.
The new function returns null for never-looked and an array for looked, and
the caller needed that distinction the moment it had to decide whether to
render a group with no rows under it.
Two smaller honesty calls. A file matched only by its NAME is kept in the
results and labelled as such, because typing a filename into find-in-files and
being told "no matches" for a file you can see is a lie about the search, not
about the file. And truncated renders a banner rather than being dropped, the
same rule brief 112 applied to the file manager.
The loader hoist is the structural part: the effect body became openTargets,
and openPath(root, path, { revealLine }) is the panel's only door — the same
one the launch intent and the session restore use. Reveals queue in a ref and
are applied after restoreViewState, because in the other order the restored
scroll position silently undoes the reveal. One case the brief did not
anticipate: re-clicking a hit for the tab that is already active changes no
state, so the activation effect never re-runs and the queued reveal would sit
there forever; that path applies it inline.
Two environment facts worth keeping. Hoisting the loader made the setState
calls traceable to the React Compiler lint, which correctly flagged the
everything-already-open path as synchronous — the effect now hops a microtask
explicitly, which is what the old inline async IIFE was doing implicitly. And
Monaco 0.54 focuses a contenteditable div.native-edit-context (the EditContext
API), not the historic hidden textarea; the close path needs a rAF so the focus
call lands after the unmount commit rather than before it.
Verified: turbo 120/120, backend 451 + 141 e2e, 9 new frontend unit tests, and a 17-check browser probe — Ctrl+Shift+F, Enter-only search, grouped line numbers, a click landing on line 3, an unsaved edit surviving a re-click, Esc returning focus to Monaco, and the palette unchanged — plus a capped run for the truncation banner. Eager-chunk delta: none; the panel imports no Monaco.
2026-08-07 — Brief 114: Compare with HEAD, and a teardown bug the console found
Git GUI is the one app whose whole job is comparing versions of a file, and it could not open the OS's real side-by-side diff editor — the only door into it needed two files on disk, and "what is committed" is not a file.
show joined the exec allowlist the way every other subcommand did: one more
literal at one more call site, no generic route. The revision is the hardcoded
HEAD. A rev parameter would have been easy and would have widened the
surface to every object in the repository for nothing the UI asks for.
HEAD:<file> is also the one place a path becomes part of a revision
argument rather than a pathspec after --, so it gets a stricter guard on top
of the usual one: no leading dash, never absolute, no .. segment. Six cases
against real git, including a filename full of shell metacharacters that stays
literal.
A file with no blob at HEAD returns { content: '', exists: false } rather
than 404. Newly added is a state, not an error, and the caller renders it as an
empty left side labelled "new file".
The Diff tool's intent gained leftText/leftLabel. Git GUI already speaks to
the git API, so it fetches the blob and hands the text over; teaching the
editor package about git would have been the wrong coupling, and writing HEAD
to a temp file would have put a file in the user's home that they never asked
for.
The console-clean bar earned its keep twice. It caught that the Diff tool's app
id is diff, not diff-tool — the intent went nowhere, silently. And it
caught a real teardown bug: with models loaded, @monaco-editor/react disposes
both text models while the widget still points at them, and Monaco logs
"TextModel got disposed before DiffEditorWidget model got reset". The Diff tool
now detaches with setModel(null) in its own unmount cleanup, which React runs
before the child's on a deletion. It reproduced in this brief's flow and not in
brief 99's two-file flow, so it was latent rather than universal.
turbo 120/120, backend 457 + 141 e2e, a 9-check browser probe against a real repository.
2026-08-07 — Brief 115: the terminal grid learns how wide an emoji is
xterm's default cell-width table is Unicode 6, which predates emoji being double-width. The consequence is not cosmetic: the grid is laid out from that table, so a character measured one column narrower than the font draws it displaces every cell after it on the row, and the shell's own cursor arithmetic — which assumes the terminal agrees with it — then eats characters while you edit a command line containing one.
@xterm/addon-unicode11 fixes it, from the same sanctioned addon family the
app already loads three members of. The catch: term.unicode is a proposed
API, so without allowProposedApi: true the addon throws on activate and the
entire terminal lands in the error boundary. That failure is how the flag got
found — the app crashed cleanly and said why, which is the error boundary doing
its job.
Measured, not asserted: print 🎉X and AAX and compare rendered widths.
Before, 15.7px vs 23.5px. After, 23.5px vs 23.5px. Both from the production
bundle against the real PTY.
2026-08-07 — Brief 117: refiling a task stops meaning retyping it
The smallest kind of gap: the backend has accepted listId on a todo patch
since brief 73, and the app had no control that sent one. Moving a task between
lists meant deleting it and typing it again, which threw away its due date, its
importance and its manual position.
A per-row chip strip — "No list" plus every list, the current one pressed — reusing the slot and shape the due editor already occupies, plus a Move beside Complete and Delete in the bulk bar. Chips rather than a dropdown because they show where the task is filed without being opened, and there are rarely many lists. Picking the list a task is already in closes without patching: the user answered the question, and a no-op write is not an answer.
Verified with a probe that stars a task before moving it and checks the star is still there afterwards — the thing delete-and-retype destroyed.
2026-08-07 — Brief 119: a link to a CSV opens the CSV
The markdown preview handled relative links to other markdown files and told
the reader to go to Files for everything else — the app declining to do its own
job, in a system that has known which app opens a .csv since brief 81.
Those links now go through assoc.resolveOpener, reached straight off the
handle, so no add-on had to import from another. Markdown links still stay in
the markdown editor even if the user has associated .md with something else:
following a link inside a document set is reading, not launching, and there is
a test that pins it against a registry that maps md to Notepad.
The third answer matters as much as the first two. When nothing claims an extension, the toast now names the file and says so, rather than implying the reader should have known where to look — and, verified in the browser, it opens no app at all rather than guessing one.
2026-08-07 — Brief 116: the calculator's fourth tab
A converter is a table, so this is mostly engine/units.ts and its tests. Two
things kept it from being a rote one.
The shape follows the physics. Length, mass and data convert through a base unit by one multiplication; temperature does not, because its scales have different zero points. Forcing temperature into the factor table would have been the easy move and would have been wrong, so it is modelled as functions pivoting through Celsius, and a test asserts that a same-unit temperature conversion is identity — the thing a stray factor would break.
And data lists decimal and binary prefixes side by side, which is the reason the category earns its place: a "500 GB" disk really is 465.66 GiB. A converter that quietly conflates the two is worse than not having one.
The tests assert definitions rather than outputs — an inch is 25.4 mm, a mile
is 5280 ft, a pound is 0.45359237 kg, −40 is where the two temperature scales
cross — plus table integrity: exactly one base unit per category, unique ids,
both defaults present, no factor anywhere in temperature. convert returns
null for an unknown unit or a non-finite input rather than 0 or NaN, and the
pad shows nothing plus "That is not a number" instead of a stale result.
Like Programmer, the tab takes neither the memory register nor the tape: a conversion is a pair of numbers with units attached, and half of it on the tape would record something never computed.
[2026-08-13] maintenance | Out-of-repo working tree folded back in
Development had forked after brief 51. The work of briefs 52–119 (2026-07-24 → 2026-08-06) had been done in a working tree kept outside version control, while the repo itself held the history and the remote and had continued independently for three briefs.
That tree was adopted wholesale, area by area — root config, packages, core, add-ons, backend, infrastructure, corpus, tooling. The result is the out-of-repo tree's state, not a reconciliation of both.
What the repo side contributed, and why nothing was lost. Its briefs
52–54 collided by number with different briefs on the other side, but were
superseded in substance rather than dropped: the Tooltip nested-button fix
(render={children}) is in the adopted packages/ui plus a
non-element-child fallback and a z-[1100] layer over dialogs;
apps/core/src/lib/desktopBounds.ts reappears as
shared/store/clampToDesktop.ts + desktop/widgetGeometry.ts;
AppErrorBoundary moved under shared/components/window/; OpenFilePicker
became shared/components/files/FilePicker.tsx. The stale todo/48 was
dropped because brief 48 is done in the adopted tree.
The one genuine loss avoided: brief 55, the grilled-but-unbuilt app marketplace, had no counterpart on the other side — which still carries todos/install-apps-from-github.md open, never having promoted it. It survives as briefs/done/120-app-marketplace-install-from-url.md, renumbered off the taken 55 and otherwise unchanged. This is the one deliberate exception to the never-renumber rule: the number was not free on both sides, so keeping 55 would have overwritten unrelated shipped work.
The .claude/ skills directory came across with the tree.
[2026-08-23] maintenance | Corpus realigned to personal-skills 0.29.0
The skills library at my-personal-skills moved 0.23.0 → 0.29.0
(a marketplace plugin now; the vendored copy under .claude/ was deleted from
this repo the same day). The corpus was written against the old roster, so:
routing.mdrewritten to the currentorchestratetemplate — the**Implement/Review/PR skill:**header block, an intent table covering the new skills (improvefor audits,impeccable+ the taste presets for design,web-design-guidelines,writing-guidelines/unslop,diagram-design,thermo-nuclear-review,corpus-docs-site,bootstrap-vps-deploy,corpus-flow§9 for vocabulary), the knowledge-routing table, and a per-task READ/SKIP/SKILLS table using the real tree (apps/core,apps/add-ons/*,apps/backend,packages/ui,infrastructure/,iso/,apps/docs) — the old one still saidfrontend/+backend/. Dropped the route toweb-research, a skill 0.29.0 pruned; research is now inline and gated. Added the standing note that the identity lock overrides the design skills — they work inside Win7-classic/B&W/one-accent/zero-radius, never propose a replacement for it.wiki/glossary.mdcreated (corpus-flow §9's domain-modeling layer): the add-on/manifest/composition-root/registry/widget/desktop-layer/background-service vocabulary, the seam terms (systemhandle, capability vs library, kit, syscall bridge, compositor, intent, association), state and identity (dotfile, session, accent, token, friend-run bar, real-not-simulated), each with the synonyms it displaces — plus the three words that carry two live meanings here: core (type-only package vs the shell directory), session (browser tab vs theimb_sessionauth cookie) and manifest (the exported object vsapps/core/src/manifest.ts). Registered in the docs site (apps/docs/scripts/sync-corpus.mjs+ the Starlight sidebar).CLAUDE.mdgained the two-graph rule (corpus = why, grep/eslint/tests = what, no code graph here yet), the domain-modeling section with the three-part test a decision must pass to be recorded, and the TodoWrite-vs-corpus and one-commit-per-corpus-change conventions.wiki/ui-conventions.md§1 corrected. It still told add-ons to import values from@imbatranim/coreand listed a surface that brief 48 deleted on 2026-08-06 — the rule is now@imbatranim/uifor the kit and the injectedsystemhandle for everything that touches the OS, with@imbatranim/coretype-only and eslint-enforced. Rule 4's "still missing" list lost the two items that have since shipped (the file-open picker,useTopWindowKeydown). Verified againstpackages/ui/src/index.tsandapps/add-ons/calculator/eslint.config.js.
bash corpus/lint.sh passes; index.md regenerated. Not done, needs a
decision: the codegraph layer (corpus-flow §0b) is still unbootstrapped, so
structural questions fall back to grep.
[2026-08-23] maintenance | Code-graph layer bootstrapped (corpus-flow §0b)
The what layer now exists alongside the corpus's why. routing.md had sent
every structural question to grep since the pivot.
Wired: @colbymchenry/codegraph@1.5.0, installed globally and pinned
(MIT but effectively single-maintainer — a supply-chain surface even offline);
telemetry off, which it defaults on. .codegraph/ gitignored at the root; the
tool writes its own inner ignore too, but the anchored rule is the committed
statement. .mcp.json committed with an env-overridable path
(${CODEGRAPH_INDEX_PATH:-.}) rather than a per-dev codegraph install — a
manual per-dev step never gets run and the layer dies silently, the exact
failure §0b exists to prevent. Verified the server over a real stdio handshake:
it initializes and advertises codegraph_explore; the other seven tools exist
but are unlisted behind CODEGRAPH_MCP_TOOLS, so the CLI is the primary
interface here. npm run codegraph:init / codegraph:sync added. Index: 808
files, 9,290 nodes, 27,643 edges, ~35 MB, ~3s full rebuild, 0.3s sync, on the
native node:sqlite backend (not the 5–10× slower WASM path).
Benchmarked, because the vendor's numbers only hold where the tool is good (details + method in wiki/code-graph.md):
- 100% caller recall on imported functions —
useSystem(53 files),useFileDialog(16),useSaveHotkey,useUnsavedGuard,useOpenIntent. The cross-package barrel through@imbatranim/uiresolves correctly;impact useSystemreturns 219 symbols across 78 files. This is the query grep is worst at and the graph is genuinely good at. - ~35% on anything called through the
systemhandle. 35 ofnotify's 42 caller files writesystem.notify(...), and the resolver does not connect a member expression to the SDK definition. Since brief 48 that is the app↔OS surface, so the graph is weakest exactly where this project is most interesting. Rule: anything with a dot before it goes to grep. - 0% on
manifest— "No callers found" whileapps/core/src/manifest.tsimports 25 of them. 26 export names collide across add-on packages (manifest×25,APP_NAME×5,formatBytes/errorMessage/ViewMode×3, plus 21 two-way); parallel packages with parallel roles produce parallel names, and the resolver conflates them. Scope those by path or don't ask. - Two mechanical traps worth writing down:
callers/calleesdefault to 20 results and print(20)as though it were the total; and thekind:"file"entries must be counted, because a call inside an anonymous callback (a test body, an inline arrow prop) produces no named caller node. Three symbols read as 33–50% recall until those were counted, then 100%.
Written: wiki/code-graph.md (the numbers, in the
corpus) and .claude/skills/codegraph/SKILL.md (the operating rules, in the
project — the envelope is per-repo and cannot be written once and reused).
routing.md's knowledge table now splits structural questions three ways:
graph for impact and named-function callers, grep for system.* and for
duplicated names, grep -rnw for rename completeness.
Not filed as a decisions.md entry: the install is reversible (codegraph uninit) and the load-bearing rationale — committed .mcp.json over per-dev
install, pinned over floating — is recorded above and in the wiki page.
[2026-09-06] change | imbatranimOS moves to Ward; the lock screen becomes an honest privacy screen
Identity is Ward's. Deleted: the imb_session cookie and its server-side
session store, the sliding-expiry renewal, the argon2 password check, the login
throttle, TOTP enrolment, the first-run setup wizard and its SETUP_TOKEN, and
the whole modules/auth service layer. WardModule registers the global guard
in AuthModule's place.
The @Public() convention and the CSRF Origin check both survived intact.
They were the good parts: authenticated-by-default with an explicit opt-out, and
an Origin check on state-changing requests that deliberately runs before the
public check, because a public route that mutates is the one an attacker picks.
The most interesting casualty is the lock screen, and it needed a real decision rather than a port. Brief 101's lock covered the desktop while keeping everything mounted — PTY sockets open, dirty editor buffers alive — and unlocking re-proved the local password. There is no local password now, and re-proving Ward's means navigating to Ward, which tears the desktop down and destroys the exact property the lock existed to protect.
So the cover was kept and the claim was dropped: it obscures the screen, and dismissing it asks only that the Ward session is still live. That is a screensaver, not a lock. It is worth keeping — walking away from a shared room and returning to a live shell is the real use — but calling it "Lock" would be a claim this app can no longer honour, so the Start menu now says "Cover screen" and the panel says so in words. A genuine lock would need something Ward does not offer: a re-authentication that does not leave the page.
Two consequences fell out that are worth naming.
A restore no longer revokes anything. BackupService called
sessions.destroyAll() because the restored database carried the backup's
credentials, so whoever held a session was no longer necessarily the owner of
the password now guarding the machine. Credentials are not in this database at
all now, so a restore cannot change who may sign in — and a restore that signed
somebody out of the whole estate as a side effect would be this app
overreaching. The test that asserted the revocation was inverted rather than
deleted: "a restore does not touch the session" is a real property now, and a
future change reintroducing one should have to argue with a failing test.
The login lockout was removed, not retuned. Tightening it on exposure would have solved a problem this app no longer has: there is no credential here to brute-force. Ward has its own lockout on the one login page the estate shares — the right place for it, since a per-app counter guarded one of six front doors to the same accounts.
The WebSocket path got the check it needed. authorizeUpgrade now
authenticates and requires an imbatranimos grant. Both halves are load-bearing:
prm's registration is open to the public, so a live Ward session held by a
complete stranger is an ordinary thing to receive at this handshake, and
authenticating without the grant check would hand that stranger a shell. The
30-second revocation sweep now lines up exactly with Ward's introspection cache,
so a revoked grant closes an already-open terminal within the same window it
stops working everywhere else.
Tests use a fake Ward client, not stubbed guards (modules/ward/testing.ts),
so the real guard still decides — otherwise every "rejects without a session"
test in the repo would be tautological. Two mechanical notes for the next
person: jose is ESM-only and had to be added to Jest's
transformIgnorePatterns (there was already a precedent), and test-setup.ts
supplies the three required WARD_* variables rather than defaulting them in
the schema — the production guarantee that a missing one stops the boot is worth
more than three lines of test setup.
403 unit tests, 116 e2e, 272 frontend — all passing; typecheck clean. Nothing has been run against a real browser or a deployed Ward.
[2026-09-06] change | The docs moved to /imbatranim-os/docs, and gained an archify diagram
The URL changed; nothing on disk did. The estate adopted a
/<project>/docs convention, so these docs moved from the sibling prefix
/imbatranim-os-docs to /imbatranim-os/docs. A clean cut — the old prefix is
gone, not redirected. The served directory (/var/www/imbatranim-os-docs) is
what the convention produces anyway, so nothing was copied or renamed.
The new path is nested inside the app's own /imbatranim-os/*, which used to
be the one thing this pair was carefully avoiding: the old comment in
vps-deploy/stacks/imbatranim-os.ts explained that the two prefixes were disjoint
only because Caddy matches literally and the character after /imbatranim-os was
- rather than /. That coincidence is no longer what protects the docs — the
docs route is now written above the app route, pinned by the DocsSite
construct's route order, and the synthesizer fails the render if it is ever
violated. astro.config.mjs's stale comment was updated to say so.
One archify diagram added — one container, one port, the browser is the
display — sitting beside the existing hand-built LayerStack. The two do
different jobs: the stack shows the shape, the diagram shows the wiring, and the
diagram's right-hand column is the project's central claim made visible (a real
PTY, a real filesystem, a real home volume, not simulations of them). Sources are
typed JSON in apps/docs/diagrams/, compiled by scripts/build-diagrams.mjs and
validated before they ship; the rendered artifact is committed because archify is
a per-machine agent skill rather than an npm dependency.
Docs build clean: 16 pages.
[2026-09-27] done | Brief 137 — Ward sign-in reaches the desktop; local dev signs in through a local Ward
Brief 137 in full: GET /api/me, the grant slug corrected to imbatranim-os (the
old imbatranimos matched nothing Ward issues, so every granted account was
refused), APP_ROOT from the build's base instead of the literal /os/ Ward
rejected, a no-access screen for a 403 instead of a sign-in loop, and the
Terminal's refusal diagnosis on /me. Outcome note on the brief.
Alongside it, on the owner's call for every Ward app at once, local dev runs a
real Ward in Docker (wzd_auth/infrastructure/local). apps/core/vite.config.ts
now serves the desktop under VITE_BASE in dev too (read through loadEnv, so
.env.development can set it while the container build's own value still wins)
and proxies <base>api (WebSockets included, the base stripped as Caddy's
handle_path does) and /ward + /ward-api to WARD_PUBLIC_ORIGIN from the
repo-root .env. Local .env.development: VITE_BASE=/imbatranim-os/,
VITE_API_URL=/imbatranim-os/api. The proxy rewrites Origin to Ward's only for
requests from a page on the dev server, which Ward's same-origin check on
/refresh and /logout needs.
That answers the local development half of brief 152 (it was option D there),
not the standalone, friend-run or kiosk half, so 152 stays open for those. Still
true and brief 144's: the session is not refreshed, so the desktop drops to the
sign-in cover about 15 minutes after sign-in. Also unchanged: npm run dev (the
compose watch profile) runs the backend in a container, where localhost:8792
is not Ward; npm run dev:local is the path that works.
[2026-10-03] done | Brief 138 — terminal upgrades: no crash on reset, no held sockets, no Ward secrets in the shell
A client resetting the connection while Ward was being asked crashed the whole backend: Node drops its own socket 'error' listener before 'upgrade'. The handler now listens until handleUpgrade, and drops a socket that left mid-authentication. Upgrades to other paths get a 404 instead of being held open. Shells start with the backend's environment minus every WARD_* name (a denylist, reason in the code). New pty.gateway.spec.ts plus an e2e environment round-trip; both fail on the old code. Found while closing it: the git module does not scrub its environment as the brief assumed (todo captured).
[2026-10-03] done | Brief 139 — the REST client never overwrites collections it failed to read
loadData turned every failure into empty data, so after a 401, a 503 or a typo in collections.json the next Send saved one history entry over every saved request. Loads now report ok, missing (404 only) or failed, and every write is refused until one succeeds, behind a banner with Retry. Malformed JSON is never overwritten and Notepad is offered for the repair. The add-on's first component test (jsdom, no testing library) covers it.
[2026-10-03] done | Brief 140 — text saves are atomic
PUT /files/content (Notepad, file-manager text writes, the REST client's collections) wrote in place, and a full disk mid-save emptied the file. uploadFile's stage-then-rename became a shared writeAtomically helper that writeFile now uses too. A mocked mid-write ENOSPC proves the original survives with no staging file left. A save now needs write permission on the directory, as uploads already did.
[2026-10-03] done | Brief 141 — relaunching a minimized app shows it
openApp focused an open single-instance window but never showed it, so every launcher that funnels through it (desktop, taskbar, Start menu, notifications, Files) did nothing visible for a minimized app. It now shows the window after focusing it. An unknown id is refused with '' instead of throwing, as the protocol documents. Browser-checked with Todo against the local Ward. Notepad, the brief's example, is multi-instance and never takes this path.
[2026-10-03] done | Brief 142 — an interrupted backup download frees the backup slot
A browser that disconnected mid-backup left tar blocked on a paused pipe, so the slot never freed and every later backup answered 409 until a restart. The download now awaits pipeline together with tar's exit, and whichever side fails first reaches dispose(). A real-HTTP spec aborts after the first chunk and sees tar killed, the staging copy removed and the next backup succeed.
[2026-10-03] done | Brief 143 — norPDF asks before replacing an edited document
Open PDF, an intent from Files and a drop each replaced an annotated document without asking. All three now go through useReplaceGate (Save / Don't Save / Cancel, Save loading only if it landed), and the file intake moved inside the providers to reach saveToDisk. norPDF has a test runner now. Browser-checked: a drop and a pick onto an annotated PDF both ask, and Cancel keeps the edits.
[2026-10-03] done | Brief 147 — npm test runs the backend e2e suite
A turbo test:e2e task, with the root npm test running turbo test test:e2e, so the HTTP-level guard tests (11 suites / 122 tests now) gate the default command. A deliberately broken e2e assertion made it exit 1. The README's command list was corrected on the way: dev:local, not dev, is Nest watch + Vite.
[2026-10-03] done | Brief 144 — the Ward session outlives its 15-minute access token
Nothing refreshed Ward's session, so the desktop dropped behind the sign-in cover every 15 minutes and the way back cost a page load. The axios interceptor now refreshes on a 401 and replays once. A timer refreshes a minute before expiry. An unreachable Ward is never read as a sign-out. Taken on the brief's recommendation without the step-3 grill. Checked against the local Ward: a corrupted access cookie heals silently, and 20 idle minutes leave an unsaved Notepad buffer and the session alive.
[2026-10-03] done | Brief 145 — open terminals survive access-token rotation
The terminal sweep re-checked the cookie the WebSocket opened with, so every terminal closed 15 minutes in. The REST guard now records the newest cookie per Ward session (WardFreshness), and the sweep asks Ward with that one. Browser testing found a timing gap in brief 144's first proactive refresh, closed by refreshing on sign-in and re-probing /me after each refresh. A terminal then ran 47 minutes across three token lifetimes, and ending its session in Ward's console closed it within one sweep. Ward's own Sign out still revokes nothing (its known bug).
[2026-10-03] done | Brief 146 — the Ward client fails closed on a key-set outage, and is tested
A key-set fetch failure (Ward down after a restart, or past the 10-minute JWKS cache) read as "signed out", a 401. Only jose's token-validity codes are authentication errors now; everything else is a 503. The client's injectable fetch serves the key set too, so the reference client's tests could be ported (25 cases). The same fix is owed upstream in Ward's reference client.
[2026-10-03] done | Brief 148 — extracting a tarball never deletes existing files
A second "Extract here" of the same tarball rm -rf'd the first extraction's folders, edits included. The default destination is now name (2)… when name exists. An explicit destination is merged file by file, for zip and tar, and a folder in the way of an archive file answers 409.
[2026-10-03] done | Brief 150 — scrub the pre-Ward credential tables
Ledger step 7 drops auth_user and auth_sessions. Upgraded installs no longer keep the owner's argon2id hash and TOTP secret, so backups stop carrying them, and a restored old backup is scrubbed when it migrates. Backups downloaded before this change still contain them on installs older than 2026-09-06.
[2026-10-03] done | Brief 149 — restore stops asking for a password that no longer exists
Backup settings still said a restore signs you out because the backup brings its own password, and it put the desktop behind the sign-in cover. A restore now reloads the desktop and leaves the session alone, with copy that says so. The apply route drops signedOut and the two unused parameters that kept backend eslint red. Browser-checked with a real backup and restore.
[2026-10-03] done | Brief 154 — a restore that cannot open its database puts everything back
A corrupt db.sqlite in a backup used to be swapped in, fail to open, take the pre-restore tree with it, and crash-loop the next boot. The snapshot is now checked (quick_check, ledger version) before anything moves. A failed install undoes the swap and reopens the old database. replaceWith keeps the old file until the new one opens, and an unopenable database at boot means degraded mode (503), not a crash.
[2026-10-03] fix | The backup audit line no longer races tar
Found while landing brief 154: openBackupStream wrote its backup.taken audit line into .imbatranim/logs just after spawning tar. GNU tar then failed the backup about one run in three ("file changed as we read it"), and the brief-80 spec flaked inside npm test. The line is now recorded and flushed before the spawn. Writes from other requests during a backup could still trip GNU tar. The Alpine image uses busybox tar, which does not check for that.
[2026-10-03] done | Brief 151 — delete what the Ward cutover orphaned
The cutover's leftovers are gone: argon2, otplib, qrcode and cookie-parser (35 packages out of the lockfile), the auth DTOs, the password-change helper, sign-in history and the auth.* log labels, a dead notes service, and every comment describing a login, a first-run wizard or SessionAuthGuard. The prod image went from 264 MB to 260 MB with no argon2 inside. All gates green.
[2026-10-03] done | Brief 155 — saves ask when the file changed on disk
A line appended in the Terminal while Notepad had the file open was destroyed by the next Ctrl+S. Every file write now accepts the version the editor read (mtime + size) and answers 409 when the file has moved on. Notepad, Code Editor and Markdown Editor then ask Overwrite / Reload from disk / Cancel, through a new kit dialog. Writes without a token behave as before; the office editors are not in this cut. Later the same day it was walked in the browser against the real local Ward: Notepad asked, and Reload and Overwrite each did what they say.
[2026-10-04] fix | The Git app no longer hands Ward's secret to git hooks
Git ran with extendEnv, so a repository's own hooks, pager or credential helper could read WARD_APP_KEY; brief 138 had only closed the terminal. Its scrub is now a shared childEnv() (apps/backend/src/child-env.ts), used by the terminal, git (with extendEnv: false), backup's tar and every archive tar call. Fixed directly from the todo, with the owner's go-ahead; a test checks git gets no WARD_* name.
[2026-10-04] decide | Owner answers: local sign-in returns, the ISO is a server, 50 and 120 go ahead
Asked directly, recorded in the new decisions-estate-era.md, which also finally records the 2026-09-06 Ward move as a decision. Brief 152: option C. With Ward unconfigured, a single-user local sign-in returns, so the friend-run bar stands again; inside the estate Ward still owns identity. The kiosk is dropped: the ISO becomes a plain Alpine image with the web server's packages pre-installed, reached from the LAN over HTTPS, so the --no-sandbox todo is removed as moot. Brief 15 is parked on its owner-run QA and deploy. Briefs 50 and 120 go ahead. Old backups holding the deleted login's hash are deleted, starting fresh. Briefs 144, 145 and 155 get their grill after the fact.
[2026-10-04] maintenance | Brief 18 superseded by the server-ISO decision
The kiosk ISO brief moves from done/ to superseded/ with a one-line note: the owner dropped the kiosk, and the ISO becomes a LAN server OS (decisions-estate-era.md). A note prepended to it earlier today was taken back out (done briefs are immutable), and index.md was regenerated rather than hand-edited.
[2026-10-04] decide | Briefs 144, 145 and 155 grilled after the fact: all kept
Asked directly, the owner confirmed every call the runs took: 144's proactive refresh plus a refresh-and-replay on 401, 145's freshness registry over a heartbeat route, 155's Overwrite / Reload / Cancel dialog, and its first cut of the three text editors. The office editors' turn is captured as a todo.
[2026-10-04] done | Briefs 152 and 153: a local sign-in without Ward, and docs that say so
With no WARD_* set, the backend now runs its own single-owner sign-in behind the same WardService.authenticate, as the owner decided (option C):
- first-visit setup, optionally gated by
SETUP_TOKEN; - scrypt hashes, and an
imb_sessioncookie whose hash is stored; - per-address backoff;
- a restore that ends local sessions again.
The desktop shows its own setup and sign-in screens, and Settings changes the password. The README's docker run boots again: a no-environment run of the image came up in local mode, where it used to die at config validation. Walked in a browser: claim, terminal, log off, wrong and right password. Brief 153 rewrote the README, infrastructure docs, architecture and glossary from that. status.md was split: history to 2026-08-06 went to status-history.md, and status is a current snapshot. The two stale todos are closed, and same-origin exposure inside the estate is now an open question.
[2026-10-04] decide | The server ISO waits; work stays in the Docker container
Asked how the ISO should install, serve HTTPS and be found, the owner chose install-to-disk, Caddy's internal CA, and the IP shown on the console. Then they deferred the ISO itself: for now imbatranimOS is developed and used only in the Docker container. The choices are kept in decisions-estate-era.md as the plan for when the brief is written; status.md marks it deferred.
[2026-10-04] done | Brief 50 — the Browser, on an origin of its own
Real websites through the machine: Scramjet in the viewing browser and a Wisp relay in the backend. The brief put the proxy under a /proxy/ scope on the desktop's origin. It runs on a second backend port instead, because Scramjet runs pages on whatever origin serves them, and on the desktop's one rewriter escape would hold the session and the terminal. The relay allows only public unicast addresses on web ports, checked on every DNS answer and dialled by address. That is the stricter stance, opposite to the REST client's (brief 43) on purpose. Site cookies are kept by the machine, AES-GCM encrypted, with the key left out of backups. Verified in the Docker dev container: pages, click-through, a YouTube video, cookies surviving a restart in a fresh browser, metadata refused, nothing loaded before the Browser opens. Search engines answered the headless browser with CAPTCHAs; that check and audio are the owner's.
[2026-10-06] done | Brief 120 — apps from other repos, installed from an in-repo catalog
marketplace/<id>.json describes an app in another repository: repo, full commit id, argv build commands, the module to load, and for a service app the server to run. Settings → Marketplace clones that commit into the home volume, builds it in the container and mounts the module natively in a window, with system cut down to the descriptor's capabilities. A service app's server runs on loopback while its window is open and is reached only through the desktop's port, with the terminal's checks. Three locked decisions were revisited as the brief required (runtime package manager, supervisor, native external code; recorded in decisions-marketplace.md), and the brief's own example changed: commit ids instead of tags, argv instead of shell strings, and a third host argument to mount. Security-reviewed; the residual risk named is that builds run as the desktop's user. Verified by tests against a real repository, build, server and WebSocket, and a real module mounting in the window host; all 94 turbo tasks and 148 backend e2e tests pass. Not walked in a browser: the dev container's sign-in was out of reach (status.md, owed by the owner). The dev container now reaches the API through Vite's proxy, and a separate commit keeps local .env files out of the image build context.
[2026-10-06] verify | Brief 120 walked in the dev container; the dev image gets git
The owner had the dev volume deleted and the machine set up again with a documented dev-only password (infrastructure/README.md, "local development only"). Walked in Chromium with two test apps from a local repository: both installed from Settings → Marketplace at the pinned commit, Ping Pong with a real npm ci. Orbits animated in its window with no iframe, set its title, raised a notification on click, was refused system.fs by name, and left nothing behind after unmount. Ping Pong's server started on 127.0.0.1 when its window opened; the app reached it over HTTP and WebSocket through the desktop's proxy, the server never saw the session cookie, and it stopped within one sweep of the window closing. Uninstall removed both builds and logs. The walk found one bug: the first installs failed with spawn git ENOENT, because only the prod stage of the Dockerfile installs git (the Git app had the same gap in dev). The dev stage installs it now.
[2026-10-06] done | Brief 156 — the office editors ask before overwriting
Sheets and Docs now read with a version and save through a new kit helper,
saveOverRead, which runs brief 155's Overwrite / Reload from disk / Cancel
question. Slides never writes the deck, so it needs none. Walked in the dev
container with a CSV and a .docx; every branch held. The walk found an older
Sheets bug: edits were notified once per load, so after the first save the
sheet never became dirty again and closing it could drop work silently. It now
notifies on every edit. Todos: office-editors-save-conflict done, totp-recovery-codes
closed (TOTP lives in Ward now), install-apps-from-github marked partly built by
brief 120.
[2026-10-06] decision | Arbitrary-URL app installs stay unbuilt
Asked whether to start the sandboxed iframe runtime that installing from any
URL needs, the owner chose to leave it: the pinned catalog from brief 120 covers
the real use. Recorded on the install-apps-from-github todo, which stays partly
built. On the game side, Hollow now builds a marketplace module
(games/hollow/client/dist/os/hollow.mjs in game-engine); marketplace/hollow.json
waits for that commit to be pushed so it can be pinned.
2026-10-06 — Owner answers: Ward dropped, shared origin accepted, no registry
The three open questions, asked one at a time. The crimson accent was already
confirmed in decisions.md; the open-questions page had not caught up.
Build-from-source is final, with no registry image even at v1. On the shared
origin the owner chose to stay at /imbatranim-os and to drop Ward:
the desktop keeps brief 152's own sign-in everywhere. Written up as brief 157,
which also touches vps-deploy and wzd_auth. The same-origin risk is recorded as
accepted, not fixed. See decisions-estate-era.md.
[2026-10-07] decision | v1.0.0 declared; every commit now bumps the minor version
The owner dropped brief 15's bar: no friend-run QA and no VPS deploy before v1.
v1.0.0 is the code as it stands (still 1.0.0 in package.json and the
Dockerfile; no tag, per 2026-07-19). Brief 15 moved to done/ with that
outcome. New rule: every commit after this one bumps the minor version.
scripts/bump-version.mjs (npm run version:bump -- --stage) computes the next
version from HEAD and rewrites the root package.json, both lockfile fields and
the Dockerfile's label and IMAGE_VERSION. A pre-commit hook was written and
removed: the agent's permission check blocked installing it, so automation is the
owner's call. Recorded in decisions-estate-era.md and corpus/CLAUDE.md.
[2026-10-07] build | Brief 157: Ward dropped, the desktop signs in on its own
Built across three repos. imbatranimOS lost the ward module, the WARD_*
variables, the token refresh and the terminal's freshness registry; a new
identity module holds the guard and /api/me, and brief 152's sign-in is the
only path. A leftover WARD_* boots with a one-line notice. vps-deploy passes
SETUP_TOKEN as a required secret and drops imbatranim-os's ward edge. Ward no
longer registers imbatranim-os or offers it as a ?next= destination. The
Alt-Tab switcher needed nothing: it never had a Ward source. Walked in the dev
container from the first-run claim to Log off. The decisions, open-questions,
architecture, overview, glossary and status pages say the same. Owner steps
(secret, deploy, claim, delete the app in Ward's console) are in the brief's
outcome and on status.md.
[2026-10-07] walk | Brief 120's gate met: Hollow from the marketplace
marketplace/hollow.json pins game-engine 0d83f70 (GitHub main, with the
mount build from 9575089). It loads through the real catalog loader with no
problems. In the dev container, on a fresh volume: Settings, Marketplace,
Install cloned the commit, ran npm ci (18 s) and build:os (under a second)
at the repository root, and served 1.5 MB from
games/hollow/client/dist/os/. Open showed the setup screen; Start ran the 3D
town at 45 to 58 fps with the tick advancing. Closing the window removed it and
lost its WebGL2 context; reopening mounted a fresh one and ran again. Two
cosmetic things seen in the window, reported to game-engine rather than fixed
here: the floating label layer draws over the Chronicle and Metrics panels, and
the setup screen's Start button sits over the founders list. Some labels showed
as empty boxes, likely fonts missing in headless Chrome. The walk used the WSL
address on port 5173, since another project's dev server held
127.0.0.1:5173; the dev container serves the desktop at /.
[2026-10-07] decision | Arbitrary-URL app installs: built after all
The owner reversed the 2026-10-06 call ("leave it unbuilt") and asked for it
now. No separate grill: the design calls were made from the todo's own
recommendations and written into brief 158
and decisions-marketplace.md
for the owner to veto. They are prebuilt only, a same-port opaque-origin
sandbox, per-window token URLs, notify as the only capability, GitHub only,
and consent on every install and update. The todo moved to
todos/promoted/.
[2026-10-07] done | Brief 158 — apps install from a GitHub URL into a sandboxed frame
A public repo with an imbatranim.json and its built module installs from
Settings → Marketplace after a consent card. Nothing from it runs on the
machine.
-
The frame. It has an opaque origin (the iframe
sandboxplus a CSPsandboxheader). Its files are served under a per-window token, and itssystemhandle runs over a MessagePort:sandboxBridge.tson the desktop, the backend-servedruntime.jsin the frame. -
Backend. URL parsing and ref resolution (
source-url.ts),app-manifest.ts, pending inspections, tokens, the sandbox routes, and migration 11. -
Desktop.
SandboxedAppHost.tsx, the pane's "Install from a URL", andkeyboardGuard.ts. -
Hardening from an adversarial review (no Critical or High):
- the click shield, rate limits and pressing close twice;
- measuring the clone before checkout;
- a bare commit must be a branch or tag tip;
- the listing is robust to a bad row, and tokens are redacted in logs.
-
The Chrome walk then found three more things:
- a background frame can keylog;
- WebRTC is an exit;
- raising a window reloaded its iframe, because windows were sorted by z-index in the DOM.
Each is fixed and walked again. Verified: typecheck, lint, format; backend 727 unit and 168 e2e tests; core 452; and the Chrome walk with Hollow and a hostile probe app.
-
Owed by the owner: push game-engine's
imbatranim-appbranch, then install Hollow fromhttps://github.com/<owner>/game-engine/tree/imbatranim-app.
[2026-10-07] maintenance | Hollow's URL install now comes from game-engine's main
At the owner's request, game-engine merged the imbatranim-app branch into main as a subtree,
games/hollow/os-app/ (merge 8db15ad), so the app is tested from a stable main rather than a
side branch. The branch is gone. Checked through this repo's installer against the local
checkout (file: under the test flag, ref main, subdir games/hollow/os-app): it resolved to
8db15ad, installed, served all four files under its token, and uninstalled. The install URL
once game-engine is pushed: https://github.com/<owner>/game-engine/tree/main/games/hollow/os-app.
This replaces the branch URL in brief 158's outcome note; status.md now carries this one.
[2026-10-09] capture | Brief 159 filed; architecture page's add-on list refreshed
The README screenshot pass saw desktop icons overlap after a viewport resize in
headless Chrome, staying so until reload. Not investigated; filed as
brief 159 with reproduction as
step one and four leads from the code (the requestAnimationFrame-debounced
re-placement, pinned icons never re-flowed, the one-cell taken check).
architecture.md listed seven add-ons; apps/add-ons/ holds 27
packages and APP_REGISTRY carries 30 windowed apps, so the page now says that and
stops naming a list. The docs site's tour page was refreshed in the code repo's own
commit. apps/docs/src/content/docs/wiki/ is gitignored, so no synced output changed.
[2026-10-18] todo | Brief 160 filed: the docs site moves from Starlight to Docusaurus
The owner's call (2026-10-18), one brief in every repo with a docs site. 160 ports the splash landing, AppGrid, LayerStack and the Starlight cards to React, keeps TypeDoc and Compodoc under static/reference/, and keeps the URLs. The new sync discovers pages, so the owner picks which of twelve wiki pages the old list left out stay unpublished. The docs workspace stays out of the image. The deploy waits on vps-deploy brief 11.
[2026-10-19] build | Brief 159 done: desktop icons stay apart after a resize
Reproduced in headless Chrome: 1440x900 to 1440x500 left all 29 icons squeezed together
while the store held the right grid. framer-motion's ref-based dragConstraints stops
an icon's animation on every window resize and rescales it within the new bounds, so
each icon froze part way. The limits are now numbers from the measured desktop size
(ad7bc2e). The same walk confirmed two layoutIcons faults: a pinned icon between
cells blocked one cell instead of all it covers, and a pinned icon below a shrunken
desktop was clipped. Both are fixed, with four unit tests and a headed and headless
walk. Brief 159 carries the
outcome.
[2026-10-19] todo | Brief 161 filed: the craft suite in sandboxed windows
The owner asked for ArtCraft's crafting apps in the OS, five for v1: WordCraft, GridCraft, CADCraft, PdfCraft and DeckCraft. Read-only clones showed all five are Rust/egui apps whose web build is one wasm canvas, MIT OR Apache-2.0, two to three weeks old and changing daily, with nothing to import into a React add-on. CADCraft, GridCraft and PdfCraft have a postMessage host bridge, but only for a same-origin parent, so none works in brief 158's opaque-origin frame; WordCraft and DeckCraft have no bridge at all. 161 proposes the sandboxed route over a same-origin frame, because a same-origin frame would give an unreviewed release the owner's session and terminal. It also proposes catalog entries pinned to release zips by SHA-256, a "document" grant in place of fs, and upstream bridge PRs, with a spike first. The real gaps it fills are CAD (we have none) and slide editing (Slides only views). Six decisions wait on the owner.
[2026-10-19] build | Brief 160 done: the docs site is on Docusaurus
apps/docs moved from Starlight to Docusaurus 3.10 with the same base, URLs and dist/
(2442aaf). The owner chose to publish all twelve wiki pages the old sync list left out,
so DENY is empty and each page has a sidebar entry. The port found that the backend
reference had never been built: Compodoc exits as soon as a --coverageTest run passes,
before it writes HTML. The gate is now a separate run, and the threshold is still 35%.
A stale #the-seam anchor was fixed, and the architecture diagram no longer names the
production host (d275b42). Route parity holds, with /search/, the twelve pages and the
backend reference added. An npm ci on the image's manifests installs no @docusaurus
package. Brief 160 carries the outcome.
The deploy waits on vps-deploy brief 11.
[2026-10-21] decision | The office suite moves out to imbatranim-office (brief 161 not taken)
Grilled with the owner. They turned down all four of brief 161's routes: the OS should behave like an OS whose apps are all web UI, and a craft's wasm canvas in a sandboxed frame is not that. Research that day showed the crafts' engines are UI-free and already headless (MCP and CLI), but the cost of the owner's first idea, Rust engines behind an API, is the React UI that has to be rebuilt anyway, plus a network hop on every keystroke and two more revisits to run a Rust binary in a compiler-free image. Settled, in decisions-office-suite.md: Docs, Sheets, Slides, PDF (PDF Viewer and norPDF merged) and a new CAD app move to a separate repo, imbatranim-office, in TypeScript with editing in the browser and a server only for one-off jobs, and come back through one marketplace entry that installs all five. The crafts are the reference for behaviour and features. "Client-side JS engines only" is narrowed, not dropped. The owner chose the name over openBureau (taken) and created no remote yet; imbatranim-office exists as an empty repo on main. Brief 161 moves to superseded/ when the suite's briefs are written.
[2026-10-21] todo | Briefs 162–164 filed for the office suite; 161 superseded
161 moves to superseded/ with an outcome note carrying the day's research (the crafts' engines are UI-free and already headless; a Rust server needs a compiler or prebuilt binaries; the desktop's CSP has no wasm). Three OS briefs replace it. 162 teaches the catalog "one descriptor, several apps": schema version 2 with an apps array, one build and at most one server per descriptor, per-app multiInstance and opens, and an office set of icons checked against every committed descriptor; Hollow's v1 descriptor stays as it is. 163 adds kit apps: the desktop lends its React and @imbatranim/ui on a frozen global, versioned as SHARED_KIT_VERSION, and renders the app's component in its own tree with a scoped handle; an import map was rejected because it needs an inline script under script-src 'self'. The theme tokens move into the kit so an outside repo can build against a snapshot. 164 is run once per app at parity: it moves the user's choices to the new id, removes the add-on, and replaces two hard-coded ids (newFileTemplates.ts, PREFERRED_DEFAULT). The glossary's marketplace terms moved to glossary-marketplace.md, which adds suite descriptor, kit app, shared kit and imbatranim-office; brief 161's "craft app" and "document grant" are recorded as never adopted.
[2026-10-21] build | Brief 162 done: one catalog entry, several apps
A schema-2 descriptor lists its apps in an apps array and installs them in one build: one clone, build directory, log, row and server per descriptor (9394ea6, 1.21.0). Version 1 normalises to one app, so Hollow is unchanged. Each app has its own id (unique across the catalog), window, icon, opens and multiInstance, so marketplace apps can open several windows and appear in Open With after the built-in that claims the same extension. A new entries column records what the build produced, and the listing reads it rather than the descriptor; a build that leaves an entry out fails and keeps the previous build live. Walked in Chrome in the dev container with a local two-app fixture copied in with docker cp (the dev profile now passes MARKETPLACE_ALLOW_LOCAL_REPOS, off by default). The build calls are on a new page, decisions-marketplace-suites.md, split from decisions-marketplace.md at its line cap. Brief 162 carries the outcome.
[2026-10-21] build | Brief 163 done: kit apps share the desktop's React and kit
A catalog app can now export a React component, App, that the desktop renders in its own tree with its own React, React DOM and @imbatranim/ui, lent on a frozen globalThis.__imbatranimShared set before the first kit module loads (5f3f5aa, 1.23.0). useSystem() inside it returns the capability-scoped handle, and the kit's dialogs and save helpers work because they are the desktop's instances. SHARED_KIT_VERSION (1) is the contract; a descriptor's sharedKit that differs refuses the app with both versions named. Per-app stylesheets are linked once per build. The theme block moved to packages/ui/src/theme.css as @theme static, so imbatranim-office can snapshot the token names and every token exists at runtime (18 previously unused variables now emitted, no value changed). No import map, no inline script, CSP unchanged. Walked in Chrome with a two-app fixture suite; Hollow unchanged. Brief 163 carries the outcome and two known rough edges.
[2026-10-22] todo | Brief 164 split into one retirement per app; two todos from the suite's walks
imbatranim-office has all five apps built; Docs and CAD were walked in this OS, and the Slides, Sheets and PDF walks are that repo's briefs 07–09. Brief 164 is now the Docs run, which builds the migration and commits the Office catalog entry (marketplace/imbatranim-office.json, the suite's template pinned to the walked commit); 165, 166 and 167 are the Slides, Sheets and PDF runs, each waiting on its walk. Two todos: taskbar activation leaves focus on the taskbar, and brief 163's refusal and same-ref reinstall rough edges.
[2026-10-22] decision | The desktop moves to its own host; the shared-origin risk closes
The owner asked on 2026-10-21 for a subdomain for the desktop, revisiting the 2026-10-06 call that kept it at /imbatranim-os and accepted the shared origin as a risk. vps-deploy brief 14, built on 2026-10-22, serves it at the root of imbatranim.<domain>, where imb_session is host-only, and redirects /imbatranim-os there; the docs stay at /imbatranim-os/docs. Nothing in this repo changed: the image already defaults to VITE_BASE=/ and VITE_API_URL=/api, the session cookie's path is /, and the origin check compares against the request's own host. The note is on both 2026-10-06 entries in decisions-estate-era.md; it applies once the owner deploys. Signing in again on the new host is expected, since the old cookie belonged to the apex.
[2026-10-23] decision | Revisit: Linux apps show as OS windows, sent as pixels
Owner grilling, started as "run Spotify on the OS". The owner wants Linux GUI apps in general, with the desktop as their only screen and Spotify as the first one. That revisits the rule in os-layering.md that the server streams data and never pixels. A Linux app's window now reaches the tab as its image; web apps are unchanged. The layer is our own Wayland host in Rust (smithay), relayed by the backend over the signed-in WebSocket. Greenfield, Xpra, a TypeScript Wayland server and an all-Rust server were rejected. New page: decisions-linux-apps.md; glossary gains Linux app and Wayland host. The grilling continues.
[2026-10-23] decision | Revisit: Linux apps install at runtime from Nix; Alpine stays
Same grilling. Spotify ships only for glibc and the OS is Alpine (musl). The owner first picked moving the OS to Debian, then chose Alpine with Nix once it was on the table: each Nix package carries its own glibc, /nix belongs to imbatranim on its own volume, and the user installs Linux apps without sudo. This reverses the pivot era's stance that the Linux side is fixed at image build time (decisions-pivot-era.md), for Linux apps only. Recorded in decisions-linux-apps.md.
[2026-10-23] todo | Briefs 168–173 filed: Linux apps in OS windows, Firefox first
The grilling that began with Spotify ended with a general layer: Linux GUI apps from Nix, shown as OS windows through our own Rust Wayland host, Firefox first (Spotify dropped). The settled calls are in decisions-linux-apps.md. Brief-level calls: the feature is on on every machine, title bars follow the app (an exception to the Win7 chrome for Linux windows only), a Settings pane from the start, unfree packages allowed, US keyboard only, lossless changed-region frames near 30 fps. Six small briefs, riskiest first: 168 Nix and headless Firefox, 169 output, 170 input and title bars, 171 popups and the Firefox walk, 172 the pane, 173 lifecycle and sleep. Left out on purpose: linux-apps-after-the-first-wave.
[2026-10-23] todo | Briefs 174–176 from two open todos
174: activating a
window from the taskbar, Alt+Tab or the launcher moves DOM focus into it (last focused
element, then first focusable, then the content area; the iframe for a URL app). It
stays out of shared/store/*, which 164–167 and 169 own.
175: a kit or protocol refusal
renders as an inline panel instead of a crash, a toast and a client-error log.
176: the backend reports the
catalog's kit beside the build's (today marketplace.service.ts:322 hides it), and the
pane offers Rebuild when only the kit changed. The todos moved to todos/promoted/.
linux-apps-after-the-first-wave stays a todo until 168–173 are built.
[2026-10-27] build | Brief 174 done: activation moves focus into the window
A window raised from the taskbar, an Alt+Tab commit, the Start menu or the palette now gets the keyboard (683ecad, 1.32.0). One frame after the store call, and only while that window is still the focused one (so never behind the cover screen), focus goes to the element that last had it in the window's content area, else the first focusable element (a URL app's iframe), else the content area, now tabIndex={-1}. Focus is remembered from the content area only, so a restore never lands on Minimize; a click inside a window is untouched, and minimising from the taskbar leaves focus on the button. The brief put the Start menu in appsSource.ts; it goes through openApp, so its path is in Taskbar.tsx and moves focus only for an app that was already open. Walked in Chrome in the dev container on remapped ports (5173 was taken): two Terminals by taskbar and Alt+Tab, a minimised one restored both ways, Calculator from Start and the palette, and a URL app from a local file:// repository whose iframe took the keys. CAD was not walked; it is not in this catalog. The walk found three gaps, left in keyboard-focus-gaps-after-brief-174: xterm eats the Tab keydown so Alt+Tab does nothing inside a Terminal, a new window from Start keeps focus on the Start button, and desktop icons, toasts and system.window.focus() don't move focus. Brief 174 carries the outcome.
[2026-10-27] build | Brief 175 done: a refused app says so in its window
A kit app built for another shared kit, or any marketplace app that needs a newer system protocol, now opens a window showing "Can't open refusals.ts word for word, and Open Settings (81de146, 1.34.0). It used to throw during render, so the window said "stopped working", a "crashed" toast appeared and a client-error log was sent. The native and sandboxed hosts threw the same protocol refusal, so all three hosts now check in an outer component and render the real host only when the app can run; nothing is leased, fetched or minted for a refused app. Settings has no deep link, so the button opens it at the top. Walked in Chrome with brief 163's kit fixture at sharedKit: 99 and then minSystemVersion: 99: the panel each time, no toast, no client-error request, no module fetched. The walk caught Open Settings bringing Settings up behind the refused window, because the click bubbled to the window root, which raises its window; the panel stops its click now. The pane's own Open buttons have the same bubbling: in-window-open-raises-the-clicked-window. Brief 175 carries the outcome.
[2026-10-27] build | Brief 176 done: Rebuild a kit app at the same ref
The marketplace listing now reports catalogSharedKit, what the descriptor names now, beside sharedKit, what the live build was made against (ff91201, 1.36.0). When the build's kit differs from the desktop's and the catalog's equals it, the pane says "Built for shared kit N; a rebuild for kit M is available" and offers Rebuild, the same install as Update. When the catalog names another kit too, or an older backend sends no field, the row keeps "Needs an update" and offers nothing; a new ref still shows Update and a missing build Reinstall. Walked in Chrome with brief 163's kit fixture built against kit 99 on a kit-1 desktop: no button while the catalog said 99; Rebuild once it said 1 at the same ref, a new build, and the Kit Notes window that had shown brief 175's refusal ran the app. The build call is in decisions-marketplace-suites.md. The service has no unit spec, so the backend checks went into the kit e2e suite. The full npm test run fails at the core task before and after these briefs, from load-dependent errors in files they don't own (a fire-and-forget import in prefs.ts above all): core-tests-flake-under-the-full-run. Brief 176 carries the outcome.
[2026-10-27] todo | Brief 177 filed: research a warmer look
The owner likes the desktop's minimalism but wants it friendlier: pastel colours, a cute background, maybe Aero glass, "warm, calm and chill". Brief 177 is research for a revisit of the locked identity (B&W tokens, crimson accent, dark-first, zero radius). The Win7-classic layout stays. It asks for references, three directions in light and dark on the real token names, a mock page, and the frame cost of backdrop-filter measured, since lightweight is an invariant. Not grilled; brief-board is down, so nothing was filed there.
[2026-10-28] todo | Briefs 178-182 filed from the owner's answers
The owner answered the four questions briefs 174-176 left, on 2026-10-27, and
imbatranim-office brief 09's on 2026-10-28. 178:
the Alt+Tab switcher listens in the capture phase, so it works over a Terminal.
179: a
window's root click doesn't raise it when the click brought another window to
the front, fixed once in Window.tsx. 180:
new windows, desktop icons, toast actions and system.window.focus() move the
keyboard in, as brief 174's paths do. 181:
prefs.ts imports the notification store statically, if there is no cycle, so
the full npm test stops flaking. 182:
a kit app's entry is fetched as its window opens, which closes most of the
suite PDF's 40 ms gap; that gap and Sheets' formula freeze no longer hold back
briefs 166 and 167. The three todos are marked promoted.
[2026-10-28] build | Brief 178 done: Alt+Tab works over a Terminal
The Alt+Tab switcher's key listeners on window run in the capture phase (770f616, 1.40.0), so xterm stopping the Tab keydown no longer hides Alt+Tab from it. A key the switcher acts on (Alt+Tab, Alt+Shift+Tab, and the arrows, Enter, Escape and the Alt release while it is open) is stopped there, so the Terminal never also gets it; every other key reaches the focused element untouched. Walked in headless Chrome against the dev container with real key ups: two Terminals and a Calculator, focus in a Terminal, Alt+Tab opened the switcher, a second Tab stepped, releasing Alt brought the other Terminal up with the keyboard in it, and ech + Tab still completed in the shell. The global hotkeys share the old cause (Ctrl+K does nothing inside a Terminal): keyboard-gaps-left-after-the-focus-fixes. Brief 178 carries the outcome.
[2026-10-28] build | Brief 179 done: a click that opens another window leaves it in front
A click anywhere in a window still raises it, unless the click itself brought another window to the front (90cf397, 1.41.0). The root notes the store's z counter in its click-capture handler, before any handler inside the window runs; if the counter moved and another window is on top when the click reaches the root, the root leaves it there. Closing or minimising mints no z, so a click that only did that still raises the clicked window. The store is unchanged, and brief 175's refusal panel no longer stops its own click. Walked in Chrome against the dev container with brief 163's kit fixture, whose Kit Hello opens one window: Settings → Marketplace → Open Kit Hello left Kit Hello in front whether it was already open or not, and a click on Settings' uncovered content raised Settings. Brief 179 carries the outcome.
[2026-10-28] build | Brief 180 done: every new or raised window gets the keyboard
A new window takes the keyboard once its app has mounted (e233299, 1.42.0): a marker rendered after the app inside its Suspense boundary waits two frames, then calls brief 174's helper if the window is still the focused one, which keeps an app's own first focus such as CAD's command line. A desktop icon, a toast's action, an app's system.intents.openApp and system.window.focus() move the keyboard into a window they raise; the store and the protocol are unchanged. Walked in Chrome against the dev container: Terminal from Start took typing with no click, Calculator from the palette took 42, CAD kept its command line, Calculator's desktop icon and a Clock alarm's Snooze each brought their window up with the keyboard in it. No app calls system.window.focus() today; unit tests cover it. A side effect: after a reload the restored top window has the keyboard. Left in keyboard-gaps-left-after-the-focus-fixes: Ctrl+K misses a Terminal, and other openApp callers this brief did not own raise a window without the keyboard. Brief 180 carries the outcome.
[2026-10-28] build | Brief 181 built: prefs.ts imports the notification store statically; stays in todo
notificationStore.ts imports only zustand, so there is no cycle, and the store was already in the entry chunk: prefs.ts now imports it at the top (0937bba, 1.43.0), and the eager set shrank by 518 bytes rather than grew. marketplace.test.tsx's axios mock has a put. A follow-up (c5b1bd9, 1.51.0) resets every prefs module a test loads, since an old module's 5 s retry fired inside a later test. Fifteen full runs (turbo test test:e2e --force; without --force turbo replays its cache) showed no EnvironmentTeardownError and no api.put error, and core passed every run it finished after the follow-up. The run is still not green three times in a row: markdown-editor, notepad, code-editor and sheets tests hit vitest's 5 s, and the backend's service-server e2e its 60 s, with the machine's load average between 18 and 55 from other builds. Those are in full-run-timeouts-under-load; the owner closes brief 181 or fixes them first.
[2026-10-28] build | Brief 182 done: a kit app starts loading when its window opens
The registry's lazy factory for a kit app now preloads the entry and the build's stylesheets as the window opens (99d6115, 1.44.0) and, once the host's chunk is in, starts the import itself (608ad1e, 1.46.0); the host takes the same import. The preload alone measured no gain, 640 ms against 632: React holds a lazy component that resolves just after its fallback for up to 300 ms, the host's effect ran the import after that, and a modulepreload fetches the entry without its ten shared chunks. Starting the import in the factory moves those chunks from about 316 ms to 78. Measured as office brief 09 did, in the production image with the suite installed from a local repository, Open With → ink on NIST SP 800-218, fresh headless Chrome per run, two series of 7 alternating with the before image and PDF Viewer: the suite's median went from 671 to 540 ms and from 661 to 548, PDF Viewer measured 552 and 558. The literal bar, 30 ms under brief 09's 574, is met in one series and missed by 4 ms in the other; PDF Viewer itself was 18 to 24 ms slower here than in brief 09. Refused apps fetch nothing, and nothing is fetched before a window opens. Brief 182 carries the outcome.
[2026-10-28] build | Brief 164 built (the Docs run); walk unfinished, stays in todo
The built-in Docs is gone and Office is in the catalog, pinned to the office commit 1ca83c0 (c3baeef, 1.45.0). At sign-in a one-time migration moves the owner's choices from docs to office-docs (association overrides, the disabled set, desktop icons, startup apps) and records it in a new dotfile; recents are read through the same table. New Document resolves its opener through the associations and hides when nothing opens .docx; the Open With chooser names Office in the Marketplace for an unclaimed .docx. The production image shrank by about 35 MB. Walked in Chrome against the dev container with the suite installed: seeded choices moved, letter.docx opened in the suite's Docs from Files and from the Start menu's recents. The New Document check and the suite-uninstalled half were not walked when the owner paused the run. Found: Marketplace startup apps never open at sign-in, since the catalog registers them after runStartupApps(). Brief 164 carries the note.
[2026-10-28] decision | The owner's answers: 181 closed, AGPL stays, brief 183, the shell keeps Ctrl+K
The owner answered the questions the last run left, on 2026-10-28. Brief 181 is closed as built: its own two errors are gone, and the full run's other timeouts stay in full-run-timeouts-under-load. The licence stays AGPL-3.0-only. Its recorded reason was SuperDoc, which left the repo with the built-in Docs in brief 164; the licence now stands by the owner's choice, noted beside it in decisions-pivot-era.md. Marketplace startup apps that never open at sign-in get brief 183: the set waits for the first Marketplace listing when it names an app that is not registered yet, so the list's order holds. Ctrl+K and the other global shortcuts over a Terminal stay with the shell; only Alt+Tab is taken in the capture phase. That item of keyboard-gaps-left-after-the-focus-fixes is settled and the rest stay open.
[2026-10-28] build | Brief 164 done: the Docs run's walk finished
The rest of brief 164's walk, in Chrome against the dev container with Office 909c321 installed from a local file:// repository; no code changed since c3baeef. With the suite installed, the background menu's New Document wrote Untitled Document.docx and opened it in the suite's Docs. With the suite uninstalled, letter.docx showed the chooser's sentence, "No installed app opens .docx files. Office in Settings → Marketplace does.", with no app picked; New Document was gone; the .docx override, the startup entry and the pinned icon's place stayed in the dotfiles, and all came back on reinstall with no prompt. The last walk's right-click opened no menu because the element that owns the background menu is only as tall as the listing: files-background-menu-misses-empty-space. Step 6: decisions-pivot-era.md's office section says Docs left for imbatranim-office; the 2026-08-03 PDF decision gets its note in brief 167.
[2026-10-28] build | Brief 165 done: the built-in Slides retired for Office's
The built-in Slides is gone and the Office catalog entry is pinned to 909c321 (dbd0c04, 1.57.0), which has every walk fix and the Sheets formula worker. slides → office-slides joined the sign-in migration; a desktop that had moved Docs runs only the new pair. pptx-preview and its echarts tree left the lockfile (46 packages). With Office not installed a .pptx gets brief 164's Marketplace sentence; a .ppt gets "No app here opens .ppt files (PowerPoint 97-2003). Office's Slides opens .pptx.", since Office refuses it by name, rather than the hint about the text editor. Walked in Chrome against the dev container with the old choices seeded: the override, the pinned icon's place, the startup entry and a recent all moved, deck.pptx opened in Office's Slides from Files and from Start, and the uninstalled chooser named the Marketplace. The production image shrank from 279,598,118 to 278,157,380 bytes. A first build came out 11.4 MB larger because better-sqlite3 compiled from source under load and the Dockerfile keeps a source build's leftovers: native-build-leftovers-in-the-image. The pin moves again once Sheets computes formulas past row 1000: office-pin-after-the-row-1000-fix (closed 2026-11-03). Brief 165 carries the outcome.
[2026-10-28] build | Brief 166 done: the built-in Sheets retired for Office's
The built-in Sheets is gone (b81a87a, 1.58.0); Office stays pinned to 909c321. sheets → office-sheets joined the sign-in migration; Univer and ExcelJS left the lockfile (263 packages). Four core tests had been getting Node's types through Sheets' dependencies and now reference them themselves. Three types, three answers with Office not installed: .xlsx gets the Marketplace sentence; .xls, which Office refuses by name, gets "No app here opens .xls files (Excel 97-2003). Office's Sheets opens .xlsx."; .csv is text and now opens in the Code Editor while nothing claims it, as a .tsv does, a departure from the brief's literal "shows the chooser" recorded in its outcome. New Spreadsheet opens Office's Sheets and is gone without it. Walked in Chrome against the dev container: the seeded choices moved, book.xlsx and data.csv opened in Office's Sheets from Files and Start, and the uninstalled half behaved as above; one uninstalled run first showed a stale module, because the dev container's Vite missed a synced file, and was redone after a restart. The image shrank from 278,157,380 to 262,170,013 bytes. Office's descriptor still lists xls for Sheets although the app refuses it; that is the office repo's to change. Brief 166 carries the outcome.
[2026-10-28] build | Brief 167 done: PDF Viewer and norPDF retired for Office's PDF
PDF Viewer, norPDF and packages/pdfcore-engine are gone (51608b5, 1.59.0), with pdf.js, @napi-rs/canvas and the root pdfjs-dist override; Office stays pinned to 909c321. Both ids migrate to office-pdf, norPDF first so its icon's place wins; Office's PDF is disabled only when both built-ins were, since hiding the light viewer was not hiding PDF. PREFERRED_DEFAULT lost its only row and stays, empty. With Office not installed a .pdf gets the Marketplace sentence. Every reference the brief listed changed, including the file manager's and Markdown Editor's tests, which its Files you OWN left out. norpdf.md is a pointer to the suite's own wiki/pdf.md; merging anything from the old page there is an owner step, since this run may not write in imbatranim-office. The 2026-08-03 PDF decision and the pivot era's office section carry dated notes. Walked in Chrome against the dev container with .pdf → pdf-viewer, both icons pinned and norPDF disabled: the override, startup entry and norPDF's icon place moved to office-pdf, Office's PDF stayed enabled, the NIST file opened in it from Files and from a recent attributed to pdf-viewer, and the uninstalled chooser named the Marketplace. The machine restarted part way through; the uninstalled half and the reinstall ran after it. The image built on the third try (node-gyp timed out reaching nodejs.org twice) with a source-built better-sqlite3; net of those leftovers it shrank from 262,170,013 to 259,464,127 bytes. Brief 167 carries the outcome.
[2026-10-28] build | Brief 183 done: Marketplace startup apps open at sign-in
A Marketplace app in Settings → Startup now opens when a new tab signs in (78741ee, 1.63.0). App hands its first loadMarketplace() promise to runStartupApps, which still decides first whether to run (the tab's marker, a restored layout) and, only when the list names an app that is not registered yet, waits for that listing, success or failure, before opening the whole set in order, so the last one stays in front; a list of registered apps opens at once, as before. The Startup pane reads the registry each render, so an app whose listing arrives after the pane mounted shows by name. Walked in Chrome against the dev container with the startup list terminal, office-docs: before the brief a new tab opened Terminal only; after it, Terminal then Office's Docs in front; a reload opened nothing new; with the listing failing, Terminal alone; with it held back 12 s, the pane went from Terminal alone to Terminal and Docs as it arrived. Brief 183 carries the outcome.
[2026-10-31] maintenance | README images retaken after the office retirements
The hero GIF still showed the built-in Docs, Slides, Sheets, PDF Viewer and norPDF icons retired by briefs 164 to 167, and the Marketplace screenshot showed a catalog with Hollow only. Both were taken again (docs/images/desktop.gif, docs/images/marketplace.webp); shots.md records how. The README names CAD among Office's apps and describes the new images. docs/getting-started.md now says npm run dev:local needs VITE_API_URL=/api, and docs/architecture.md links the docs site pages at their Docusaurus paths; without the variable the desktop stays black, filed as a todo. Checked: npm ci with Node 24.22.1, the backend built and started, the desktop answered on port 5173, every relative link in the README and docs/ resolves.
[2026-11-02] maintenance | Briefs reset
Part of an estate-wide reset. The 151 briefs in briefs/done/ and the ten in briefs/superseded/
are folded into the wiki and deleted; brief numbering restarts at 01. The last commit that held
them is 621c4dd: read one with git show 621c4dd:corpus/briefs/done/158-sandboxed-apps-from-a-url.md.
Brief numbers in the entries above refer to that set. The seven unbuilt briefs stay as specs,
renumbered in the same order: 168-173 (the Linux apps layer) are now 01-06 and 177 (a warmer look)
is 07.
status.md drops its tables for a dated line per area, the open briefs, what the owner owes and the
open todos. Its one-line table of the first forty-six pieces of work moves to
build-record-2026-07.md; that page and the two backlog pages keep
their old numbers in a labelled Old # column, with the commit to read each spec from. The other
pages name the work and its date. Thirty-one todos are deleted: the twenty-eight in todos/promoted/
and three promoted at the top level, all built. keyboard-gaps-after-brief-180.md is now
keyboard-gaps-left-after-the-focus-fixes.md.
Code comments, test titles, the docs and infrastructure/README.md no longer cite brief numbers.
Left as they were: the ESLint rule message every add-on prints ("forbidden (brief 48)"), the
warning about old WARD_* variables, a docs diagram label (string literals and rendered text),
and eight test files named after briefs (archive.brief78.spec.ts and the like), since renaming files
is outside a comment-only pass.
[2026-11-02] decision | Themes: Apricot by default, Classic kept
Grilled brief 07 (a warmer look) with the owner over a canvas of three warm directions (Apricot,
Sage, Lavender) and today's look, each in light and dark. Settled: Apricot is the default theme and
Classic, today's look, stays selectable in Settings → Appearance; light is the default mode; Apricot
has rounded corners and Figtree as its UI font, and there is no glass; Sage and Lavender don't ship;
a machine with saved settings moves to Apricot light once. "Theme" now means Apricot or Classic, and
light or dark is the mode. This revisits the locked identity; the Win7-classic layout stays.
Record in decisions-themes.md and
glossary-themes.md, with notes on the iso-era identity line, the
2026-07-19 crimson entry and the invariant in CLAUDE.md. The canvas source, holding every value, is
wiki/assets/themes-2026-11/Desktop.dc.html. Brief 07
stays in briefs/todo/ until build briefs replace it.
[2026-11-02] brief | Themes: briefs 08-15 written, 07 superseded
Brief 07 (research a warmer look) moved to briefs/superseded/: the grill above made its calls.
The build is split into eight small briefs, run one at a time and deployed together after 15:
08 themes and mode in the stores, with the one-time move to Apricot light; 09 Apricot's colours
and accents; 10 selection fills on the soft accent; 11 Figtree for Apricot; 12 rounded corners and
Apricot's chrome; 13 Apricot's wallpapers; 14 the theme picker in Settings; 15 a check of every app
in the four combinations. In Apricot, primary becomes a deep shade of the accent so every text,
ring and border use stays readable; the pastel moves to primary-container, which 10 uses for
selected states. They don't depend on 01-06 (Linux apps), which wait for a quiet machine, and run
before them.
[2026-11-02] brief | 01 built; the in-container proof is owed
Nix is in the prod and dev images (c5ef3b2, branch claude/linux-apps-layer): Alpine's own
nix 2.31.5, single-user as imbatranim, sandbox off, max-jobs = 0, /nix on its own volume,
the nixpkgs pin in infrastructure/nix/nixpkgs-pin.env (nixos-26.05 at 9bb5222) written into
the system flake registry, and a base profile of DejaVu fonts and the UTF-8 locale archive that the
entrypoint installs in the background. One change from the spec: Nix's profile and caches live in
/nix/var/imbatranim (the NIX_*_HOME variables and use-xdg-base-directories), not in
~/.nix-profile and ~/.cache/nix, because restore refuses a backup holding a link out of the
home. The build environment couldn't pull images or reach the Nix cache, so the container proof
and the Spec 7 numbers are the owner's to run; the brief stays in todo/ with the commands.
Proven outside a container with Nix 2.34.6: the config, the registry, profile installs under
max-jobs = 0, fonts found through the generated fonts.conf, nothing written to the home.
[2026-11-02] brief | 02 done: the Wayland host shows a window
apps/wayland-host (Rust, smithay 0.7, Wayland server side only) is the display Linux apps
connect to; the backend starts it on the first tab, talks to it over a control socket
(apps/wayland-host/PROTOCOL.md) and relays each tab's windows over /api/wayland behind the
Terminal's checks (f43b42e). Each tab has a desktop session id in sessionStorage, its own
Wayland display and socket, and Terminal shells carry it in WAYLAND_DISPLAY. A Linux window is a
canvas in a new kind of OS window. Frames are lossless WebP: 1.2 KB/s for a ticking clock against
2.0 KB/s deflated, equal when scrolling, about 10% more host CPU. foot needed
wl_data_device_manager, added. The Terminal add-on sends the session id and the kit list in
core's marketplace host names the new export, both outside the brief's file list. Walked outside the
container with foot and headless Chromium; the dev-container walk and the image build are the
owner's.
[2026-11-02] brief | 03 done: Linux windows take input; title bars follow the app
The host's seat has a US keyboard and a pointer, with cursor-shape-v1 and xdg-decoration
(3996293). Keys go by KeyboardEvent.code to evdev codes; the desktop keeps its Global and
Window management shortcuts and the app gets the rest, Escape included. Focus follows the window
manager's focused window; resizing the OS window configures the app within its limits; the close
button asks the app. An app asking for server-side decoration gets the Win7 title bar; one drawing
its own gets a frame only (a frameOnly prop on Window), and its own bar's move and resize
requests drive the window manager's drag. Walked outside the container with foot and gtk3-demo, 14
checks passing; the browser's reserved keys are listed in the brief from Chrome's documentation,
untested. Popups and subsurfaces are 04's.
[2026-11-02] brief | 04-06 not started: they wait on 01's proof
The build environment can't pull images or reach the Nix cache, so 01's container proof is owed, and
04 (Firefox in a window) must not be built on an unproven 01. 04, 05 and 06 stay in todo/ untouched.
[2026-11-03] decision | The image is self-contained; boot never downloads
Grilled with the owner on the open PR: as few dependencies as possible outside the image. Nix stays,
in the image. The base profile (fonts, locale archive) is installed into the image's /nix at build
and copied into a new volume; boot downloads nothing and logs a volume that lacks it. The pinned
snapshot's packages.json.br is baked in for 05, from a snapshot the pin now names on
releases.nixos.org. Apps and the nixpkgs source still download on first install; the dev test
clients stay. Rejected: a file:// cache in the image, baking Firefox, dropping Nix, shipping the
nixpkgs source, a boot fallback, following the channel for the index. Record in
decisions-linux-apps.md; brief 01's spec and 05's index step are
amended, and 01 is rebuilt to match (383beba). The pin's snapshot name is empty until the owner
looks it up; the build stops with instructions meanwhile.
[2026-11-03] brief | 01 done: Nix and Firefox proven in both containers
The pin is filled: nixos-26.05.13446.7dcdd87373d7, and its commit moved to 7dcdd873 (the
2026-11-02 guess from GitHub was a later branch head). Built and run in a session whose Docker
could build through a registry mirror and the session's HTTPS proxy (a1ddefe, 1.78.0). From the
desktop's Terminal, in both the prod image and the dev container, nix profile add nixpkgs#firefox
installed in 1 m 29 s and 57 s (322 paths, 446 MiB download, 1.4 GiB unpacked), and the headless
screenshot was readable in the Image Viewer, again after down/up and after a rebuild. Peak RSS
of a screenshot run 208 to 235 MB. The prod image grows 393 to 488 MB (dev 4.72 to 4.93 GB). The
run found nix store gc keeping 1,828 derivations; keep-derivations = false took the image's
/nix from 24 to 15 MB. Seen and left: CJK text has no font (owner's call, in status), Firefox's
sandbox can't make user namespaces, and one screenshot run in fourteen exited 11 after writing the
picture. 04-06 proceed.
[2026-11-03] walk | 02 and 03 walked again, in the dev container
The walk the owner owed, in headless Chromium against the dev container (dev image at 1.79.0), with
real pointer and keyboard events, 19 checks passing. 02: foot opens an OS window (linux:foot)
whose canvas follows its clock; a second tab gets its own socket and no Linux windows; closing the
first tab ends its apps and removes its socket while the second's stays. 03: foot gets the Win7
title bar; typing and Enter, Shift for capitals and symbols, Backspace, ArrowUp, Tab completion and
Ctrl-C each did their job, checked by the files the commands made; the wheel scrolls the scrollback
and a drag selects; resizing the OS window reflows foot (38×100 to 44×121); Ctrl+K opens the
palette while foot has the keyboard; gtk3-demo gets a frame only and its header bar drags the OS
window; the close button closes foot. Two things the walk showed about the machine rather than the
host: every app that exits after its shell is gone stays a zombie, since PID 1 (node, or turbo in
dev) never reaps orphans (06 adds tini); and the walk script had to hold Shift itself, since
Playwright's type() sends capitals without it and the desktop passes physical keys.
[2026-11-03] brief | 04 done: popups, subsurfaces, Firefox in an OS window
The host composes each window from its surface tree, which Firefox needs to show at all (its
content is a subsurface), and places xdg_popups from their positioner, kept on the output from
where the tab says the parent sits; the tab draws them in a layer above every window (9a607b6,
1.81.0). Firefox takes no grab for its menus and closes them when it loses the keyboard, so a press
outside every Linux window takes the keyboard from the apps; it draws <select> dropdowns and
tooltips in its own window. Stubs: xdg-activation, text-input, viewporter, fractional-scale. A
window is announced with its first geometry, so Firefox stopped growing 52 px per launch. Walked in
the dev container, every line passing. Measured: PSS 506 MB idle, 593 MB with five tabs; Firefox
CPU 3%, 22% scrolling, 17% on a video; 0, 160 and 239 kB/s on the WebSocket; 13 frames/s scrolling,
28 on the video. Chromium's renderer crashed when a window's zoom ran beside a drawing Linux window;
while one is open, windows open with the fade only (1 crash in 5 left, opening an app beside a
playing video). Owner: check Chrome with a GPU.
[2026-11-03] brief | 05 done: the Linux apps pane, and Start entries
Settings → Linux apps searches the pinned release's package list, installs and removes with the
job's log in the pane, shows the store's size and frees space (457db5d, 1.83.0). The 381 MB list
is streamed into a 12 MB index on the /nix volume (7 s, 174 MB peak, once per pin; parsing it
whole would cost 1.6 GB). Changes and launches come only from a tab whose desktop session is live
(owner). Installed apps' .desktop files become linux:<id> Start entries, launched in their own
process group into the tab's session; Linux windows now find their icon through the same id.
Walked in the dev container, 12 checks passing, Free space taking the store from 2.1 to 1.6 GB.
[2026-11-03] brief | 06 done: Linux apps live with their tab, and sleep under the cover
A session outlives its socket by 30 s; a reload takes it back and the host announces its windows
again (ab44333, 1.85.0). After that, or when the sign-in ends, its apps' groups (Start's, and the
socket's clients' through SO_PEERCRED) get SIGTERM, SIGKILL 5 s later. The cover screen freezes
them (SIGSTOP) and the host sends nothing meanwhile; a Linux window drawing at least 64×64 pixels
holds the idle cover off; a hidden tab or minimized window gets no frames. tini is PID 1. Walked in
the dev container, 9 checks passing: Firefox survived a reload with its tabs; the cover stopped its
10 processes; hidden, the socket went from 237 kB/s to 0 and Firefox from 17% to 7.5%; a video held
the 5-minute cover off and a still page let it engage; closing the tab left nothing at 38 s. Found:
BusyBox sh passes no SIGHUP to background jobs, so a Terminal's app & outlives its shell until
the session ends, against the decision's assumption; the owner's call, in status.
[2026-11-03] decision | The Linux apps layer, grilled after the build
With the owner, on what briefs 01-06 left open. A Terminal's background jobs live with the tab's
session, as Start's apps do: BusyBox sh passes no SIGHUP to its jobs, so this revises the
2026-10-23 hang-up rule instead of changing the PTY or the shell. Installs, removals, Free space and
launches come only from the tab that holds the session; reading stays open to any signed-in tab
(confirming the build). While a Linux window is open, windows open and close without the zoom, until
Chrome with a GPU is checked. No CJK font in the image; one installs from the pane. Left for later
briefs: lossy frames for video, Linux windows' places across a reload. Record in
decisions-linux-apps-built.md, split from
decisions-linux-apps.md, which had passed 200 lines. PR 1 is the owner's to review and merge.
[2026-11-03] brief | 08 done: themes and mode in the stores
The appearance store holds a theme, a mode and an accent per theme. The wallpaper store holds a
wallpaper per theme. <html> carries data-os-theme beside data-theme, which now means the
mode. Both stores are at version 1: a machine saved before themes moves once to Apricot light,
keeping its accent and wallpaper as Classic's, whether the old blob comes from the mirror or the
server. Nothing looks different yet. system.appearance.get().accent now carries the accent's
hex, as its type always said, instead of its id. Classic light and dark screenshots of the File
Manager and Settings windows match the ones taken before, pixel for pixel. Built in 93604c2
(1.70.0). The capture recipe that 09-15 reuse is in the brief's outcome. Run alongside briefs
01-06, which a cloud session is building on claude/linux-apps-layer.
[2026-11-03] brief | 09 done: Apricot's colours and accents
index.css holds four token blocks, Apricot light and dark from the canvas and Classic's two
unchanged, with Apricot light as the bare default so the sign-in screen paints it. Each accent has
a strong pair (primary: in Apricot light a deep shade with white on it) and a soft pair
(primary-container: the pastel with dark text). A new contrast test holds every Apricot surface,
text colour and accent pair to 4.5:1. Three canvas values were moved just enough to pass: the deep
apricot #a84f25 → #a04b23, light onVar #7a5f4e → #735949, dark error #ff6b6b →
#ff7171. Classic's windows are pixel-identical. Built in b35e1b8 (1.72.0); the outcome lists
every preset's hexes.
[2026-11-03] brief | 10 done: selected states use the soft accent
Every bg-primary use was sorted. Selected, current and chosen states (rows, highlighted menu items,
tabs, segmented controls, chips and toggles that are on, the checked Checkbox) moved to
primary-container, the pastel in Apricot. Actions, progress fills, badges and thin indicators
stay strong. The kit's Button gains a selected variant for toggles that used primary as
their "on" look. Classic renders as before; the rule is in
ui-conventions.md rule 6. Built in 592b788 (1.74.0). Two calls left to
the owner: "today" in the calendars stays strong, and a selected chip keeps its deep border.
[2026-11-03] brief | 11 done: Figtree for Apricot
Apricot's chrome renders in Figtree 2.002, vendored from Fontsource 5.3.0 (20,156 bytes); Classic
keeps Space Grotesk and both keep Inter for content. --font-ui follows the theme through
--k-font-ui in the token blocks, and the window frame, command palette and snipping tool no
longer name Space Grotesk. assets/fonts/README.md now records all three fonts' sources: the two
older files turned out to be byte-for-byte Fontsource 5.3.0's. Built in 5e2ae74 (1.76.0).
[2026-11-03] brief | 12 done: rounded corners and Apricot's chrome
Five radius tokens (rounded-window, -menu, -control, -item, -tile) are soft in Apricot
and 0px in Classic, where the zero-radius rule now applies alone. Six shadow variables keep
Classic's old recipes and give Apricot the canvas's warm ones. A new apricot: variant carries
Apricot's chrome: a padded taskbar without separators, a centred current-task dot, a Start menu
floating 8px clear, no accent border on the focused window, and desktop icons on light tiles.
Classic's windows are pixel-identical. File Manager's table rows stay square, and Settings' own
buttons wait for 14. ui-conventions rules 8 and 9 and checklist item 3 are rewritten. Built in
547b223 (1.78.0). Vite's watcher missed a kit edit once; restart it after touching
packages/ui.
[2026-11-03] brief | 13 done: Apricot's wallpapers
Wallpapers live in one module per theme that the desktop and Settings both read; Classic's three
moved over unchanged. Apricot gets the canvas's sunset hills as an inline SVG behind the icons
(sky gradient, sun or moon, clouds, three hills, stars at dusk) that fills any desktop size and
recolours from --k-wall-* variables on a mode switch, plus Plain and Soft dots. Checked at
1280×800, 390×844 and 2560×1440; Classic is pixel-identical. Built in e41d80c (1.80.0).
[2026-11-03] brief | 14 done: the theme picker in Settings
Settings → Appearance reads Theme, Mode, Accent, Wallpaper. Each theme card draws a small desktop
in its own theme's values: the token blocks now match [data-os-theme][data-theme] on any
element, and Classic's square rule skips an Apricot card. Every group is a labelled radio group
(Tab reaches the chosen option, arrows move, Space/Enter choose), and choosing a card brings back
that theme's own accent and wallpaper at once. Built in 1542261 (1.82.0), with a new test. Filed
settings-apps-rows-overflow-on-a-phone (closed by brief 21): the Apps
rows below the section make Settings scroll sideways at 390 px.
[2026-11-03] brief | 15 done: every app checked in the themes; 08-15 complete
Every built-in app and add-on was opened in Apricot light, Apricot dark and Classic dark. All read
correctly; the apps' own chips, tabs and toggles were the one stray (square inside rounded
windows) and got the control radius (26afbcb, 0px in Classic). The Terminal's ANSI palettes
pass on Apricot's surfaces and the tests now check them there (b91f1ce). ui-conventions,
routing.md's identity lock and the token comment (b45a1e9) now describe the two themes and their
modes. The theme briefs 08-15 are all done, version 1.86.0. Nothing is deployed; the owner deploys
08-15 together, retakes the README images, and re-vendors the kit in imbatranim-office and Hollow
before moving their pins. Six design questions are in brief 15's outcome.
[2026-11-03] decision | Theme follow-ups grilled; briefs 16-21
The owner answered brief 15's six design questions, one at a time:
- The Code Editor and Diff take a Monaco theme built from the tokens.
- Apricot rounds and insets list rows everywhere, File Manager's included, and rounds bordered boxes inside windows; edge-to-edge panels stay square.
- Toasts, tooltips, the tray's popovers and the sign-in card get warm shadows in Apricot.
- Today stays a strong marker, and selected chips keep their deep border.
- Every control gets the accent focus ring.
The two calls that change house rules are recorded in
decisions-themes.md. Briefs 16-21 hold the work,
21 being the Settings overflow todo. Found while checking: Diff picks its
Monaco theme from the device's prefers-color-scheme, not the OS mode; 16
fixes it.
[2026-11-03] brief | 16 done: the Code Editor and Diff match the theme
Monaco now draws on the window's own surface in every theme and mode, from a theme built out of the
tokens (editor and gutter, text, current line, translucent soft-accent selection, accent cursor,
widgets); syntax colours stay Monaco's. It restyles live on a mode or theme switch. Diff also
stopped following the device's prefers-color-scheme and follows the OS mode.
[2026-11-03] brief | 17 done: rounded, inset list rows in Apricot
The selectable lists pad their sides and round their rows in Apricot, without dividers. That
covers File Manager's list and search results, the playlist, the outline, the palette, Open with
and Git's lists. File Manager's list stayed a <table>: in Apricot it separates its borders and
puts the row fill on rounded cells, which keeps its virtualisation and keyboard handling as they
were. Classic is pixel-identical.
[2026-11-03] brief | 18 done: warm shadows for toasts, tooltips, the tray and sign-in
Toasts, tooltips, the tray's popovers and the sign-in card take --k-shadow-* variables: Classic
keeps its exact old shadows, Apricot gets the canvas's warm ones. No literal shadow is left in the
desktop, the add-ons or the kit.
[2026-11-03] brief | 19 done: rounded boxes inside windows in Apricot
A scripted list of every full-bordered element without a radius (119 strings) was sorted by hand:
boxes, cards, inputs, buttons and progress tracks take the control radius in Apricot; tiny ones
(checkboxes, swatches, key caps, tags) a new sixth token, rounded-small (4px, 0 in Classic);
frames already rounded, the rubber band, Paint's canvas and Minesweeper's cells were left. Classic
is pixel-identical.
[2026-11-03] brief | 20 done: every control has the accent focus ring
A scan of every focusable element found 188 with no focus style. 144 class strings took the house ring by script; the shared class constants, a bare checkbox and an inline field were done by hand; native checkboxes, radios, the colour picker and range inputs take an accent outline. Hidden inputs and Markdown content were left. ui-conventions rule 36 now says no control may fall back to the browser outline.
[2026-11-03] brief | 21 done: Settings fits a phone
The Apps grid's single column is minmax(0, 1fr), so its rows shrink and truncate; Settings no
longer scrolls sideways at 390 px (measured: no section overflows). The todo
settings-apps-rows-overflow-on-a-phone is closed. This finishes the theme follow-ups 16-21.
[2026-11-03] marketplace | Office pinned at aa626c2, static, with the themed kit
imbatranim-office's kit snapshot was synced to this repo's 5a31e37 (its kit:sync; --check
passes byte for byte), CAD's overlay tooltip now draws in --font-ui, and the owner chose to
keep the suite static: the OS starts a descriptor's server for every window, which slowed
the first Office window to 2.7-5.0 s and could break all of them, so DWG waits for an on-demand
server (recorded in the office repo's decisions). The Office catalog entry moves from 909c321
to aa626c2 (e074268), which also brings Sheets' fix for formulas past row 1000 (verified in
the office repo's brief 15 inside this OS's production image with openpyxl); the descriptor
matches the office's template apart from the pin. Installed through the Marketplace from a local
file:// catalog copy: done in under a minute, Sheets opened in Apricot light with Figtree and
the rounded kit button. The todo office-pin-after-the-row-1000-fix is closed. Correction to
brief 15's outcome: Hollow does not build against the kit (a schema-1, kit-less descriptor and
no @imbatranim/ui import in game-engine), so it needs no re-vendor and its pin stays. Nothing is
pushed or deployed; the owner pushes imbatranim-office first.
[2026-11-03] brief | 22 written: the dev image survives a version bump
The owner asked for it while the dev image rebuilt for the README images. Every commit's version
bump changes package.json and package-lock.json, which the Dockerfile's deps stage copies
before npm ci, so each image build reinstalls every dependency and the dev stage re-owns all
of node_modules; Compose watch also rebuilds the container on every commit. The brief keys the
npm ci layer on the dependencies alone, drops the chown -R over node_modules, and stops
watch from rebuilding for a version-only change.
[2026-11-03] docs | README images retaken in Apricot light; window corners fixed
The dev image was rebuilt (the version bump busts its npm ci layer on every commit; brief 22)
and all five README images retaken from the dev container in Apricot light, following
docs/images/shots.md; every frame was checked for personal data. Retaking them found a brief-12
bug: Apricot's rounded, overflow-hidden frame clips hit-testing too, so the 8 px corner resize
handles were reachable only 5-7 px inside the corner. In Apricot the corner handles are now 12 px;
Classic's are unchanged.
[2026-11-03] merge | The Linux apps layer joins main
The owner merged claude/linux-apps-layer into origin's main (PR 1, 0cba6ab: briefs 01-06,
Nix in the image, the Wayland host, Linux windows, the Linux apps pane, lifecycle and sleep), and
local main, which carried the theme briefs 08-22, merged it. Conflicts were only the expected
ones: the version (kept 1.106.0, the merge commit bumps it), the two runs of entries in this log
(both kept, the Linux apps run first), status.md (both areas kept; 01-06 now read as merged) and
index.md (regenerated). Core (635), the kit (39) and the backend (854) tests pass on the merged tree. The layer's UI predates the themes; what it lacks is filed as linux-apps-ui-in-the-themes. Nothing is deployed: the themes and the Linux apps deploy together after
the owner pushes imbatranim-office and this repo.
[2026-11-03] todo | Briefs 23-36 from the open todos, five todos split out
An estate-wide grill with the owner turned every open todo into a brief or closed it. Here:
- Promoted as written, each todo's acceptance as the spec: 23 the Linux apps pane in the themes
(the owner: no accent ring on a Linux window's surface, which is the app's own), 24 a wrong stats
answer leaves the desktop standing, 25 Files' background menu reaches the empty space, 26
openAppmoves the keyboard into a raised window (the owner: once insideopenApp, not per caller), 27 the image is the same size after a source build. - From imbatranim-office's todos: 28
startInon the file dialogs, and 29 a kit app asks for its server, decided as on-demand leasing (decisions-marketplace-suites.md); the office's own briefs then use them. - 30: the full test run caps turbo at half the cores (the owner chose that over per-test timeouts and polling); the full run under load is the owner's check.
- The first wave's leftovers split: 31 XWayland, 32 a keyboard layout, 33 HiDPI, 34 window places after a reload, 35 localized desktop entries with their actions, 36 lossy video regions. Sound, clipboard, the VPS and moving the Nix pin each became a todo that needs a grill first, and the window zoom beside Linux windows a todo that waits on the owner's check in Chrome with a GPU.
The seven todos promoted are deleted; links to them in this log are now plain text.
[2026-11-03] brief | 23 done: the Linux apps pane rounds in Apricot
Settings → Linux apps' two error notices, search results list, log box and installed list take the
control radius, the Unfree badge the small one, and both lists inset and round their rows with
dividers gone in Apricot (3fb02f4, 1.109.0). Classic is pixel-identical inside the window. A Linux
window's surface needed no opt-out (brief 20's rings are per class); a comment there, and rule 36,
say why it has none. Walked in the dev container: radii 8/4 px in Apricot and 0 in Classic; foot's
surface focused with no ring while its title bar's Minimize shows one. Run on branch
claude/tender-franklin-h8lc35, which carries 23-36 in one PR.
[2026-11-03] brief | 24 done: a wrong stats answer leaves the desktop standing
The tray reads /system/stats through readTrayStats, which draws CPU and memory only from finite
numbers and reads the disk percent apart; an HTML body, an empty object or a failed request draws the
tray without them (7f4c520, 1.111.0). A host run with VITE_API_URL unset then blanked in Sticky
Notes' desktop layer on the same HTML; it now takes only an array, and the desktop drew (icons,
taskbar, a "Couldn't save your settings" toast). Desktop layers have no error boundary; filed as a
todo.
[2026-11-03] brief | 25 done: Files' background menu reaches the empty space
File Manager's scroll area became a size container and its listing min-h-[100cqh], so in a short
folder the listing, which carries the background menu and click-to-clear, is the pane's height
(8323063, 1.113.0). Walked in the dev container: a two-file folder's listing is 384 px, the pane's
height, and a right-click near the pane's bottom opens New Folder, New File and Paste; a click there
clears the selection. A first component test of File Manager covers the menus.
[2026-11-03] brief | 26 done: openApp moves the keyboard into a window it raises
openApp calls focusIntoWindowSoon when it brings up an already open window, so the palette,
the Notification panel, Start's recent files, the desktop's Change wallpaper and the marketplace's
Open buttons all give it the keyboard (2162640, 1.115.0). openWithKeyboard, its three wrappers and the
taskbar's hand-made copy are gone; a new window still gets the keyboard once, from its mount. A test
drives the palette, Start's recent files and the Notification panel against an open window; the
desktop menu was walked in the dev container.
[2026-11-03] brief | 22 done: the dev image survives a version bump
A manifests stage blanks the root version in the manifests (scripts/normalise-manifests.mjs)
and deps runs npm ci on its output; the dev stage copies sources with --chown and gives the
user only .turbo, apps/backend and Vite's two caches; npm run dev runs scripts/dev.mjs, which
keeps version-free copies of the manifests and the Dockerfile for Compose watch (6f36e2b, 1.117.0).
A version-only rebuild of the dev image: 4 min 31 s before, 4.3 s after. The dev image starts and
hot-reloads; the prod image builds and reports its version. The watch rules were proved on a
miniature (Compose's bake refused the sandbox's host networking): a bump left the container alone, a
dependency change rebuilt it. Found: watch also starts the prod service; a todo.
[2026-11-03] brief | 27 done: the image is the same size after a source build
The proddeps strip and the ISO payload's now empty each native module's build/ but for the binary
it loads (f44b968, 1.119.0). With better-sqlite3 forced to compile, the production image measured
525.74 MB with the old strip and 508.81 MB with the new one, the same as a prebuilt build, and both
builds leave the same files. node-pty, which always compiles on Linux, loses its makefiles too. Both
images start, create their database and run a Terminal.
[2026-11-03] brief | 28 done: the file dialogs can start in a folder
pickOpen and pickSave take startIn: { root, path }; the portal carries it and FilePicker
resolves it through the same /files listing it browses with: the folder, a file's folder, or the
home root for anything the user couldn't walk to (6fa7771, 1.121.0; kit 1.1.0, SHARED_KIT_VERSION
unchanged). Eleven tests drive the real handle and portal; a Save as in the dev container started
beside a file and saved there. imbatranim-office's "Save as opens where the file is" can now sync the
kit and use it.
[2026-11-03] brief | 30 done: the full test run uses fewer workers
npm test is turbo test test:e2e --concurrency=50% (7dee332, 1.123.0); getting-started says why and that
the one-run override is calling turbo directly, since turbo refuses the flag twice. On 4 cores, six
packages' tests through npm test peaked at 2 tasks at once against 6 without the flag. The full run
under load is the owner's. Built ahead of 29, the larger brief.
[2026-11-03] brief | 29 done: a kit app asks for its server when it needs one
The kit has system.server.request() (optional on the handle, kit 1.2.0): it starts the descriptor's
server and resolves its URLs, or rejects with a sentence the app can show (98f93cc, 1.125.0). KitAppHost
no longer leases before rendering or throws on a failed lease; each window's claim leases on the first
ask, reuses it, retries after a failure, and releases on close. NativeAppHost keeps leasing at open
through the same claim. Six new host tests; every package typechecks and lints. The backend's
marketplace e2e is the owner's run. imbatranim-office's "CAD asks for its server on its first DWG"
can now use it.
[2026-11-03] brief | 34 done: Linux windows keep their places after a reload
The layout saves a Linux window's place under its session and toplevel id, and the connection opens
the window the session announces again there; restoring still opens no Linux window (1258820, 1.127.0). The
gateway now tells the tab whether its socket resumed a session, so a new session under the same id,
whose toplevel ids start over, gets no old place; a resumed one drops what its resync didn't claim.
Six connection tests; walked with foot in the dev container (moved, resized, reloaded, back in
place). Built ahead of 31-33, which need the host's Rust.
[2026-11-03] brief | 35 done: desktop entries in the user's language, with their actions
The backend parses localized keys and desktop actions and names each Start entry and action in the
first of the browser's languages the file has, matched as the spec matches locales; the desktop sends
navigator.languages (70cd3fa, 1.130.0). Actions launch through a new route behind the same session check,
from Start's new entry menu and a Linux window's task button. Walked with Firefox and LXTerminal: the
Romanian and Esperanto names show; Firefox's actions are offered and New Window starts it. A second
window from a running Firefox needs a D-Bus session bus the layer doesn't have: a new todo.
[2026-11-03] brief | 32 done: a keyboard layout for Linux apps
Settings → Linux apps chooses US or Romanian (standard), a new dotfile; the tab sends it on connect
and on change, the backend passes known ids, and the host switches the session's xkb keymap with
smithay, which sends it to every client (1aa34ea, 1.132.0). cargo test checks both keymaps and the Romanian
letters on their physical keys. Walked with foot: Romanian typed șțăîâȘȚĂÎÂ, then US typed ;'[]\ into
the same running app.
[2026-11-04] brief | 36 done: video regions go lossy, and text stays sharp
The host's canvas sends a region of at least 240×135 that was redrawn in six of the last eight frames
as JPEG (encoding 3, the pure-Rust jpeg-encoder), splits it out of merged damage so text beside it
stays lossless, and sends it lossless once a quarter of a second after it stops (6b00b3d, 1.134.0). A window
not playing anything is lossless byte for byte as before. Nineteen host tests; the tab decodes JPEG
like WebP. The Firefox kB/s run was not taken.
[2026-11-04] resume | The run on claude/tender-franklin-h8lc35 stops at thirteen briefs
Done on the branch (PR 2): 22-30, 32, 34, 35, 36. Not started: 31 (XWayland) and 33 (HiDPI), both
in the Wayland host. Owed to the owner: the full npm test (turbo, the backend e2e), the real
npm run dev watch check (proved here on a miniature), the Firefox kB/s run for 36, and the three
new todos. Image builds here used a scratchpad copy of the Dockerfile with the sandbox proxy's CA.
[2026-11-04] todo | Briefs 37-44 from the open todos
A grill with the owner settled all eight open todos. Briefs: 37 production gets its own Compose
profile (the owner's pick over naming the dev service in scripts/dev.mjs), 38 a desktop layer that
crashes hides and one notice names the add-on, 39 Linux apps' sound as one mixed stream, 40 a tray
volume and mute over the media player and Linux sound, 41 plain-text copy and paste both ways on the
keys, 42 a D-Bus session bus per session with notifications into the OS (no file-chooser portal), 43
an Updates page styled after Windows Update and macOS (fixes on 26.05, "Upgrade to 26.11" shown
separately, everything moves together, Go back keeps one previous pin), 44 Linux apps on the VPS with
the whole container capped in vps-deploy. The window-zoom check with a GPU Chrome was dropped: the
fade-only rule is final. Three decisions in
decisions-linux-apps-built.md; the global-mixer rejection in
real-os-gaps.md is marked reversed. The eight todos are deleted.
[2026-11-05] brief | 37 done: production gets its own Compose profile
imbatranimos is in the prod profile, so npm run dev (--profile dev) starts only the dev
container (79cb518, 1.137.0). The start commands stay as written: Compose turns on a named
service's profile, and vps-deploy's stack names imbatranimos in every call (build, up, ps, logs),
so it needs no change. config --services lists nothing, dev or imbatranimos per profile; the
README's command started production healthy from the existing image.
[2026-11-05] brief | 38 done: a desktop layer that crashes leaves the desktop standing
Each add-on's desktop layer mounts in its own error boundary, keyed by app id, with its own Suspense
(dde5e62, 1.139.0). A layer that throws draws nothing, one notification says "
[2026-11-05] marketplace | The Office pin moves to imbatranim-office 1b4394f
marketplace/imbatranim-office.json is that repo's descriptor template at 1b4394f: a service
again, with the DWG server, which only CAD asks for on a window's first DWG (system.server, brief
29); CAD opens .dwg again. The pinned commit also has Save as opening in the file's folder
(startIn, brief 28) and Sheets' save waiting for the first calculation. Walked in the dev container
from a local descriptor before the move. imbatranim-office must be pushed before this repo.
[2026-11-05] brief | 41 done: copy and paste between Linux apps and the desktop
Plain text both ways, on the keys (afafa4a, 31cc78e, protocol version 4). An app's copy is read
through a pipe on the host's event loop and written to the tab's clipboard; Ctrl+V, Ctrl+Shift+V or
Shift+Insert in a Linux window reads the clipboard first and hands the text over before the key.
The tab skips a paste whose text both sides already agree on, so an app keeps its own richer copy.
The host never called set_data_device_focus, so no app was ever offered the selection; it now
follows the keyboard. Walked in the rebuilt dev container with Firefox and a stand-in clipboard
(headless Chrome refuses the real one); the real-clipboard check is the owner's.
[2026-11-05] dev | The dev container is kept and reused
The owner asked to keep one dev container and reuse it. It was rebuilt on 2026-11-05 with the Linux apps layer and Firefox is installed in its Nix volume (2.2 GB). Code changes are copied into it, and a new Wayland host binary is built in the Rust image and copied in, rather than rebuilding the dev image per brief.
[2026-11-05] brief | 42 done: a session bus per session, and notifications
Each tab's Linux session starts its own dbus-daemon (Alpine's, 0.7 MB, the owner's pick over Nix's
80 MiB closure), recorded with the session's apps so it sleeps and stops with them; apps get its
address (9a46223, 1.147.0). The backend answers org.freedesktop.Notifications with a D-Bus client
of its own (the owner's pick over an npm library), checked against a real bus with GLib's gdbus.
Walked: Firefox's New Window and a link from another process go to the running Firefox, and a web
notification shows in the OS; clearing it tells Firefox. Firefox needs actions advertised to use the
server at all; clicks run no action yet (todo linux-notification-click-runs-its-action).
[2026-11-05] brief | 44 done: Linux apps on the VPS, inside a capped container
Measured in a local production image: at rest 67 MiB anon, one Firefox idle 590 MiB, playing a video
619 MiB and about 42% of a laptop core. Proposed for vps-deploy: mem_limit: 1g,
memswap_limit: 1g, cpus: 1.0 (in infrastructure/README.md). Linux apps and Terminal shells get
oom_score_adj 1000 (2c41b55); Firefox lowers its own main process back to 0 while it starts, so
the backend raises it again at 5 s and 30 s (2ecb1cb). Under the cap a page allocating past it got
Firefox killed, its windows closed and one "Firefox was stopped" notice shown; the backend never
restarted. Setting the cap in vps-deploy is the owner's step.
[2026-11-05] brief | 31 done: X11 apps open through Xwayland
Each session reserves an X display (lock file and socket, nothing running) and its apps get
DISPLAY; the first X client starts Xwayland, which the host manages through smithay on a
per-session event loop, and which stays for the session (16 MB idle) (e365ca8, 1.154.0). smithay
binds its own sockets, so the host starts Xwayland through a launcher that adds the reserved one.
Xwayland measured 421 MiB unpacked on its own and 5 MiB beside Firefox, so it isn't in the image:
the Linux apps pane installs it with the first app that speaks X11 and removes it with the last
(decisions-linux-apps-built.md). Walked with xterm: typing, a menu popup, move, maximize, close,
Xwayland restarting after a kill, Firefox still on Wayland. Todo x11-apps-clipboard-and-cursors.
[2026-11-06] research | The OS's own apps as Linux apps? Recommended no
The owner asked whether the OS's apps should become native ones served like Firefox through the
Wayland host. Researched without building anything, in wiki/research-native-apps-via-wayland.md.
Server cost per app comes from the repo's measurements: Firefox is 0.5-0.6 GB and up to 41% of a
core while scrolling (host encoding included), and the 1 GiB cap holds one. On the phone, a Linux
window takes physical key codes on a canvas, so Android's on-screen keyboard can't type into it. The suite's 2026-10-21
calls and the 2026-10-23 "a web app's pixels are off-soul" stand against the move. Nix closures at
the pin were summed from cache.nixos.org narinfo, a method that reproduces brief 01's Firefox
exactly. LibreOffice is 858-1,023 MiB to download and 2.6-3.3 GiB unpacked (1.9-2.5 GiB more beside
Firefox). QCAD is 169/663 MiB, LibreCAD 333/1,138 and zathura 183/526. Recommendation: no. Native
programs stay optional installs from Settings → Linux apps. The owner is asked to confirm in
wiki/open-questions.md, which also asks whether Open with for a Linux app is wanted. No brief was
written.
[2026-11-06] research | Native apps via Wayland, measured: the no stands, narrowed
The owner asked to test the claims behind the "no" instead of inferring them. Measured on the dev
container with headless Chrome over CDP, a Node proxy that delays each direction 50 or 100 ms as a
phone link, and Chrome's Android emulation. Results are in wiki/research-native-apps-via-wayland-measured.md.
Keystroke to frame, median: xterm 20 ms, Writer 20 ms and Firefox's address bar 42 ms locally;
122-141 ms with 50 ms each way; 223-242 ms with 100 ms. Notepad's textarea stays at 9-12 ms
throughout. PSS per app: xterm with Xwayland 20 MiB, LibreOffice Writer 306 MiB (installed from the
pane; nixpkgs#libreoffice is the GTK 3 build), Firefox 547 MiB. Scrolling a long page in Firefox
cost Firefox 25%, the host 28% and the backend 10% of a core, at 2.8 MB/s. The tab costs under
45 MiB for either kind. A tap on a Linux window focuses nothing editable, and soft-keyboard text
(insertText, composition, keyCode 229 with no code) sends no key. That is a bug in Linux apps
whatever the owner decides, so it is filed as todo linux-apps-take-the-phones-keyboard. The
recommendation stands, narrowed: typing and the phone decide it for every Linux app, and the cap
only for big programs. Another session's uncommitted research-remote-ui-rendering page and draft
brief 45 were left out of this commit.
Resume:
- The owner's two-minute check on a real Android phone (the measured page, §3), recorded in the todo.
- Firefox and Writer together under the 1 GiB cap (production image,
compose.cap.yml), not measured yet. - A real 4G link: jitter, loss, and whether 2.8 MB/s of scrolling fits or flow control drops frames.
- LibreOffice is still installed in the dev Nix volume (store 3.8 GB). Remove it from Settings → Linux apps, then Free space, if it isn't wanted. Writer's first window showed a black band on two edges once, not looked into.
[2026-11-06] research | Remote UI rendering: none worth building; brief 45
The owner's idea: the React desktop renders a description of a Linux app's
UI, sent from the server (maybe through WASM), instead of streamed pixels.
research-remote-ui-rendering.md:
Wayland only carries finished buffers (the host takes wl_shm only), so a
description would have to come from the toolkit (GTK 4 Broadway, still PNG
for text and icons and deprecated in 4.18; Qt WebGL streaming, gone after
Qt 5.15), the accessibility tree (can't draw documents) or the app running
as WASM in the tab (every app ported; ZetaOffice in beta at 53 MB). No
prototype. The owner's goals are cheaper in today's pipeline: the phone
keyboard through text-input-v3 (brief 45, a prototype, which takes in the
todo linux-apps-take-the-phones-keyboard), HiDPI through brief 33, and
light/dark plus accent through the Settings portal (not briefed). Written by
a research agent that didn't commit; committed with the index after the
native-apps measurements landed.
[2026-11-06] decision | Native apps for heavy work only; briefs 45 and 46
The owner answered the open question from the native-apps research: the OS's own apps and the office suite stay kit apps. "We should have as native apps only the heavy lifting workloads and keep the simple work on client side." Recorded in decisions-linux-apps.md; the open question moved to resolved. Asked whether installed Linux apps should become Open with handlers: yes, brief 46 (imbatranimOS-46), after the kit apps and never the default unless picked. Brief 45 (the phone's keyboard into a Linux app): build it, with the recommendation for each of its other decisions.
[2026-11-06] decision | Remote UI research closed; brief 47; brief 46 decided
The owner closed the remote-UI research (no prototype) and asked for its one unbriefed path: brief 47, Linux apps follow the desktop's light or dark mode and accent through the freedesktop Settings portal, served by the backend on each session bus beside the notifications server. Brief 46's five decisions were taken as written.
[2026-11-06] build | Brief 33 done: Linux windows sharp on HiDPI screens
26dc24e (1.161.0), ready for deploy. The tab sends its devicePixelRatio
with its viewport; the host makes its ceiling (1 to 4) the output's scale
and tells every surface (wl_surface.enter, which nothing sent before, the
preferred buffer scale and the fractional scale). Surfaces are sized in
surface coordinates from their buffer scale or viewport, a window's canvas
is its size times its root's scale, and the protocol (6) keeps every
coordinate in CSS pixels; only frames are in image pixels, and the tab lays
each canvas out at the window's CSS size. X11 apps stay at scale 1. One
short run: scale 2 sent about 1.8 times the bytes of scale 1 (2.4 times per
frame). Asked the owner on the board whether to cap the scale at 2 for
phones. Walked in the dev container at deviceScaleFactor 2.
[2026-11-06] decision | Linux windows' scale capped at 2
The owner answered brief 33's board question: the output scale stops at 2,
not 4. A phone at a devicePixelRatio of about 3 asked for scale 3, nine
times scale 1's pixels in frames and in the apps' buffers; at 2 it is a
little soft, for under half of that, which matters under the VPS's 1 GiB
cap. 031b56b (1.163.0), MAX_SCALE in pixels.rs; it ships with brief
33's deploy.
[2026-11-06] build | Brief 39 done: Linux apps' sound reaches the tab
4acbf07 (1.165.0), ready for deploy. The Wayland host is each session's
sound server: it speaks PulseAudio's native protocol on
$XDG_RUNTIME_DIR/imbatranim-sound/<session> (the pulseaudio crate), the
backend gives apps PULSE_SERVER, and the host mixes their streams to 48 kHz
stereo and sends 20 ms Opus packets (libopus linked in), message kind 3,
protocol 7. PulseAudio and PipeWire were measured at about 256 MiB each in
the image and not taken; the host binary grew 0.64 MB, the runtime image
nothing, the build stage needs cmake. Silence sends nothing, the cover
screen stops the clock. The tab decodes with WebCodecs behind a gain and an
adaptive jitter buffer, after the first press or key; Linux sound holds the
idle cover off. Walked headless with a Web Audio beep page and a 360p video
in Firefox: 50 packets a second without breaks beside 10 Mbit/s of frames,
sound about 40 ms ahead of the picture before device latency.
[2026-11-06] todo | Briefs 48 and 49 from the Linux apps todos
The owner promoted both open Linux apps todos: brief 48, X11 apps share the
clipboard (plain text, through brief 41's path) and show their own cursors
(the cursor surface sent as a small image with its hotspot, only when it
changes; GTK 3 apps that draw their own cursors gain it too); brief 49, a
click on a Linux app's notification runs its default action
(ActionInvoked, then NotificationClosed reason 2), with no extra action
buttons.
[2026-11-06] build | Brief 40 done: a tray volume for every sound
d3da0e7 (1.168.0), ready for deploy. A speaker in the tray opens a 0-100
slider and a mute over all of the OS's sound, saved as a dotfile
(imbatranimos:sound). The kit grows a read-only system.sound with a
sound-changed event, optional on the handle, so it goes to 1.3.0. The
media player plays at its own volume times the tray's and no longer reads
the element back; Linux apps' sound follows it in the tab's gain. Sandboxed
URL apps and the Files preview pane are not covered.
[2026-11-06] build | Brief 43 built: an Updates page for Linux apps
da8ae12 (1.170.0), ready for test. Settings → Updates, its own section
after Linux apps, asks channels.nixos.org for the newest snapshot of the
release and for the next release, downloads each find's package list
(raw: releases.nixos.org sends it brotli-encoded, which fetch would
inflate to 380 MB) and lists the installed apps whose versions change.
Update or Upgrade writes the user flake registry on the /nix volume and
rebuilds every app and Xwayland; Go back rolls the profiles back to the
previous pin's generation. Two pins are kept; an image whose pin is at least
as new wins at boot. Check was walked against the real channel (13627,
firefox 159.0 → 159.0.1); the agent's auto mode refused the live Update on
the dev volume, so Update, Go back and a second move are the owner's walk.
The decision is in
decisions-linux-apps-built.md.
[2026-11-06] research | Which apps leave the image for imbatranim-apps
The owner asked to rename imbatranim-office to imbatranim-apps, make it the
repo for every installable app, list the apps that should move there so the
image starts smaller and cleaner, allow three kinds of app (client only, a
WASM module, suites like Office), and check whether older apps such as the
PDF viewer should go. New pages:
research-imbatranim-apps.md and
research-imbatranim-apps-layout.md.
Measured: imbatranimos:1.0 is 324 MB, and the desktop build with all 25
built-in apps is 16.8 MB of it, 13.9 MB of that Monaco; what could leave is
about 14.5 MB. The gains that hold are a Start menu of seven apps instead of
25, about 29,000 source and 8,000 test lines out of this repo, and apps
released on their own. Proposed:
- a base of Settings, Files, Terminal, Notepad, System Monitor, Logs and the Browser;
- nine client-only apps in a first wave;
- eight apps blocked on the kit contract (
background,widgets,commandSources), their own data in the OS's database, or OS-side modules that do system work (git, the outbound proxy, archives); - Markdown Editor folded into Notepad.
PDF Viewer and norPDF already became Office's PDF (2026-10-21, removed
2026-10-28). WASM engines would come from npm packages, behind a
'wasm-unsafe-eval' CSP change and a revisit of the office repo's
no-WebAssembly rule. Office's build is anchored at its repo root, so how a
group installs is unproven. Briefs 50 (the rename) and 51 (Games as the
first group, measuring the layout) were written; the owner's ten calls are
the open question. Found on the way: apps/backend/src/modules/notes/ holds
only a DTO nothing imports.
[2026-11-06] done | Wave 1: the phone's keyboard, Open with for Linux apps, mode and accent
Briefs 45, 46 and 47 are built on main, one commit each, and moved to
briefs/done/ with outcome notes. 45 (30a16e7, 1.175.0, ready for test):
the Wayland host speaks text-input-v3 itself and the tab keeps a hidden input,
so Android's keyboard can type into a Linux app (touch only, focus "on-tap"
by default, protocol 8); the real-phone checks are the owner's. 47
(6113d57, 1.176.0, ready for deploy): the backend serves the Settings portal
on each session bus, so libadwaita apps and Firefox follow the mode and
accent, live. 46 (209747d, 1.177.0, ready for deploy): launchers carry the
file types they open and launch takes a home-jailed file, so Files' Open with
offers LibreOffice for an .odt; it also adds Alpine's shared-mime-info to
the image (owner's choice on 2026-11-06, over installing it into the profile
or a manual step), as LibreOffice's Nix install has no share/mime/globs2.
The verify gate found that brief 40 had exported useSystemSound from the kit
without adding it to the marketplace kit map, so core's tsc failed; fixed in
8b371ae (1.174.0), committed before the wave.
Review of 46's path jail and 45's text-input validation: one important
finding, fixed: a lone UTF-16 surrogate in a commit or preedit passed the
backend and made the host's JSON parser refuse it, stopping the whole
session; the backend now rejects it. Also fixed: argv[0] from a field code
gives null, and the host's text-input arithmetic saturates. Accepted: root
notes is jailed to the home (fails closed); FILES_ROOT=/ refuses
everything (fails closed); a text edit's delete lengths are not snapped to
UTF-8 boundaries (the client warns; the host is safe). Walk (headless
Chrome, dev container) passed for all three; Firefox's address bar reports
purpose normal and GNOME Text Editor sends no multiline hint, app
behaviour. Wiki: status.md (the Linux layer's first paragraph moved to
status-linux-apps-layer.md to stay under
the cap), the research pages' rows and
decisions-linux-apps-input-files-look.md.
[2026-11-06] briefs | The apps leave the image: briefs 52-62
The owner approved the research's defaults ("looks good, write the briefs"): "It's fine if we don't see a high decrease in size, at least some of them are uninstallable and the desktop feels more clean." They also asked for briefs, or a grill, on the blocked apps. Filed:
- 52-55, which need nothing from the apps repo: Notepad takes over Markdown Editor (and the leftover notes DTO goes); the desktop CSP allows WASM; catalog apps can bring background services, widgets, desktop layers and command sources (kit 1.4.0); Start shows a folder per group.
- 56-62, the moves: Calculator, Paint and Snipping Tool, then Image Viewer and Media Player into Accessories; Code Editor and Diff into Developer, starting with Monaco's build under the 1 GiB cap; Clock and Calendar, then Todo, Sticky Notes and Bookmarks, into Accessories; Git GUI and REST API Client into Developer; Archive Manager into Accessories.
- In imbatranim-office: briefs 04 (CAD reads DWG in the tab, and the suite may lose its server) and 05 (PDF's JPEG2000 and JBIG2 decoders).
The steps every move shares are a checklist in research-imbatranim-apps-layout.md. Facts found while writing:
openAppon a missing id only warns, so Files' Compare, Extract and Compress need hiding when their apps aren't installed;- text falls back to the Code Editor (
TEXT_FALLBACK_APP), which becomes Notepad; - Sticky Notes uses
desktopLayer, a fourth hook the catalog lacks; - the office server converts DWG and nothing else.
The two calls with no default (wave 2's data, wave 3's modules) got Claude's default, that the backend modules stay in the OS and only the apps move. It is the open question, and briefs 59-62 ask for it first. "Group" joins glossary-marketplace. Briefs 50 and 51 now say approved.
[2026-11-06] backlog | The imbatranim-apps briefs become todos
The owner, on briefs 50-62: "write the open questions, we'll grill about
them when starting to work on them. Keep them in backlog". brief-board puts
only todos in Backlog, and a brief in todo/ is To Do, where a brief run
would build it on the drafted defaults without the grill. So each brief
became a todo in todos/ (status open, tag imbatranim-apps):
- its open questions come first, each with a proposed answer;
- the draft brief follows, its links pointing at the other todos instead of numbers.
New questions came out of the rewrite:
- the sign-in cost per hook app;
- a Start folder for the base apps;
- an Install button in the chooser;
- what happens if Monaco can't build under the cap;
- alarms while Accessories is uninstalled;
- Archive Manager staying in the base.
The briefs moved to briefs/superseded/ with a note naming their todo, so
numbers 50-62 stay unused. The open questions are listed by todo in
open-questions.md; the research's §7 is now the
backlog table. Board tickets were never created for 50-62. The todos become
Backlog tickets at the next sync the owner asks for. imbatranim-office did
the same with its 04 and 05.
[2026-11-06] grill | The imbatranim-apps backlog, grilled
The owner asked to be grilled on the backlog the same day. One question at a time:
- Data: installable apps keep their data as real files in a folder of
their own,
~/.local/share/imbatranim/<app-id>/, like AppData. It is kept on uninstall unless "Also remove its data" is ticked, and alarms stop with their app. - The OS keeps the minimum; apps add on top (owner's words):
archive,gitandhttp-proxystay as OS services. Files opens archives like folders, so Archive Manager is dropped. - The base serves a normal user ("browsing, media, etc, small coding"): the Code Editor, Image Viewer, Media Player, Calculator, Clock, Calendar, Paint, Snipping Tool and Sticky Notes stay built in. Installable: Games, Git GUI and REST API Client (Developer), Todo and Bookmarks (Accessories), Office.
- Start ("we are not stuck with win7 style"): search, pinned apps and an A-Z list, with no folders. This is recorded in decisions-themes.md as a revisit of the Windows 7 way of finding things, for Start only.
- Smaller calls: Notepad takes all five of Markdown Editor's pieces; hook apps load after the desktop is interactive; the chooser links to the Marketplace instead of an Install button; if Monaco can't build under the cap it stays built in, which is now moot.
- WASM is still worth allowing, for PDF's decoders. CAD's DWG stays on the server, so imbatranim-office dropped its DWG todo.
Todos:
- dropped: the moves of Calculator, Paint and Snipping Tool; Image Viewer and Media Player; Code Editor and Diff; Clock and Calendar;
- replaced: the Archive Manager move became
files-handles-archives-and-archive-manager-goes, and the Start todo becamestart-gets-search-pins-and-an-a-to-z-list; - narrowed: the hooks todo to background services and command sources;
- new:
apps-get-a-data-folder-of-their-own,todo-and-bookmarks-install-as-accessoriesandthe-chooser-links-to-the-marketplace.
Decisions went into decisions-marketplace-suites.md (a data folder per app; the OS keeps the minimum; the base for a normal user) and decisions-themes.md (Start). What is left in each todo is engineering calls with proposed answers.
[2026-11-06] grill | The imbatranim-apps todos' last questions, and Unix and Windows practice
The owner asked to finish the grill so the todos can become briefs. The engineering calls took their proposals, with these changes:
- Extract asks where;
- WASM threads go on now (COOP/COEP);
- no Linux tag in Start.
Three larger calls came out of it:
- Apps run as their own identity, with Unix modes (rwx, owner, group, others), enforced by the OS, since the container has one Linux user.
- URL apps run natively once trusted. This revisits 2026-10-07. Verified
apps come from a
verified.jsonin imbatranim-apps pinned per OS release; the rest need trust each commit, and the sandbox is retired later. - Installable apps see other files only by grant (an OS-made open or a pick), after the research.
The owner then asked for Unix and Windows practice: research-unix-and-windows-conventions.md (XDG, AppData, Unix modes and private groups, Android's user per app, scoped storage, SmartScreen, Gatekeeper, Flathub, apt, TERM then KILL). From it:
- data folders split by kind under
imbatranim/<app-id>/, with caches disposable; - a private group per app plus its install group, umask-077 defaults and a setgid shared folder;
- a warning that names the publisher, with trust behind More info, and Verified or Trusted-by-you badges;
- End that asks first, then forces.
The calls are in the new
decisions-app-identity-and-trust.md,
with a pointer from decisions-marketplace.md's 2026-10-07 section.
glossary-marketplace gains verified app, trusted app, app identity and
instance, and the URL app definition is revised. New todos:
apps-run-as-their-own-identity, url-apps-install-natively-once-trusted
and installable-apps-get-files-by-grant. Every question in the fourteen
todos is answered.
[2026-11-06] briefs | Briefs 63-76: the imbatranim-apps plan, promoted
The owner confirmed the last three proposals, on file grants, and asked for every todo to be promoted. Fourteen briefs, in run order:
- 63-64: the rename, then Games, which settles the group layout;
- 65-67: Notepad takes over Markdown Editor; Files handles archives; WASM with threads;
- 68-70: app identity and Unix modes; data folders by kind; file grants;
- 71-73: background and command hooks; Start's search, pins and A-Z list; the chooser's Marketplace link;
- 74: URL apps run natively, verified or trusted;
- 75-76: Todo and Bookmarks as Accessories; Git GUI and the REST API Client as Developer.
imbatranim-office's PDF todo became its brief 06. Each todo is marked promoted, and the brief carries the full spec with the answers. Two follow-up todos are written by the briefs that need them: 68 adds the System Monitor processes view, and 74 retires the sandboxed frame path. Board tickets imbatranimOS-63 to 76 and imbatranim-office-06 were created in To Do.
[2026-11-06] done | Brief 48 done: X11 apps share the clipboard and show their cursors
Built on main in 7378699 (1.185.0), moved to briefs/done/ with an outcome
note, ready for deploy. X11 CLIPBOARD text copies both ways with the session's
selection (PRIMARY stays in X), and the cursor message carries a PNG with its
hotspot (protocol 9), so xterm's I-beam and GTK 3's own cursors show in the tab.
Review fixed a paste writer that could block forever (a 5 s deadline) and
added a Latin-1 transcode for STRING. A walk found stale and empty pastes
whose root cause was the host not waiting for X to confirm it owned CLIPBOARD
(smithay only queues the request); a round trip fixed it. A paste over 64 KiB
into xterm still stalls, because smithay's INCR watches top-level windows only;
the owner accepted it and the fix is the todo
x11-pastes-over-64-kib-reach-child-windows.
[2026-11-06] done | Brief 49 done: a click on a Linux app's notification runs its action; main-session run closed
Built on main in f8ec1e5 (1.188.0), moved to briefs/done/ with an
outcome note, ready for deploy. A notification carries a source and a small
activation registry; a click on one with a default action sends
ActionInvoked(default) then NotificationClosed(2) and raises the app's
window when exactly one matches. Kit notifications are unchanged, with no
action buttons. The build agent blocked on the shared notification store; the
controller ruled for the source field plus registry and resumed it. The
review found nothing above minor and a walk in Firefox passed. The toast's ×
still doesn't signal the app (closing is removal from the panel, as since
brief 42). This closes the main-session run: briefs 45-49 built from the main
session with subagents on 2026-11-06.
[2026-11-06] rename | Brief 63: imbatranim-office becomes imbatranim-apps
The Apps repo's words, folder and corpus were renamed; this repo's glossary
entry, decisions-office-suite page and two code comments follow. The descriptor
keeps its id and file name, and its source.repo still names the old URL: git ls-remote on the new name did not answer, so the GitHub rename is the owner's
first step. brief-board gets the project at the next sync.
[2026-11-06] done | Briefs 67, 68, 72, 73 done: WebAssembly, app identity, Start, the chooser link
Built from the main session with subagents and committed on 2026-11-06: 67 as
932d92e (WASM on, COOP/COEP on the desktop, require-corp on every frame),
68 as 2522407 (a token per app, owner and mode per file), 72 as d6ae13d
plus baf3f5e (Start with search, pins and an A-Z list; the fix came from
walk 1), 73 as 2f5a039 (Open With links to the Marketplace row). Walk 1
passed 11 of 11. The owner chose a stricter default for built-in apps' files
while 68 was in review; brief 70 flips it with the grant flows. A todo notes
that the Marketplace's header filter does not drop COOP, COEP or CORP.
Deploy and 67's phone checks are the owner's.
[2026-11-06] done | Briefs 64, 65, 66 done: Games group, Notepad takes Markdown, Files opens archives
Built from the main session and committed on 2026-11-06: 64 as imbatranim-apps
647580f plus OS 6a6a8d9, 65 as e8016ed plus the fix f743f0c (a retired
app's Start pin moves to its replacement), 66 as 712538b. Games settled the
group layout as one root workspace; the recipe is in
imbatranim-apps-group-recipe.md. Walk
2a (Games install in 8.5 s and 125 MB, Office PDFs from imbatranim-apps
8a42180, the WASM fixture) and walk 2b (65, 66) passed. Office's pin moved to
8a42180 in a80c295. Accepted gaps in 66: a lone .gz, .xz or .bz2
fails, and a refused zip-slip archive leaves an empty folder; both are todos
or noted in the outcome. Owner: push imbatranim-apps first, then this repo,
then deploy.
[2026-11-06] resume | imbatranim-apps run paused at the owner's wrap-up
Built from the main session with subagents and committed (not pushed): 63,
64 (with imbatranim-apps 647580f), 65, 66, 67, 68, 69 (f31da1c), 71
(93bf282, kit 1.5.0), 72, 73, and Office pinned to imbatranim-apps
8a42180. In Ready for deploy: 63-68, 72, 73. In progress:
- 69 (data folders): committed and tested; its walk was stopped before
it finished. A review left a fix round: uninstall must revoke every
token of the row's apps (
AppTokens.revokeApp, never called on uninstall) and refuse registering a token for a catalog app that isn't installed, with one lock per app folder, so an open window can't recreate removed data; refuse data names over about 200 bytes with 400; fsync the staged file and folder before the rename and clean stale.partfiles. - 70 (files by grant, built-ins scoped too: the owner's stricter
default): half built and stashed, not committed —
git stash listshows "brief 70 WIP (file grants, …)". It had done the grant store, the mode default flip inmodes.ts, file-access checks in the files, archive, backup and git modules, and was on the trash and recent controllers. Resume withgit stash pop, then the core side (intents, pickers, each built-in's grant path), the REST client's 403 notice and "migrated" marker (a review finding handed to 70), tests and a walk. - 71 (background services and command sources): committed and tested;
its walk (the hooks fixture) didn't run.
Next after 70: 74, then 75 and 76 (the group recipe is in
wiki/imbatranim-apps-group-recipe.md). Owner steps: rename the GitHub repo imbatranim-office to imbatranim-apps; push imbatranim-apps first, then this repo, then deploy.
[2026-11-06] maintenance | Two of brief 69's review fixes landed after the pause
f1abb2c: a data file name over 200 bytes is a 400, not a 500 (the staged
sibling is 54 bytes longer). 3e357e8: a data file is
synced before the rename and its folder after it. Still open from that
review: uninstall revoking every token of the row's apps, refusing a token
for a catalog app that isn't installed, and one lock per app folder; and
cleaning stale .part files.
[2026-11-06] maintenance | Stale .part files are cleaned
9069d08: listing a data folder removes a staged .part copy older than an
hour (a write that died between staging and the rename) and still hides
the fresh ones. Still open from brief 69's review: uninstall revoking every
token of the row's apps, refusing a token for a catalog app that isn't
installed, and one lock per app folder. They touch the app-identity files
held in brief 70's stash, so they wait for it.
[2026-11-06] maintenance | An app's server can't override the desktop's headers
94306ee: the proxy to a native app's server (GET /api/marketplace/apps/:id/server/*) answers on the desktop's origin, and it
now drops every header the desktop's own policy sets (isolation, framing,
nosniff, referrer), plus Clear-Site-Data (it would wipe the session and
storage), Service-Worker-Allowed and HSTS. Raised by brief 71's walk agent.
[2026-11-06] build | Brief 70, first half: installed apps get files by grant
98958a2, popped from the stash on 760ef6c. The backend keeps a grant
table (file_grants, ledger 14) per running copy (window id + app id), and
the files, git, recents and grants routes check the caller: the user
reaches everything, an app what its modes allow and what its copy was
given. Trash, archives and backups are the user's alone; an app records and
sees only its own recent files. Core gives as the user: openApp grants the
file it opens to the window it opens it in, and the three pickers grant the
pick before the app hears it. A copy's calls wait on its pending grants
(apps/core/src/system/fileGrants.ts), so an app that reads its file with
intents.consume() as it mounts finds the grant made.
Held back: the stricter default for built-ins (rwx--x--x,
rw------- in modes.ts). The stash had flipped it, but core grants
nothing to a built-in for its own flows yet, so it waits for the second
half. Left for that half: each built-in's grant path (the Code Editor's
folder, Git GUI's repo, Media Player's playlist, Paint, Notepad, the
DiffTool's two files, drag and drop from Files), the REST API Client's
attach through pickOpen, the flip, and the Office walk. Tests: backend
1090 unit, 93 e2e (files, grants, identity, marketplace); core 864.
708c042 (same brief): the REST API Client's body file and a form field's
file come from pickOpen (a "Choose…" button beside the chosen path),
which gives the window the file. A pick outside home is refused with a
notice, since the send reads from home. A saved request keeps its path; a
new window holds no grant for it, so after the flip a send of an old saved
request asks for the file again (the 403 names the path). The brief 69
review's "migrated marker" for the old ~/.config/rest-client doc is moot
after the flip: the app can't read that place at all, so nothing stale
comes back. What it needs then is a notice that the old doc is there.
[2026-11-08] maintenance | Brief 69's last review fixes: an uninstall ends its apps' identities
ee04778 (1.220.0). Uninstall now revokes every app of the row's identity
token and file grants, not only the URL sandbox's tokens. The token route
refuses a catalog app that no installed descriptor holds, which would
otherwise read as a built-in and get system. Data writes and removals take
their turn per app folder, the key an uninstall's removal uses, and refuse
an app that is gone; InstalledApps marks a row's apps as leaving for the
whole uninstall. recordedBuild moved to marketplace/recorded-build.ts,
since the data service asking app identity had closed a module cycle through
the marketplace service. Three e2e specs had been starting tokens for
catalog apps they never installed (hollow, solo); they install them, or
use a built-in, now. Backend 1092 unit and the 88 identity, data, grants and
marketplace e2e tests pass; the PTY e2e fails here with or without the change
(no PTY in this container). Brief 69 still owes its walk. New todo:
uninstalled-url-apps-read-as-built-ins.
[2026-11-09] build | Brief 70: the self-grant gap is closed
26a4f85 (1.222.0). An app's system.intents.openApp used to have core
grant the payload's file as the user, so an app could give itself any path
by opening itself with it. Now the open carries the requesting copy's
client: core grants, and records the recent, with the app's token. The
backend hands on what the app holds, plus one of the app's own recent files
to a window of its own (a file, never a folder), so an app reopens its
recents in a new window and another app can't use them. Recording one of
its own recents again needs no hold on the file; one app opening another
records no recent for it. Core's launchers, Start, Files and the pickers
grant as the user, as before. Found on the way: an app opening its own
single-instance window would have had its grant call wait on itself (a
copy's calls wait on the grants pending for it), so a grant's call is now
sent before it joins the pending set.
Left for the second half: a notification action's payload is the app's
own, yet ToastHost opens it as the user, so a { root, openPath } action
the owner clicks gives the app that file. Recents recorded under a retired
built-in's id (docs, sheets, ...) aren't the suite app's own on the
backend, so the suite app can't reopen those in a new window. Tests: core
tsc -b and 261 vitest (system, intents, marketplace); backend typecheck,
150 unit (files, app-identity) and the 42 file-grants, app-identity and
files e2e tests. The brief's second half (built-ins' grant paths, the
modes.ts flip, the Diff and Git GUI payloads, the REST client notice)
still waits on the owner.
[2026-11-09] build | Brief 70, second half: built-ins reach only what they are given
Owner call (decision 6, 5290f24): an OS-made open or a pick also gives
read on the opened file's folder to apps that declare readsOpenedFolder
(Media Player, Image Viewer, Notepad). Taken literally: the folder's listing
and the files directly in it, not subfolders.
b9bd180(1.225.0): thelistinggrant (ledger 15),withFolderonPOST /files/grants(the user's alone), core asks for it on launcher opens and picks for declaring apps. Notepad's image attach confirms its place in the Save dialog, since a new file isn't covered by read.60c8b81(1.226.0):system.fs.reopenRecent; git recent repos carry the app that remembered them (ledger 16), andGET /git/recentsno longer shows every app the whole list; Git GUI is Browse only;openAppgives each file of a comparison; find in files asks for a folder; Notepad's new file and the Snipping Tool's save use the Save dialog; the REST client re-asks for a saved request's file on a 403 and offers to bring in~/.config/rest-client/collections.json.aab1698(1.227.0): a notification action's file is opened as the app's, so it gives nothing; the protocol'sopenAppand action docs say so.8b10be0(1.228.0): the flip,rwx--x--xandrw-------with no mode row. Areadgrant kind: an app hands on a file it may only read as read only (a link from a Notepad document to the file beside it). Ledger 15 was widened for it afterb9bd180; no live database had run it.27a52fa(1.230.0): the new Save dialogs (Snipping Tool, Notepad's attach and new note) open in the folder; astartInnaming a file not there yet opened at home.
Checks: backend typecheck, 1098 unit before the read kind and 171 after it
(db, app-identity, files), and the file-grants, app-identity, files,
app-data and marketplace e2e specs (105); core tsc -b and 452 vitest
(system, shared); Notepad 152, REST client 140, Code Editor 26, Git GUI 31,
Snipping Tool 20 vitest, with each add-on's typecheck. Skipped: the PTY e2e,
full cross-workspace suites, the browser and Office walk (a walk agent does
it in the dev container). Open items are in the brief's Progress.
[2026-11-09] build | Brief 74: apps from a URL build from source once verified or trusted
imbatranim-apps e3b01e0 (verified.json, empty, with a shape test).
imbatranimOS 6ccf623 (1.232.0): marketplace/verified.json, the copy at
that commit, npm run verified:sync (--check fails on drift) and the
backend's reader, which loadCatalog skips. 5b9c005 (1.233.0):
imbatranim.json version 2 is a catalog descriptor without id, source
and runtime, parsed by the catalog's schema; the check clones and measures
as before, and the install builds the checked clone with the catalog's
installer under the derived x- id (several apps: <derived>-<id>). A
commit the verified list names installs with no warning and updates as the
list moves; any other needs trust on the install (403 without), kept in the
row's source JSON with who trusted it and when. Settings shows the
SmartScreen-style warning and a Verified or Trusted by you badge. Version 1
still installs sandboxed. 029fa13 (1.234.0): the server WebSocket asks
about the app only after the session check.
Native URL apps widen the todo uninstalled-url-apps-read-as-built-ins
(an x- id no row holds gets system); its fix is in installed-apps.ts,
outside the brief, and is named in the outcome. New todo:
retire-the-sandboxed-url-app-path. Checks: backend typecheck, 427 units
(marketplace, app-identity, db) and 97 e2e (marketplace*, app-identity,
file-grants); core tsc -b and 364 vitest; the sync script's 6 and the Apps
repo's 4. Skipped: full suites, the PTY e2e and the walk, whose steps are in
the outcome. Ready for deploy; which apps verified.json lists is the
owner's question on the board.
[2026-11-09] fix | Brief 70's walk: a read-only hold no longer reopens read-write
The walk of brief 70 at 89cb66a found two failures, fixed here.
ff8f4fa(1.236.0), security: a Notepad link to the file beside its document opened it read-write. Core records an app-made open as the app's recent, which needs only read; the hand-on's own-recent path then skipped the checks and gave afilegrant. A recent now carrieswritable(ledger 17; the user's and older rows are writable), and a hand-on gives read and write only if the app holds both, else its own recent as it was recorded, else read only.e6aac95(1.238.0): the Snipping Tool's capture stage (z-index 100000) hid the Save dialog; it steps aside while the dialog is up. A restored Code Editor tab that can't be opened no longer leaves the error banner. Notepad stops probing thenotesroot and reading a new file not yet on disk.760e671(1.237.0): an app from a URL that isn't installed gets no identity (InstalledApps.isGone), since itsx-id would read as a built-in's. The todouninstalled-url-apps-read-as-built-insis closed and removed.
Checks: backend typecheck and 284 unit (db, files, app-identity, git), the file-grants, app-identity, files, app-data and marketplace e2e specs (119); Snipping Tool 22, Code Editor 26 and Notepad 152 vitest with typechecks. Skipped: the PTY e2e, full suites, the browser walk (a re-walk is next).
[2026-11-09] fix | Brief 74's review: a lost install race, and the Verified badge
The read-only review of brief 74 found no high or medium issues; its two low
ones are fixed in 8ee203f (1.240.0), with the README in 321f17d.
- A native install from a URL is queued before its check is taken. When another install of the same app started first, the 409 used to leave the check taken and its clone (up to 512 MB) on disk with nothing to remove it; now the check still holds it, and Cancel or expiry deletes it. A prebuilt install also refuses while a native one of the app builds.
- The badge follows the verified list the OS carries, not the stored record:
the listing's
trust.verifiedsays whether the list names the installed commit now. Settings says Verified, Trusted by you, or No longer verified (installed as verified, dropped by a later release; it gets Check for update). A reinstall of such an app still rebuilds its installed commit. - An e2e checks that a server's upgrade without a session gets 401 before the app is looked at.
Not done: measureBeforeCheckout on a verified app's update through the
install route (a reviewed commit; the catalog's builds don't measure
either). Checks: backend typecheck, 356 marketplace units, 69 marketplace
e2e; core tsc -b, eslint, 163 vitest (settings, registry).
[2026-11-09] build | Brief 75: Todo and Bookmarks install as Accessories
Todo and Bookmarks left the image as the Accessories group of
imbatranim-apps (a8c87f7, 1a04603, ebc2be6); the OS pins ebc2be6
(98e41ff 1.243.0, 30a97f6 1.244.0). Ready for deploy; the walk is owed.
- Their data moves once, at the first start after the release, from the
todosandbookmarkstables into JSON files in each app's data folder, written as the app (AppDataService.place) whether or not it is installed: Todo one file per list plusunfiled.json, Bookmarks onebookmarks.json. Then the tables are dropped; a failed write keeps them and says so in Logs. Both backend modules are deleted. - In the apps, the modules' rules became pure functions under a small store the window and the hooks share, writing each file with the version it read and reapplying a change to another tab's save. react-query isn't lent to kit apps, so the store replaces it.
- Todo exports
Background(due toasts, still claimed through the schedule), BookmarkscommandSources; a command source now gets the app's own folders asctx.data(kit 1.6.0), since it has no window. - Capabilities from the calls: Todo
notify,schedule(nohttpleft); Bookmarksfs,http,intents,notify. - Board question: should a restore of an older backup run the move at once rather than at the next start?
[2026-11-09] done | Briefs 70 and 69 done: apps reach only the files they are given
The re-walk of brief 70 at f01a886 passed its five steps; two more
fixes followed.
3e43553(1.247.0): migration 17 now starts every older recent as read only (the table doesn't say who recorded a row; reopening one from Files or Start makes it writable again). Running the step again fixes a database that ran the old backfill: a dev database at 17 needsPRAGMA user_version = 16and a restart.5315e23(1.248.0): the Code Editor records each window's tabs under its own id and hands one set to each window after a reload; every file it opens is one of its recents, so a handed-off file comes back too.e73e355(1.249.0): a not-given refusal shows the backend's sentence, which names the path (describeFileFailure); Notepad's window closes after handing a too-large file to the Code Editor.
Brief 70 moved to done/ (board: Ready for deploy). Brief 69 moved too, on
the coverage of brief 70's walk (its own walk never finished; uninstall
with and without the box, two tabs, backups and the bridge weren't
walked). Brief 71 stays in todo/: its hooks fixture was never walked, and
brief 75 uses its hooks but its tests don't walk them. Checks: backend
typecheck, db and files unit (118), file-grants and files e2e (30); core
tsc -b; Code Editor 28, Notepad 152 and fileFailureText 9 vitest with
typechecks.
[2026-11-09] fix | Brief 75's review: a move the app took over, and the store's races
The read-only review of brief 75 found nothing high. Fixed in
232c0eb (a failing drop never stops the backend), 1b744e4 (1.251.0) and
95c5238 (1.252.0, the catalog pins imbatranim-apps a5f3d0e, after
59761f1, the kit snapshot at 1b744e4).
- The stuck move. Tables that outlive a move (a crash before the drop,
a restored database) next to a file the app has written since used to
fail every start, and recreate files the owner had deleted. The move now
compares every planned file first; if one differs, the app has taken over:
it writes nothing, renames the tables to
<table>_premove_<yyyymmdd>(kept, never read) and logsapp-data.move.set-asideonce. Other failures (over 5 MB, a full disk, a refusal) still keep the rows for the next start. - A lost mode row.
placeadopts a file of its own earlier write that a crash left without itsfile_modesrow, when the bytes match, instead of a 403 at every start. - The versioned remove (kit 1.7.0):
system.data.remove(path, { expected })andDELETE …/file?expected=refuse with a 409 when the file changed, so the Accessories store's removal can't take another tab's save with it. - In the apps: a task renumbered on read is written back at once; a file that isn't JSON is named; Bookmarks' palette source reads its file once per five seconds.
Tests added: place (an uninstalled app, the same bytes, other bytes, the
lost row), the set-aside, the 5 MB limit keeping the rows, the versioned
remove (unit, e2e, core). Checks: backend typecheck, app-data jest (54), the
app-data e2e (8), catalog jest, core appData and registry vitest; apps
tsc -b, eslint, vitest across apps, packages and the groups (one PDF test
timed out under load and passed alone), kit:sync --check. Still open: an
uninstall that removes the data while the tables remain (only after a crash
between the move's writes and its drop) would see the move write them again.
[2026-11-09] build | Brief 76: Git GUI and the REST API Client install as Developer
Git GUI and the REST API Client left the image as the Developer group of
imbatranim-apps (8a1e811, the data store moved to packages/shared;
4ef5f5a, the group); the OS pins 4ef5f5a (8231ee8, 1.254.0). Ready
for deploy; the walk is owed. Brief moved to done/.
- Decision 2 revisited (owner, 2026-11-09). Moving Git GUI's recent
repositories into an app-writable file would have broken reopening them:
since brief 70 the grants hand-on gives a new window a folder back only
if it is in the
gitmodule's table. The owner chose the OS recents as that record:recent_filesgained akind(ledger 18), an app records a folder only while it may list and write in it, and the hand-on gives back a folder among the app's own recents. Git GUI's list isrecents.jsonin its state folder. Accepted cost: the repositories show in Start's Recent and the palette as Git's and share the 50 recents. Written as decision 4 in the brief and on decisions-marketplace-suites.md. - The move: at the first start, Git GUI's rows are written as the app
into
recents.json(kindstate) and become its OS recents (folders, with their times) in the transaction that dropsgit_recent_repos. Thegitmodule'srecentsroutes and its database use are gone; git itself andhttp-proxystay as OS services. - Start and the palette open a folder recent in its app, which opens the repository from its open intent; the picker's Recent tab leaves folders out; the palette leaves out any recent whose app is gone or off, as Start does. Forget, and a click on a recent the OS refuses or that is gone, take it off Git GUI's list and the OS recents.
- Capabilities from the calls: both
fs,http,intents,notify(Git GUI gainedfs).
Checks: backend typecheck, 638 jest, 123 e2e; core tsc -b and 385 vitest;
apps tsc -b, eslint, prettier, 303 vitest, the groups build test,
kit:sync --check, build:os (Git 60 kB, REST Client 80 kB). Skipped:
full suites, the PTY e2e, the browser walk (steps in the outcome note).
[2026-11-09] done | Brief 71 done: installed apps bring background services and palette sources
Built on 2026-11-06 (93bf282, 1.206.0, kit 1.5.0), it waited on its walk.
walk-71 ran today in the dev container at 64283c7 with the kit-hooks
fixture at cdc057e: install, a background service with no window open,
its palette entries, one run per tab, the fail command contained (one
toast, the desktop fine), a declared but missing export refused by name,
disable and re-enable, uninstall and reinstall all passed. Not walked: the
sign-in measurement with and without a hook app; Office was seen unchanged
only in passing. Observed: the refusal toast for the fixture's missing
export shows once per desktop load and again on reinstall.
Board: Ready for deploy. Brief moved to done/. The owner's decisions 1-5 now have a page of their own, decisions-kit-app-hooks.md, since the marketplace decisions page is at its size limit.
[2026-11-09] fix | Brief 76's review: folder recents keep their own cap, the move takes only folders
A read-only review of brief 76 found no way for an app to give itself more
than it held. Fixed in d55e129 (1.257.0):
- Folder recents aren't pushed out by files. Each app keeps ten folder
recents (Git GUI's
recents.jsonkeeps ten too), apart from the fifty recent files: they neither count toward that cap nor are pruned by it. This replaces the outcome note's known limit about the shared 50-entry prune. Clear recent files still clears them, as the owner accepted. - The move skips a repository that is gone or is no folder now, and moves the newest ten.
- Tests: the separate cap, the move's skip and cap, a folder an app may list but not write refused on record, and the hand-on refusing a file recent where a folder is now and a folder recent where a file is now.
Already as asked: Git GUI drops a list entry only when its repository's
calls answer 403 or 404, never on a network failure or a 5xx
(reopenRecent itself never rejects). Not done, waiting on the owner:
deleting an app's OS recents on uninstall. Brief 76's walk and the moving
checklist's step 2 say recents come back after a reinstall, so a plain
uninstall can't drop them; dropping them only with "Also remove its data"
would fit decision 3.
Checks: backend typecheck, eslint on changed files, jest (app-data, files, app-identity, marketplace, db, git: 696), e2e (file-grants, app-data, files, marketplace*, app-identity, app: 124).
[2026-11-09] decision | Brief 76: an app's recents go only with its data
Owner, 2026-11-09, answering the review's last item: uninstalling with
"Also remove its data" also deletes the app's OS recents, files and
folders; a plain uninstall keeps them, as it keeps the data. Built in
ef8f0e9 (1.259.0): RecentService.removeApps, called by the marketplace's
uninstall after the app's folders go. Recorded beside decision 3 on
decisions-app-identity-and-trust.md.
Tests: the marketplace e2e's uninstall keeps one app's recents and drops
the other's, a hand-on after the removal is refused (file-grants e2e), and
a unit for removeApps. Checks: backend typecheck, eslint on changed
files, 572 jest (files, marketplace, app-data, app-identity), 124 e2e
(file-grants, marketplace*, app-data, app-identity, files).
[2026-11-09] grill | The run's open questions, four new briefs
The owner settled the questions left by briefs 74 and 75 and the calls made
without them. verified.json ships empty until a version 2 URL app exists;
a commit dropped from it leaves installed apps as built ("No longer
verified", no trust prompt). Code Editor's find in files keeps asking for a
folder. Four briefs: 77, a
restore runs the data moves at once;
78, a snip goes to the
clipboard like the Windows 10 tool, Save picks the place;
79, Notepad adds
attachments under assets/ without a dialog, create only (decision in
decisions-app-identity-and-trust.md,
d9a22db); 80, set-aside
tables get a sign-in notice to download them as a zip of the apps' JSON or
clean them out.
[2026-11-09] maintenance | Closed todo: the Marketplace proxy drops cross-origin headers
marketplace-drops-cross-origin-headers was already done by 94306ee
(2026-11-06): the app-server proxy's DROPPED_RESPONSE_HEADERS lists
Cross-Origin-Opener-Policy, -Embedder-Policy and -Resource-Policy, so a
service app's server can't weaken the desktop's isolation. Found in the
backlog grill; the todo is removed.
[2026-11-09] grill | Backlog promoted: briefs 81-83
In the backlog grill the owner promoted every open todo that doesn't wait on
hardware. 81 joins two Files
todos: a lone .gz/.xz/.bz2 unpacks next to itself without the suffix,
and "Extract to…" opens in the archive's folder (pickDirectory gets a start
folder). 82 retires the
version 1 sandboxed URL path now; a leftover install shows as no longer
supported, and Hollow's unused version 1 file in game-engine goes.
83 patches
smithay so pastes over 64 KiB reach xterm's child window; it runs last and
gets a dev-container walk. The four todos are marked promoted.
[2026-11-09] build | Brief 77: a restore runs the data moves
77 built in 6968428. A
backup restore runs the Todo, Bookmarks and Git recents moves right after the
swap and the database install, so a pre-move backup shows its lists at once
and a later edit can't make the next start set the restored tables aside. A
rollback runs none. Ready for deploy.
[2026-11-09] build | Brief 78: a snip goes to the clipboard
78 built in 73fc08d. A
finished capture is written to the clipboard as a PNG at once and a toast says
so; a refused write toasts the reason and the editor stays. Delayed and
full-screen captures have no user action, so Firefox and Safari refuse them,
which is expected. Ready for deploy; the owner walks it on HTTPS.
[2026-11-09] fix | Brief 77's review: queued runs, required service, guarded call
A read-only review of 77
led to e6469f7. BackupService takes DataMovesService as a required
parameter (the @Optional() went, the specs pass a stub), so a broken module
import fails at startup. The call in apply() is wrapped: a failure logs a
warning and never turns a swapped restore into an error. DataMovesService.run()
queues calls on a promise chain, so two restores, or one during the start's
run, can't interleave. New tests: overlapping runs, a restore that sets the
tables aside because the app already holds a file, and a throwing move. The
brief stays in done/, the ticket at Ready for deploy.
[2026-11-09] fix | Brief 78's review: clipboard copy hardened
Review fixes to 78 in 25c6704:
copyPng always attaches a catch to the PNG promise, so a failed raster is
never an unhandled rejection; the refusal text covers focus as well as a
missing click, and an encode failure says so; the region overlay calls
onSelect from the pointerup handler, not inside a state updater, so the
write rides the click. New tests: the write is issued before the raster
resolves, and a rejected raster gives a result. The ticket stays Ready for
deploy.
[2026-11-09] build | Brief 79: Notepad adds attachments beside a note
79 built in
a8cad71. An OS-made open (or pick) gives an app declaring
attachesUnderAssets (Notepad only) an assets grant on assets/ beside the
file: make it, list it, read and add files there, never write over, rename or
remove one (owner decision 4 added list and read the same day). Ledger step
19 widens file_grants.kind. A taken name answers 409 and a new file is
placed with a hard link, so one that appeared meanwhile is never replaced.
A pasted image goes into assets/ as shot.png, shot-2.png with no
dialog; without the grant, the Save dialog as before. The preview's images
were never grant-checked (a bare URL is the user's). Ready for deploy.
[2026-11-09] build | Brief 80: set-aside data asks the owner
80 built in 7e79924.
Three calls settled before the build replace the .zip: a .tar.gz named
imbatranim-old-data-<yyyy-mm-dd>.tar.gz, one ISO-dated folder per set
(2026-11-09/, 2026-11-09.1/), and a download counts as the pick, with
Settings → Storage keeping "Clean out older data" while any is left.
User-only /api/system/old-data lists, downloads (packed with tar,
written as the user through FilesService.uploadFile) and drops the
_premove_ tables; the moves' readers take table names, so the archive
reuses them, and the moves spec passes unchanged. The pick is a file in the
home's .imbatranim/, not a ledger step. The desktop asks at sign-in.
Ready for deploy.
[2026-11-09] fix | Brief 79's review: add only, never move in
A read-only review of 79
led to a8b2dcd. The medium: a move into assets/ asked only delete on the
source and create on the destination and carried the source's owner, so
Notepad could move a folder from its own data area in and own it. Now
nothing moves into a folder an app may only add to; a copy brings one file,
placed exclusively and left the user's, never a folder; no plain file named
assets, no folder inside it, no missing folders above it. After the hard
link the landing folder must still be the one checked, or the file is taken
back out; a file system without hard links gets an exclusive copy. The grant
isn't given on another app's folder or assets/, and an unknown grant kind
gives nothing. There is no chmod route over HTTP; the unit tests cover it.
The brief stays in done/, the ticket at Ready for deploy.
[2026-11-09] build | Brief 81: Files extracts better
81 built in 95b331d; the kit
sync in imbatranim-apps is 6538699 (kit 1.8.0). A plain .gz, .xz or
.bz2 is read by its first bytes; with a tar inside it is a tarball, else
one file unpacks beside it without the suffix, numbered notes (2).txt on a
clash, the original kept. zlib for gzip, busybox xzcat/bzcat on stdin
for the others (both applets checked in the dev image), bytes counted against
the size cap and the child killed and reaped past it; the output is
hard-linked in, never over anything. pickDirectory takes startIn, and
Files' Extract to… starts in the archive's folder. Ready for deploy; push
imbatranim-apps first.
[2026-11-09] done | Brief 82: the sandboxed URL app path is gone
Brief 82 is built, ready for deploy
(a857f57, 1.281.0; game-engine 2de99ac6). A version 1 imbatranim.json is refused at the
check ("This app uses the old format, which this OS no longer installs."). The prebuilt check and
install, the sandbox tokens and their five routes, the sandbox's headers, the frame runtime, the
sandboxed host, its bridge and the keyboard guard are deleted. A leftover sandboxed row lists as
"No longer supported" in Settings → Marketplace with Uninstall only; it never opens. game-engine
drops Hollow's prebuilt os-app/ copy, the only version 1 manifest in the owner's repos. Pages:
decisions-app-identity-and-trust.md,
decisions-marketplace.md,
glossary-marketplace.md, os-layering.md,
status.md; the todo retire-the-sandboxed-url-app-path points at the brief.
[2026-11-09] build | Brief 83: X11 pastes over 64 KiB reach child windows
83 built in
eb95780 (1.283.0); it stays in todo/ until the dev-container walk. smithay
master still never watches the requestor window for the property deletes that
pace an INCR transfer, so the fix is vendored: smithay 0.7.0 under
apps/wayland-host/vendor/smithay, carried by [patch.crates-io], with one
function that adds PropertyChange to the window manager's own mask on the
requestor before the INCR property goes out. The Dockerfile copies
vendor/. cargo test passes; the upstream report is in the brief's
Progress note for the owner to file. A test against a real X server waits
for the walk.
[2026-11-09] fix | Review leftovers for briefs 80, 81 and 82
The low findings queued by the reviews, fixed in three code commits.
80 (8040587): a move's tables set aside under different numbers on one
day now pair into one set when each table appears once that day; when a table
appears twice the sets stay apart (nothing to guess between) and the archive
carries a README.txt saying a folder may hold only some of that move's
tables. The set-aside archive keeps Git GUI repositories whose folder is gone
(the move's folder filter is skipped on that path). Tests: split set paired,
partial note, missing-folder repo kept, staging removed when the upload fails,
download and clean-out queued. Skipped: a tar-failure staging test (the tool
can't be made to fail from the test without a seam; the same finally covers
it).
81 (f12ece2): lone-file decompression runs at most two at a time; a
day-old .extract-*.part in the target folder is swept at the start of an
unpack there; a long-name clash answers 400; the post-link re-check stats by a
descriptor held open; a failed unpack removes the folder it made; statFile
requires a regular file; a tar inside .gz/..gz with no name left is
refused ("rename it first"); the size cap check is >. Each has a test.
82 (fce8989): the review's mechanism was inverted. installGroupOf did
not skip retired sandboxed rows, so a token for a retired id was issued (201),
not refused; it now skips them and the token route answers 403 (test added).
The v2-over-leftover test found a real bug: the install answer listed nothing
while a leftover sandboxed row existed (500, though the build went on); the
queued job is now listed over such a row. That a v2 install replaces the row
is noted in the app identity decisions page. Skipped: the audit-filter spec,
which already covers the query string being stripped.
[2026-11-09] done | Brief 83: X11 pastes over 64 KiB reach child windows
Brief 83 closed
after its dev-container walk: 160-byte, 70,000-byte and 200,000-byte pastes
reached xterm whole with the vendored smithay patch (eb95780), and Firefox
still pastes. The 64 KiB limit lines in status.md and
decisions-linux-apps-input-files-look.md
now say it's fixed. The walk found that stock xterm's Shift+Insert pastes
PRIMARY, which the host doesn't bridge: new todo
xterm-shift-insert-pastes-the-clipboard.
Owner step: file the upstream report in the brief's Progress section.
[2026-11-09] grill | Brief 84 promoted: Linux apps share the PRIMARY selection
The grill on the last open todo, xterm-shift-insert-pastes-the-clipboard,
wrote 84. The owner
settled the one question of feel: a highlight in a Linux app stays among the
session's Linux apps and never replaces the desktop clipboard (as on GNOME and
KDE, and like the built-in Terminal). The rest are controller calls by
convention: bridge PRIMARY rather than give xterm a resource; one PRIMARY per
session for X11 and Wayland apps; text the tab hands over for a paste fills
PRIMARY too (TigerVNC's SetPrimary); middle click reads no clipboard. This
revisits brief 48's "PRIMARY stays in X"; the revisit is on
decisions-linux-apps-input-files-look.md.
The todo is marked promoted; imbatranimOS has no open todos.
[2026-11-09] done | Brief 84: Linux apps share the PRIMARY selection
Brief 84 built in
5a9211c (1.291.0) and walked in the dev container. The Wayland host offers
the primary selection protocol and its window manager bridges X11's PRIMARY,
so the session's X11 and Wayland apps share one: a highlight in xterm pastes
with a middle click in Firefox (on Wayland) and the other way. Text the tab
hands over for a paste fills PRIMARY as well as CLIPBOARD, so stock
xterm's Shift+Insert pastes a desktop copy, 70 KB included. PRIMARY is
never read for the tab: highlights in xterm wrote nothing to the desktop
clipboard, and middle clicks read none. The tab's code didn't change.
decisions-linux-apps-input-files-look.md
and status.md carry the built line. Owner steps: push, then
deploy.