Decisions of the estate era
Rendered from corpus/wiki/decisions-estate-era.md · updated 2026-11-02
This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.
Split out of decisions.md because that page has a 200-line cap.
Same rule: changing an entry needs an explicit revisit and a log.md entry.
2026-09-06 — Identity moves to Ward (recorded 2026-10-04)
The standalone and dev identity work (2026-10-04) found this move only in log.md (2026-09-06), with no entry here.
- Inside the estate, identity is Ward's. The
imb_sessioncookie, the argon2 check, TOTP, the first-run wizard and the login throttle were deleted. A global Ward guard tookAuthModule's place.@Public()and the CSRF Origin check survived. - The lock became a cover screen. It hides the desktop, and dismissing it only checks the Ward session is still live. It is no longer a security claim.
- Consequence, revisited below: without Ward the backend would not boot, which broke the friend-run bar and the ISO.
- Revised 2026-10-06: Ward is dropped altogether (below). Built 2026-10-07 in the move off Ward (2026-10-07).
2026-10-04 — Owner answers (asked directly after the brief runs)
- When Ward is not configured, imbatranimOS has its own sign-in again
(the standalone and dev identity work (2026-10-04), option C).
- With
WARD_*unset, a single-user local sign-in runs behind the same caller seam the Ward guard fills. Its pieces: a password set on first run, an httpOnly session cookie and a login throttle. The old code is recoverable fromfb3de23^. - Inside the estate nothing changes: Ward still owns identity. (Superseded 2026-10-06: the local sign-in is the only one, below.)
- Rejected:
- A, estate-only, which gives up the friend-run bar;
- B, a development identity only, which does nothing for friends or the ISO;
- D alone, the local Ward container, which ties a standalone install to another repo.
- Cost, accepted: two sign-in paths to maintain and review.
- The friend-run bar stands again. The identity docs tell the truth work (2026-10-04) writes the docs from this.
- With
- The kiosk is dropped. The ISO is a server OS (supersedes "Kiosk ISO
deferred" in decisions.md and the kiosk half of the alpine kiosk iso work (2026-07-17)).
- It is a plain Alpine Linux image with the web server's packages pre-installed. It boots straight into serving imbatranimOS.
- People reach it from other machines on the internal network over
HTTPS. There is no local display, no Chromium and no kiosk session, so
the
--no-sandboxtodo is moot. - It signs people in with the local sign-in above.
- It installs to disk (owner, 2026-10-04). The ISO is an installer: on the console it asks which disk to use, wipes it, and installs Alpine plus ImbatranimOS as an ordinary system that then boots from disk. Rejected: running from RAM with a separate data partition, and RAM-only (data lost on every reboot, a demo, not a server).
- HTTPS from Caddy's internal CA. Caddy issues and renews its own certificate. Browsers warn until its root is trusted once, and the console says how to get it. Rejected: a per-machine self-signed certificate (nothing to trust once for all devices), and bring-your-own (nothing works until you do).
- Found by its IP, shown on the console. No mDNS. The console shows the address and URL at boot, and the router lists it too.
- Not built yet (owner, 2026-10-04): "for now, we'll keep it only in
docker containers for the development and we'll work with it in the
docker container." Development and day-to-day use stay in the Docker
container (
npm run dev, the compose dev profile). The three choices above are the plan for when the ISO brief is written.
- v1.0.0 is declared as is (owner, 2026-10-07). The friend-run bar and a
real VPS deploy are no longer v1 gates, and the v1 release work (2026-10-07) is closed. The version
stays 1.0.0 in
package.jsonand the Dockerfile, with no git tag (the 2026-07-19 decision). From then on every commit bumps the minor version: 1.1.0, 1.2.0, and so on. Runnpm run version:bump -- --stagebefore each commit.scripts/bump-version.mjsrewrites the rootpackage.json, the lockfile, and the Dockerfile's label andIMAGE_VERSION, which the About panel shows. Workspace and add-on versions are per-package and don't follow. Not done: a git hook that bumps on its own. The agent's permission check blocked installing one, so automating it is the owner's call. Was: parked on 2026-10-04 because the bar needed a friend's install. - The proxied web browser and the app marketplace: build them. Both keep their grilled decisions and their security review before commit.
- Old backups that still hold the deleted login's password hash are deleted. Start fresh rather than scrub them.
- Three fixes built ahead of a grill, confirmed after the fact: Ward's
token refresh, the terminal's freshness registry and external-change
detection on save. The first two went with Ward on 2026-10-07; the local
cookie does not rotate.
They were built without the interview their briefs asked for; asked the same
day, the owner kept every call:
- 144: proactive refresh about two minutes before expiry (and on a tab becoming visible), plus one refresh-and-replay on a 401. Rejected: refresh-on-401 only, and letting the session lapse to the sign-in cover.
- 145: a freshness registry keyed by Ward
sidfeeds the terminal sweep the newest cookie. Rejected: a Terminal heartbeat route. - 155: the dialog offers Overwrite, Reload from disk and Cancel (Cancel focused, Esc cancels). Rejected: a fourth "save as copy" button, and a diff view first. First cut: Notepad, Code Editor and Markdown Editor; the office editors followed in the office editors save conflict work (2026-10-06) (Sheets and Docs; Slides never writes the deck) (todo).
2026-10-06 — Ward dropped; the shared origin accepted; no registry
Asked directly while clearing the open questions.
- ImbatranimOS keeps its own sign-in, in the estate too. Revises the
2026-09-06 move above. The standalone and dev identity work's single-owner sign-in becomes the only
identity path, and Ward's module, variables and registration go
(the move off Ward (2026-10-07), built
2026-10-07). Rejected: a subdomain for the desktop, and a fresh
confirmation before the terminal (the subdomain revisited 2026-10-21, below).
- The deploy passes
SETUP_TOKENas a required secret, so the public machine cannot be claimed by whoever reaches it first. - An old environment that still sets
WARD_*boots and logs one line naming them as ignored. Rejected: refusing to boot, which would turn a leftover line in a.envinto an outage.
- The deploy passes
- The shared origin is an accepted risk, not a fix. The desktop stays at
/imbatranim-os. Ward's estate-wide cookie no longer opens the desktop, so being signed in to a sibling app is no longer being signed in to a shell. But a same-origin script on a sibling app can still send requests to/imbatranim-os/api/*, and the browser still attachesimb_sessionto them, so an XSS on a sibling app while the owner is signed in to the desktop still reaches the terminal. Accepted by the owner on 2026-10-06 because every app on the origin is the owner's own code underscript-src 'self'. Revisit if a third-party app joins the estate.- Revisited 2026-10-21, owner: the desktop moves to
imbatranim.<domain>(vps-deploythe imbatranim reskin work (2026-07-17), built 2026-10-22, live once deployed), whereimb_sessionis host-only and the apex apps are cross-origin, so this risk closes./imbatranim-osredirects there; the docs stay put. Nothing here changed. The Browser's "no subdomain" (LAN installs) stands.
- Revisited 2026-10-21, owner: the desktop moves to
- No registry image. Build-from-source is the final distribution answer, not a stance waiting for v1. Rejected: pushing an image to GHCR or Docker Hub at v1.
The proxied browser (2026-10-04): the Browser (2026-10-04)
Built from the 2026-07-19 grill. The calls the build had to add or change:
- Proxied pages run on their own origin: a second backend port
(
BROWSER_PROXY_PORT; compose uses 8081 for prod and 3002 for dev). The brief had Scramjet's service worker on the desktop's origin under a/proxy/scope. But Scramjet runs every proxied page on the origin that serves it, so one rewriter escape there would hold the session cookie and could open the terminal over the same-origin WebSocket. A path scope does not separate origins.- On a separate origin the desktop's guards hold: its Origin check refuses the proxy origin's mutating requests, CORS hides responses, and the terminal's upgrade checks Origin.
- Cost: one more port to publish, and behind a TLS proxy its own site
(
BROWSER_PROXY_ORIGIN). - Rejected: same origin with a path-scoped service worker (above); a subdomain (needs DNS that a localhost or LAN install does not have).
- The add-on frames the proxy origin itself; core gains nothing. Since
the system-handle seam (2026-08-06), core's barrel is type-only, so the brief's
<ProxyView>export from core no longer fits the seam. On a separate origin the service worker is not core's either. Lazy loading comes for free: nothing proxy-related exists until the Browser window mounts its frame, and the desktop origin never registers a worker. - Egress, the stricter stance (opposite to the rest api client work's, on purpose). The
REST client may reach the LAN because it sends only URLs the owner typed.
The relay carries traffic for pages whose own scripts drive it.
- Allowed: public unicast addresses only (ipaddr.js range
unicast, minus the IPv4-compatible::/96), on ports 80, 443, 8080 and 8443. - The check runs on every DNS answer, and the socket dials the checked address with no second lookup, so DNS rebinding has no window.
- It is our socket class handed to wisp-js. wisp-js's own filter is not
relied on: it checks one answer, lets
::ffff:127.0.0.1through, and re-resolves before connecting. - UDP is off.
- Allowed: public unicast addresses only (ipaddr.js range
- Profile key: a random per-machine file, not derived from an account
secret. In the estate there is no password to derive from, and the local
sign-in's can change.
- The jar is AES-256-GCM encrypted in
browser_profile(ledger step 9). - The key is
.imbatranim/browser-profile.key(0600). Backups exclude it, so a backup carries only ciphertext. A lost key reads as an empty profile: the Browser is signed out of every site, nothing worse.
- The jar is AES-256-GCM encrypted in
- The jar never rests in the viewing browser. Scramjet writes it to IndexedDB in plaintext on one path and fails to read it back after a worker restart. Our worker intercepts that path. It pushes every change to the desktop, which saves it encrypted. After a restart the worker asks the host page for the jar before it answers proxied requests.
- Scramjet 1.1.0 (MIT now, no longer AGPL), wisp-js 0.5.0 (LGPL), bare-mux
2.1.9 and epoxy-transport 2.1.28 (AGPL) are pinned exactly. Not
epoxy-transport 3.x: it targets the newer proxy-transports interface, and
under bare-mux 2 every request failed with "headers is not iterable".
sw.jsrelies on Scramjet's cookie-store and message internals, which a minor version may change.- About 2.4 MB of browser assets ship in the image, served from the
packages' prebuilt
dist/(no Rust toolchain). - This is the first accepted heavyweight subsystem. The cost is disk only: nothing runs or loads until the Browser opens.
- About 2.4 MB of browser assets ship in the image, served from the
packages' prebuilt
- The host page's CSP allows
'unsafe-eval'. Scramjet's controller compiles code from strings and refused to start without it. That costs little on an origin where every proxied site's own scripts run by design. The policy is there forframe-ancestors: only the desktop may frame it. - Bookmarks opens links in the Browser when it is set up, and in a tab
otherwise. The command palette still opens a tab: its
activatehas nosystemhandle.
The marketplace install's calls (the marketplace) are on their own page: decisions-marketplace.md.