Commit Graph
41 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 f07165a356 Loki first: the chat opens, three words in the sidebar, a one-screen workbench, and a voice on your side (#1506)
* feat(workbench): one project side by side, on one screen or two

A project's session and Loki as columns of one window, and its site in a
window of its own — beside this one or on the other screen. Nothing in it
is new UI: the columns are TerminalSurface and LokiWorkspace mounted as
they are; the site is the live page with the owner's pass, where pointing
and "Fix it now" already live. What the workbench adds is the arrangement.

- /projects/[id]/workbench, a Workbench row on the project page, and the
  pane SSOT in config/workbench.ts (session, loki).
- The site is a window, not a pane, on purpose: every fleet site sends
  frame-ancestors 'none' and Cross-Origin-Opener-Policy same-origin, so it
  can be neither framed nor reached as an opener. The workbench says only
  what it knows. docs/architecture/workbench.md.
- Windows open the best way the platform offers: Fleet Runner places them
  from the real display list (new IPC open-workbench-window, v0.8.60,
  caller tiled left / new window right, or the other display whole, an
  open window brought forward); a Chromium browser places a popup on the
  other screen once allowed; any browser gets a half-screen popup.
- Any pane in its own window (?pane=): a solo window hides the shell
  chrome at every width; the windows of one project on one machine keep
  each other honest over a BroadcastChannel (a popped-out pane leaves its
  window and returns when that window closes).
- Which panes a window shows is device-local (localStorage per project),
  never a column on the project. Two columns from xl; below that one pane
  at a time and the strip chooses; below md the phone's rows.
- Each column's side rail (the session's Loki rail, the chat's history) is
  remembered for the workbench apart from its own page and starts closed
  in a column: TerminalSurface gets `rail`, LokiWorkspace gets `basePath`,
  `project` and `history`.
- Full screen is the browser's own, on the workbench root.
- Pure parts tested: scripts/test/workbench-layout.ts, workbench-windows.ts,
  workbench-placement.ts. Checked by hand at 390, 720, 1000, 1440 and
  1920px and as a one-pane window at 900px, no horizontal scroll.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9

* refactor(workbench): one placement rule, a window's own layout, honest re-opens

A second pass over the workbench after an independent review of the diff.

- One placement module for both sides: src/lib/workbench/placement.ts is
  the pure rule the browser popup and Fleet Runner's real windows share
  (the desktop copy is gone). Tiling respects the caller's minimum width,
  so the 800px shell and the new window meet on a 1440px display instead
  of overlapping; only a display too small for both overlaps.
- The layout is the window's: sessionStorage per project, kept across the
  window's reloads and never shared. Two full workbench windows of one
  project each keep their own arrangement; localStorage's cross-window
  storage event clobbered them. useLocalStorageState takes the area.
- A popped-out pane announces itself closed on every way out — pagehide
  and a soft navigation away — and open again from the back-forward cache.
- A window already open is brought forward, never navigated again: the
  site's address carries a pass minted per visit, and a second navigation
  left it unread in the address bar. Fleet Runner keys windows by the URL
  without its fragment, restores a minimized one and places it where the
  person now asks.
- The screen-management prompt is raised when "On the other screen" is
  chosen, not on the open that follows: a click that waits for a prompt
  goes stale and the browser refuses the window.
- Close in a solo window leads somewhere even when window.close() is a
  no-op (a typed address): it falls through to the whole workbench.
- The dock click on macOS asks whether the SHELL window exists, not any
  window, so a site window open with the shell closed no longer hides it.
- Which panes are on screen (columns, or one of them) is a pure, tested
  rule; window opening lives in one hook (use-workbench-windows) instead of
  two states; the phone's rows read each pane's surface from the registry;
  useBodyClass serves both the immersive chat and the solo window.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9

* feat(workbench): one box — Session and Watch, not Session and Loki

The first cut put Loki's chat in the second column. Beside the session's
box that was a second place to type on one screen, and a person had to
work out which box did what ("I see two chats, and it just gets
confusing"). The session's box already does the one thing the screen is
for — it types into the live agent, or starts one — and the session
already offers Loki about itself ("What's going on?").

- The second column is Watch: the project's run as a live thread (what you
  asked, Loki narrating, the agent's screen, and where the change is —
  pull request, tested and merged, live), mounted from ProjectWatch as it
  is. It has no box. Loki's chat stays its own page.
- The pane registry carries where each pane's own page is (`pageHref`),
  so the phone's rows and the columns read one list.
- A pane body can be a scrolling thread (Watch) or a surface that fills
  the pane (the session).
- LokiWorkspace is back to what it was: the host-path, project and history
  props it only grew for the workbench are gone with their only caller.
- The project row says what the screen is for: "Say what to change and
  watch it happen, with the site beside".

Checked by hand at 390, 720, 1000, 1440 and 1920px and in both solo
windows: no horizontal scroll, no console errors.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9

* feat(workbench): one screen, one box — the site as Loki sees it, the robot, one line of state

"If a user sees tons of options, they can feel a paralysis" (owner,
2026-10-31). The screen showed about twenty controls: the Sessions page's
builder picker, tab strip, agent and view switches, Watch's card with its
own buttons, pane toggles, a window-placement menu. One thing to do, a
few things to see — so:

- The site, left, as Loki's own browser sees it (WorkbenchSiteView): the
  review worker already walks the site in a headless Chromium on the box
  and keeps one frame per action with the action named. While it walks,
  this shows the robot using the site, frame by frame — the one thing no
  window of yours can show; at rest, the last look. A tap opens the real
  site in its own window, where the person uses it and the widget does
  the watching. Fleet sites forbid framing and sever window.opener, so a
  picture of Loki's browser is what can honestly be shown inside Loki.
- The robot, right: TerminalSurface in a new quiet shape (`quiet`) — no
  builder picker (which builder runs a project is a stored decision), no
  tab strip of other projects, no shell rows; the chat | terminal switch
  and the agent stay. Its box is the ONE box on the screen.
- One line of state over the robot (WorkbenchStateLine): the sentence the
  Watch track composes, a dot for its tone, "Watch it work" for the whole
  story. Pure stateLine() in lib/workbench/state-line.ts, tested. The
  Watch column is gone from the screen.
- One "⋯" for the rest: the robot in its own window / on the other
  screen, the site on the other screen, full screen. The pane toggles and
  the placement menu are gone; a placement named for one opening wins and
  becomes the remembered one.
- The pane registry is the robot alone; the site is a region. Below xl the
  robot alone (the site is in its own window anyway). On a phone: the
  site, the robot, Watch it work, as rows.
- TerminalSurface stayed under the function-size ceiling by lifting the
  builder-picker wrapper and the resume filter out of it.

Checked by hand at 390, 720, 1440 and 1920px and in the solo window: no
horizontal scroll, no console errors.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9

* feat(workbench): a focus screen — the app's chrome leaves while you build

Three layers of navigation sat around two columns: the sidebar's twenty
destinations, the project strip ("Profile · Chat · Home · Sessions"),
then the workbench's own header and the robot's bar with the Sessions
page's agent menu — "Frankenstein elements just thrown together" (owner,
2026-11-01).

- While the workbench is open, the sidebar, top bar, bottom tabs, footer
  and project strip are gone (body.fc-workbench-focus, the former solo
  rule applied to the whole screen from md up). They are for moving
  between pages, and a person here is not moving. The one back link in
  the header is the way out. A phone keeps its own bars: the rows need
  them.
- The robot's bar is the chat | terminal switch alone (TerminalSessionBar
  `agentSwitch`, off in the quiet shape): the session's own chip names the
  agent and its box changes it.

What is on the screen now, left to right: back, Open the site, "⋯"; the
site as Loki sees it; the robot with one line of state, the view switch
and the one box.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9

* feat(workbench): two windows of one desk — one frame, a title bar each

The site sat in a card and the robot stood bare beside it, with a line
of state floating above and a caption floating below: two different
things on one screen. Now both regions, and a solo window, are one
frame (WorkbenchFrame): a title bar — a dot for its tone, one sentence,
one link — over a body.

- The site's bar is its address and what Loki is doing there ("Live",
  "Loki is using it: …", "Loki's last look: …"), like a browser's own
  tab; its body the page, top-aligned; before any look, the address alone
  and "Tap to open" — never a sentence apologising for an empty box.
- The robot's bar is the build's state (hooks/use-run-state, the Watch
  track's sentence) with "Watch it work"; its body the session with the
  one box. WorkbenchStateLine is folded into it.
- The floating Ask Loki button leaves in focus: its panel is the second
  chat this screen deliberately has not, and it sat on the send arrow.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9

* feat(nav): Loki first — the chat is the default screen, three words then folds

The owner's philosophy, 2026-11-01, now in AGENTS.md ("Why Loki exists,
and for whom"): a good Loki chat, reachable in one step, is the screen
that opens; the rest of the app one tap away; a friend on your side, not
a staff; never a screen that makes a person feel stupid; measure by
effort, not features.

- APP_HOME and RUNNER_HOME are /loki: signing in, and Fleet Runner
  starting with the computer, land on the chat. They landed on Today, a
  page to read before a person could say anything.
- The sidebar is three bare words — Loki, Home, Projects — the same three
  as the phone's bottom bar (Loki first there too), then folded groups
  that each say the question they answer: Waiting for you (Approvals,
  Feedback), Your day (Today, Suggestions, Voice), Across your projects
  (Sessions, Missions, Activity, Prompts), Under the hood (Packages,
  System), and Private behind the PIN. Not a drawer called More: the
  navigation test records why a "More" section rots, and still forbids
  it; the phone's More is the folded groups as a sheet.
- Every sidebar line says what it is for on hover (the item's own
  description), so nothing has to be guessed.
- SidebarSection gains `bare` (no header, never folded) and
  `foldedByDefault`; the tests that pinned the old Build / Loki / To
  review / The fleet placement now pin the new homes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9

* feat(voice): Loki speaks as someone on your side

The owner's philosophy (AGENTS.md, "Why Loki exists"): a friend on your
side, not a staff you direct; never a word that makes a person feel
stupid. The public pages still said the opposite.

- Hero: "Say what you want. Loki builds it with you." (was "Describe it.
  Agents build it."). The lede, APP_DESCRIPTION, the social-card tagline
  and the how-it-works steps follow. Every factual claim is one the
  product keeps: it builds with AI agents, puts it online, changes it on
  ask.
- /why's principles open with two new ones from the owner's words: "On
  your side" and "Life is short". Commitments about how Loki is made, not
  claims about what it does.
- The new-project card says "Say what you want. Loki sets it up and
  starts building." instead of repos and agents; the sidebar's Loki line
  drops "dispatch" for "Loki answers, or builds it with you".
- The hero's two sentences are separate balanced blocks: on a phone each
  breaks as an even pair, never one word alone.

The mission headline on /why ("Direct the creation of …") is left for
the owner to decide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9

* feat(voice): the mission reads "with someone on your side"

/why's headline was "Direct the creation of everything you can
imagine." — the staff-you-manage voice the owner set aside. It now reads
"Make everything you can imagine, with someone on your side.", the
owner's own call (2026-11-01).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 21:35:13 +01:00
CatoandClaude Opus 5.5 84f47582a5 chore(chatkit): the broken-word audit runs in audit:responsive and the widget test (#1425)
* chore(chatkit): 0.14.2 — the broken-word audit runs in audit:responsive and the widget test

chatkit 0.14.2 exports `@bitbaum/chatkit/audit`: `findBrokenWords(root)` and
`BROKEN_WORDS_SOURCE`, every word drawn across two lines (words beside
- / . @ : _ and over 24 characters exempt). "Di / re / ct / or / y" is five
syllables nobody wrote, and reading the CSS never finds it — only laying the
words out does.

- `pnpm run audit:responsive` now fails a page/viewport on a cut word, listing
  the page, the width and every word (the list names the cause: one word is a
  narrow cell, all of them a `break-all` on an ancestor). Same retry path as
  the overflow measure.
- scripts/test/widget-host-avoid-browser.ts serves the chat chunk
  (public/widget-chat.js, built as build:widget builds it) from the mocked
  origin, opens the panel with data-fc-chat="kit" at 390 and runs the same
  measure on the panel. Mutation-proven: `word-break: break-all` on the panel
  fails it with the greeting, starters and mode labels listed.
- No cut word found: the widget panel at 390, and / /sign-in /change /build
  /fleet /pricing /sign-up /u/cato /docs/feedback-widget and two more public
  pages at 320/390/768/1440 on the live site all pass.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* chore(chatkit): 0.15.0, and a variable read with its fallback has a default

chatkit 0.15.0 is additive over 0.14.2. Its stylesheet reads
var(--ck-n, 1), a per-element variable with the fallback at the point of
use, which widget-chat-css's "every other variable has chatkit's own
default" check counted as unset. It now counts a fallback as a default; the
colour check (every colour from the widget theme) is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 13:29:01 +02:00
CatoandClaude Opus 5.5 058a4a7dd8 Design reset: every page rebuilt to one calm bar (rows, one action, plain words) (#1406)
* docs(design): the reset brief, and a page audit that signs in and screenshots every page

The owner walked the app on a phone on 2026-10-21 and called it unusable.
design-reset-2026-10.md is the bar every page is now held to, written from
the apps he uses daily. scripts/audit-pages.mjs signs in (the public demo by
default), visits every page at phone and desktop width, saves screenshots and
writes down overflow, duplicate h1s, sticky blocks, cut-off text, small tap
targets, console errors and failed requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(scripts): seed:showcase, a local account that looks like the owner's

The public demo has three tidy projects, so most pages look empty on it and
their real problems never show. scripts/seed-showcase.ts creates
owner@loki.local / showcase-owner ("Cato", operator) with 42 projects under
the owner's own junk folder names and long task-text descriptions, mixed
states (live, site down, not connected, deploy failed, autopilot paused,
production / blueprint), 73 feedback items on one project and 8 on another,
73 runs over 60 days with the real failure texts and three running now,
bell alerts 8, 19 and 28 days old, four identical "Next Best Step" prompts
plus two near-copies, a dozen Loki threads, goals with milestones, habits
with history, people, crew assignments, approvals, package rows, scheduled
jobs, subscriptions, events and memory.

Idempotent through the demo reset's live-foreign-key wipe (now exported),
with timestamps relative to now. Refuses any non-localhost database URL,
the prod tunnel's port, and a database that already has an operator.
audit-pages.mjs documents the pair.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(audit): one slow screenshot no longer loses the whole report

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(widget): a host can draw the launcher itself (data-fc-place="host")

A rendered region marked data-fc-place="host" IS the launcher: the widget
draws no floating button while it is on screen and counts the owner's state
as shown, so watch mode adds no bar. When the region goes, the launcher comes
back on its own. The page opens the panel with Loki.open() and reads
Loki.status ({ owner, watching, unread }), announced as a loki:status event.
A hidden region still wins. Customer sites are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(design): primitives and a calm top bar for the design reset

The pieces the page rebuilds are made of (docs/development/design-reset-2026-10.md):
ListRow + List + ListSearch, Section/SectionHeading, a quiet EmptyState,
ChoiceMenu ("Sort: Priority" as a sheet on a phone, a popover from md up),
and PageAction — a page's one primary action, a round + in the phone top bar
and a pill in the header from md up (PageLayout action, ModalForm
trigger="page-action").

Chrome: the top bar names every page on a phone with 40px borderless icons;
exactly one h1 per page at every width (the page's own, read but not drawn on
a phone; the bar's name is the h1 only when the page has none). Loki's own
feedback launcher is a top-bar icon (data-fc-place="host"), not a tab over the
content. The Sessions drawer icon leaves the phone bar. The bottom bar is
exactly its token's height and the main column ends above it, so nothing
scrolls under it. ui-kicker and ui-micro-label stop shouting in capitals;
empty panels lose their box; the demo strip is one line on a phone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(memory,robots): rebuild both pages to the design reset

The two worked examples the page rebuilds copy. Memory: the counts as a
sentence, then sections of rows — recently added (each with its own Forget
in a row menu), recent activity, by kind, context from other projects — and
"Forget everything" as the page's last row. No cards, tiles or badges.
Robots: the title is the top bar's, "Add robot" is the round + beside the
avatar, the search is the list's first row, each robot one row, and an empty
book is an icon, a line and one button.

Adds a "Primitives" section to the design brief: each primitive, its file,
and when to use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(alerts): stale notifications fold into Earlier; the bell counts what still needs you

The bell read a red 9+ over nudges 8, 19 and 28 days old. Root cause: event
alerts (studio requests, build requests, escalations) have no condition a
checker can see end, so nothing ever cleared them; insert-once producers
deduped against any open row, so one forgotten alert swallowed every later
occurrence; and the bell counted every open row however old.

- lib/alerts/relevance: an alert is current while younger than its type's
  window (alert-types freshForDays, default 7) or urgent; otherwise Earlier.
  /api/alerts marks each one; the bell counts only current ones, and Today's
  needs-you reads the same rule.
- insertActiveAlertOnce lets a stale open alert go instead of blocking new
  ones; refreshOrInsertActiveAlert can renew the date when things got worse
  (feedback summary renews when more items wait).
- The feedback summary says one plain sentence instead of
  '84 feedback items need you (stalled + check live)'.
- The panel is a ListRow sheet (bottom sheet on a phone): dot, title, one
  grey line, time, x to dismiss; Earlier below with Clear all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* style(labels): sentence case for the app's remaining capital-letter labels

Section labels in settings, Control, Today and the private unlock form
dropped their uppercase + letter-spacing (design reset rule 4). Small
tags (status pills, badges) keep theirs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(ui): DetailSheet, a ListRow control slot, quiet ModalForm triggers

DetailSheet opens one thing from its row (bottom sheet on a phone, dialog
from md up) with its actions as full-width rows. ListRow gains a leading
control that is its own action (a habit's check-off); ModalForm gains a
"secondary" trigger for an empty state's one button and "none" for a
form opened from a row's menu. Styles for the Life pages sit in one
design-reset block in globals.css; rules their old markup used are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(goals): rows on /goals, and a page of its own for every goal

/goals is one sentence ("4 goals, 48% done on average") and a list: a
progress ring, the title, one line (due, milestones, sub-goals, project)
and the percentage. Sort and project are menus, not chip rows cut at the
edge; finished and set-aside goals fold away. The old card — inline
title, description button, four menu actions, folded milestones, nested
sub-goal cards — is now /goals/[id]: where it stands, its fields as rows,
milestones and sub-goals as lists, the actions as rows at the end.
Deleting a goal now checks the answer instead of refreshing on failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(habits): check off from the row, open a habit in a sheet

/habits is one sentence ("3 of 5 done today") and a row per habit: the
circle on the left checks it off for today, the row opens the habit — its
month, how often (one even row of three), the goals it feeds, pause,
rename, ask Loki, delete. The card with a 35-cell heatmap, a frequency
select, five icon buttons and a stat-tile row above it is gone. A goal's
row line drops its milestone count, which pushed the project off a phone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(projects): rebuild the list, project page and Watch to the design reset

/projects is a search row, two menus on one line (Show / Sort) and ListRows:
an initial, projectTitle(), ONE plain-word state line ("Building now",
"Live · updated 2h ago", "Needs you: 3 notes") and the time since the last
run. Nothing sticks. Checks, stage and feedback counts moved to the project
page; earlier `-refresh-<hex>` copies and archived projects fold under
"Archived". The two black buttons became one `+` that asks "Build a site"
or "Add an existing project".

The project page has one title with the way back, one primary action (Ask
Loki, in the top bar on a phone), a section menu on a phone instead of a
pinned select, sections as plain headings without boxes, flags as "Needs
fixing" rows, and agent sentences said plainly (no URLs or HTTP codes).
Watch it work uses PageLayout and names the project with projectTitle().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* wip(work-tools): prompts, activity, feedback rebuilt as rows; tab-inject starts repo-only projects

Work in progress before merging main; gates run after the merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(events): rows by date, a sheet per event; an event with no deadline can be added again

/events reads an event's date and place, not only its deadline: a meetup
with a day and a city sat under "No deadline" as if it had neither. Rows
go coming up, no date yet, already happened; a row opens the event in a
sheet (edit, ask Loki, archive, delete) and "New event" is the page's
one action, a form in a sheet.

Fix: the add form sent "" for an empty deadline and the API refused it
as "Invalid date", so no event without a deadline could be added. The
form now sends only what was filled in, and the API reads "" as none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(talk): Loki's empty chat, chat list, Sessions and More sheet as rows

- /loki: a greeting, recent chats and Build next as ListRows above the
  composer; no scrolling chip strip, no starter chips when there are
  projects, no "Auto your key" on the model chip; the chat list
  (ThreadRail) as Claude's list, pin and delete in each row's menu.
- Sessions: nothing open is one line and a Resume row per project; a
  missed deep link is one line and its row (and, on a phone, the open
  sessions); the session and more sheets are short rows; the Sessions
  drawer is a list with its search as the first row.
- More sheet: names only, no truncated descriptions.
- Voice: one line and Start, then titled sections of rows.
- Sidebar section labels and app-wide label classes in sentence case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* wip(public): calmer signed-out site — rows, one orange action, sentence case

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(design): Home, Today, Suggestions and Approvals as sections of rows

Design reset (docs/development/design-reset-2026-10.md) for the 'what needs
me' group:

- Home: three sections of ListRows — Needs you (failures with their fix on
  the row, escalations, the review inbox), Being built, Done — under the
  composer. Job cards that all read 'Next best step' became rows naming the
  project and the live step; the footer is two rows (builder, New project),
  so nothing pokes under the bottom bar. The status hero no longer repeats
  projects the rows already name. Builder-offline chip is a row.
- Today: a greeting, the day in one sentence (lib/today-brief todaySentence)
  with Plan my day / Log a conversation, then Needs you, weather in one
  line, Calendar, Habits, Commitments, Sticky note and More as sections of
  rows. Six recap cards that restated nav pages are gone.
- Suggestions: momentum as a sentence, Show: All menu instead of a cut-off
  chip row, each suggestion a ListRow (tap = do it, menu = Not now), and
  project names through projectTitle().
- Approvals: pending first, unboxed; Approve/Decline in words; event times
  in the reader's zone instead of a raw UTC ISO string; standing approvals
  as OptionRows at the end; quiet empty state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(money): one sentence, subscription rows, a sheet per subscription

"51.00 CHF and 329.60 USD a month across 9 subscriptions. Next: GitHub on
3 Nov." replaces three stat tiles. Each subscription is a row (how often,
when next, whether a receipt backs it; the amount on the right) that opens
a sheet with everything the row used to carry: mark paid, edit, check at
the vendor, ask Loki, free alternatives, cancel, delete. Cancelled ones
fold away; promised money and the founder's OrangeCat link are rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(people): contact rows with search and menus, a real page per person

/people is a list like a phone's contacts: initial, name, what they do and
where, how long since you talked. Search is the first row; Show and Sort
are menus instead of a chip row cut at the edge; the filled "Log talk"
button on every row moved into the row's menu. Importing and merging is
one row that opens a sheet. A person's page opens with the person on it
(it fetched the same row again behind a skeleton), in plain sections,
with rename, ask Loki and delete as rows at the end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(crew): asks and crew as rows; an ask with nobody on it can be given to someone

One sentence ("1 ask needs you"), the open asks grouped by where they
stand, each a row that opens a sheet with its brief, link, payment and
the moves open to you; your crew as rows with "Give them work" in the
row's menu. Fix: an ask saved with nobody on it said "pick someone before
handing this over" and offered no way to pick; the sheet now does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(settings): a list of sections on a phone, flat sections inside

Below lg, /settings is a list of its twelve sections, each a row with
what is in it; one opens as its own page with a back row, and the phone's
back gesture returns to the list. The tab strip that ran off the screen
is gone. Inside, the bordered boxes and caps labels are flattened to
sections and rows; Appearance is one even row of three, the digest is a
list of choices, and the Agent tab says what it is for in plain words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(home,bell): failure rows give the reason the full width; Earlier rows carry no dot

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(today,home): In focus is one row; Home loads as its own shape

TodayWatch was a bordered card with an orange capitals eyebrow, the day's
counts a second time and two Loki buttons; it is now one row under 'In
focus' with Loki's nudge as a plain line, and says nothing when nothing
stands out. Home's loading state is the composer and three row lines
instead of three empty cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(projects): plain sections on every project tab, one time per row

- A row's line no longer repeats its trailing time ("Worked on 1d ago … 1d"):
  it says Live / Not live yet / Not started yet, and the time is said once.
- A run waiting on a person (main's new "needs_you" build state) reads
  "Needs you: the agent is waiting" on the list and offers "See what it
  needs" on the project; the list query now reads the run's own record.
- Story: one rename (in the header), the stage drawn without colour, the
  profile score labelled in words, "The story" instead of "Agent context",
  three short fill buttons that fit a phone.
- Feedback: one heading and one "…" menu for list actions; the widget setup
  and auto-ship toggle on the page instead of boxes in boxes; plain labels
  ("Put it on the site", "Turn on only") kept in step with the API hints and
  the public docs.
- Activity: "What changed" as rows, newest first by date, no handoff chips.
- Plan: "Roadmap" is the section's heading; no accent icons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(prompts): one Run that works — repo-only projects start, Loki streams, no raw blanks

- Send to terminal on a project with only a repository (no folder) queued a
  bare inject that failed with "no running agent for 'substrata' on this
  runner"; tab-inject now hands such projects to the inject core, the same
  start-or-queue path /api/inject uses (in the previous commit).
- The Run sheet leads with the prompt's own worker (lib/prompt-run): the
  project's agent for project work, Loki for personal prompts; the other is
  one quiet line. A send ends in one sentence and "Watch it work".
- Run with Loki streams into the sheet through the chat's own thread
  (useSessionAsk + ChatThread): clock, Stop, retry, Continue in Loki.
- {{variables}} are never shown raw: blanks are named in words until filled.
- Pins all of it in scripts/test/prompts-page.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(activity): the answer as a sentence, failures and history as rows

/activity drew eight boxes before the first event: a hero card with a bar
chart and four coloured tiles, a red card of failures in the builder's own
words, project chips cut off at the edge, a time picker card, count chips and
a report card. Now: When and Project as two menus, the headline sentence,
"Runs need you" as rows with Run again, and "What happened" as rows under
day headings (Show: menu), each opening its run on Watch. The report is the
page's one action, in a sheet. Failures read in plain words (activity-words).
Fixes the double <h1> (page and view both drew PageLayout).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(feedback): decisions and reports as rows; each opens in a sheet

/feedback: "Do all" is the page's one action (confirmed in a sheet that
says what it spends); every decision is one row — the report in the
reporter's words, project and when — with its yes as the row's own button,
still one tap; the row opens the full decision (Loki's read, facts, every
move) in a sheet. Under way / Done / Filed away are rows with their state in
plain words. Keeps main's per-decision taken key (#1367).
/my-feedback: rows (your words, status and project, when), each opening the
shared ReporterFeedbackCard in a sheet; a quiet empty state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(system,packages): plain sections and rows; one design-reset block in globals.css

/system: nineteen bordered cards under three question headings become one
page of plain sections (SystemBlock: sentence-case heading, no box) with
words a person would say — Alarms, Server, Server size, Room for more work,
Health check, Recent errors, Agents keep going, Runs on a schedule — and the
records behind one "More records" row. Agents keep going is one sentence
and the one button that changes it.
/packages: each package one row (latest, who uses it, who is behind), the
read line ending in "Read again", and Publish to npm as two calm numbered
steps instead of a card.
globals.css: the work-tools block (prompts sheet, activity, feedback row
verb, steps, system) after the feedback classes; the dead activity, pulse,
needs-you and feedback-card rules deleted with the code that used them, and
ui-btn-overlay (its last users were the prompt cards). CLAUDE.md follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(talk): own class for the empty Sessions list, quieter dots, a voice note that fits

ui-term-empty already named another rule, which centred the new list;
a finished session no longer gets a green dot (rule 8); the 'Only what
needs me' line fits under its switch on a phone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(public): reachable /fleet filters on desktop, essay body on the title's edge

The /fleet filters sat in a <details> whose summary was hidden from md up
on the belief that CSS forced it open; a closed <details> hides its
content at any width, so on a desktop the filters were gone with nothing
to press. The toggle now shows at every width and opens itself while a
filter is set. The footer's closed studio-sites list no longer lays out
invisibly, and an essay's body starts on the same left edge as its title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(feedback): projects by name, the age last, the night note in francs

- Every project on /feedback goes through projectTitle(): the inbox route
  attaches each row's projectTitle from the project entity, and the rows, the
  project menu and the sheet title read it.
- A decision row's one line is project · age (or the page, with one project
  in view); the repeated "Build it, one agent run" beside a "Build it" button
  is gone, and no trailing age squeezes the report's words.
- The morning note (nightNoteText, shared with /today) names projects through
  projectTitle, drops the "· 2 of 3 runs" ledger, and states the cost in
  francs (CHF_PER_USD): "… filed away 4 old reports. It cost CHF 1.70."

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* chore: drop the dead recent-dispatches query; the build-row fade at every width

getRecentDispatches fed only the Today recap card the redesign removed. The
/loki build row hid its scrollbar at every width but faded its edge only on
a phone; the fade now applies wherever the row scrolls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(projects): a project with no title reads as a word, not its folder name

projectTitle passed an untitled project's folder name straight through, so
Home, Feedback and the bell listed "murphys-bar" and "aoz-housing". An
all-lowercase slug now reads as a word ("Murphys bar"); a name typed with
capitals is kept as typed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(public): headline visible before its animation, names through projectTitle, plain demo note

The hero rose in from opacity 0 with a 'both' fill, so until the
animation ran the headline was simply not there: a slow phone, a
screenshot or a page still loading showed a blank where the promise
should be. The rise is now movement only; content is visible by
default and reduced motion turns the movement off.

Every project name on the public site (the /fleet register, a project's
public page, a person's public profile, the landing hero) now goes
through projectTitle(). The sign-in demo note says what is switched off
in plain words, and /build's eyebrow is sentence case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* chore(terminal): drop terminalSourceHint, which nothing reads now

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(life): project titles, channel names and sheet rows after a look at the pages

A goal's project and an ask's project read the project's title when it
has one instead of its folder name; the ask's row drops the project so
the date fits on a phone. A person's ways to reach them and their
conversations say "WhatsApp", not "whatsapp", and the icon now matches
a conversation's channel (it looked the channel up without its prefix and
always fell back). Sheet action rows draw every icon at one size and start
at the left; "I cancelled it" is not red. A goal's progress and date are
body text. The responsive audit names /goals/[id] as needing an id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(work-tools): every project name through projectTitle()

With main's projectTitle() reading an untitled key as words (3bc9a395), the
remaining bare keys in this group go through it too: the decision card's
where-line and the full feedback row's project link, Activity's rows, menus
and retry label (one titleFor helper instead of three fallbacks to the raw
key), scheduled jobs grouped by project on /system, and the repositories and
dependents on /packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* test(projects): pin the rebuilt rows, flags and activity to the new rule

- getProjectsRunNow reads runs since a day ago with gte(), not raw SQL.
- The health panel can no longer be trapped by a row: it is not on a row.
- "Needs fixing" heads the flags; each row carries a red dot and no tint.
- Activity speaks plainly ("Working on …", "Nothing running", "last change").
- The project page's site link uses the widget's owner-pass helper, so the
  browser fixture bundles it.
- The chooser's two lines fit a phone; the dead ui-* rule baseline drops to 27.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* docs(projects): the Views row describes the rebuilt list and page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(home,today): project names in words, reasons that say what happened, one builder line

- Every project name on Home and Today goes through projectTitle().
- 'last run: needs attention' became what the run's record says, in words
  (lib/attention-words): 'Stopped: …', 'Stuck: …', 'The last run only got
  part of the way — next: …'.
- Home says the builder's state once: the row at the top. The foot is
  Settings and New project, and no longer contradicts it.
- Runs with no word from the agent sit under 'Gone quiet' and say what
  they wait on ('No word from the agent for 1d', 'Waiting for a builder to
  pick it up'); times are compact ('1d', '2h 5m').
- Today: Start my day is one row when no main projects are chosen; the
  headline names its parts ('4 urgent, 4 approvals, 42 reports to triage
  and 7 other things.'); an urgent item has one action (Fix with Loki), its
  title opens it; alerts show their first paragraph only. The repo-missing
  alert says "<Project>'s repository can't be found on GitHub", with no URL
  or status code in the words a person reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* docs: the Life pages and their primitives, as they now are

CLAUDE.md's component map and Views rows for People, Crew, Money, Goals,
Habits, Events and Settings described cards, chip filters and stat tiles
that are gone. The design-reset primitives table gains DetailSheet, the
ListRow control slot and ModalForm's quiet triggers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* chore(design): drop two rules the rebuilt pages no longer use

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(audit): a page that reloads or crashes no longer ends the audit

Each route gets its own page, measuring retries while a dev server reloads,
and a crashed page is recorded in the report instead of throwing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* docs(changelog): every page, calm

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(design): session names in words, and no "next: Nothing queued"

A session's name in Sessions was its folder ("derhochhinhousepartyrenner-ch-
refresh"); it now reads as every other surface names the project. Home no
longer appends an agent's "Nothing queued" as if it were a next step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* test: pin the rebuilt pages' names and rows

Project names now read as words in the night note and the Sessions drawer,
the ListRow link carries its own props, and the trailing-column check reads
the rule itself rather than a scoped override.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-22 10:51:18 +02:00
Cato d80c99f56e feat: Loki Missions — truthful project-backed mission control (#1397)
* feat(missions): derive project objectives without parallel state or fake verification

* feat(missions): add real project-backed Missions overview

* feat(missions): add mission objective, roadmap, and execution evidence page

* feat(missions): add Missions to Build navigation and command palette

* test(missions): pin honest progress derivation and tenant-scoped source reads

* docs(missions): specify honest game-like UI over existing project ledger

* fix(missions): count stated mission objectives rather than roadmap presence

* chore(ci): temporarily capture exact Missions Prettier diff

* style(missions): apply exact repository Prettier diff

* style(missions): apply exact repository Prettier diff

* style(missions): apply exact repository Prettier diff

* chore(ci): restore normal formatting check after Missions diagnostic

* test(missions): register Missions in navigation and responsive audit

* test(missions): register Missions in navigation and responsive audit

* test(missions): record dynamic mission viewport sample prerequisite

* style(missions): respect responsive-audit formatter layout
2026-10-22 01:26:56 +00:00
CatoandClaude Opus 5.5 b495bedb95 feat(change): a new account's build goes to a person instead of a 403 (#1329)
* feat(change): a new account's build goes to a person instead of a 403

On /change, "Make it real" from any account but the operator's met
"Previews are built on Loki's own computers, which this account does not
have" and stopped. The cloud builder only claims the operator's commands,
and that boundary stays; what changes is that the request no longer dies.

- It is filed (build_requests, migration 0119) with the before/after the
  visitor just saw, once per brief however often it is sent, and the
  operator is told by push, Telegram and an alert.
- /approvals shows it (operator only): Approve builds it as the operator's
  client work; Decline sends their note. Exactly one decision wins, and an
  approval whose build cannot start goes back to waiting with the reason.
- The visitor follows it on /change/requests/<id> and gets an email.
- The preview opens with a code of its own (entities.metadata.previewCode,
  read by getProjectPreviewCode wherever a preview is opened or signed for),
  never the operator's code, which opens every preview they have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ

* docs(telegram): register the build-request notification

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 17:21:51 +02:00
CatoandClaude Opus 5.5 f568852158 feat(studio): approved partners keep their profile with OrangeCat (#1315)
* feat(studio): approved partners keep their profile with OrangeCat

The owner chose: applying stays link-only, no account; once approved, a
partner connects their OrangeCat account so a lost link is not a lost
profile.

- studio_requests.orangecat_actor_id (migration 0117), set only on an
  approved, open partner application, never to a second identity.
- POST /api/studio-portal/[id]/connect checks the private key once and
  returns a fifteen-minute signed link to /studio/connect; the key never
  travels to Loki's sign-in pages.
- /studio/connect signs the partner in with OrangeCat (one button) and
  ties the application to that identity, then sends them back to the
  portal. /studio/partner lists a signed-in partner's connected
  applications and reopens one with a fresh private link (the old one
  stops working, as with email recovery).
- The portal view says whether OrangeCat is connected.
- Also: an approved partner who skipped the course now sees their
  assigned briefs; the portal still asked for a course pass there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ

* style(drizzle): format the generated migration meta

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ

* test(responsive): measure the studio partner's OrangeCat pages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 11:15:23 +02:00
CatoandClaude Opus 5.5 95ec4a8375 feat(plans): CHF 15 / 40 / 90 with a monthly AI allowance, reservable until payments open (#1293)
* feat(plans): CHF 15 / 40 / 90 with a monthly AI allowance, reservable until payments open

The founder set the prices on 2026-10-17. Payments stay off until Loki's
company is registered, so everything up to the moment of paying works and
nothing is charged:

- config/plans.ts: Personal 15, Pro 40, Team 90 a month; each states its
  monthly allowance. The billing note says payments are not open and that a
  plan can be reserved with nothing charged.
- lib/plan.ts: PLAN_LIMITS.aiAnswersMonthly (1,000 / 3,000 / 8,000 at
  8,000 tokens an answer — about $0.002 each on a paid open model, a
  fraction of the price).
- lib/ai-budget/plan-allowance.ts + gate: past the daily free share, a paid
  plan's month still admits the turn. Read only after the share refused, so
  a free turn never pays for it; a failed read leaves the refusal standing;
  a lapsed or past-due plan has none.
- /pricing: four priced cards. A paid plan's button opens /pricing/<plan>,
  which reserves it (plan_reservations, one row per person, grants
  nothing) — and reads "Pay in Bitcoin" the day its OrangeCat pass exists.
- The out-of-answers refusal and the budget screen offer the plans beside
  the person's own key; Settings shows a plan's allowance left this month.
- Settings → Billing links each plan's reserve page; System → Revenue shows
  who is waiting on which plan, and counts only plans a settled pass pays
  for (a hand grant is "granted", not revenue).
- docs/architecture/models-and-money.md follows the decision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B

* test(ai-budget-gate): answer the plan read without a database

The gate now asks a paid plan's allowance after the share refuses. The
existing gate tests did not inject it, so where CI has a real Postgres the
default read opened a pool that kept the process alive and the runner
timed the file out. Every call now passes `planAllowance`, as the file
already does for the ledger and the capacity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-18 01:08:13 +02:00
Cato 75a5831b43 Add guided project reviews with shared browser evidence and pause controls (#1211) 2026-10-15 05:15:00 -07:00
CatoandClaude Opus 5.5 064586c63b Packages: see what every project is built from (#1180)
* feat(packages): read what each project is built from

The fleet's shared-package catalogue is read from the fleet brief's one fetch
of bitbaum/fleet registers/packages.json (no second fetch; the snapshot now
carries the catalogue too). A new sync reads each project's package.json and
lockfile at its default-branch head through the existing GitHub token rules,
keeps the dependencies that are fleet packages (npm ranges, npm aliases, git
tags and shas, monorepo paths) and stores them as observations:

- project_packages: one row per (project, package) — spec, resolved version,
  source, commit, observed time
- project_package_scans: one row per project — last read, head sha,
  catalogue fingerprint, outcome — so an unchanged repo costs one request and
  a repo that could not be read keeps its rows and says why

POST /api/packages/sync reads all of the caller's projects (or one), four at
a time, never failing all for one. Latest versions come from npm or the
package repo's highest semver tag, cached, with a page deadline and the
register's version as a labelled fallback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf

* feat(packages): Packages pages and "Built from" on every project

- /packages (under Fleet): every fleet package with its latest version, how
  many of your projects use it and how many are behind; searchable
- /packages/[slug]: what it is, install command, repository, and your
  projects on it with version and status, behind first; an unlisted slug
  explains itself instead of 404ing
- Project Story tab: "Built from" lists the project's fleet packages with a
  behind badge linking to the package page
- Pages read the repositories again on arrival when the data is over six
  hours old; Refresh does it on demand; failed reads are named with a reason

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf

* docs(packages): changelog entry and the Packages view in CLAUDE.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-14 01:57:07 -07:00
CatoandClaude Opus 5.5 06cf743de9 feat(browser): fill forms on the phone too — Loki for Firefox and one /fill page (#1156)
* wip(browser): Loki for Firefox + /fill page (validation in progress)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck

* fix(fill): long values wrap under their label on a 320px phone

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck

* style: prettier on the extension test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck

* fix(demo): /api/browser-task is denied in the demo sandbox — it reaches the owner's machine

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-11 16:32:05 -07:00
CatoandClaude c631e99230 feat(suggestions): one board for every front of life, one tap each (#1151)
The "Build next" row on /loki only knew about code. /suggestions reads
every front Loki keeps records on — Build, Business, Goals, People,
Money, Habits (SSOT config/suggestion-avenues.ts) — into one board of
things to do next, each card naming the record it came from.

- lib/suggestions/life.ts: pure ranker for the non-code fronts (an
  unchecked habit on a streak, a renewal this week, a contact gone
  quiet, a delivery waiting on your yes, a draft never handed over, a
  goal or deadline due). What only the person can do opens the place;
  what Loki can carry forward is a prompt; nothing here dispatches.
- lib/suggestions/board.ts: merges the build ranker and the life ranker,
  hides what the person decided on for a window (7d taken / 30d not
  now), and counts momentum from those decisions alone.
- suggestion_decisions table (drizzle/0091): the only stored state —
  "taken" / "dismissed", when. An undo deletes the row.
- /api/suggestions (board), /api/suggestions/decisions (POST, DELETE).
- components/suggestions: momentum strip, avenue filter strip with the
  scroll fade, cards with "Do it" (Loki with the ask written and the
  project set, or the page where it is done) and "Not now" with undo.
  Private avenues are read only while the PIN zone is unlocked and say
  so when locked; empty avenues name the way in.
- The /loki and Control build rows honour the same decisions and link
  to the full board. Suggestions sits in the Now section beside
  Approvals; navigation, demo-sandbox and responsive-audit lists updated.


Claude-Session: https://claude.ai/code/session_013CNAHMXshTpM9f8Qz3bm7L

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-11 15:51:17 -07:00
CatoandClaude 0096d86a4c feat(ship): done means seen — ship reports, and Loki records how Build next is used (#1150)
"Build next" (#1141) was reported to the operator as a merge notice: merged
at 21:14, "should go live on its own", "I haven't confirmed that, or tried
the screen in a browser myself", open /loki and tap a chip. Read on a phone.
No link, no picture, no statement of what was checked — every rule this
repo already states ("confirm the commit is LIVE, not just merged"; the
fleet brief's "done means merged, deployed and checked live") skipped,
because checking took tooling nobody had wired together.

Ship report (`pnpm run ship:report -- /route --focus '<selector>'`):
- confirms the running site's build commit contains the shipped one
  (/api/health `commit`, with `--wait` to sit out the deploy), never a guess
  from a timestamp
- screenshots the real deployed page at 390 and 1440, crops the built
  section, counts console errors and 5xx during load
- writes REPORT.md: live URL first, screenshots, what was and was NOT
  checked; exits non-zero while the build is not live or the section is
  missing
- session auth shared with the responsive audit in
  scripts/test/lib/session-cookie.mjs (extracted, not duplicated)

The contract — docs/development/ship-report.md — keeps the message it
replaces, and the fleet brief now tells every dispatched agent to report
the live URL first, a screenshot, and what was verified.

After it ships, Loki watches whether it is used: operator_usage_events
records each show, tap and rotate of Build next (surfaces and actions SSOT
in src/config/usage-surfaces.ts; /api/usage refuses anything else; target
is an id, never prose). A pure summariser turns the rows into one line per
surface — shown, tapped, kinds offered and never taken — and a `usage`
retrieval source hands it to Loki: "how am I using Build next?" leads with
it, and every "what should I build?" reads it before recommending, with a
prompt line to say when a surface is shown and never used and propose the
one change.

Tests: scripts/test/usage-summary.ts (registry refuses unlisted pairs,
never-shown surface reported, window honoured, planner leads with usage
when asked about use); retrieval-plan, telemetry-freshness, fleet-brief and
account-deletion gates extended or passing as-is.


Claude-Session: https://claude.ai/code/session_016T1Vm7uYyhpgUxbD3xXro9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-11 15:21:48 -07:00
CatoandClaude a42efc5dc4 feat(models): a store for models — who thinks for you, and who you pay (#1127)
Loki is model-agnostic; the person decides which lab thinks for them and
what it costs. Until now the only way to compare was ten pricing pages.

- /models: one page that explains the three ways Loki thinks (free pool,
  your own keys, a Loki pass), lists every provider with its blurb, free
  tier, featured models and live per-million prices, and a sortable
  compare table across labs. "Use" on a row deep-links into Settings
  with the vendor and model pre-chosen.
- "Check for new models": one button re-reads OpenRouter's public
  catalogue (no key, 1h cache, 6 refreshes per 10 min per user) and
  names what was listed since the last read, so the page never goes
  stale by hand.
- Settings → AI: shorter intro that points at the store, a nudge to add
  a second provider once one is connected (so Auto has a choice), and
  the free pool explained honestly — shared, finite, bring your own key
  to stop depending on it. Per-provider counters fold into a disclosure.
- Model picker and the Loki "add a key" link point at the store.

Tests: scripts/test/model-store.ts (vendor coverage, pricing shape,
chat-only filtering, featured dedupe, recency, context labels); /models
added to the responsive audit and demo-safe families.


Claude-Session: https://claude.ai/code/session_01YKx4TPejLvFR9Uj4xrTf6Y

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-10 02:30:41 -07:00
CatoandClaude Fable 5.1 5bc05bbef4 feat: the first day is the whole product — three ways in, /build, your website in onboarding, Loki on it, help when a build stalls, and the owner's phone fixes (#1110)
* feat(widget): the owner's way into Loki — Continue in Loki, an advisor that knows whose site it is, a header that fits a phone

On 2026-10-09 the owner of heidi.orangecat.ch opened the widget on their
phone and asked for one new page. The widget treated them as a stranger:
it told them which heading to insert and to "keep the structure in a data
file (JSON/YAML)", wrote five invented sentences in the site's own language,
and answered "switch to Loki so I can develop it there with either chat or
terminal" with the same advice a third time. The owner's sign-in lived only
behind "Watch". Once signed in, Review + Stop watching pushed ✕ off the
right edge of the screen.

- widget/continue.ts + src/lib/widget/continue.ts: the thread as one
  message (newest kept, ≤1800 chars) and where it lands in Loki.
- GET /api/widget/continue: signs the person in if needed, checks
  getProjectAccess on the widget's project, resolves the project key and
  redirects into /loki?project=&q= or /terminal?project=&view=terminal;
  a stranger goes back to the site with #loki-owner-denied.
- widget/conversation.ts: "Continue in Loki · Chat → · Terminal →" under
  the composer for the owner; one sign-in link for anyone else after their
  first message; "This is my site — sign in with Loki →" under Loki's
  greeting, on the first screen. The owner pass travels with each question.
- /api/widget/advise + advisor.ts: the pass is verified as ingest verifies
  it; with it the advisor knows the person OWNS the site and Build this
  builds. For everyone, four hands-off rules: never explain how to edit the
  site, never write its content, a build request becomes the one change to
  tap, and "take this into Loki" is answered with where that control is.
- widget/theme.ts: the header's text column shrinks before the actions do;
  Stop watching stays on one line; the continue row wraps on a phone.
- widget/main.ts: the owner is not offered to hide their own tool.
- scripts/test/widget-continue.ts (new), widget-advise.ts: pinned.
- docs/architecture/feedback-widget.md: the row and the route.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N1Yw4cCwXWRP2S5Hj62u2Z

* feat(widget): the loop closes on the site — Your changes, a live announcement, an honest Follow link

"On it — Loki tells you when" was the end of the widget's story, and on the
site Loki never told anyone: the telling went to push and Telegram, the page
the owner came back to said nothing, and "Follow the build" toured the
unchanged page with "let me show you what changed".

- widget/changes.ts: "Your changes" above the thread for the owner — the
  project's recent changes with one word each (Building · On its way · Live ·
  Needs you …), See it → once live, Open in Loki → when something needs them,
  asked for on arrival and every 30 s while something moves. A change this
  browser saw building that is now live is announced once: in the thread when
  the panel is open, beside the launcher (bubble + unread) when it is not.
- POST /api/widget/owner/changes: the one read with the owner pass. Same
  attachFeedbackWork the inbox uses, then src/lib/feedback/owner-view.ts
  writes the owner's words; the work view never leaves the server. No valid
  pass → no rows.
- /feedback/<id>/watch-fix lands on the inbox row while the change is still
  being built; the walkthrough only once it is live.
- The owner's repeated note keeps its follow link.
- widget/continue-row.ts, widget/greeting.ts: split out of createConversation
  (the lint rule caps it at 510 lines; CI caught it at 543).
- scripts/test/widget-changes.ts (new); widget-continue.ts updated.
- docs/architecture/feedback-widget.md.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N1Yw4cCwXWRP2S5Hj62u2Z

* fix(widget): the owner's door is not an .act — the embed test counts those

widget-embed-browser asserts exactly one "as written" link (.act) under the
visitor's last message; the sign-in door under the greeting shared the class
and made it two. Its own class, same look.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N1Yw4cCwXWRP2S5Hj62u2Z

* feat(public): three ways in — build it yourself, with a partner, or let the studio — and every stranger's door ends at /build

The ways to get something built were scattered: the landing page offered
only "Start a project", hiring the studio was a word in the nav, the partner
directory was reachable from OrangeCat's careers page and nowhere here, and
a stranger who watched a fix land on someone else's site was sent to a bare
homepage. "Start a project" at the bottom of six marketing pages went to
sign-IN, and so did a stranger arriving with a brief.

- src/config/build-paths.ts: the one list — yourself (sign-up), with a
  partner (bitbaum.orangecat.ch/partners/), the studio (the commission
  config's hire address) — plus buildPageHref/fromHost.
- /build (public, allowlisted): the invitation, naming the site the person
  came from (validated host only) and the three doors (BuildPaths cards).
- Landing: the "Three ways in" section after "Who it is for"; the closing
  line and FinalCta name the other two ways; FinalCta → sign-up.
- /change and /take send a signed-out person to sign-up with the brief kept.
- Widget: "Made with Loki — build something of your own →" as the last line
  for anyone who is not the owner (/build?from=<host>); the tour's "Get this
  for your site" lands on /build naming the site; the concierge gets the
  same door (appended last — the test addresses the others by index).
- scripts/test/build-paths.ts pins all of it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N1Yw4cCwXWRP2S5Hj62u2Z

* fix(widget): /api/widget/continue is public — it signs the person in itself

Live, the merged route answered a bare 401: the session middleware caught it
before the route could send the person to sign-in. Same list entry as
/api/widget/owner, pinned by widget-continue.ts.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N1Yw4cCwXWRP2S5Hj62u2Z

* test(audit): /build is measured by the responsive audit

A new page has to be a decision — measured, or excluded with a reason.
Measured: it is a public page a stranger lands on from a phone.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N1Yw4cCwXWRP2S5Hj62u2Z

* fix(widget): yours means yours, a review that picks three, the composer above the keyboard

From the owner's phone on 2026-10-09:
- "Your changes" listed a stranger's "so nice picture!" as the owner's own
  request. The strip now shows what the owner asked for and what Loki filed
  itself; visitors' notes are counted ("3 notes from visitors, in Loki →").
- Review answered with five nits (alt text, a renamed button, a table) and
  five identical buttons. The rubric now asks for at most three changes a
  visitor would notice or that fix something broken, and says none is fine.
- With the keyboard open the box being typed into sat half behind it; it
  scrolls into view once the keyboard has settled.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N1Yw4cCwXWRP2S5Hj62u2Z

* feat: the first day is the whole product — your website in onboarding, Loki on it, help doors when a build stalls, the terminal hand-off with its text, a launcher that stays in the corner

From the owner's phone on 2026-10-09, and the three follow-ups named then:

- Onboarding asks for the website (optional). A project created with one
  (`liveUrl` on POST /api/user-projects) gets its widget token at once, so
  the token's origin is the site's; the new step "Put Loki on your site"
  shows the one line to paste, lets an agent add it when there is a repo,
  and opens the site with the owner pass (`openSiteUrl` on the token
  route). Finishing lands on the project, not Control. A refused project
  no longer advances the step in silence.
- A stalled build and a failed kickoff offer the other two ways to get it
  built — find a partner, hire the studio — from the same list as the
  landing page (GetHelpLine), the studio with the brief.
- "Continue in Loki → Terminal" carries the thread: /terminal?q= prefills
  the rail's composer as an unsent draft, and opens the rail sheet on a
  phone (the same path ?explain=1 takes).
- The launcher stays in the corner: a near slot over plain text beats a
  free slot mid-page (heidi.orangecat.ch: the site's own bar took one
  corner and the launcher floated beside a heading). A near sheet still
  sends it climbing.
- Page checks: a small-caps label by design is not a defect, 11.84px is
  not under 12, and one kind of finding is one card (the signature drops
  counts and examples; "30 pieces" then "6 pieces" were two cards).

Tests: onboarding-site-step.ts (new), widget-placement.ts, widget-watch.ts,
widget-continue.ts, build-paths.ts; all widget browser suites pass locally.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N1Yw4cCwXWRP2S5Hj62u2Z

* refactor(widget): keepInViewOnFocus lives in dom.ts — createConversation back under the 510-line cap after the merge

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N1Yw4cCwXWRP2S5Hj62u2Z

* fix(widget): import keepInViewOnFocus — the panel threw at mount and boot swallowed it

An unimported identifier compiles fine with esbuild and fails at run time;
boot's catch hid it, so the launcher rendered and the panel never opened.
Caught by widget-embed-browser.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N1Yw4cCwXWRP2S5Hj62u2Z

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-09 05:10:30 -07:00
CatoandClaude Fable 5.1 d5c6153b5c feat(voice): no-screen mode — run the fleet by ear (#1109)
One tap at /voice opens the microphone and reads the briefing; from
then on the loop is listen → transcribe → act → speak → listen, with
the phone in a pocket. Twelve spoken commands (status, what's
waiting, approve/reject by number, tell <project> to …, what failed,
pause/resume, say that again, quiet, help, end) go through the seams
the screen already uses — decideAction, injectPrompt, fleet-pause,
askLoki — so the page and the headphones cannot disagree. Between
turns the phone polls /api/voice/snapshot every 20 s and announces
the diff: a run finished or failed, a new approval, the builder
offline or back, a project starting work. Bounded to five per poll.

- config/no-screen.ts: the vocabulary SSOT, read by the parser, the
  spoken help and the public page; the test feeds every example
  phrase through the parser.
- lib/voice/commands.ts: an explicit grammar (pure, 35 checks). A bare
  "yes" is not an approval, a bare "stop" is "be quiet", a sentence
  naming no project is a question.
- lib/voice/briefing.ts: the fleet as sentences, and the snapshot
  diff (pure, 12 checks). lib/voice/fleet-snapshot.ts reads the same
  tables as Control; approvals ride only with the private zone open.
- hooks/use-voice-conversation.ts: say() for unasked lines (now while
  listening, queued while busy, held for one listen after an
  interruption) and idle: "listen" so silence re-arms instead of
  pausing. The Loki page's Talk button is unchanged.
- hooks/use-media-session.ts: a generated silent loop holds the media
  session so the headphone button is the orb tap; next = briefing.
- lib/fleet-pause.ts: resumeFleetProjects, the mirror of pause.
- /no-screen public page (nav, matcher, audit lists, copy-truth), the
  sidebar entry under Command, the demo-sandbox classification.
- content/thoughts/the-fleet-in-your-ear.md with a committed SVG, a
  sequence diagram and the seam table; ROADMAP + CHANGELOG entries.

Not yet verified on a locked iPhone in a pocket; the page, the essay
and the roadmap say so.


Claude-Session: https://claude.ai/code/session_01YKx4TPejLvFR9Uj4xrTf6Y

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 04:26:26 -07:00
CatoandClaude Opus 5.5 e09b6fb2f6 feat(auth): OrangeCat sign-in through @bitbaum/accountkit — resolve by sub, never by email; a real error page (#1051)
Loki's OrangeCat provider kept Auth.js's default profile, which carries the
email. For an OrangeCat identity Loki had not seen, that meant: the signIn
callback looked the address up in users, PATCHED that account (image, name)
and stamped its email as verified — on the strength of an address
OrangeCat does not verify — and then the adapter refused the sign-in with
OAuthAccountNotLinked. The provider is now accountkit's (v0.2.1): same
client_secret_post, PKCE and capability scopes, and a profile with no email.

An OrangeCat sign-in resolves its user through accountkit's
withOrangecatIdentity wrapped around the Drizzle adapter, by sub alone
(users.orangecatActorId, else the accounts row of an older link). keepTokens
keeps writing the accounts row, which powers publish/promote/wallet. A new
OrangeCat user keeps its address only when no Loki account holds it; else
email stays null (never a made-up address).

forgot-password keeps Loki's rule (a GitHub/Google account without a
password may set one) but never mails an account only OrangeCat created
(lib/auth/reset-eligibility.ts + test).

pages.error: Auth.js's bare "Error" page is replaced by /sign-in/error,
accountkit's SignInError; Try again goes back to /sign-in, which starts
whichever method the person picks. Added to the responsive audit.

Password, PIN, X and demo accounts are untouched.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 07:51:16 -07:00
CatoandClaude Opus 5.5 77ad544875 feat(terminal): attach from a phone, swipe to scroll, one bar, no dead ends (#1042)
* feat(terminal): attach from a phone, swipe to scroll, and a full screen that is full

Attaching. The paperclip on a phone opened a chooser of capture apps (Camera,
Camera, Recorder, "Photos & Videos") with no way to the screenshot: one file
input with a mixed accept. The composer is chatkit's, so the fix is there
(bitbaum/chatkit: Camera / Photos / Files sheet, one input per source) and
this bumps the pin. Control's own paperclip (attachment-strip) now renders
chatkit's AttachMenu instead of its own mixed input, and a picked PDF gets a
sentence instead of being read as text.

Attaching in the conversation view. It had attach={false}. A message with a
screenshot is folded by the same lib/composer-attachments every dispatch
uses (new /api/control/fold-attachments: the fold and nothing else) and
pasted into the session like any message. sendKey is now one serialized
chain, so Enter can never overtake a long chunked paste.

Scrolling. xterm 6 scrolls on the wheel only, so on a phone a swipe moved
nothing. lib/terminal-touch-scroll.ts turns a vertical swipe into
scrollLines, carries sub-row movement, glides after a flick, and leaves taps
alone. Verified with real xterm in Chromium under touch emulation: 0 lines
before, ~1 line per row of finger travel after. A "Live" button returns to
the newest output while scrolled back.

Full screen. Expanded kept the whole dock (two key rows, mode chips,
composer: more than half the phone), so it bought a few rows and read as
four toolbars stacked under the session. Expanded now collapses the dock to
one bar: Keys and Write open their panel on demand, Esc and Enter stay on
the bar. The phone switch drops Voice (the composer's mic dictates) and its
Loki chip (the header's Loki button is the one entry point).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck

* feat(ux): one composer per screen, one bar on the phone, no dead ends

Verified on the real app (production build, local Postgres, demo tenant,
a stubbed live session) at 320/390/768/1440: responsive audit green on
every page; screenshots of each changed surface.

Terminal, phone. Both layouts are now one bar (Keys / Write; Esc / Enter
while watching) with one panel open. The normal page opens on Write, full
screen on nothing. The stacked dock (two key rows + chips + composer) is
gone from both.

Conversation view. A builder that never sends the transcript used to show
"The conversation isn't coming through … Fleet Runner 0.8.38" — now the
surface shows the terminal for that session and drops the toggle, without
touching the saved preference.

Loki panel. A working run said it three times ("Working · 2 min" /
"Agent is working" / "Agent is generating. Inject to steer…");
railStatusLines prints only lines that add something. In the conversation
view the panel is Ask-only, so the page never shows two composers for one
session. Plain empty copy; the "Full chat" text link is an icon button.

Sheets. On a phone a bottom panel is a real sheet on the bottom edge — it
floated ~90px up, clearing a bottom nav that is hidden while it is open.

Floating clutter. The Ask Loki bubble is gone from /terminal (it sat on
the Loki panel's Send); on phones the feedback launcher hides behind the
bottom nav and "Report a problem" lives in the account menu.

Dead ends. An offline/gated terminal offers "Use this computer" and "Get
Fleet Runner" as buttons. Control's never-connected banner is one
sentence and one button: the duplicate "Start a new project" card goes,
and the five CLI installers — which queued commands no builder would pick
up — only show where a builder can act on them.

Also: no-op input-mode chips hidden in the conversation view; memory
descriptions wrap instead of a hover-only ellipsis; the responsive audit
honours CHROMIUM_PATH. Tests: phone-chrome.ts, railStatusLines cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck

* fix(shell): Report a problem falls back through the router, not location.assign

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck

* chore(deps): pin chatkit to the merged commit of bitbaum/chatkit#7

Same tree as the branch head it replaces (5c2cdd6), which was deleted
after the squash-merge; pinning main's commit keeps the install
fetchable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-05 05:27:53 -07:00
CatoandClaude Opus 5.5 0b2dc9e96d feat(take): "Make it yours" — your own copy of an open-source project, imported and personalised by agents (#1043)
* feat(take): "Make it yours" — your own copy of an open-source project, imported and personalised by agents

/take lists the fleet's MIT projects (SSOT: config/open-source-starters.ts,
an allowlist because the brief has an agent clone the source). Pick one, say
what your copy is for, and the usual project + kickoff pipeline runs with a
brief whose first task is importing it: shallow clone, keep LICENSE, credit
the original, rename it (the original name and logo are not licensed), and
run it only on the person's own infrastructure. The imported repo's own
CLAUDE.md / AGENTS.md are written for OUR box, so the brief names them as
source material, not instructions, and has their deploy workflows removed.

- startBriefProject (lib/kickoff) is the create-or-resume + kickoff that
  /change already did, now shared by both intakes
- KickoffInput.template lets an intake that brings its own code seed "bare";
  the kickoff retry route recognises copy projects by name so a retry cannot
  seed a starter over imported code
- /take is public (proxy), in the public nav and therefore the sitemap;
  /api/projects/from-repo needs a session and is denied to the demo account

Checked in Chromium at 320/390/1440 (?repo preselects, button gated on
text, draft saved, signed-out goes to sign-in and back to /take?repo=…,
no overflow, no page errors). scripts/test/repo-brief.ts, website-brief
and project-kickoff pass; tsc, eslint and check:design clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016RWATe7R8uf25orV7Bh4Uc

* test(take): measure /take in the responsive audit

audit-covers-every-page requires every page to be measured or excluded
with a reason. /take is public, so it joins PUBLIC_PAGES next to /change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016RWATe7R8uf25orV7Bh4Uc

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-05 05:16:02 -07:00
CatoandClaude Opus 5.5 975b06560d feat(change): change your website by saying it — the shared composer with voice, the address found in your words (#1016)
/commission was two empty boxes on a page named after hiring someone. /change is the
fleet composer (chatkit via Loki's Composer: mic + Whisper); each thing said joins a brief
shown back, the address is found deterministically (no model call on an anonymous page),
and the build goes through the unchanged project + kickoff pipeline. /commission 308s here.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 10:56:47 -07:00
CatoandClaude Opus 5.5 7076e0163f feat(site): the public site says what Loki is today — plain words first, depth on /how-it-works and /compare (#1000)
* feat(site): the public site says what Loki is today, in words a newcomer reads

Homepage rebuilt for a first-time, often non-technical visitor: "Describe it.
Agents build it.", one primary action, three plain steps (describe → built
and put online → say what to change on the site itself) with the phone check
as the safety line, three doors (an idea / a website to change / already
running agents), what is inside (Feedback, Watch, chat, Control — no retired
Beacon tier), and where the work runs, honest that the cloud builder is
invite-only during the beta.

New pages: /how-it-works (the short version, then the machinery under the
hood), /compare (Claude Code, Codex, Cursor, Copilot, Devin, Antigravity, Grok
Build, Muse Code, Lovable, Bolt, Replit, v0, Hermes, OpenClaw, OpenHands, Aider
— each row sourced and dated, no prices, and a section on where the others are
better), /why (mission + principles merged; /mission and /philosophy
redirect). /frontier retired (its producer was removed 2026-09-25) → /thoughts.

Also: nav rebuilt (Start / Learn, bitbaum added), footer names bitbaum, kicker
"Beta" not "Personal Systems", one description everywhere, no "Live" badge,
"pilots, concepts" not "client work" on /fleet, Heidi's blurb in its own
current words, dead Lightning address replaced (getalby 404 → coinos 200),
sitemap derived from the public nav (was 5 of ~25 pages), doubled /commission
title. public-copy-truth.ts pins all of it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* chore(css): drop the ui-frontier-* rules the retired /frontier page used

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(audit): measure /why, /how-it-works, /compare; list the retired marketing pages as redirects

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(copy): assemble the retired name so the guard does not trip its own check

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 03:21:12 -07:00
Cato b58f514ef6 Add scoped Bitbaum studio portal and keep Loki self-service free (#995)
* feat: start request-scoped Bitbaum portal and studio review

* test: prove scoped portal boundaries and restore studio record join

* fix: support canonical studio origin and readable partner review

* fix: support canonical studio origin and readable partner review
2026-09-30 14:49:38 -07:00
Cato db446e2c69 feat(commission): start website changes from a URL and brief (#987) 2026-09-30 08:03:14 -07:00
CatoandClaude f5d9790252 feat(projects): Watch it work — a project's run as a live, readable thread (#963)
Asked for 2026-09-28: "I'm not sure if I can actually see the chat, just like
here in Claude, and watch how things get implemented." What existed was the
raw terminal (a TUI on a phone) and a one-line phase chip.

/projects/[id]/watch tells the latest run as a conversation:
- You: what the agent was asked (prompt_history.resolved_prompt by run id),
  clamped with "Show the full brief".
- Loki: every hop the run declared (run_events) in words, heartbeats
  collapsed into one "working" line stamped with the latest, blocked hops in
  the warning tone with the reason; older hops fold once there are more than
  six.
- The agent's screen: the last lines it printed, ANSI and box borders
  stripped, refreshed every 6s while it works.
- Agent: its handoff summary (done / next / commit), or what went wrong.
- One status card from the same hydrate + work-phase as Terminal's rail and
  Feedback's Watch, with the terminal offered only when a session exists.
- Setup steps while a server-run kickoff is still going.

The pure half is lib/project-watch (tested); /api/projects/[id]/watch serves
it; the screen capture moved to lib/peek-tab-client so Control's peek drawer
and Watch share one copy. "Watch it work" / "Watch it start" in the kickoff
card and the build strip now open this page instead of Terminal.

Also: the cloud-builder-offline ask reads "The cloud builder is offline — the
work waits and starts when it reconnects" instead of naming the box-runner
process.


Claude-Session: https://claude.ai/code/session_016aYbEpWEk7bkf1qt44Xtbh

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-28 08:54:20 -07:00
CatoandClaude Opus 5.5 ef96be9b91 feat(projects): invite anyone into a project by email, account or not (#872)
Inviting a collaborator required them to already have a Loki account.
The members route answered "No Loki account uses that email. Ask them to
register first." — a dead end with no way to ask. The only other invite
path creates a LOCAL-PASSWORD account and adds it to the inviter's whole
org: broader than one project, and a second identity path beside
OrangeCat, which fleet STACK.md says our own products must not grow.

Now any email works:

- Has an account: added at once, as before.
- No account: a one-time invite is created, emailed when mail is
  configured, and ALWAYS returned as a link to copy — an email that was
  sent is not an email that was received. They open it, sign in with
  OrangeCat (creating that account on the way), and join exactly this
  project with exactly the role chosen. No Loki password anywhere.

The link is bound to the invited email. A token is a bearer secret that
gets forwarded; on its own it would let whoever holds the link in. The
wrong account is told which address it was for, masked (ge•••@gmail.com)
because the link may be in the wrong hands.

Only a sha-256 of the token is stored, so a leaked backup cannot be
replayed as working links. Acceptance spends the invite and grants the
membership in one transaction guarded on accepted_at/revoked_at IS NULL,
so a double click or two tabs grants once. Re-inviting the same email
revokes the old link rather than leaving two live ones.

"emailed" is only reported when mail is configured AND the send
succeeded: sendEmail returns quietly when mail is off, so trusting the
call alone would have claimed an email nobody sent.

The panel moved from a collapsed "Editors" disclosure inside the
Feedback tab to the top of the project's Settings tab — where every other
product keeps "people with access", and where George looked for it. It
now offers Editor or Viewer, lists pending invites, and lets the owner
withdraw one. Editors do not see pending invitees' emails.

The accept API lives under /api/invitations/project/ so it inherits the
existing public-route exclusion instead of widening the proxy allow-list.

Migration 0080 is hand-written, like 0073-0079: drizzle/meta's snapshot
stops at 0072, so `drizzle-kit generate` diffs against a stale picture —
it believes beacon_sessions still exists and calendar_busy does not, and
would have emitted a DROP and a duplicate CREATE alongside this table.

Tests: 14 checks on the acceptance rule, proved by mutation — removing
the email binding turns the suite red. tsc clean, lint 0 errors,
check:design ok, format ok, test:unit 260/260, test:home 130/130.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 02:34:14 -07:00
CatoandClaude Opus 5 0464358605 fix(orangecat): the wall went silent, and every link on it pointed at a login (#839)
* fix(orangecat): the wall went silent, and every link on it pointed at a login

Three failures on one seam, each invisible from inside Loki because the
symptom is on somebody else's page.

THE WALL STOPPED. OrangeCat rotated this account's refresh token at
2026-09-17 07:42:44 and issued a replacement that is still valid and was
never used; Loki kept presenting the one that rotation REVOKED at that
instant. Every refresh since answered 400, getOrangeCatLink returned null,
and every promote was skipped as "feature unavailable" — across every
project, for four days. The last entry to reach any OrangeCat wall was
posted eight minutes before that access token expired. The only trace was
66 console.warn lines on the box.

Verified by hashing the stored token and finding its row in OrangeCat's
oauth_refresh_tokens: revoked_at = 2026-09-17 07:42:44.

Three rules follow, none of them a repair: one refresh at a time per
account (the backfill cron fires up to 50 promotes at once, so a burst was
guaranteed to look like a broken link); a spent refresh token is never
written back (`?? account.refresh_token` reads as defensive and stores a
credential that can only ever fail); and a dead link raises an alert,
because re-linking needs a human click and nobody clicks what nobody sees.

EVERY LINK POINTED AT A LOGIN. Wall entries carried a hardcoded
`${LOKI_PUBLIC_ORIGIN}/projects` — the private dashboard. A stranger
following "via Loki" from Heidi's OrangeCat page got a sign-in form; the
owner got all 36 projects instead of the one the entry was about. Twelve
such links on that page alone. The right page has existed the whole time:
/fleet/<slug>, now derived exactly as the register derives it.

THAT PAGE WAS UNREADABLE ON A PHONE. Measured at 390px: 737px of roadmap
content in a 390px column, clipped by .ui-public-surface's own
overflow-x:hidden — 47% of every milestone line unreachable, no scrollbar,
no ellipsis. Cause: unbreakable GitHub URLs in prose. Fixed on the
ui-public-* prose tokens in globals.css, so it holds for every public page.
Also on that page: three of six "changelog" entries were internal dispatch
bookkeeping (two announcing a FAILED dispatch, stored truncated mid-word),
a `Source: <url>` provenance pointer rendered as an untickable milestone,
"0% recorded progress" under every item, and a raw ISO timestamp.

NO GATE COULD HAVE CAUGHT IT. audit-covers-every-page skipped every route
containing "[", so /fleet/[slug] — the template behind all 36 public
profiles — had never been measured at any width. Dynamic routes now take
the same decision as static ones: a concrete sample (/fleet/heidi,
/u/cato, one essay) or a line in NOT_MEASURED saying what it would take.
The overflow detector could not have seen it either — it reads
documentElement.scrollWidth, which the clip holds at the viewport width —
so there is a new one asking the reader's question: can I get to the rest
of this sentence? A listed route that 404s now fails, because a rotted
sample looks exactly like a covered route.

Two gates lied and are fixed with it: the audit's list parser ended an
array at the first "]" in a comment, and alert-registry read
`grant_type: "refresh_token"` as an unregistered alert type.

AND THE FEED IS NOW A CHOICE. Publishing did two things under one press:
it created the public page and enrolled the project in a live feed of
everything its agents did, with no switch — "stop telling everyone what my
agents are doing" cost you the funding page. user_projects.orangecat_autopost
separates them, three-state like auto_ship (null = nobody has chosen, and
an unanswered question is not consent). Reversible either way, without
touching the page. Already-published projects are backfilled to true:
introducing consent must not silently stop a feed someone relies on.

Left on, it is the strongest thing a public project page can carry —
dated evidence of work, which is the half of a transparency claim that
better copy cannot manufacture.

/fleet/[slug] also now reads CONSENT rather than ownership (it resolved any
slug in the owner's map, which the catalogue beside it has never done), and
a slug with no public profile gets an invitation instead of a dead end.

verify: tsc, lint (0 errors, 2 pre-existing warnings), test:unit 231/231.
The page itself is measured against prod after deploy — it cannot be
measured before.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(smoke): the pre-push gate blocked a push over another app's dev server

`/api/health` answering with a `"commit"` field was the whole identity test,
and every app in the fleet serves that route from the same template. On
2026-09-22 a Heidi dev server held :3000 first; Loki's 48-route auth smoke ran
against it, reported 23 routes returning 404, and failed the push — a verdict
about somebody else's app, delivered as a verdict about this one.

A name cannot be mistaken for another name: health now says which app answered,
and the hook asks for "loki" instead of for a shape. Additive to the payload,
so the deploy assertion, the uptime sweep and check-deploy-ref are unaffected.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 07:04:07 -07:00
CatoandClaude Opus 5 cdff69e3c2 test(audit): make the page list earn it, instead of asking it to (#818)
responsive-audit.mjs opens with the argument this enforces — "a rule enforced
on the pages that happened to be reachable is a rule with holes exactly where
nobody looked, so the list has to earn it". It could not earn it alone,
because nothing ever compared the list to the app. Twenty-four static page
routes were in neither list.

Comparing them found four that matter:

  /my-feedback  the REPORTER's view — the one feedback surface whose reader
                may be a stranger on someone else's site, and one AGENTS.md
                already records as having been forgotten ("the three-line
                clamp shipped to the operator inbox never reached it").
  /license      public, 200, and already missed once: the MIT relicense fixed
                LICENSE, README and Terms and left this page telling readers
                they "may not" host or repackage (loki#802).
  /privacy      the other two pages a stranger is entitled to read, neither
  /terms        of them ever measured.

Plus /unlock, /releases, /setup and the two /docs guides. All twenty new
checks pass, so the gap was not hiding broken layouts here — but it was
hiding /feedback's, which clipped its own stats mid-word on a phone until
#813, and it would hide the next one.

The rest are excluded BY NAME WITH A REASON in NOT_MEASURED: retired redirect
stubs that render nothing (/agents, /atlas, /duet, /digests, /decisions,
/history, /blog), an action rather than a page (/sign-out), and flows that
need state a headless run cannot mint — a claim token, a verification token,
a connected Fleet Runner.

scripts/test/audit-covers-every-page.ts then fails when a page.tsx is in
neither, so adding a page becomes a decision about whether it is measured
rather than a silent omission. It also fails on an exclusion whose page no
longer exists — a stale reason is one nobody re-examines — and refuses a route
listed in both.

It asserts its own parse first. If the regex that reads those lists ever stops
matching, every other check would pass vacuously, which is precisely the
failure this file exists to prevent.

Mutation, both ways: removing /my-feedback from the audit fails it, and
excluding a route with no page fails it.

verify: format:check, tsc, lint (0 errors, 2 pre-existing warnings),
check:design (11), check:desktop, test:home 130/130. test:unit 226/228 —
activity-time-zone-stable and telegram-allowlist need a live local server and
fail identically on pristine origin/main.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 14:09:32 -07:00
CatoandClaude Opus 5 1f40a7c0d5 fix(ui): five scroll strips that hid their own scrollbar and never said so (#813)
Started from a real report: the buttons on /feedback look thrown together on a
phone. They do, and the page had never been measured — /feedback and /robots
were reachable from the sidebar and audited by NEITHER list in
responsive-audit.mjs. The paragraph above that list argues exactly this: "a
rule enforced on the pages that happened to be reachable is a rule with holes
exactly where nobody looked — so the list has to earn it." Both are in it now.

WHAT THE PHONE ACTUALLY SHOWED

  /feedback at 390px ended mid-word — "32 Shipped 18 in…" — with the third
  stat entirely off-screen. `.ui-stat-row` below sm is a flex strip with
  `overflow-x-auto` AND `[scrollbar-width:none]`: no scrollbar, no fade, and
  nothing whatever to say the row continues. A clipped word does not read as
  "swipe me", it reads as a broken layout.

  The repo already had the answer — `ui-scroll-fade-right`, which masks the
  right edge below sm and nulls itself at sm. Four more strips were missing it:

    ui-stat-row         Feedback, Goals, Memory, Money, Habits
    ui-filter-chip-row  EventsGrid — the other FOUR call sites already had it
    ui-inbox-projects   Control's inbox
    ui-activity-tabs    the Activity tab row
    ui-term-key-lane    the phone key deck

  ui-filter-chip-row settles the question of whether this was a decision: the
  same class carries the fade at four of its five call sites.

A COMMENT THAT DESCRIBED A LAYOUT THAT DOES NOT EXIST

  StatRow's doc said the row is "two columns below sm" and that the odd card
  spans via `:last-child:nth-child(odd)`. No such rule has ever existed in
  globals.css — the layout was replaced by the scroll strip and the
  description was left behind. That is worse than no comment: it sends the
  next reader hunting for a rule to adjust that is not there. Rewritten to
  describe what the CSS does.

THE RATCHET

  scripts/test/scroll-strips-have-an-affordance.ts fails on any strip that
  scrolls horizontally AND hides its scrollbar AND offers no fade — reading
  both the JSX and the ui-* class bodies, since .ui-stat-row hides its
  scrollbar inside globals.css and its className reads innocent.

  Its first cut reported the file it had just fixed, because it matched the
  class name in the explanatory PROSE above the component. It reads className
  attributes only now. A detector that cannot tell code from commentary
  invents work.

  Mutation: removing any one fade fails the suite.

verify: format:check, tsc, lint (0 errors, 2 pre-existing warnings),
check:design (11), check:desktop, test:home 130/130. test:unit 223/225 —
activity-time-zone-stable and telegram-allowlist need a live local server and
fail identically on pristine origin/main.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 11:52:27 -07:00
CatoandClaude Opus 5 04cedba195 Loki's public face belongs to the tenants who agreed to be on it (#798)
* fix(setup): the documented local setup produced a broken app

Followed README.md and .env.example exactly on a clean checkout and got an
app that renders but cannot read a session. Three separate gaps, each on the
documented path:

- AUTH_TRUST_HOST was undocumented. src/auth.ts gates trustHost on it, and
  scripts/hetzner/gen-env.sh writes it on the box — but .env.example, the
  README's "minimum local .env.local", docker-compose.yml and loki-app.sh all
  omitted it. Unset, Auth.js answers EVERY /api/auth/session with 500
  UntrustedHost. Verified: 500 before, 200 after, nothing else changed.
  The auth.ts comment claimed the local production server set it; it did not.

- The compose db image has no pgvector. knowledge-embeddings.ts declares
  vector(384), so `drizzle-kit push` dies on the first table with
  `type "vector" does not exist` and leaves an EMPTY database — which reads
  like a broken checkout rather than a missing extension. Switched to
  pgvector/pgvector:pg17 and added an initdb script that creates it before
  the migrate service runs.

- drizzle.config.ts never loaded .env.local, though a dozen scripts under
  scripts/db and scripts/test do. `pnpm run db:push` therefore threw
  "DATABASE_URL is required" at someone who had just set DATABASE_URL where
  the README told them to. An exported variable still wins, so CI and the box
  are unaffected.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJkpuZ2F3GWrB6TLycwy4A

* fix(projects): the empty state named a button that does not exist

A new account with no projects is told to "Register your first project with
'New project' above". There is no "New project" control on the page — the
button reads "Add", and the dialog it opens is titled "Add Project". The
component file is called NewProjectButton.tsx, which is most likely where the
copy came from.

Found by signing up as a new user and following the onboarding instruction
literally: the first thing the product asks you to do names a control you
cannot find. Now says "Add", matching what is rendered.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJkpuZ2F3GWrB6TLycwy4A

* feat(fleet): a project reaches Loki's public catalogue only by consent

/fleet is unauthenticated and speaks for the PRODUCT, not for a user. It
resolved a single account — getSelfImprovementTarget(), "whoever owns the
oldest entity named loki" — and published every project that account had.
Two things were wrong with that in a multi-tenant product:

  1. No decision was ever recorded. A project was on a public page because it
     existed. Every other public surface here already goes through
     getPublicProjects (the landing hero, /u/[username]); /fleet was the only
     one reading the unfiltered query.
  2. WHICH account got published was a side effect of the self-improvement
     loop's notion of "which product am I improving". Reseed that entity and
     the next-oldest match's whole project list becomes Loki's front page.

So consent is now a stored property of the project:

- user_projects.listed_publicly, DEFAULT FALSE. The default is the point —
  signing up must never enrol a tenant in the product's shop window.
- getPubliclyListedProjects() reads consent instead of ownership, across all
  accounts, which is also what makes the page meaningful with more than one
  user. /fleet no longer selects by owner at all.
- A per-project toggle on the project workspace, beside the existing
  "Publish to OrangeCat" opt-in and reversible from the same control.
- 0075 backfills the account publishing the catalogue today, so the live page
  is unchanged for it while everyone else starts at false.

Also: FleetRegisterNote told EVERY account "19 sites are hosted on the box
with no project here" — apps.conf describes one box and is a file in this
repo, so a brand-new user was being told about sites they do not own. It now
renders only for the account that operates that box.

A user's own profile (/u/[username]) is deliberately untouched: that page is
the user speaking about themselves, and it was already scoped.

scripts/test/public-catalogue-consent.ts pins all of it — swapping the query
back is a one-word change, and a comment cannot hold that line.

Verified against a real database: consent false -> absent from /fleet,
true -> present, toggled both ways through the UI.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJkpuZ2F3GWrB6TLycwy4A

* feat(public): what a signed-out visitor sees is a decision, not an accident

Answers "whose projects does a stranger see on Loki?" — with three tiers
instead of three different hardcoded owner lookups.

THE PROBLEM. Loki is multi-tenant and the founder is tenant #1, but every
public surface resolved an owner and published whatever that account held:

  - the landing hero  → getHeroFleetSnapshot(getDefaultUser())
  - /fleet            → getSelfImprovementTarget()  (fixed in the last commit)
  - the /projects note→ nothing at all

Three answers to one question is three chances to be wrong, and the landing
was the worst of them: it never consulted consent at all. Verified locally —
a project with listed_publicly = false was rendering in the hero console.
It also ordered by a hardcoded FLAGSHIPS = ["loki", "orangecat"], the ad-hoc
version of "featured", which could only ever name the founder's own projects.
The same list sat in /u/[username], where it reordered EVERY tenant's profile
by two names they will never have.

THE MODEL. src/db/queries/public-visibility.ts is now the one place that says
what a signed-out visitor may see:

  1. AGGREGATE  — fleet-wide counts. Identify nobody, need no consent, and
                  grow honestly as Loki gains users.
  2. CATALOGUE  — /fleet: projects whose OWNER opted in (listed_publicly).
  3. SHOWCASE   — landing hero: the catalogue narrowed to what the OPERATOR
                  featured (featured_at). Curated space cannot be first-come.

Two gates because they answer to different people: consent is the tenant's
and may be withdrawn; featuring is the operator's editorial act. The showcase
predicate is BUILT ON the catalogue predicate, so revoking consent drops a
project off the homepage immediately even while it is still featured —
verified all three ways against a real database.

This is the doctrine site_feedback.featured_at already had ("raw visitor text
NEVER auto-publishes"). Projects now work the way feedback already did.

Featuring is authorized by isSiteOperator (users.is_default — the account made
at /setup, so it means "runs this instance" for self-hosters too) and lives on
its own query rather than riding patchProject, because it is the one project
field a tenant must not set for themselves. It also refuses to feature a
project whose owner has not consented.

UI: two separate controls on the project workspace, deliberately not merged —
"List publicly" (owner) and "Feature" (operator, shown only to them, and
explaining itself when consent is missing).

ALSO, from auditing the public pages at 320/390/768/1440:

- /fleet had 19 sub-44px tap targets — every one the site address that is the
  whole point of the row, and the only sub-44px targets left on any public
  route. .ui-public-fleet-site was missing from the touch floor AND was an
  inline box, where min-height does nothing. Both fixed; now zero.
- The responsive auditor EXCLUDED public routes, deferring to `smoke` "which
  already covers them" — smoke asserts HTTP status, which says nothing about a
  layout. So the pages a stranger sees first were the only ones with no
  responsive coverage. They are in the auditor now and need no session, so a
  session is required only when authenticated pages are requested.

No horizontal overflow at any width, before or after.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJkpuZ2F3GWrB6TLycwy4A

* fix(fleet): a phone spent a screenful on filters before the catalogue

Measured at 390x844: the first project row sat at y=1020px. Four facet rows
(Where / Kind / For / Missing) took 366px of that, so you scrolled past more
than a screen of controls before seeing any of the thing they control — on a
page whose entire job is to show a catalogue.

The rows now live in a <details> that is collapsed below md and forced open
from md up, so desktop is unchanged and the phone leads with content:
first row y=1020 -> 699. The summary carries a count of active facets,
because a filter you cannot see is one you forget you set — and then an empty
result reads as a broken page rather than a narrowed one.

<details> rather than state, because this page deliberately ships no
JavaScript ("the address bar is the state") and a filter panel that needed a
bundle to open would be the one thing on it that did.

One trap worth recording: hiding the closed panel has to be EXPLICIT. The UA
sheet hides a closed <details>'s children with display:none, but author styles
outrank the UA sheet and .ui-fleet-facet-row is `@apply flex` — so the first
version rendered a toggle that changed nothing, with the element correctly
reporting open=false while all four rows stayed visible. Verified both states
at both widths after the fix.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJkpuZ2F3GWrB6TLycwy4A

* feat(public): credit the builder, ask before publishing, stop renting the box

Four things, all following from the same rule: Loki is multi-tenant, so its
public face belongs to the tenants who agreed to be on it.

1. ATTRIBUTION. A showcased project now carries a byline — @handle linked to
   /u/[handle], display name when there is no handle, and NOTHING when there is
   neither, because a stand-in label is a name we would be inventing for
   somebody. Showing a tenant's work unattributed reads as "our projects",
   which is untrue and is the opposite of why a showcase exists; being credited
   and linked is also most of what a tenant gets back for consenting. Joined in
   the query rather than fetched per row.

2. LOKI ASKS. Consent was reachable only from a toggle nobody knew about, and a
   control nobody finds collects exactly one answer. The empty catalogue that
   follows is what gets "fixed" by widening the query again — the bug 0075
   removed. So the project workspace now invites the owner once, and
   listing_prompt_dismissed_at takes no for an answer: per project (declining
   for a client build says nothing about the open-source one beside it) and in
   the database (a refusal that resets on a new device is a product that nags).
   The rule lives in src/lib/listing-invitation.ts, pure and unit-tested. The
   bar is repo + active, deliberately NOT a live URL: /fleet's own facets list
   "Being built" beside "Live", so requiring a deployment would ask only the
   projects that least need the exposure.

3. THE BOX IS NOT THE FLEET. apps.conf describes ONE box and is a file in this
   repo, and unmatched entries MINTED rows — so a Loki with one consented
   project still published 19 sites belonging to someone the viewer has never
   heard of. buildFleetRegister now takes includeUnlinkedSites, true only for
   the operator, for whom those rows are the entire point (the register read
   sideways is a to-do list). A hosted app still ENRICHES a project that
   exists, so a consented project keeps its real address either way; only row
   creation is gated, because only row creation publishes something nobody
   asked to publish. Verified: operator sees 20 projects / 19 sites, the public
   sees 1 / 0.

4. THE COPY. "This is the studio's whole catalogue" was true when one account
   was the whole fleet. It now says what the page is: projects their owners
   chose to show.

Also, from re-auditing: .ui-public-fleet-name (the row's PRIMARY link) measured
21px tall on a phone. It had been invisible to every previous audit because
while the page listed hosted sites alone, nothing in a row was a link at all —
the fix in 3 is what made a real project row render and the gap appear. Same
cause as .ui-public-fleet-site last time: the coarse-pointer floor sets
min-height, which does nothing to an inline box.

Every public page: zero horizontal overflow and zero sub-44px targets at
320/390/768/1440.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJkpuZ2F3GWrB6TLycwy4A

* fix(home): the hero console had an empty third column

Making the hero tenant-agnostic dropped "runs this week", because the old one
counted getRecentOrchestrationRuns(userId) — one account's week, which is not a
number a visitor should be shown. But the console's metric row is grid-cols-3,
so removing it left a visibly empty third of the panel. Caught by looking at
the rendered page rather than the diff.

Restored fleet-wide, counted the same way as the other two: it is the metric
that answers "is anything actually happening here", and an aggregate across
every tenant identifies nobody, so it needs no consent and grows with the
product instead of describing one account.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJkpuZ2F3GWrB6TLycwy4A

* fix(footer): the studio's sites were labelled as Loki's fleet

Every public page's footer lists 14 sites generated from apps.conf under
"Part of the fleet — 14 more sites". apps.conf describes ONE box, the
studio's, and several of those sites belong to clients — so on a multi-tenant
Loki the label told every visitor that one account's client work was what Loki
is. Same error as the /fleet lede, and the same fix: say whose they are.

"Built by the studio" now, and the link beside it points at the tenants'
catalogue by its real name rather than calling it "the whole register".

Deliberately a COPY change and nothing more. The links themselves stay, all
14 of them: they are real work, several had no inbound link from anywhere
before this block existed, and the cross-linking is the entire reason it is
here. Removing them would trade a genuine asset to fix a sentence. Only the
claim was wrong.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJkpuZ2F3GWrB6TLycwy4A

* fix(home): the hero console looked broken with nothing featured

0076 deliberately does not backfill a feature stamp — featuring is an
editorial act nobody has performed yet — so the live hero will really render
with zero project rows until someone features something. I had asserted that
was fine without looking at it. It was not.

The bar carries mb-4 + border-b and the metrics carry mt-4 + border-t, so with
no rows between them the panel drew TWO horizontal lines with 32px of nothing
in between: the shape of content that failed to load, on the first screen of
the product.

The metrics now sit flush under the bar's own border in that state, which is a
panel with nothing to list rather than a panel that broke. Verified in both
states: with rows the divider is back and the flush class is absent.

Not fixed by falling back to showing consented-but-unfeatured projects, which
was the tempting option: the invitation asks permission for the public fleet
page specifically, so putting those projects in the hero would take more than
the owner agreed to.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJkpuZ2F3GWrB6TLycwy4A

* fix(fleet): an empty catalogue told visitors to clear filters they never set

With nothing listed, /fleet rendered "Nothing matches that. Clear the filters →"
— to a visitor who had set no filters, offering a link that changes nothing.
That is the FIRST thing a freshly self-hosted Loki ever says on that page, and
it reads as a fault rather than an empty shelf.

Two states now, told apart by `rows` (the whole catalogue, before the query)
rather than `result.rows` (after it):

  nothing listed at all → says so, and says why: owners choose which of their
                          projects appear, and nothing is published without
                          them saying so. Links to what Loki does.
  filtered away        → unchanged: "Nothing matches that" + clear the filters.

Found by putting the local database into the state a new install starts in,
rather than only the state mine happened to be in.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJkpuZ2F3GWrB6TLycwy4A

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-20 06:30:17 -07:00
CatoandClaude Fable 5.1 95c40a9cd8 refactor: rename the product from FleetCrown to Loki (#695)
The product, its assistant, the repo, the host and every unit on the box now
share one name. 638 files, ~3,000 mentions: UI copy, config, env keys
(FLEETCROWN_* -> LOKI_*), systemd units (fleetcrown-* -> loki-*), docs,
articles, the deploy workflow other repos reuse, and nine file names.

- Three article slugs carried the old name and had been shared; permanent
  redirects keep those links alive (next.config.ts).
- test-no-retired-name.sh now also forbids the old product name across the
  whole repo, so the rename cannot creep back through templates and examples.
- ASSISTANT_STACK collapses the product and the assistant into one entry,
  because they are now the same name.

Infra was cut over ahead of this merge: /opt/loki, loki-* units, the `loki`
database and role, loki.orangecat.ch (old host 308s to it; /api, /widget,
/embed keep proxying), GitHub repos bitbaum/loki and bitbaum/loki-releases.
The Resend sending domain stays fleetcrown.orangecat.ch until the new domain
is verified in DNS.


Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 16:13:10 -07:00
5e4192e4d1 fix(control): stop offering back the prompts nobody reuses, and the clamp that never clamped (#482)
Found by using /control in a browser as a user, on a phone-width window,
start to finish: pick a project, type a prompt, send it, follow the outcome.

1. "PASTE FROM HISTORY" WAS SHOWING THE OPPOSITE OF WHAT IT PROMISES

The card offered back conversational asides — "you do it. open in browser and
do it" — as reusable work. Not a rendering bug: those really were dispatches.
The selection was wrong.

Measured on prod, 30 days: 1859 distinct custom prompts, of which 1823 (98%)
were sent exactly ONCE. The query ordered by recency, so it surfaced the three
most recent one-offs — by definition the prompts least likely to be wanted
again — while the genuinely reused ones sat unoffered: "continue" 115×, a
git-diff review prompt 63×, "go ahead" 14×, "keep going" 8×.

Requiring two uses cuts the pool from 1859 to 36 and leaves exactly what the
feature is named for. Nothing is lost: Activity keeps every dispatch with a
re-run control. One-offs just stop competing for space on the card.

2. THE CLAMP I SHIPPED IN #479 WAS INERT, AND I COULD NOT SEE IT

`block ... line-clamp-2` computes to `display: block; -webkit-line-clamp: 2`.
`-webkit-line-clamp` does nothing without `display: -webkit-box`, and
Tailwind's `block` utility overrode it. It LOOKED fixed because an unclamped
box just wraps — which reads fine until the sentence is long.

Checked live in the browser: a 460-character next_step grew that box from 48px
to 96px and pushed the composer, the thing you act with, off the bottom of the
viewport. So my "it renders fully now" was measuring the ABSENCE of a clamp.

Dropping `block` makes it work; three lines, not two, so a typical next_step
(~256 chars) still reads in full and a pathological one is bounded and
reachable (clicking loads the whole text into the composer).

THE GATE: responsive-audit now flags a line-clamp that is declared but not
enforced. It cannot test `display === "-webkit-box"` — Chrome reported
`flow-root` for a clamp working correctly — so it tests BEHAVIOUR: an element
declaring N lines that renders more than N. Run against live prod it says:

  "Suggested next (profile)…"[ui-link-subtle-button.block.line-clamp-2]
  declared 2 lines, renders 4 (display:block)

naming the offending class. That is this exact bug, caught in shipped code.

3. A FAILURE MESSAGE THAT NAMED THE WRONG AGENT

A real dispatch returned: "launched claude (pty) + injected, but the agent
isn't generating yet … Retry, or switch the project agent away from grok if
this repeats." One sentence naming the agent that ran and, as advice, one that
did not — a literal left over from when grok was the default. `agent` was in
scope; the auth branch above it interpolates it correctly.

Gated in failure-message-pairing: a failure message that NAMES an agent must
interpolate ${agent}. Stated that way rather than "no agent ids", because the
auth message legitimately says `~/.claude/.credentials.json` and `claude
setup-token` — a real path and a real command — and already names the right
agent. The check joins `+` continuations so a message split across two lines is
judged whole; per-line it got that one wrong.

Mutation-proven: restoring the "grok" literal → 20 passed, 1 failed, naming the
line. Restored → 21/21.

pnpm run verify passes.


Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 12:20:44 +00:00
60dac488b1 fix(control): a sentence you can read, and the check that noticed it (#479)
/control's "Suggested next" line carried `truncate` — one line, ellipsis. On
prod that rendered "Suggested next (profile): Conduct a 1-month baseline m…":
594 of its 644 pixels hidden at 390px, 432 at 1440. The remainder existed
only in the `title` tooltip, and a phone has no hover.

It is the card's one actionable sentence, and clicking it loads the text into
the composer — so the sentence IS the decision, and a tenth of a sentence is
not one. OutcomeStreak.tsx, in this same directory, documents having already
fixed this exact mistake for its glyph row. /activity has always clamped the
same "what's next" content to two lines (ActivityEventRow). This makes the
three agree: line-clamp-2.

Same class in the composer's status line, worse: it shared a row with four
icons and Send, leaving it 72px — measured at 0% shown at 320px and 14% at
390px. Shorter copy cannot fix that; no sentence fits 72px. It needed the
width, so below `sm` it wraps onto a row of its own (order-last w-full) and
from `sm` up it stays exactly as it was.

THE GATE, and why it is not a lint rule.

responsive-audit already looks for clipped text, and deliberately EXEMPTS
`text-overflow: ellipsis` as "a deliberate design choice". That exemption is
right for what it was written for — a project name in a narrow rail, a
filename, an id — and 76 files under src/components truncate exactly that way.
A rule banning `truncate`, or `truncate` beside a `title`, would fire on ~42
legitimate sites and be turned off within a week.

The distinction is prose, which a static rule cannot judge but a real viewport
can measure. So the check lives where the viewports are: flag an ellipsis only
when the text READS as a sentence (>=60 chars, >=8 spaces — an id has neither)
AND under half of it is visible (a chip losing its tail is fine; a line showing
its first eight words is not).

Proven by mutation, in one environment, with only the classNames differing:
  - with `truncate`  -> 2 findings ("40% shown, -552px", "22% shown, -402px")
  - with the fix     -> silent at 320 / 390 / 768 / 1440
and it flags none of the 76 legitimate truncations.

Verified against prod before the fix (2 findings at 320 and at 390, silent at
768/1440 where the line fits) and against a local server after it.

npm run verify passes.

Separately observed and NOT addressed here: /control logs a React #418
hydration mismatch at every viewport.


Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 10:30:47 +00:00
GandClaude Opus 5 caa0e41c3b chore: add a formatter (#449)
* chore: add a formatter, matching the style this repo already writes

singleQuote=false was chosen by counting this repo's own
imports, not by fleet decree. The fleet is genuinely split and the two repos
that already had a .prettierrc disagreed with each other, so there was no
standard to restore. Quote style does not cross repo boundaries; having a
gate does.

Markdown is ignored for now — prettier rewraps prose, which would bury the
real diff.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* style: format with prettier (1062 files)

Mechanical. No behaviour change. This SHA is listed in
.git-blame-ignore-revs so `git blame` skips it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* chore: teach git blame to skip the reformat

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(lint): reattach two guards the reformat detached

Both effects were one-liners, so a trailing eslint-disable-line covered the
setState call:

  useEffect(() => { setSelected(new Set()); }, [q.length]); // eslint-disable-line ...

prettier expanded the block. The comment stayed on the closing line while the
call moved above it, so the guard protected nothing and the rule its author had
deliberately silenced failed the build.

This is the second shape of the same defect — hirnli had the eslint-disable-NEXT-line
variant. Both come from the same fact: an eslint directive binds to a line
number, so reformatting can silently unbind it, which makes 'mechanical, no
behaviour change' false for any bulk reformat.

* chore(desktop): bump the runner version the reformat requires

desktop-release-drift enforces that anything built into Fleet Runner which
differs from the last released tag must carry a version ahead of that tag —
main read 0.8.15 and fleet-runner-v0.8.15 already shipped.

A whole-repo reformat changes bytes under desktop/, so the gate fires. The
alternative was adding desktop/ to .prettierignore, which would buy a quiet PR
by carving a permanent hole in the formatter's coverage — the precise shape of
silent drift this test was written to catch. Bumping is what the rule asks for
and costs one patch release whose only content is whitespace.

* chore: merge main and re-format

A whole-repo reformat conflicts with any concurrent commit, and a conflicting PR
runs no checks at all while reporting nothing. Conflicts resolved to main,
which is correct because this branch changes formatting and nothing else.

* chore: leave desktop/ out of this reformat

desktop-release-drift is right to refuse this. Everything under desktop/ is
built into Fleet Runner, so changing it means shipping: bump the version AND add
a FLEET_RUNNER_RELEASES entry, whose stated audience is 'person who installed
Fleet Runner and wants to know what changed'. For a whitespace-only build the
honest answer is 'nothing', so that release should not exist — and I should not
write release notes claiming otherwise.

I had bumped to 0.8.16 to get the gate green. That was the wrong direction:
publishing a build to three OS runners to keep a formatting PR quiet. Reverted.

desktop/ is excluded in .prettierignore with the reasoning recorded there, to be
formatted alongside the next real runner change, where the bump and the notes are
true anyway.

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 09:23:30 +00:00
GandClaude Opus 5 0d0e91657b feat(crew): assign work to humans, and pay them in bitcoin (#391)
* feat(crew): assign work to humans, not just agents

FleetCrown dispatches intents to agents. Some work is not an agent's to
do — calling twelve suppliers on the company's behalf, signing something,
walking into a room. That half of the fleet had nowhere to live, so it
lived in the operator's head. This adds it as a surface: /crew, the
humans in the loop and the work handed to them.

Three laws, each because the alternative is worse:

  A person is not a queue. `assigned` only ever means you ASKED. The
  answer is theirs — accept, decline, or deliver — and OPERATOR_MOVES
  cannot reach `accepted` or `declined`, so FleetCrown can never record
  consent nobody gave. Declining is a first-class button on the share
  page, not small print: an ask you cannot refuse is an order.

  Nothing reaches a human by accident. An assignment is born a DRAFT,
  and a draft has told nobody anything. Handing it over mints the share
  link, and that is the only act in the feature that reaches a person —
  which is what makes it safe to let Loki propose one (propose_human_task
  writes a draft, exactly as propose_action does).

  Money is OrangeCat's. A task states its fee so both sides see the
  terms; a paid one mirrors to OrangeCat as a service and keeps the
  pointer. FleetCrown decides WHO does the work; OrangeCat settles what
  it costs. That seam is the missing link between the two products.

The roster is not a new table. A crew member is a person already in the
operator's book (`entities`, type person) carrying `crew:member`, so
enrolling someone you know adds no row, un-enrolling keeps every note and
assignment, and the book can never disagree with the roster. The actor
kernel gains a DELEGATE capability opposite MARKET: a robot physically
cannot join the crew, and a person still cannot be listed, booked or
sold — assertAttrAllowed enforces both directions.

The assignee never signs in. They open a link and answer; the token is
their credential, looked up with revoked links excluded, and it can only
ever answer for its own assignment. Revoking an unanswered ask pulls it
back to draft, because a board that says "asked" over a dead link lies
to you every morning.

Verified against real Postgres, not just types: the whole query layer end
to end (enrol → draft → hand over → accept → deliver → accept the work →
revoke → re-share), and the public surface over HTTP — page renders,
accept succeeds, a replayed accept is 409, an invented action is
rejected, unknown tokens 404, and /api/crew plus /crew stay gated.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKERdritcwNRuPW72zv8c3

* feat(crew): pay in bitcoin, to the person who did the work

Three corrections, all of them about the same thing: a fee is a promise to
a human, and every part of it has to be true.

BTC is now an assignable currency. The list is exactly the enum OrangeCat's
services API accepts (USD, EUR, CHF, GBP, BTC) — a currency FleetCrown
offers but OrangeCat rejects is a fee that cannot be mirrored.

fee_amount becomes NUMERIC(20,8), not real. float4 carries ~7 significant
digits, so it cannot represent a satoshi: 0.00050001 BTC would have been
silently rounded on the way to disk, and the amount someone is owed is the
last field in this system allowed to drift. Verified against Postgres —
that exact figure now round-trips to the last satoshi. Two-decimal
formatting had the same bug on screen, printing "BTC 0.00" for 50,000
sats, on the page where a person decides whether to say yes.

And the payment goes to THEM. `publishTaskToOrangeCat` creates a service
under the studio's integration key, so paying that listing pays the
studio — the SDK's actor_id is documented as ignored for integration keys,
and OrangeCat has no endpoint that creates an actor, because a profile
carries a wallet and a wallet belongs to whoever holds its keys. So the
roles are split honestly: the listing is the record of the engagement, and
`crew:orangecat_profile` — their own OrangeCat page, Lightning wallet and
all — is the destination. It rides on the task as `assigneePayUrl`, gives
the operator a "Pay Jana BTC 0.0005" button, and tells the assignee where
the money lands before they accept. A paid assignment with no destination
on file says so out loud on both sides rather than looking complete.

Profile links are stored canonical (a handle and a pasted URL are one
wallet, not two) and anything that is not a profile is refused rather than
half-saved.

The migration is regenerated rather than stacked: 0060 was never applied
anywhere, so the column is born numeric instead of being altered later.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKERdritcwNRuPW72zv8c3

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-08-26 18:46:03 +00:00
84a0edd70d fix(mobile): a dialog you cannot close, on pages nothing could test (#287)
* fix(deploy): a marker that can lie is worse than no marker

Two flaws in #279, found before its deploy ran.

1. The stamp preferred GITHUB_SHA over the checked-out commit. deploy.yml's
   workflow_run path checks out `workflow_run.head_sha`, which is not always the
   run's GITHUB_SHA, so the marker could name a commit that was never compiled.
   Since the deploy compares the live marker against the shipped ref, a lying
   marker manufactures a false alarm. Git HEAD is literally what was built, so
   it now comes first; GITHUB_SHA is the last resort for checkouts with no .git.

2. A mismatch rolled the box back. The realistic cause of a mismatch is a second
   deploy landing behind this one — and reverting to app.prev would discard the
   NEWER build, turning a benign race into exactly the incident the check exists
   to catch. It now reports loudly and leaves the running build alone. What was
   missing before was never the ability to revert; it was ever being TOLD that
   the box serves something else. That, plus /api/health, is the fix.

Both are pinned by tests, including one asserting the mismatch path does not
call rollback_box.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(mobile): a dialog you cannot close, on pages nothing could test

Testing prod in a real phone viewport turned up two defects and the reason
neither was ever going to be caught.

THE OVERLAYS

The mobile navigation sheet — the only route to half the app on a phone —
ignored Escape and let the page keep scrolling behind it. Checking the other
overlays found the same thing twice more: the floating Loki assistant could be
opened with a key (`?`) and not closed with one, and the sessions drawer and
command palette both cover the app while the page scrolls underneath.

The cause is structural. `useEscapeToClose` was a private helper inside
modal.tsx, so the behaviour was reachable only by using <Modal>/<Drawer>; every
hand-rolled overlay started from zero and had to remember. Some did. Three did
not — and CommandPalette already carries a comment about fixing "the user's
'Escape doesn't close' complaint", so this is the class's third appearance, not
its first.

The hook moves to hooks/use-escape-to-close.ts, and scripts/test/overlay-contract.ts
enforces the rule: anything claiming role="dialog" handles Escape, and the
overlays that cover the app lock what is behind them. Fixing the fourth instance
by hand would have cost more than that file.

THE BLIND HALF

/people, /money, /habits, /events, /goals and /memory sit behind the PIN, so the
prod smoke skipped them, the UI dogfood's flows failed as "skipped", and the
responsive audit's page list never included them. Three checks, one hole, in the
same place — and it read as coverage: 97 green probes, 84 green viewport checks.

The PIN was never the boundary. The unlock is an HMAC under AUTH_SECRET, and
anything holding AUTH_SECRET can already mint a session as any user — which is
exactly what print-session-token.ts does. So the format moves to a request-free
module and the tooling mints its own unlock. Nothing new is granted; the tests
just stop pretending a third of the product does not exist. The PIN keeps
guarding what it was built to guard: a person at a keyboard.

The smoke now proves the gate before walking through it — a session without the
unlock must be refused — so bypassing it adds an assertion instead of removing
one. 97 probes to 129, all green against production.

VERIFIED IN PROD

- 129/129 authenticated probes, including the private zone for the first time
- 84 viewport checks across 320/390/768/1440, no horizontal overflow, now
  including the six private pages
- new audit:mobile drives a touch Chromium: every page's last element is
  reachable above the floating nav at max scroll, and the menu sheet closes on
  the close button, a backdrop tap, and Escape

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: t <t@t.t>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-15 10:29:20 +00:00
48aef7e1df fix(a11y): the touch floor is a constraint, not something you remember to add (#271)
Five passes fixed 60-odd controls one at a time and a scan still found 54 more.
That is the tell that the fix was never the control. It was the predicate.

The floor was opt-in: a button got 44px because someone typed `ui-tap` on it.
So correctness depended on memory, every new button started non-compliant, and
the audit could only catch the ones it happened to RENDER — a control inside a
closed modal or an empty state is invisible to it and ships undersized.

"Needs a 44px target" is not "someone added a class". It is "this is a
control", and the markup already says that. So the default is inverted: every
button/summary/select/textarea/role=button/role=switch/role=tab/a[href]/input
gets the floor on coarse pointers, and exemption is the thing you type.

Three details that make it hold:

  · Element selectors (0,0,1) on purpose. Every existing ui-* rule outranks
    them, so the named lists still own their controls and this only reaches the
    bespoke ones that never had a class.

  · Inline links exempt themselves, for free. min-height is inert on a
    non-replaced inline box, so an <a> in a sentence is untouched while an <a>
    laid out as a row gets the floor — exactly WCAG 2.5.8's inline exception,
    with no list to maintain.

  · Icon-only controls need the width too, or height alone leaves a 44x24
    sliver. `:has(> svg:only-child)` is CSS for what a human means by "icon
    button".

THE PART THAT TOOK TWO TRIES

The floor lived at the end of @layer components, reasoning that a later rule in
the same layer would otherwise win. True, and not enough: Tailwind's utilities
are their own layer, and @layer utilities beats @layer components outright. So
`className="ui-btn-secondary min-h-9"` silently undercut the floor. Thirteen
controls do exactly that, and the audit caught one only because /loki happens
to render it at 768px.

It is unlayered now, which beats every layer. Not a trick — the accurate
statement of what this is. A tap minimum is a CONSTRAINT, and a layout utility
must not be able to argue with it. Overriding it deliberately still works
(`!min-h-*`), so the escape hatch is loud instead of accidental. Desktop is
untouched: the media query still gates everything, so a mouse keeps its
compact 32px buttons.

The one opt-out is shape. A switch reads as a switch because it is a small
pill; `.ui-tap-overlay` keeps the 28x16 box and grows the hit area instead —
verified still 28x16 with a 44x44 ::after under the new default.

VERIFIED AGAINST PRODUCTION, BEFORE PUSHING

Not a local build: same DOM, same data, one variable changed. /control's "Show
details" measured 20px minutes earlier and is clean under the rule — which is
also the proof the injection took effect rather than quietly doing nothing,
the failure mode that cost a full production run last time.

AUDIT_EXTRA_CSS makes that a flag rather than a one-off, because both
alternatives were bad. Shipping first is what this audit exists to prevent. A
local build measures a different database — and on the day this was written it
silently measured a DIFFERENT APP, because another process already held the
port and `next dev` had exited with EADDRINUSE into a log nobody read.

THE AUDIT WAS MEASURING FIFTEEN PAGES AND REPORTING TWENTY

Five of the twenty routes are `redirect()` stubs: /agents and /atlas (retired,
→ /control and /projects), /digests, /decisions and /history (→ /activity). So
four pages were measured twice under names they no longer own, and a quarter of
the claimed coverage did not exist. Nothing surfaced it, because a redirect
renders a real page and passes.

Two of them did worse than lie: the redirect raced the measurement, so one run
hung on /history and another reported /decisions destroyed. The route moved
between runs, which is a race, not a layout fault — it settles and measures
once more now, because a gate that cries wolf is a gate someone learns to
ignore.

Stale entries removed, and a route that lands somewhere else now SAYS so, so
the next retirement is a line of output instead of silent double-counting.
CLAUDE.md's route table claimed /agents and /atlas were live pages; corrected
there too, since that table is what teaches the next agent which routes exist.

Co-authored-by: t <t@t.t>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-14 11:21:03 +00:00
04ee93ef9f fix(audit): elementFromPoint is viewport-only — resolve the hit area from geometry (#268)
My previous commit replaced the box measurement with a hit test: probe a 44px
cross around each control and ask `document.elementFromPoint` what is there.
It is the obviously-right idea and it is wrong, which cost a full production
run to find out.

`elementFromPoint` only sees the VIEWPORT. Every control below the fold
returned null, null counted as "not reachable", and the report filled up with
44px, 46px, 55px and 65px "offenders" — three whole pages of items that were
never undersized. A measurement that depends on scroll position is not a
measurement.

Replaced with geometry, which is what the two real techniques actually change:
  • a wrapping <label> (or one pointing here with `for`) IS the hit area
  • an absolutely-positioned ::after/::before overlay extends it
Both resolved by reading boxes, so the answer does not move when the page
scrolls.

Verified before pushing this time, against production: /control, /system and
/today are clean at 320 and 390 — which also confirms the two fixes that
prompted the whole detour work, the bulk-select checkbox's label wrapper and
the scheduled-job switch's overlay.

That left exactly one offender across those pages: the sidebar `v0.8.9` link
at 15px, visible only at 768+ where the rail appears. I had twice argued it
was fine as non-tappable chrome. It is a link to /releases, so it is tappable
by definition — `ui-tap`, and `block` becomes `flex` so the floor applies.

Co-authored-by: test <test@test>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-14 02:07:38 +00:00
de9b5a69b7 fix(a11y): measure the hit area, not the box — and clear the tail it exposed (#264)
Two of my own fixes from the last commit were reported as still-broken, and
both times the AUDIT was wrong, in opposite directions. That is a measurement
problem, so fix the measurement.

MEASURE WHAT THE FINGER HITS.
The check read `getBoundingClientRect().height`. That is not the hit area:
  - the bulk-select checkbox is 14px of input inside a 60px <label>
  - the scheduled-job switch is a 16x28 pill with an ::after overlay
    extending its hit area to 44px
  - anything given room by padding on a wrapper
The box measurement called all three failures. It now HIT-TESTS: probe the
four points of a 44px cross centred on the control and ask the document what
is actually there. That measures the real property rather than one of several
techniques for achieving it, and it catches the opposite error too — a
nominally tall control that something else is covering.

WCAG 2.5.8's INLINE EXCEPTION, encoded.
"Unlock the private zone" sits inside a sentence: "<link> to see this
project's milestones." I put `ui-tap` on it last commit and the audit still
reported 18px — correctly, because `ui-tap` sets no display and min-height
does nothing to an inline box. The right answer is not to force it: a 44px
link would wreck the paragraph, and the surrounding text is what makes it
findable. The spec exempts exactly this case. The audit now skips links whose
computed display is `inline` AND that sit in flowing text (parent has
materially more text than the link) — a link that is a flex item has been
blockified and is not this. The three pointless `ui-tap`s are reverted.

Also skips opacity:0 / pointer-events:none, which is how a closed mega-menu
panel was reporting eleven undersized links you cannot click at all.

THE TAIL, now that the cap is 12 and the class is printed.
Named classes to the floor: ui-public-primary-action, ui-control-live-select,
ui-control-live-input, ui-btn-nextbest, ui-link-subtle-button, ui-link-muted.
Raw-class controls to `ui-tap` / `ui-tap-icon`: the footer's fleet-site cards,
the prompt-library toggle, the recent-activity disclosure, OutcomeStreak, the
habit goal-link icon, and both RunnerStatusBanner dismiss buttons.

NOT INCLUDED, deliberately: FleetFeedbackStrip, FleetWidgetCoverageStrip and
the rest of AttentionBar. A concurrent session is mid-rewrite in those files —
264 changed lines in one, another untracked entirely. My one-line class
additions there are backed out rather than swept into this commit; only my own
hunk of AttentionBar is staged. Their controls get the floor when their work
lands.

Co-authored-by: test <test@test>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-14 01:39:34 +00:00
f6d38fbeb6 fix(a11y): every remaining undersized target, and the clipped-text finding was noise (#259)
Made findable by teaching the audit to print the CLASS of each offender. Every
finding had been a truncated label you had to reverse-hunt back to a component;
now the report says what to edit. Cap raised 6 → 12 per page, because a capped
list looks like a short list.

THE CLIPPED-TEXT FINDING WAS WRONG — all of it.
"Clipped text up to -1014px" across half the app was `-webkit-line-clamp`
doing exactly its job. line-clamp is the VERTICAL ellipsis and is just as
deliberate as the horizontal one the audit already excluded; it sets overflow
hidden and leaves scrollHeight > clientHeight, which is the signal the check
was reading. Excluded now, and the clipped-text section goes from ~40 findings
to ZERO. Nothing was ever clipped. An unreadable section hides the real
clipping underneath it, so this is a fix, not a suppression.

TOUCH TARGETS — the rest of them.
Named classes joined the floor: ui-public-link (20 instances, the marketing
footer), ui-public-nav-toggle, ui-app-footer-cell, ui-loki-suggest-chip,
ui-loki-tool-btn, ui-loki-send-btn, ui-control-fleet-chip.

Thirteen raw-Tailwind controls got `ui-tap` — Layer-4 violations every one, so
this pays down the design-system debt that made them invisible: /today project
links, /control sort chips and rail rows, the bare search inputs on /control
/prompts /settings, "source" and "availability history" on /system, the
"Unlock the private zone" links, ControlDispatchButton's default.

TWO CONTROLS COULD NOT SIMPLY GROW, and needed different answers:
- The bulk-select CHECKBOX (14px) is a native control; scaling it up stops it
  reading as a checkbox. Wrapped in a `<label class="ui-checkbox-hit">` so the
  LABEL carries the hit area — which is what the finger lands on anyway, and
  what the audit now measures.
- The scheduled-job SWITCH (16x28) is a control whose SHAPE is its meaning.
  New `ui-tap-overlay`: an ::after child extends the hit area to 44px while the
  pill keeps its size (the WCAG target-offset technique). Documented as
  use-sparingly — the overlay reaches ~14px past the control on each side and
  will eat a neighbour's clicks in a dense row.

Not lifted: nothing. The inline links that WCAG 2.5.5 exempts (links inside a
sentence) are not what these were — they are standalone links in cards, lists
and footers, and they are all standalone-sized now.

Co-authored-by: test <test@test>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 22:22:22 +00:00
0b6cfe72bc fix(a11y,avatar): nobody's profile photo has ever loaded; finish the touch floor (#255)
* test(audit): name the rejected request and the hydration mismatch

The first full run reported "400 responses on /settings and /thoughts" and
that was the whole finding — because a 4xx only ever reached the log as the
browser's generic "Failed to load resource" console line, truncated to 120
chars, two per page. A request your own app made and your own server rejected
is a real bug, and it is not actionable without the path.

4xx is now tracked separately from 5xx, same-origin only (a third party's 4xx
is their problem) and skipping 404 (favicons are noise, not findings). Still a
warning, not a failure: an authenticated audit can legitimately probe a route
the fixture user cannot reach.

Hydration mismatches get their own line rather than competing for one of two
truncated console strings. They are never cosmetic — the server sent markup
the browser disagreed with, which means something rendered from state the
server could not have (a clock, a locale, a random id) and the user saw the
wrong content before React repaired it. That is exactly the /today greeting
bug, which sat in the log as an unnamed console error for a whole audit run.

Matches BOTH shapes: production ships minified errors where #418 is the entire
message, dev builds print prose. Matching one form means the check works in
precisely the environment you are not auditing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(a11y,avatar): nobody's profile photo has ever loaded; finish the touch floor

Found by re-running the audit against production after the pointer-type floor
deployed. Three things, all of which the instrument could only report once it
was taught to say what it saw.

AVATARS: every remote profile photo 400s.
`/_next/image?url=https://avatars.githubusercontent.com/…` → 400 "url parameter
is not allowed". There are no `images.remotePatterns` in next.config at all, so
the optimizer rejects every host — and `Avatar` has an onError fallback to
initials, so the failure renders as a tidy initials circle that looks
deliberate. Users sign in with GitHub, Google, X or OrangeCat; not one of them
has ever seen their own picture, and nothing surfaced it.

Fixed with `unoptimized` rather than an allowlist, matching the decision
already made for essay images in thoughts/[slug] (`unoptimized={src.startsWith
("http")}`). The host set is not ours to enumerate — it grows every time an
identity provider is added, and the breakage is invisible by construction.
These are 32-72px images the optimizer would save nothing on.

TOUCH FLOOR: the offenders the first pass deliberately left.
The theme toggle was the single most common finding in the whole audit — it
sits in the top bar of all 20 authenticated routes, so one missing class name
was 20 pages of report. Its `h-9` is a fixed 36px; min-height still wins,
because min-height constrains the used height whatever `height` asked for.

Also added: the command-palette search, the public marketing nav (its own
namespace, but not its own fingers), `ui-input`, `ui-btn-overlay` and
`ui-locked-banner`. Those last three measured 42px — a near-miss is still a
miss, and "nearly" is not a category the finger recognises.

AUDIT: stop reporting a false positive.
It flagged 13px radio buttons on /control/new-from-scratch. Those radios sit
inside `<label class="ui-card-shell p-3">` — the whole card is the hit area,
comfortably over 44px. The audit measured the control; the finger hits the
label. It now measures the label's box for form controls that have one (a
wrapping `<label>` or a `label[for]`). A report with false positives is a
report people stop reading, which is the failure mode that kills a gate.

Production run after this deploys should be quiet on all four counts.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: test <test@test>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 21:14:41 +00:00
a041b8be11 fix(a11y): touch floor keys on pointer type, not viewport width (#236)
Found by the audit from the previous commit, across 80 checks:

  all pages @320,390  sessions / theme / push  = 36px
  all pages @768      Expand sidebar=28px  Settings=32px  Sign out=32px

Two causes:

1. The top-bar buttons were a raw inline Tailwind string —
   `inline-flex h-9 w-9 ... rounded-full ...` — repeated across the shell.
   A Layer-4 violation (JSX re-rolling a visual pattern instead of using a
   ui-* class) AND 36px, under the stated 44px minimum. Extracted to
   `.ui-topbar-btn`.

2. `.ui-btn-icon` carried `min-h-11 min-w-11 sm:min-h-0 sm:min-w-0`, so the
   44px floor was dropped at 640px. WIDTH IS THE WRONG PREDICATE: a tablet
   is a touch device, and at 768px it inherited desktop sizing — which is
   exactly where the audit found 28-32px targets. A finger is the same size
   whatever the screen is.

So the floor is now `@media (pointer: coarse)`, applied to ui-btn-icon,
ui-topbar-btn and ui-loki-toolbar-btn together. Desktop keeps its compact
chrome untouched; anything driven by a finger gets 44px.

Also extends the audit itself: all 20 authenticated routes (was 5), plus
clipped-text, buried-under-fixed-chrome, broken-image, console-error and
5xx detection. That widening is what surfaced a React #418 hydration error
on /today at every viewport and 400s on /settings and /thoughts — reported,
not fixed here.

Co-authored-by: test <test@test>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 16:12:27 +00:00
f300e16166 test(responsive): put an actual check behind the "works at 320px+" rule (#234)
* fix(loki): reclaim the 400px of dead width and 398px of dead height

Measured in the live DOM rather than eyeballed:

  ui-loki-main   1072px wide, content 672px  → 400px unused (37%)
  answer bottom  y=356, composer top y=754   → 398px of dead vertical

Two causes, both in the layout primitives:

1. `.ui-loki-stage` was `max-w-2xl` — a flat 672px cap. That is a sane
   reading measure on a laptop and a waste on a 1680px display, on a
   surface that routinely renders lists of projects and goals wanting the
   room. Now steps up: 2xl → lg:3xl → xl:4xl, so line length stays sane
   where the screen is small and the desktop stops being 37% empty.

2. The transcript is `flex-1` (correct — it must own the scroll) while
   its messages stacked from the TOP, so a short answer left the composer
   marooned at the bottom of the pane. An `mt-auto` inner column pushes a
   short transcript down to meet the composer, and is inert once content
   overflows, so long conversations scroll exactly as before.

HONEST LIMIT ON THIS CHANGE: I could not verify it across real viewports.
`resize_window` does not take effect under this window manager
(outerWidth stayed 1680 after resizing to 375px), and the repo's own
headless responsive audit needs a session token that requires the
database, which is firewalled from this sandbox. So the breakpoints above
are reasoned from the CSS and verified at ONE width. The `lg:`/`xl:` steps
only add width on large screens and cannot affect small ones, and
`mt-auto` degrades to today's behaviour the moment content overflows —
both chosen to be safe under exactly that uncertainty, but neither is
proven at 320/375/768 the way it should be.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* test(responsive): put an actual check behind the "works at 320px+" rule

CLAUDE.md has stated the rule for months and nothing enforced it on
AUTHENTICATED pages. Every existing check runs either unauthenticated
(smoke) or at a single desktop width (dogfood), so the rule was a promise
and a layout regression on the pages the operator actually uses could
ship green.

It surfaced concretely one commit ago: a Loki layout change shipped
verified at exactly ONE width, because `resize_window` in the interactive
browser does not take effect under a tiling window manager (outerWidth
stayed 1680 after resizing to 375), and the repo's headless tooling needs
a session token that needs a database firewalled to the box. Reasoning
about breakpoints from CSS is not verification.

  scripts/test/responsive-audit.mjs   real viewports (320/390/768/1440) in
                                      headless chromium, authenticated.
                                      FAILS on horizontal overflow and
                                      names the offending element; REPORTS
                                      touch targets under 44px; writes a
                                      screenshot per page/viewport.
  scripts/db-tunnel.sh                SSH tunnel to the box's Postgres,
                                      printing the URL to use through it.

Two decisions worth the words:

- The audit takes AUDIT_DATABASE_URL explicitly instead of reusing
  print-session-token.ts, which resolves a DIRECT box connection from
  .env.hetzner.local — precisely what is unreachable from a sandbox or a
  CI runner. Explicit is what makes this runnable somewhere other than
  the founder's laptop.
- Touch targets warn rather than fail. The 44px rule has legitimate
  exceptions (inline text links), and failing on it would bury the
  overflow signal that actually breaks a phone.

FIRST RUN, 20 checks across 5 pages x 4 viewports:
  ✓ no horizontal overflow anywhere — the 320px rule holds, and the Loki
    layout change from #231 is now actually verified rather than reasoned
  ⚠ touch targets under 44px on every mobile/tablet width, incl. genuinely
    bad ones: /today project links at 16px, /control links at 26px and a
    20px input; global chrome (sessions drawer, theme, push) at 36px;
    sidebar Expand/Settings/Sign out at 28-32px on tablet.

Those warnings are left unfixed here on purpose — this commit is the
instrument, and fixing what it found in the same change would make it
impossible to tell which one this proves.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: test <test@test>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 15:39:30 +00:00