* fix(cold-start): the starter ships a lockfile, so its first Deploy can install
selfhost-deploy.yml refuses to install without a lockfile and installs with
--frozen-lockfile; the Next starter declared pnpm and shipped no lock, so every
fresh site failed before building. The lock is resolved once by
scripts/templates/refresh-starter-lock.ts into a generated asset and seeded
with the starter (one Git tree call, no pnpm on the app box).
scripts/test/starter-lock.ts fails on drift, missing standalone output, a
missing packageManager, or starter docs that point at npm.
Seeding failures are recoverable: provision on a linked but bare repo re-seeds
it instead of refusing with 409. The starter embeds the project-scoped
feedback widget from its first commit.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0118cLNxoB3dt2w74vU1PH6w
* fix(cold-start): liveUrl means a Deploy on the current commit and a public 200
Registration persisted liveUrl because register-site.sh exited 0 with
--no-deploy. Now: strict setup, then a workflow dispatch; GET reports
pending/failed/live and the UI polls it. describeSiteDeployment (pure, tested)
treats a queued run or a just-sent dispatch as starting, closing the race where
the first poll after dispatch read as "no deployment exists". A status the
client cannot read is shown as a failure, not swallowed.
The deploy workflow resolves a freshly registered slug from the box register
and proves the checkout belongs to the caller; deploy.sh builds with the same
package manager that installed; register-site.sh runs release siblings, locks
the register, fails without a deploy secret, and seeds a runtime env.
check:deploy-ready no longer reads a box-registered checkout as laptop drift.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0118cLNxoB3dt2w74vU1PH6w
* fix(feedback): Implement addresses the project id, never a same-named tab
Feedback and kickoff dispatch resolve user_projects by stable entity id; a
renamed project or a same-named sibling can no longer redirect a run, and the
hosted fallback is off for actions tied to a tracked run. Batch Implement only
advances when a run was accepted. Fix prompts require the normal ship path and
live evidence; Resolve stays with the operator.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0118cLNxoB3dt2w74vU1PH6w
* docs: FleetCrown builds independently; tab names are transport, not identity
Product copy and agent docs describe FleetCrown as an independent product with
optional OrangeCat linking that is not publication consent. Control drops the
Focus terminal chip (Open terminal stays). Adds the cold-start handoff.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0118cLNxoB3dt2w74vU1PH6w
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Stop kickoff after a failed repo step; keep the operator's exact brief;
mark feedback Queued only with a real run id; link Check live to the
reported page; never backfill OC wall history from before publish
consent; document eligible-only cloud builder and the new-site vs
provision starter split.
Co-authored-by: Cato <catomean@users.noreply.github.com>
#508 removed the Stripe rail. Four living docs kept describing it, and one of
them is named in CLAUDE.md as an SSOT — so the wrong answer was the documented
answer.
- `development/cloud-local-workflows.md` listed `Stripe billing | STRIPE_*` in
the env-gated feature table. Replaced with the rail that exists:
`ORANGECAT_PAY_URL_{PERSONAL,PRO,TEAM}`, names checked against lib/oc-pay.ts.
- `sustainability-gates.md` Gate 3 argued from a `quantity: 1` hardcode in
`src/app/api/stripe/checkout/route.ts`. The gate did not go stale, it
HARDENED: that route is gone and the BTC rail is a static per-plan URL with no
quantity concept, so there is no seat number left in the purchase path to
correct. Per-seat Team is now a build, not a config change.
- `oc-rail-monetization-scope.md` claimed the Stripe webhook "already calls"
updateUserBilling and that /pricing has an isStripeReady() seam to reuse. The
write survives (via /api/orangecat/entitlement, plus scripts/grant-plan.ts);
the seam does not — the BTC CTA is the default case now, not one to add.
- `development/user-flow-audit.md` asserted `/api/stripe/portal` returns 503. It
returns 404. CH01-CH04 and the CH04 runbook tested four deleted endpoints;
retired with a pointer to what replaced them.
`scripts/grant-plan.ts` said it performs "the SAME write the Stripe webhook
does" — updated to name the entitlement route instead.
Two findings that were not about Stripe:
`docs/self-improvement-plan.md` enumerated three `insertPromptHistory` call
sites. There are four — `api/control/tab-inject` was missing — and all three
line numbers had drifted (270→397, 452→514, 80→138). Following that list would
have shipped the runId linking with one dispatch path still unlinked. Line
numbers dropped in favour of "grep the symbol"; same for `src/auth.ts:234` in
the OC scope doc, which now points at line 268's unrelated code.
`src/config/demo.ts` still denied `/api/checkout` under its "money" heading long
after #508 deleted that route — a deny rule for a route on no disk, which made
the billing section of the sandbox policy look staffed.
demo-sandbox.ts already had the reverse check for DEMO_SAFE_FAMILIES ("a family
listed as safe that no longer exists is dead reassurance"); the denied lists had
no equivalent, which is why that entry survived. Added the mirror check — it
caught `/api/checkout` on its first run — and mutation-proved it with a fake
prefix. 262 assertions.
Also measured and did NOT gate: doc path references (314) and `pnpm run`
commands (77) both came back clean once false positives were removed, and the
dominant pattern is prose naming a file precisely to record its REMOVAL, which
grep cannot tell from rot. A gate there would fire on the correct docs and stay
silent on the wrong ones. CLAUDE.md's own four flagged paths were all correct,
and all 22 routes in its Views table exist.
verify green (13 steps, exit 0).
Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
The repo moved to pnpm 11.25.0 (packageManager, pnpm-lock.yaml, CI and
deploy all pnpm) but 17 docs still taught npm commands. Sync every
current-instruction command to pnpm (`npm run` → `pnpm run`,
`npm install` → `pnpm install`, `npx tsx` → `pnpm exec tsx`, and
`db:apply-box -- <file>` loses the `--` separator under pnpm).
Deliberately kept: npm inside desktop/ (own package-lock.json, installed
via `npm ci` in desktop-release.yml and check-desktop.sh — excluded from
the pnpm workspace); `npm i -g openclaw` (box-global install); dated
historical audit/log entries that record runs made under npm.
Also in docs/infrastructure/self-host-cd.md: the pipeline diagram said
`npm ci` where selfhost-deploy.yml detects npm/pnpm per lockfile, and the
`node-version` fallback is 24 (doc said default 20); documented the
`package-manager` override input.
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn
Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Three follow-ups from sweeping the earlier findings. Two of the four I had
carried forward did NOT survive checking and are dropped: /api/control/dispatch
is a real route, so the docs referencing it are correct; and
scripts/test/push-notifications.ts exists. Verifying first is why this commit
is smaller than the list that prompted it.
1. THE TEST NOBODY RAN, FOR A REASON THAT WAS NEVER TRUE
scripts/test/push-notifications.ts read scripts/agent-hook-bridge.sh, which was
deleted on 2026-06-11 in 956ccf64 ("delete the bash daemon and bridge files").
It threw ENOENT and the suite exited 1. Its entry in test-unit.ts SKIP said
"needs push/web-push env — run manually". That was never the reason: every
check in the file is a static file read and it needs no environment at all.
A wrong skip reason is worse than no skip. It answers the question that would
have found the bug, so the red looked accounted for and nobody looked again for
three months.
Retargeted rather than deleted. The behaviour moved instead of going away — a
closing run reaches the operator through notify-close.ts → pushToUser →
push-fanout — and scripts/test/notify-close.ts covers that module without
mentioning push at all. So "an agent finished, tell the operator" was asserted
by nobody. Deleting the check would have quietly ratified that hole.
Removed from SKIP, so it now runs in test:unit (132/132) and therefore in CI.
Mutation-proven: renaming the pushToUser call fails with "notify-close must
call pushToUser" (exit 1); restored, exit 0.
2. THE BOX IS HALF THE MACHINE THE DOCS DESCRIBE
Measured 2026-09-04: nproc 4, 7746 MiB, 75 G disk, 4 GB swap. That is a CX33.
Three docs said CX43, 8 vCPU / 16 GB, 40 GB disk — every figure but the swap
wrong, in the direction that matters: planning against 16 GB on an 8 GB box is
how you meet the OOM killer.
src/app/api/system/hetzner/route.ts has said "the box is a cx33" all along, so
this was code and docs disagreeing with the code being right. Note the shape of
the drift: CPU and RAM went DOWN while disk went UP (40→75), which is what a
disk-inclusive rescale to a smaller tier looks like — plausibly to escape the
disk-full problem the old caveat describes. The June runbook entry is kept as
history and marked superseded rather than rewritten.
The docs now point at /api/system/hetzner instead of restating numbers. A
hardcoded spec is a second source of truth that rots silently, which is exactly
what happened here between June and September.
3. THE COMPOSER STATUS, FINISHED
#479 gave this line its own row below `sm` but kept `sm:truncate`, which left it
at 57% on a 1440 viewport — "Autopilot on: queue is empty, so FleetCr…". That is
the same defect as the phone's 14%, just less obvious, and there is no `title`
here so the remainder is unreachable at every width. It now wraps everywhere.
Costs one toolbar line when the sentence is long; truncating cost the half of
the sentence that says what will happen.
pnpm run verify passes (repo moved to pnpm in #478).
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>
* feat(public): rebuild the marketing site for the phone it is read on
The public surface was designed at desktop width and shipped to phones
unchanged. On a 390px screen the header alone was 220px — a quarter of the
viewport — with "PERSONAL SYSTEMS" wrapped onto two lines and the primary CTA
clipped off the right edge on every page. Everything below it inherited desktop
floors: a 52px headline min that broke "Run your fleet. From anywhere." into
three lines with a wrecked rag, 20px body copy six lines deep, 200px card
floors, and 96px section padding that read as the page having ended.
Header. Sticky at every width, 56px on a phone: compact brand lockup, one
always-visible CTA that cannot wrap, one menu button. Theme cycle and Sign in
move into the drawer — four controls do not fit a 390px row, and the CTA was
the one that lost. The drawer is now a real sheet: conversion actions first,
56px rows with descriptions, appearance in the footer. It is mounted by
PublicHeaderActions rather than PublicSurface, because the shell is pulled into
client bundles by AuthShell and cannot call auth().
Type and rhythm. Display sizes are viewport-relative with phone-sized floors
and unchanged desktop ceilings. New ui-public-section / -section-gap /
-container* primitives replace ad-hoc py-24 + max-w-* px-6 across every page.
The homepage is 4,564px instead of 5,466; releases 10,338 instead of 12,255.
Content. "Download runner" is a dead end on a phone — Fleet Runner is a .deb /
.dmg / .exe. The hero offers the tour instead below sm, and /download leads
with a handoff panel (open the web app, copy the install link) with the desktop
flow one deliberate tap away. That detection also fixes a real bug: an Android
UA contains "linux" and an iPhone UA contains "Mac", so phones were being
offered an 80 MB Debian package or an Apple Silicon disk image.
Fixed along the way, all confirmed in a headless browser at 320 and 390:
- The footer used text-white/* after the surface became theme-aware — every
heading and the copyright line were invisible on the Light theme.
- Bare GitHub URLs on the legal pages overflowed a 320px viewport, and
.ui-public-surface clips, so the tail was gone rather than scrollable.
- Auth inputs were 14px, which makes Safari zoom the page on focus.
- Standalone links ignored the pointer:coarse floor: min-height does nothing
to an inline box, so "Forgot password?" measured 16px tall.
- The hero fleet console truncated every project to "Life OS + AI agent …".
Zero horizontal overflow and zero sub-44px standalone targets across 22 public
routes at both widths; prose links stay inline per WCAG 2.5.5.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AbuhKUVJRFzLufKyPLjHKN
* fix(app): make the accent tokens visible, and the shell usable on a phone
Two findings from driving the authenticated app through a real headless
browser at 320 and 390 CSS px.
**`text-accent` was invisible in both themes.** `--accent` /
`--accent-foreground` are shadcn's accent SURFACE pair: `--accent` is a
background tone, oklch(0.14) in dark and oklch(0.96) in light — one step from
the page background either way. Thirty-one call sites used it as ink.
Measured contrast: 1.0 in dark, 1.03 in light. What that hid was not
decoration but the first screen a new user sees — the Control onboarding CTAs
"No install needed →", "Download for your OS →", "Start →" and "Import →" were
painted the same colour as their own cards. `border-accent` failed identically
as a card hover highlight (four places), and `bg-accent` as the selected-repo
checkbox fill, so a ticked box looked unticked.
Now `text-accent-text` / `border-accent-primary` / `bg-accent-warm +
text-on-accent`, measured back at 9.3:1 in dark and 20.6:1 in light.
`check:design` gains an eighth check so the bare token cannot return, and
docs/branding-design.md names the trap: a token that reads like a colour may
be half of a surface pair — check its lightness against what it will sit on.
**Shell fixes at phone width:**
- The email-verification banner packed a sentence, two buttons and a dismiss
into one 358px row, so the message truncated to "Verify your email for …" —
losing the word ("optional") that decides whether to care. Message and
actions now stack below `sm`. It renders on every authenticated route.
- Settings gave the username field a 26-character host prefix, leaving ~120px
for the part being edited and overflowing its own border. The phone gets
`/u/` alone, and the input is 16px so Safari stops zooming on focus.
- A bech32 wallet address on /money has no break opportunity and ran off a
320px viewport.
- `ui-link-muted` is inline-flex, so the pointer:coarse floor can reach it —
min-height does nothing to an inline box, which is why card-header actions
like "View details →" measured 16px tall.
Verified across 17 authenticated routes at 320 and 390: no horizontal
overflow, and every remaining sub-44px target is a link inside a sentence,
exempt under WCAG 2.5.5.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AbuhKUVJRFzLufKyPLjHKN
* fix(shell): flow-page headers, 16px inputs, and phone-only palette chrome
Third pass over the phone experience, from the same headless-browser sweep.
**Flow pages said everything twice and put the exit in the wrong place.**
/control/new-from-scratch rendered an h1 "Start a new project", then a
stranded "← Back to Control" row, then a card whose h2 read "Start a new
project" and repeated the same intro paragraph — three headings deep before
the first field, on the viewport with the least room for any of them.
PageLayout gains a `back` slot that renders above the title, where a back
affordance is looked for; the three Control flow pages use it and the
duplicated heading is gone.
**Inputs under 16px make Safari zoom the page.** Every field a phone user
types into is now `text-base sm:text-sm`: the app's shared `ui-input` and
`ui-input-compact` (search boxes, every inline edit), the command palette
input (which autofocuses the moment the panel opens, so the zoom was
unavoidable), the terminal's phone composer — the one field an operator sends
agent input through, where the zoom pushed the terminal out from under the key
deck — and the settings username field. Desktop density is unchanged from
`sm` up.
**Smaller things:** the command palette's keyboard-hint footer ("↑ ↓ navigate,
⏎ open, ⌘K toggle") is `hidden md:flex` — three shortcuts nobody can press,
costing a line of the list the panel exists to show; and the reset-password
"Request a new one" link is a real 44px target rather than a 16px inline one.
Re-measured after the change: 22 public routes and 17 authenticated routes at
320 and 390 CSS px, no horizontal overflow anywhere, and every remaining
sub-44px target is a link inside a sentence.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AbuhKUVJRFzLufKyPLjHKN
* polish(public): lead the phone with the entry point it can actually take
Two last passes over the marketing surface at phone width.
"Run locally" is the first of the three GET STARTED cards, which is right on a
desktop — the visitor is plausibly sitting at the machine that would run the
agents. On a phone it is the one entry point they cannot take, so the list
opened on a dead end. It is `order-last` below `md` and the hosted control
plane leads there; the grid restores config order at `md`.
The footer's link columns paired an 8px gap with the 44px rows the
pointer:coarse floor gives every link, so each column read as a list with
holes punched in it. The gap is desktop-only now, and the links use
`ui-public-link-standalone` so the floor actually reaches them — as an
`inline` box, `ui-public-link` was ignoring the min-height it was granted.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AbuhKUVJRFzLufKyPLjHKN
* fix(brand): drop the public wordmark below 360px instead of overlapping it
At 320 CSS px — the narrowest width this app claims to support — the header's
"FleetCrown" wordmark, the "Get started" pill and the menu button do not fit on
one row, and the pill was drawn over the word rather than pushing it aside
(the CTA is shrink-0, the wordmark had nothing telling it to yield).
Below 360px the wordmark is hidden and the spiral carries the brand alone; it
also truncates now, so no future label can overlap its neighbour. Measured
across 320 / 360 / 375 / 390 / 414 / 430: a 65px header at every width, no
overlap and no overflow.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AbuhKUVJRFzLufKyPLjHKN
* fix(people): show people on the people page
/people is a contact list on which you could not see a contact. Measured at
390 x 844 with five people in the book, the first person card started 980px
down — 1.16 screens — and everything above it was chrome:
164px search / sort / Add, three stacked full-width rows
482px PeopleBookPanel: a four-product glossary, three import
recipes, three action buttons
96px health filter chips, wrapped onto two rows
The book panel is the bulk of it, and it rendered unconditionally — a user
with three hundred contacts scrolled past "FleetCrown is the book. Loki talks
to it. OpenClaw is the WhatsApp/Telegram workspace… Hermes is a task CLI"
on every single visit. Two of its three import recipes are desktop export
flows (contacts.google.com → Export → Google CSV; File → Export vCard) that a
phone cannot perform, presented as instructions the reader is apparently
failing to follow.
It is now a collapsed disclosure below the list, expanded by default only when
the book is empty — the one moment when filling it IS the page rather than
setup you already did. On a phone it also says which of the recipes need a
computer. The control row is one row instead of three (Sort keeps its label
from sm up and drops to its icon below it), and the health chips are a single
scrolling row like every other filter row in the app.
First contact: 980px → 308px. Four people now fit on the first screen.
Also on /prompts, found by measuring every control label in the app for a
wrapped line: "New prompt" was the only genuinely wrapped button in the
product. Its header was `flex items-center justify-between` with no gap and a
shrinkable button, so on a 358px row the label broke across two lines inside a
92px pill pressed against the sentence beside it — the same defect as the
public header CTA. Now gap-3, shrink-0 and whitespace-nowrap.
And UserPromptsSection.tsx carried a literal NUL byte, used as a separator in
a dedup key. It made the file read as binary to grep, diff and editors —
including to ripgrep, which is what check:design runs on, so the file was
silently excluded from the gate. Writing it as a unicode escape instead
(byte-identical at runtime) immediately surfaced a real hover:border-accent
violation the gate had never been able to see. Fixed too.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AbuhKUVJRFzLufKyPLjHKN
* fix(mobile): quickstart's device split, empty stat rows, one tier of project actions
The last three findings from the phone sweep.
**Quickstart tells you which steps your device can do.** The homepage sends
phone visitors here ("See how it works"), and the page opens with "1. Decide:
web or desktop?" then spends steps 3–5 on installing a binary, an agent CLI
and a project path — terminal work, on a page reached from a phone. The steps
are a genuine sequence so the numbering stays; what was missing is that three
of them need a computer and four do not. A device map at the top now says so
and anchors into each step, and the three desktop steps carry the marker on
their own headings. A reader on a phone can now do 1–2 and know exactly what
is waiting at their machine.
**A row of zeros summarises nothing.** /habits and /goals opened with three
stat cards reading 0 / 0 / — above an empty panel that said the same thing
again, under a header that already offered "New Habit". Four statements of
"you have none", filling the phone fold. The stat row is hidden until there
is something to summarise, so the empty state is the single answer.
StatRow also left an orphan: three cards in a two-column phone grid put the
third half-width beside a gap. `:last-child:nth-child(odd)` spans the odd card
out across the row — correct for three (2 + 1-wide) and for four (2 + 2), with
no per-page rule. It fixes /money and /memory at the same time.
**The project header claimed one visual tier and rendered four.** Its own
comment says "everything here is a quiet ghost link", but LiveUrlField drew a
bordered secondary button, OrangeCatPublishButton an unlabelled cat icon, and
ProjectSharePanel a second bordered button — so on a phone, where the row
wraps to two lines, it read as four unrelated controls rather than one set,
with the sole bordered button reading as the page's primary action (it is
not; that is Kickoff, further down). All five are ghost links with labels
now, and the cat glyph has a word next to it.
Re-measured: 22 public and 17 authenticated routes at 320 and 390, no
horizontal overflow; every remaining sub-44px target is a link inside a
sentence. tsc, eslint, check:design (8 checks) and 106 unit tests pass.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AbuhKUVJRFzLufKyPLjHKN
* fix(clarity): give the numbers and the glyphs a noun
A score with no unit, a chip with no noun and a control whose only
explanation is a hover tooltip all read as magic on a phone, so people
learn to ignore them. Six fixes, all in that class.
- Health chip: was ten unlabelled ticks and a bare "6/10", explainable
only by hovering a `title` that a touch screen never renders. Now reads
"Health ●●●●●● 6/10 · 4 to do" and taps open the ten named checks — a
bottom sheet below sm, an anchored popover above it. The failing rows
carry the action that earns the point, so they are no longer truncated.
- "Status" vs "Stage": one field, two words, sitting two chips apart —
the editor said "+ status", the health check said "Stage declared".
The app already spends "status" on CI, run and agent status. Unified on
"Stage"; the bare value chip now carries the noun ("Stage Production").
The attr key is untouched — this is vocabulary, not schema.
- Health signals: "No broken" / "No open broken recorded." was built by
lowercasing a badge label, producing a sentence with the noun missing.
Written per signal now (clearLabel) instead of derived.
- Prompt stats: "82% · 12 runs" made the reader guess the numerator.
Now "82% success · 12 runs".
- Notifications pill: rendered a button that could only fail when the
deployment has no VAPID key, and its hover text named the environment
variable to a person who cannot set it. Hidden in that state, like an
unsupported browser.
- Icon-only buttons: the shared delete trigger (nine call sites, one of
them "Forget this entity") and the Loki dispatch arrow had `title` as
their only accessible name. Both now carry aria-label.
Verified: tsc, eslint, design-system (8 checks), and the touch sweep —
hover-only meanings 69 → 52, of which 34 are the two conventional
top-bar icons repeated once per route.
* fix(clarity): stop pages explaining themselves in the schema's words
Second pass of the same sweep, on the three pages that read most like
internal state printed to a screen.
/money
- The three summary tiles rendered with zero subscriptions: "— / 0 active
subscriptions", "0 / all confirmed", "— / other currencies". A third of
a phone screen spent saying "nothing here", above an empty list with no
way in. The summary now appears only once there is something to
summarise, and the empty list carries a real empty state that says what
the page will do for you, plus the Add button.
- "Non-CHF /mo" printed the very same USD/EUR/GBP figures the burn tile
already joins — the same money twice, under a label that reads like a
different number. Replaced with "Next charge", the date and name of the
soonest one due, which is the reason to open a money page.
- The footnote explaining the row arrow and the unverified chip showed
with no rows and no chips on screen. Now conditional, like the header
Add button, which was duplicating the empty state's.
- The founder-only OrangeCat note named the database table the relation
lives in and then printed a bech32 address with no label.
/memory
- "Entities 11 / Relations 0 / Types 2" was the schema's vocabulary in
three full icon-header cards. Now compact tiles that say what they
count: things remembered, connections, kinds.
- "Fleet knowledge (RAG)" told a user to set EMBEDDINGS_BASE_URL on the
server, or to run a script on the box — instructions for whoever
deploys this, shown to whoever uses it. Retitled "Context from your
other projects" and rewritten to the one fact a user needs: on or off,
and what that means for a dispatch.
- Entity distribution printed the type badge and the type name next to
each other: "person person".
- "Forget everything" is irreversible and was a 14px-tall inline link
(min-height is inert on an inline box); its confirm named the knowledge
graph and the RAG index for one thing the reader knows as what Loki
remembers.
/system
- Gateway and Uptime were two full cards with icon headers carrying one
short fact each — two screenfuls before the first reading with any
detail. Both answer "how is the host doing", so they are two rows of
one card now.
Verified: tsc, eslint, design-system (8 checks), and the authenticated
390px sweep — 17 routes, zero horizontal overflow. The four remaining
sub-44px targets are inline prose links (WCAG 2.5.5 exempt).
* feat(health): make the score a worklist you can drive to 10/10
The last pass made the number explainable. It still was not useful.
"Mission stated ✗ — state the mission in Context" leaves you to find the
tab, find the field and type; that is most of the work, and a number you
cannot move is a number you learn to skip.
So the panel performs the write.
- Every check now carries the write that earns it (ProjectHealthFix in
the SSOT: an attr, the description column, the live_url column, or
clearing a signal flag). The panel opens the right field in place and
saves through the API that owns it — no navigation, no hunting.
- Every check states its exact rule next to it. Including the one rule
nobody could guess: definition of done must name something an agent can
run and report, so it now prints the keyword list it is tested against.
The list is the SSOT and the regex is built from it, so the rule shown
and the rule applied cannot drift.
- The score moves as you go, optimistically, then reconciles on refresh.
A score that only moves after a round trip reads as nothing happening.
- Outstanding checks lead; earned ones fold away behind a count.
Two bugs this surfaced, both the same shape — `useState(prop)` reads its
argument once, on mount, so a value written from anywhere else landed in
the database, came back down on router.refresh(), and was ignored:
- The stage chip went on offering "+ stage" for a stage already set.
- Live URL was worse than cosmetic: the check reads the production_url
attr OR the live_url column, so writing the attr earned the point while
the page's own field, which reads only the column, still said "Add live
URL". The fix now writes the column, and the field re-seeds. A point you
can earn while the page disagrees is worse than one you cannot earn.
Verified by driving it in a real browser at 390px: a project went 5 → 6 →
7 → 8 → 9 → 10 from the panel alone, one check at a time, and the header
followed each write (stage chip reads "Stage development", the quick link
flipped from "Add live URL" to "Live"). Panel geometry clean at 390 and
320, fix buttons 310×44. tsc, eslint, design-system (8 checks), and the
17-route authenticated sweep at 390 and 320: zero horizontal overflow.
* feat(health): let the model draft the gaps, without overwriting your work
The worklist made every point earnable by hand. This adds the fast path I
held back last time, once the thing that made it unsafe was fixed.
The blocker was applyProjectProfile: it always overwrote. Pointing a
"fill the gaps" button at it would have silently replaced a mission and a
next step someone had written with the model's version — a worse outcome
than leaving the point unearned.
- applyProjectProfile takes { onlyMissing }, off by default, so kickoff
is unchanged: there the user has just edited the brief and means for
the profile to be rewritten from it. With it on, a field that already
holds an answer is skipped.
- "Already answered" is hasAnswer(), the same predicate
computeProjectHealth uses. Any other test and a fill could overwrite a
field the score had already counted, or skip one it had not.
- POST .../brief accepts onlyMissing and says so when there is nothing
left to fill, rather than reporting the generic extraction failure.
In the panel, above the manual list:
- The button names its work before it runs — "Draft 3 from the brief" —
and the note names the three fields and the guarantee. The checks the
brief cannot answer (where the code lives, where it is deployed,
whether a flagged problem is really fixed) are facts only the person
has; AI_FILLABLE_CHECKS lists them rather than inferring, so the
button can never quietly do less than it implied.
- No brief, or nothing fillable outstanding, and the button is absent —
there is nothing to fill from.
Verified: the overwrite protection is tested directly against the
database — a field holding "MINE — do not touch" survives a fill that
targets it, an empty field beside it is written, and a default call still
overwrites so kickoff is untouched. In the browser at 390px the button
renders "Draft 3 from the brief" at 310x44, the note reads correctly, the
definition-of-done rule prints its full keyword list, and with no model
key configured the failure surfaces in the panel and re-enables the
button instead of hanging. tsc, eslint, design-system (8 checks), 150
home/ tests, and the 17-route sweep: zero horizontal overflow.
* chore: commit the AGENTS.md block next dev regenerates
Not hand-written: `next dev` appends this marked block on every start
(node_modules/next/dist/server/lib/generate-agent-files.js), and
next.config does not set `agentRules: false`. Left uncommitted it dirties
the tree for every contributor the first time they run the dev server, so
it belongs in the repo like any other generated file. Turn it off in
next.config if the fleet would rather not carry it.
---------
Co-authored-by: Claude <noreply@anthropic.com>
* terminal: make the phone terminal something you can work in
The report was two problems wearing one complaint.
INERT. A soft keyboard has no arrows, no Esc, no Tab and no Ctrl — exactly
the keys an agent TUI asks its questions with. You could read "Set up auto
mode? [✔] Also scan shell history · ◄ Mixed ► · Continue" on your phone and
had no way to answer it. TerminalKeyDeck is that missing half of the
keyboard: a joined d-pad, Esc, Enter, and a scrollable lane of Space, Tab,
the Ctrl codes, page keys and the digits agent CLIs number their permission
choices with. Bytes are SSOT in config/terminal-keys.ts and go straight
through transport.sendKey. Arrows and Backspace repeat on hold; Enter and
the control codes deliberately do not. Keys fire on pointerdown with
preventDefault so a tap never dismisses the keyboard.
TOO BIG. Title, subtitle, source strip, tab strip, source select, session
select, agent button, mode select, honesty chip, font stepper — 331px of
controls above a terminal left with four visible lines. All of it setup,
none of it read while an agent works. It is now one header row (session
name, live dot, full screen) with everything else one tap behind it in
TerminalSessionSheet. The terminal keeps ~496px of an 844px screen.
Also: typing goes through a real textarea with autocorrect off instead of
the xterm canvas (no focus fights, no "cd ~/sec"), with a visible ⏎ toggle
for typing into a TUI's own filter without submitting; useKeyboardInset
pads by what visualViewport says the keyboard covers, so the deck sits on
the keys rather than behind them; font size and stream state are hoisted
out of TerminalView so the sheet and header can drive them.
Verified at 320 and 390 CSS px against the real compiled stylesheet: no
horizontal overflow, every keycap ≥44px. npm run verify green.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01USTVtDg75MU5BREr1GWXs2
* control: one inbox instead of two strips, and a button size axis
Three fixes to the same complaint — that Control reads as "random black
buttons badly aligned, the whole page all over the place."
ONE INBOX. FleetWidgetCoverageStrip and FleetFeedbackStrip were two
unbounded full-width panels stacked mid-page, one of them auto-expanded on
mount. On a 390px phone that measured ~1,400px of scroll — eight "Enable &
install" buttons and five feedback rows — sitting between the fleet status
and the projects the operator came for. They are not two features; they are
one queue of small things a human has to say yes to. ControlInbox groups
it, counts it, caps it at three rows, and collapses it. Nothing
auto-expands, and per-project feedback is fetched only when opened.
ALIGNMENT. Every inbox row is [ text ][ fixed action rail ], so the buttons
share one right edge down the column. The old rows sized their action group
to their content, which is why each of the eight installs found a different
edge — and put a 36px filled button in an items-center row beside two 12px
underlined links.
A SIZE AXIS. The button set had variants but no sizes, so every time
something needed to be smaller than ui-btn-primary somebody wrote a new
variant that baked a size into a fill: ui-btn-save (accent, rounded,
text-xs), ui-btn-submit (accent, rounded-lg, py-3), ui-btn-ready-primary
(warm, rounded-lg), ui-btn-lg (accent, rounded-xl). Four filled buttons,
three radii, two accent colours, all "primary" somewhere. ui-btn-sm is
geometry only, so `ui-btn-primary ui-btn-sm` is a small primary that still
looks like one. (ui-btn-xs could not do this: it sets border and muted text
and is defined after ui-btn-primary, so composing them yields an outline.)
Also: a row action is never a primary. The first build here gave every row
a filled primary, which turned eight black slabs into three orange ones and
changed nothing. Filled is now reserved for the action that acts on a whole
group; rows are outlines.
And the hero stops painting the marketing backdrop's 48px data grid
(--public-grid-stroke) behind live counters — on the light theme it read as
a checkerboard through the text. Build versions ("cloud v0.8.12 · app
v0.8.12") move off the phone's first line to sm+ and the tooltip: sync age
is status, build numbers are diagnostics.
Verified at 320 and 390 CSS px against the compiled stylesheet with a
coarse pointer: no horizontal overflow, every target >= 44px, all action
rails share one right edge. npm run verify green.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01USTVtDg75MU5BREr1GWXs2
* control: hero answers one question; screenshots become sendable work
THE HERO. It carried five things at once — runner line with build versions,
refresh and new-project buttons, "Fleet autopilot" with its live pulse, the
Pause-fleet control, a four-chip counter row, and a two-sentence paragraph
explaining autopilot. All true, and it still failed: a card that answers five
questions answers none of them first, and its largest highest-contrast
control was Pause fleet, an action a builder takes roughly never.
It now answers one question — is anything waiting on me? — in the largest
text on the page, names the projects, and offers exactly one button that
goes to the first of them. "2 projects need you" used to be a count you then
went hunting for; it is now a destination. Everything else is ranked, not
deleted: counters and builder state drop to a quiet foot line, autopilot and
refresh move into a sheet, and the mode is still legible because the pulse
says "Paused" when it is.
The layout rules are written for the PHONE and relaxed at sm:, which is the
actual repair. Every rule on the old Control started at sm: (640px) — above
every phone — so a 390px device never got a designed layout, it got the
fallback: flex-col, full width, nothing aligned to anything.
SHEETS ARE A PRIMITIVE NOW. The terminal's session sheet and Control's
settings sheet are the same idea a day apart — the controls a surface needs
but should not wear. ui-term-sheet-* becomes ui-sheet-*, shared.
PICTURES. A coding agent in a PTY cannot read pixels, so an attached
screenshot is not forwarded — it is DESCRIBED (the vision preflight Loki
already had) and the description is folded into the prompt as text. That is
what makes this a feature rather than an upload button that silently drops
the file. Folding happens server-side in lib/composer-attachments, called
from /api/inject, /api/control/tab-inject and /api/orchestration/run,
because a client that forgets to enrich sends a prompt referring to a
screenshot nobody looked at, and that failure is silent.
Both dispatch composers — Control and Terminal — now take images and text
files by picker or paste, show real thumbnails (every phone screenshot is
called IMG_<timestamp>.jpg, so the name identifies nothing and the picture
identifies it instantly), and send with no words at all: a screenshot IS the
instruction. Voice was already wired on both; this closes the pair.
Staging logic left the Loki composer for useAttachments — object-URL
lifetimes, dedupe, limits, paste-to-attach — so the three surfaces cannot
drift on what an attachment is.
Verified at 320 and 390 CSS px with a coarse pointer: no horizontal
overflow, every target >= 44px, hero 225px tall. npm run verify green.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01USTVtDg75MU5BREr1GWXs2
* control: make the card legible without hover, and stop history rows duplicating
Two things a phone cannot do that this page assumed it could.
HOVER. OutcomeStreak was five bare glyphs — `~ ~ ✗ ~ ~` — whose meaning
existed only in a title tooltip, sitting directly beside the project name.
On the surface the fleet is most often read from there is no hover, so the
first thing a card said about a project was a cipher that could not be
asked. The glyphs stay; they are now accompanied by the sentence they
encode ("1 of last 5 failed"), so the row is legible on first sight and
precise on second.
TRUNCATION. "Paste from history" deduped by full prompt text while
DISPLAYING 60 characters, so two prompts differing only past character 60
rendered as two pixel-identical rows — a list that looks broken. It now
dedupes by what the row will actually say, keeps the busier of a colliding
pair, and caps at three: a convenience does not get to be the tallest thing
in the card.
Also fixes a real bug in useAttachments: addFiles called setNote inside a
setAttachments updater — a side effect in a reducer, which React is
entitled to run twice. The remaining count comes from a ref instead.
Docs: responsive-design.md gains a Control section stating the four rules
this page kept breaking (phone rules are the base, not the sm: variant; the
hero answers one question; small tasks are one queue not many strips; row
actions are never primaries; nothing relies on hover to be legible), plus
sections for the shared sheet primitive and the voice/pictures path.
npm run verify green.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01USTVtDg75MU5BREr1GWXs2
* control: fix three defects found reviewing my own diff
All three are mine, from the two commits before this one.
THE HERO COUNTED THINGS IT COULD NOT NAME. The headline used
`attentionCount + failedCount` while the names and the button came from
attentionProjects alone. A fleet with two failed dispatches and no blocked
projects therefore announced "2 projects need you", named none of them, and
offered no button — the exact failure this card was rewritten to remove.
Failed dispatches now get their own headline and their own destination
(scroll to the attention list) instead of being folded into a count of
projects they are not. `attentionCount` is dropped: it was
attentionProjects.length by another name.
QUEUE SILENTLY DROPPED SCREENSHOTS. Send counts attachments, so the Queue
button next to it was enabled with one staged — but the prompt queue
persists text, so queueing with words dropped the picture, and queueing with
only a picture did nothing at all. The queue cannot carry an attachment, so
the button now refuses out loud and says why.
A 20px TOUCH TARGET WITH A COMMENT CLAIMING OTHERWISE. The attachment remove
badge is 20px and its comment asserted the touch floor gave it a real hit
area — but the class was never added to the floor's selector list, so the
claim was false and the target stayed 20px. Added to the list, which is what
makes the comment true.
npm run verify green.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01USTVtDg75MU5BREr1GWXs2
* control: three layout defects only real rendering could show
Rendered the actual components (mock props, no DB) instead of hand-written
harness markup. Three defects the harness could not have caught, all mine.
THE MOST URGENT STATE RENDERED QUIETEST. staleClass (opacity-60) was applied
to the headline, so an offline builder — which is exactly when the fleet says
"Stalled" — drew that word at 60% opacity: the single most alarming state on
the card was its faintest text. Dimming is the right way to say "this number
may be out of date" about the COUNTERS and the wrong thing to do to the
answer. The caveat is now a sentence in warning colour under the headline,
and the headline is always full strength.
THE STATUS DOT FLOATED BESIDE NOTHING. `items-center` on the headline put the
dot at the vertical centre of the whole block, so as soon as the headline
wrapped — which at 320px is most of them, "2 projects need you" is two lines
there — it sat in the gap between lines. It now rides the first line and
stays there however many follow.
THE SYNC AGE BECAME A SECOND COLUMN. Folding it into the builder span to save
a foot line made it a FLEX ITEM of that span, so at 320px, where "Cloud +
this computer online" wraps, the age floated beside the wrapped label as a
broken-looking second column. It is prose inside one text node now, and the
foot is still two lines rather than three.
Also: SlidersHorizontal → Settings2 for the sheet trigger. Sliders read as
"filters"; a gear reads as settings, which is what it opens.
Verified by rendering all four hero states (needs-you, building, failed
dispatches, stalled-and-offline) at 320 and 390 with a coarse pointer: no
overflow, every target >= 44px, and the version string confirmed
display:none at 390 / block at 700 rather than merely absent from textContent.
npm run verify green.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01USTVtDg75MU5BREr1GWXs2
---------
Co-authored-by: Claude <noreply@anthropic.com>
The report was two problems wearing one complaint.
INERT. A soft keyboard has no arrows, no Esc, no Tab and no Ctrl — exactly
the keys an agent TUI asks its questions with. You could read "Set up auto
mode? [✔] Also scan shell history · ◄ Mixed ► · Continue" on your phone and
had no way to answer it. TerminalKeyDeck is that missing half of the
keyboard: a joined d-pad, Esc, Enter, and a scrollable lane of Space, Tab,
the Ctrl codes, page keys and the digits agent CLIs number their permission
choices with. Bytes are SSOT in config/terminal-keys.ts and go straight
through transport.sendKey. Arrows and Backspace repeat on hold; Enter and
the control codes deliberately do not. Keys fire on pointerdown with
preventDefault so a tap never dismisses the keyboard.
TOO BIG. Title, subtitle, source strip, tab strip, source select, session
select, agent button, mode select, honesty chip, font stepper — 331px of
controls above a terminal left with four visible lines. All of it setup,
none of it read while an agent works. It is now one header row (session
name, live dot, full screen) with everything else one tap behind it in
TerminalSessionSheet. The terminal keeps ~496px of an 844px screen.
Also: typing goes through a real textarea with autocorrect off instead of
the xterm canvas (no focus fights, no "cd ~/sec"), with a visible ⏎ toggle
for typing into a TUI's own filter without submitting; useKeyboardInset
pads by what visualViewport says the keyboard covers, so the deck sits on
the keys rather than behind them; font size and stream state are hoisted
out of TerminalView so the sheet and header can drive them.
Verified at 320 and 390 CSS px against the real compiled stylesheet: no
horizontal overflow, every keycap ≥44px. npm run verify green.
Claude-Session: https://claude.ai/code/session_01USTVtDg75MU5BREr1GWXs2
Co-authored-by: Claude <noreply@anthropic.com>
* refactor(thoughts): adopt bip-kit — the essay parser is now the published package
The inline block union, frontmatter parser, and parseThoughtBlocks in
thoughts-content.ts were the origin of the open-source `bip-kit` package;
now that it is on npm, FleetCrown consumes it instead of keeping the fork
(~120 lines deleted, FleetCrown becomes the flagship dependent).
Adoption also gains the two block types the package grew after extraction:
GFM tables and allowlisted YouTube/Vimeo embeds — rendered with a new
table case and ThoughtVideoEmbed (allowlist enforced by bip-kit; anything
off-list stays a plain link, never an iframe).
scripts/test/bip-seam.ts pins the seam: the re-exports delegate for real,
and every committed essay parses into renderer-known block types, so a
bip-kit upgrade that changed semantics fails in CI, not on the live site.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(bip): public theme SSOT, BiP docs, and essay dogfood on bip-kit
Stop forcing .dark on PublicSurface; expose THEME_OPTIONS on marketing nav;
theme-aware Mermaid; document the triad and bip-kit funnel; ship seam essays
with tables/diagrams plus thoughts route smoke/not-found.
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: t <t@t.t>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Reported from a phone: /loki and /terminal were unusable, and the work did
not appear to happen. Both halves were real.
It did not work. "…what is left to do with Orange Cat…" resolved to no
project and came back as a nine-chip picker that did not contain the project
just named. Two bugs lined up: project matching was `text.includes(slug)`, so
the registered `orangecat` never matched a typed "Orange Cat"; and
looksLikeDispatchTask treated any sentence over 16 chars containing " for " as
work, so a question was routed to an agent instead of answered.
- project-mention.ts is now the one matcher (four call sites each had their
own copy). Contiguous token runs, so "Orange Cat"/"orange-cat"/"OrangeCat"
all resolve, while "going" still does not match a project named `go`.
- Naming a project we do not have says so, in the operator's own words,
instead of listing nine others.
- The picker gained a filter and "Just answer" — a question that arrived
without a project is still a question.
It was awful. Loki centred the composer in ~1000px of empty grey, out of
thumb reach, and kept its opener chips through the whole conversation.
/terminal stacked 331px of desktop chrome above four visible lines of a
terminal whose text arrived torn mid-word.
- Loki docks the composer to the thumb zone on phones and fills the space
above it with the threads you were last in.
- /terminal hides the desktop stack below md for one two-row control bar;
the link bar collapses to a single line.
- xterm auto-fits its font until 80 columns fit (the width agent TUIs draw
for) instead of tearing that output into a 44-column grid, with an A−/A+
stepper and a live column readout. TERMINAL_MIN_COLS 40 → 60 so a phone
never reshapes a session a laptop is working in.
And the dangerous one: /terminal?tab=orangecat found no such session,
silently attached to sbb-lost-found, and left the bar below promising
"keystrokes go straight to the session". A miss now attaches to nothing
until the operator picks.
Covered by scripts/test/project-mention.ts and the extended
terminal-viewport suite; both run in test:unit.
Claude-Session: https://claude.ai/code/session_019imtHmWBrC94hVK1EMTpzi
Co-authored-by: Claude <noreply@anthropic.com>
Two things blocking a real Mac/Windows Fleet Runner build:
1. BUG: the release job matrix runs 'windows-2022' but the publish case matched
'windows-latest' — so on a real fleet-runner-v* tag the Windows branch never
matched and Windows was never published. Fixed the case arm.
2. Added a GATED code-signing hook: the build step now passes CSC_LINK /
CSC_KEY_PASSWORD (macOS), WIN_CSC_LINK / WIN_CSC_KEY_PASSWORD (Windows), and
the APPLE_* notarization vars through from repo secrets. Unset → empty →
unsigned build, exactly as today (no break to the ship-now path); set → signed.
3. docs/development/desktop-signing.md — the turnkey runbook: ship unsigned NOW
(push a tag → build+publish → mirror → flip comingSoon→ready), or ship signed
(add the listed secrets + the mac notarize/entitlements config given inline).
Certificates + minting a public release are yours (credentials + distribution
decision); everything that doesn't need them is done.
Co-authored-by: x <x@x>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Pricing page shipped + verified live at 320/375/1280px, Stripe-dark CTAs
correct (all start free, no dead buttons). Master plan Phase 1.2 page-half
marked done; remaining is founder connecting Stripe.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Make the CI-deploy workflow safe to merge to main while its prerequisites
(HETZNER_SSH_KEY secret, local hook disabled) aren't in place yet: the deploy
job now also requires repo variable DEPLOY_VIA_CI == 'true'. Unset → dormant, so
merging changes nothing until you flip the switch. Apply guide updated.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The stronger version of the blast-radius fix, beyond the InaccessiblePaths
drop-in: run the box-runner as an unprivileged `fcrunner` that owns only its own
dir instead of `ubuntu` (which owns every app's files).
- scripts/hetzner/migrate-box-runner-to-fcrunner.sh: creates fcrunner, copies the
agent runtime (.claude auth + credentials.json, the claude CLI in .local, .npm,
.gitconfig, runner token) from /home/ubuntu → /home/fcrunner (NOT .ssh), chowns
the runner dir, and installs a systemd drop-in (User=fcrunner + HOME/PATH
repointed + InaccessiblePaths hiding ALL of /home/ubuntu and every co-tenant
/opt/<app>). --dry-run / --revert. Idempotent. Prints the claude-auth
verification + creds-copy fallback.
- deploy-hetzner.sh + install-box-runner.sh now honor FLEETCROWN_RUNNER_OWNER
(default ubuntu, so no change until you migrate) — otherwise the per-deploy
runner chown would silently revert ownership to ubuntu.
- Apply guide updated with the migration steps + the coupling reminder.
Still NOT applied. bash -n clean; dry-run verified against the box.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Both prepared, NOT applied. Inert until you act — see
docs/development/devops-prep-apply-guide.md.
#1 — box-runner blast radius:
- scripts/hetzner/harden-box-runner.sh installs a systemd drop-in that makes the
co-tenant /opt/<app> dirs, /opt/backups, and /home/ubuntu/.ssh kernel-
inaccessible to the runner AND every agent PTY it spawns. Keeps User=ubuntu
(the claude CLI lives in /home/ubuntu, so no user migration needed). Safe: the
runner only touches its own dir + fresh clones under /home/ubuntu/dev, never a
co-tenant /opt (verified in box-workspace.ts). --dry-run / --revert supported.
- install-box-runner.sh bakes the same InaccessiblePaths into the unit for fresh
installs.
#2 — CI-gated deploy:
- .github/workflows/deploy.yml runs ONLY after CI succeeds on main, builds
(schema-only Postgres service), and ships via deploy-hetzner.sh --no-build so
the flock/rollback/verify logic carries over. A red CI → no deploy. Needs a
HETZNER_SSH_KEY secret; the local push-deploy hook must be disabled to avoid
double deploys (documented).
- scripts/setup-branch-protection.sh (opt-in, separate) requires the CI check
before merge — rejects direct pushes to main, so only for a PR-based flow.
bash -n + deploy.yml structural checks clean; drop-in dry-run verified.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pre-push prod dogfood and headless dogfood scripts source .env.local so
git push runs the full prod suite without exporting the PIN manually.
Co-authored-by: Cursor <cursoragent@cursor.com>
Expose GET /api/memory/rag-stats for ME02 smoke, add local-builder
open-tabs/peek probes when Fleet Runner is connected, and skip machine
dogfood cleanly when only the cloud builder is online.
Co-authored-by: Cursor <cursoragent@cursor.com>
Extend Loki dogfood to verify the Terminal This computer shell after
dispatch, and grade X05 as partial when Fleet Runner is not connected.
Co-authored-by: Cursor <cursoragent@cursor.com>
Extend the opt-in pre-push prod dogfood path to include authenticated smoke,
verify goal-card dispatch when a builder is online, and document manual
runbooks for third-party flows.
Co-authored-by: Cursor <cursoragent@cursor.com>
Run ui-flow-dogfood on every push with SMOKE_PRIVATE_PIN; run loki dogfood
only when the builder is online (or DOFOOD_LOKI_ON_PUSH=1).
Co-authored-by: Cursor <cursoragent@cursor.com>
Add headless Playwright dogfood covering Ask Loki from card, habit
heatmap, goal Control prefill, prompt fork, and Run with Loki modal.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add X01–X09 API probes to authenticated smoke (97 total), print-session-token
helper, dogfood:loki:ci with JWT mint, and grade execution flows in the audit doc.
Co-authored-by: Cursor <cursoragent@cursor.com>
Round-trip POST/PATCH/DELETE for people, goals, habits, events,
subscriptions, and prompts when SMOKE_PRIVATE_PIN is set. Updates
user-flow-audit checkboxes (89/89 on prod).
Co-authored-by: Cursor <cursoragent@cursor.com>
Browser-first onboarding and executor-copy SSOT; Loki imperatives and move-forward
route to the same builder queue as Control with cloud-first Terminal links; fleet-kick
queues when offline; deploy script syncs box-runner.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add Build/Pause selected on Control, multi-project command fan-out in Loki,
and route scoped screenshots to dispatch with vision preflight instead of chat.
Co-authored-by: Cursor <cursoragent@cursor.com>
Start building now batch-dispatches next_best on eligible idle projects
(capped at three concurrent) and Loki accepts develop-all phrasing; restore
the daily idle nudge for users with autopilot on after the mode collapse.
Co-authored-by: Cursor <cursoragent@cursor.com>
Route shell FAB and loki:open to /loki with composer prefill; retire the
chat-only modal. Add fleet list/create NL fast paths, project picker chips
for ambiguous dispatches, and a db helper to inspect recent conversations.
Co-authored-by: Cursor <cursoragent@cursor.com>
Clarify Saved prompts vs Up next vs Recent dispatches vs Paste from history
via config/control-labels.ts; align activity stats and composer hints.
Co-authored-by: Cursor <cursoragent@cursor.com>
Merge SLH into surf-your-life on prod, drop orphaned box DB, remove SLH from
hetzner manifest, and wire Bitbaum user_projects dir for local dispatch.
Co-authored-by: Cursor <cursoragent@cursor.com>
Merge Cockpit and empty dupes into canonical entities, delete infra/stub
rows, and ship retire-stale-projects.ts plus merge helpers for future hygiene.
Co-authored-by: Cursor <cursoragent@cursor.com>
Re-ran enrich-prod-profiles against Hetzner — 16 projects now have
architecture/conventions/DoD. Add Groq retry for transient fetch failures.
Co-authored-by: Cursor <cursoragent@cursor.com>
Hide bottom nav and top bar while drawers/modals are open; improve project
profile header layout, tab bar, and card action sizes. Add mobile pages audit script.
Co-authored-by: Cursor <cursoragent@cursor.com>
Expand/collapse on phones gives xterm usable height; Loki dispatches route
"let's develop" through next_best and link to watch the agent. Profile drawer
follows action-first hierarchy with filtered activity noise.
Co-authored-by: Cursor <cursoragent@cursor.com>
Replace three theme buttons with one cycle control in the top bar, sidebar,
and mobile menu; restructure the mobile Menu sheet to mirror sidebar sections.
Co-authored-by: Cursor <cursoragent@cursor.com>
Mobile chrome tokens and viewport panes replace ad-hoc height math on Loki,
Terminal, and workspace routes; modals, drawers, composer, and Control rail
stack correctly on narrow screens. Docs and changelog updated.
Co-authored-by: Cursor <cursoragent@cursor.com>
Root cause of blank /terminal live view: dual runner instances racing
(stale Singleton lock cleared while old process lived), peek_start blocking
on zellij execSync for non-PTY tabs, and streams stuck on zellij after PTY launch.
- peek-streamer: defer zellij first tick so peek_start acks immediately; remove v0.8.4 diagnostics
- poller: stopPeek before startPeek so PTY streams upgrade when agent launches
- index: terminate stale runner PIDs on lock acquire; process.exit(0) on lock failure
- zellij: execSync timeouts on focus/dump-screen (prevents poller hang)
- docs: /terminal My machine workflow and version requirements
Co-authored-by: Cursor <cursoragent@cursor.com>
Phase 1 of the reliability/UX cleanup:
- Launch modal: model choice is no longer mandatory. Launch enables as soon as a
CLI/agent is picked; model field is optional (defaults to the agent's default,
labeled as such). Choosing the CLI is enough. (control-panel-modals.tsx)
- Offline banner: one source of truth. RunnerStatusBanner owns the full "offline
— commands queue until it reconnects" alert; ControlFleetStatus is now a
compact status indicator and project-intent-panel a short inline hint — no more
triple-rendered banner. (ControlFleetStatus.tsx, project-intent-panel.tsx)
- Daemon retirement finished: purged stale user systemd units
(fleetcrown-daemon, beacon-window, an obsolete cockpit-* dir) and rewrote
misleading docs/comments (cloud-local-workflows.md, home/watcher.ts,
home/emit.ts) that still described the deleted bash daemon as live. Kept the
intentional 410 route + historical essays.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Bring docs + config in line with what's actually deployed (self-hosted
Hetzner, Postgres 'fleetcrown', no Vercel/Neon):
- .env.example: 'Production (Vercel)' -> self-hosted Hetzner; drop the
removed-in-c6bc058 Neon fallback line (NEON_* is no longer read);
cockpit-app -> fleetcrown-app; cockpit DB -> fleetcrown in example URL
- docker-compose.yml: local-dev Postgres db/user cockpit -> fleetcrown
(matches the box DB name; was internally inconsistent)
- docs/debt-reduction-roadmap.md + scripts/fleet: dead /home/g/dev/cockpit/
paths -> /home/g/dev/fleetcrown/ (repo was renamed; links were broken)
- scrub real-name/email leaks from committed content: 'George' -> 'a solo
founder' in the kill-switch essay; real test email -> generic in the
one-click dev plan (pseudonym hygiene)
Preserved all legitimate historical mentions (migration docs, thoughts
essays describing the exit from Vercel/Neon).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sequenced runbook for moving OpenClaw/Ivy onto the (now CX43, 16GB) box —
co-located, hardened (non-root user, pg_hba deny, loopback gateway), with the
off-box heartbeat that makes co-location safe. migrate-openclaw.sh automates
the mechanical parts (stop→package→transfer→restore→perms) and gates the
credentialed/judgment steps (gateway install, venv rebuild, WhatsApp re-pair).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Self-hosted on Hetzner is the only reality now; the leftover references were
stale at best and a security hole at worst. Thorough sweep across code, config,
scripts, docs, and comments (84+ files). Self-hosted supabase.orangecat.ch is
kept; historical migration records stay accurate.
Functional / security fixes:
- cron-auth: prod detection was process.env.VERCEL (unset on the box!), so the
fail-closed 'CRON_SECRET unset -> 503' gate never fired in production. Now
keys on NODE_ENV=production. (security)
- auth trustHost: dropped the dead process.env.VERCEL===1 branch.
- AppFooter: read the baked-in build SHA instead of VERCEL_GIT_COMMIT_SHA/ENV.
- project bootstrap: removed 'neon projects create' + the Vercel deploy brief;
DB option is now self-hosted Postgres, deploy guidance is the self-hosted flow.
- db-url: removed the legacy NEON_DATABASE_URL* fallbacks (+ updated its test).
Infra / removals:
- deleted .github/workflows/vercel-deploy.yml and scripts/db/dump-from-{neon,supabase}.sh.
- stripped NEON_* env fallbacks from db dump/restore/sync scripts.
User-facing:
- desktop offline overlay no longer blames a 'Vercel hiccup'; privacy page +
PRIVACY_POLICY subprocessors now say Hetzner self-hosted / self-hosted Postgres.
Plus ~50 comment/doc rewrites (Vercel -> the cloud host/the box; Neon -> Postgres).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- extractProjectProfile absorbs one Groq 429 with a 20s backoff (free-tier
bursts shouldn't fail a user-facing fill)
- next_step prompt now demands the owner's next build/business action, not
reader install instructions (dry-run leaked README quickstarts)
- scripts/enrich-prod-profiles.ts: backfill prod profiles from local repo
README+CLAUDE.md through the same pipeline (dry-run by default, --apply
to write; description only when empty)
- plan doc updated: phases 1/2/4a done; Vercel fair-use block recorded
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
One-click development UX:
- AutomationPolicyControl: fleet-wide Build all / Pause all button (was a
select) — the one primary action on /control, pulsing dot while building
- ProjectAutopilotToggle: per-project Building/Paused play-pause (was a
dropdown); toggling back to the inherited mode clears the override
No-forms context intake:
- lib/project-brief: Groq extraction of description/mission/vision/customers/
stack/status/next_step from free-form text, applied to the entities +
attributes SSOT
- POST /api/projects/[id]/brief: free-form text -> filled profile
- POST /api/projects/[id]/enrich: repo README + CLAUDE.md -> filled profile
(entities.git_url with attrs.repo fallback, user GitHub token for private)
- ProjectBriefFill on the project overview tab: 'Describe it' textarea +
'Fill from repo' one-click
- getGithubToken deduped out of three routes into lib/github-token (rule of 3)
- ProjectData gains first-class gitUrl (removes the dataAny escape hatch)
Thoughts: 'The Play Button Is the Product' — the vision piece behind this.
Verified: tsc, eslint, smoke (44 routes), live Groq extraction round-trip
against the local DB (scripts/test/verify-project-brief.ts).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>