* design: Loki has no orange; the public call to action is the achromatic accent
The app's own buttons went monochrome on 2026-10-19; the public site kept
a warm orange (#ff5c00) on Start a project, Get started, the auth submit,
the focus ring and the essay progress bar. It is not Bitcoin orange and it
means nothing on a product that is not about Bitcoin (owner, 2026-11-11).
- --accent-warm, --accent-warm-hover and --public-accent are removed; every
class that used them reads --accent-primary / --accent-hover, so one
filled button exists in Loki and it is theme-aware
- --on-accent is the inverted text. It was a fixed near-black, which on the
near-black light-theme accent left .ui-btn-xs.ui-btn-primary unreadable
- the focus ring and the public glow are neutral
- token-drift declares the divergence from @bitbaum/design-tokens; the
widget theme is regenerated from the tokens
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
* fix(workbench): a failed task says why and gives the words back
Sent an OrangeCat task from the workbench on 2026-11-11. Claude was signed
out on the cloud runner; the status API said so with the fix, and the
composer showed the two words 'Dispatch failed' over an emptied box.
- dispatchFailureForPerson: a signed-out agent is named in the sender's
words; any other reason is passed through instead of dropped
- the composer shows that reason under the label and offers 'Put my words
back', since the box is cleared on send
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
* fix(nav): the phone's chat screen names Home, Projects and Terminal
The owner, signed in on a phone on 2026-11-11, could not find the terminal.
The chat is the default screen and hides the tab bar; its left button opened
a list of chats and nothing else, and its menu offered 'Projects' (which
only set the chat's project) and 'Everything else'. The page itself was
called Sessions, so no menu contained the word.
- CHAT_PLACES (config/navigation.ts) is one list of Home, Projects, Terminal
- the chat menu lists them by name, then 'All pages'; the item that sets
the chat's project says so
- the chats panel the left button opens lists the same three, phones only
- the page is called Terminal in the nav, its title and its links
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
* fix(sessions): a signed-out Claude is one button in the chat view
A session opens in its Chat view. When Claude's login had expired, that view
showed the agent's own line, 'Please run /login', and reply chips that would
fail the same way; the 'Sign in /login' button existed only in the Terminal
view. The owner, on a phone, could not find how to sign in (2026-11-11).
The chat view reads the reply through the same detector as the terminal
(screenActions) and offers 'Sign Claude in', which types /login and switches
to the terminal where the link is printed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
* fix(ux): signed in means the app, and a retried task shows what was asked
Two more things the owner met on a phone on 2026-11-11.
- Opening loki.orangecat.ch while signed in showed the marketing page and
its marketing menu; the way in was a button. A signed-in visitor now lands
in the app (APP_HOME; RUNNER_HOME inside Fleet Runner). ?site still opens
the homepage on purpose, and signed-out visitors are unchanged.
- A retried dispatch opens with the escalation block, longer than the 200
characters isOperatorEnvelope read, so the whole packet ('Escalation
state … rung 3/4', 'Exit contract') was drawn as the person's message. It
is recognised now; the bubble shows the task, the packet is one tap away.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
* feat(orangecat): tell OrangeCat which provider keys a person holds here, by name
The owner's xAI key was on Loki and not on OrangeCat: for the same linked
person Loki's chat answered on grok while OrangeCat's Cat sat on an
exhausted free pool, and neither product could say the other had a key.
The signed actor-status reply now carries modelKeys: vendor, model and the
last-characters hint, one per vendor, never a custom endpoint and never a
key. OrangeCat uses it to suggest adding the same key there.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
* fix(sessions): the phone's session list leads with what needs you
The picker listed every open session in the order it was opened: 27 rows,
'Loki 2' to 'Loki 15', with the three waiting on the owner somewhere among
them (2026-11-11). orderSessions puts waiting, working and finished
sessions first, with the one in use, and folds the merely-open ones behind
one row, 'N more open sessions'.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
* ops(hetzner): a read-only report of what uses the box's memory and disk
On 2026-11-11 the box sat at 91-95% memory and 91-93% disk; both sites
reset connections and CI could not sign in against production auth, and
nothing could say what was using either. disk-cleanup.sh reclaims disk;
nothing measured memory.
box-usage.yml runs scripts/hetzner/box-usage.sh over the same SSH setup as
box-doctor. It prints memory by program (names only, never a command
line), agent CLI and browser counts, out-of-memory kills, container
memory, and the largest directories, and changes nothing.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
* fix(ops): the disk cleanup measures within a budget, so it reaches its plan
Its first run (2026-11-11, dry) was cancelled at 30 minutes having printed
four sizes and planned nothing: du on /opt alone took 14 minutes on a disk
full of node_modules, and the script measures every release before it
plans a single tier. Sizes are for the reader; what was freed is read from
df. Each size now gets 45 seconds and prints 'over 45s' instead of waiting.
The inventory also names /home/ubuntu and the agent directories under it,
which the first run never reached. Workflow limit raised to 60 minutes.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
---------
Co-authored-by: Claude <noreply@anthropic.com>
* design: Loki has no orange; the public call to action is the achromatic accent
The app's own buttons went monochrome on 2026-10-19; the public site kept
a warm orange (#ff5c00) on Start a project, Get started, the auth submit,
the focus ring and the essay progress bar. It is not Bitcoin orange and it
means nothing on a product that is not about Bitcoin (owner, 2026-11-11).
- --accent-warm, --accent-warm-hover and --public-accent are removed; every
class that used them reads --accent-primary / --accent-hover, so one
filled button exists in Loki and it is theme-aware
- --on-accent is the inverted text. It was a fixed near-black, which on the
near-black light-theme accent left .ui-btn-xs.ui-btn-primary unreadable
- the focus ring and the public glow are neutral
- token-drift declares the divergence from @bitbaum/design-tokens; the
widget theme is regenerated from the tokens
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
* fix(workbench): a failed task says why and gives the words back
Sent an OrangeCat task from the workbench on 2026-11-11. Claude was signed
out on the cloud runner; the status API said so with the fix, and the
composer showed the two words 'Dispatch failed' over an emptied box.
- dispatchFailureForPerson: a signed-out agent is named in the sender's
words; any other reason is passed through instead of dropped
- the composer shows that reason under the label and offers 'Put my words
back', since the box is cleared on send
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
* fix(nav): the phone's chat screen names Home, Projects and Terminal
The owner, signed in on a phone on 2026-11-11, could not find the terminal.
The chat is the default screen and hides the tab bar; its left button opened
a list of chats and nothing else, and its menu offered 'Projects' (which
only set the chat's project) and 'Everything else'. The page itself was
called Sessions, so no menu contained the word.
- CHAT_PLACES (config/navigation.ts) is one list of Home, Projects, Terminal
- the chat menu lists them by name, then 'All pages'; the item that sets
the chat's project says so
- the chats panel the left button opens lists the same three, phones only
- the page is called Terminal in the nav, its title and its links
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
* fix(sessions): a signed-out Claude is one button in the chat view
A session opens in its Chat view. When Claude's login had expired, that view
showed the agent's own line, 'Please run /login', and reply chips that would
fail the same way; the 'Sign in /login' button existed only in the Terminal
view. The owner, on a phone, could not find how to sign in (2026-11-11).
The chat view reads the reply through the same detector as the terminal
(screenActions) and offers 'Sign Claude in', which types /login and switches
to the terminal where the link is printed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
---------
Co-authored-by: Claude <noreply@anthropic.com>
The app's own buttons went monochrome on 2026-10-19; the public site kept
a warm orange (#ff5c00) on Start a project, Get started, the auth submit,
the focus ring and the essay progress bar. It is not Bitcoin orange and it
means nothing on a product that is not about Bitcoin (owner, 2026-11-11).
- --accent-warm, --accent-warm-hover and --public-accent are removed; every
class that used them reads --accent-primary / --accent-hover, so one
filled button exists in Loki and it is theme-aware
- --on-accent is the inverted text. It was a fixed near-black, which on the
near-black light-theme accent left .ui-btn-xs.ui-btn-primary unreadable
- the focus ring and the public glow are neutral
- token-drift declares the divergence from @bitbaum/design-tokens; the
widget theme is regenerated from the tokens
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
Co-authored-by: Claude <noreply@anthropic.com>
The bitbaum root disk is over 90%. This adds a workflow_dispatch job,
defaulting to dry_run=true, that SSHes with the existing deploy key and
reclaims reconstructible space only: journals, apt and npm caches, release
dirs beyond current+previous, unused Docker images and build cache, old
rotated logs, and Postgres dumps older than 14 days. It never touches
volumes, databases, running containers, shared env, or the live/previous
release. It also reports and, when the unit already exists, re-enables
disk-gc.timer and pg-backup.timer if they were simply disabled.
Failed and Needs you always carry a reason and an exact next action (with the
dispatch call). Done needs PR, merge, deploy and a live URL, else Needs you
(done_unproven, with what is missing). Closed without a change is Failed, not
a Done with empty evidence. Reporter state now reads the same live URL.
Claude-Session: https://claude.ai/code/session_019MDtmuk1DzMJHBJdsDfRhG
Owner, 2026-11-06: the fleet's packages belong under the @bitbaum npm
organization (fleet docs/package-scope-migration-plan.md). Only Loki's own
dependency keys and import specifiers move. The register-facing files stay as
they are until fleet's registers name the scoped packages: the generated
fleet-brief snapshot and starter app, the site-template mirror (changed only by
scripts/templates/sync-starter.sh), the kit plan and its tests.
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD
Co-authored-by: Claude <noreply@anthropic.com>
user_projects.agent_builds_unasked: an agent's report builds on the
owner's builder without a tap. user_projects.editors_may_build: an editor
may use dispatch on the owner's builder. Both nullable, default off, set
by the owner at /api/projects/[id]/build-grants. Filing alone never builds
unless the owner opted in; every other seat still never dispatches.
Claude-Session: https://claude.ai/code/session_019MDtmuk1DzMJHBJdsDfRhG
The auto-merge sweep (event workflow_run) runs on main's SHA every time any
pull request's CI finishes. The gate counted it as CI, so a deploy waited at
PENDING until the sweep went quiet: solon's #484 had CI green at 09:24 UTC on
2026-11-10 and its deploy only passed the gate at 09:36, and every merge in
the queue waited behind that. A chained data job (places-data) failing would
also have blocked a deploy, the same class as the 2026-11-01 data-load bug.
The event test becomes an allowlist (push, pull_request, pull_request_target,
merge_group), matching the rule the comment already states. Four new cases in
test-ci-gate.sh; 22 pass.
canonicalStatus() maps work.phase to the six statuses of RUN-STATUS-SSOT
plus cause, nextAction and evidence. GET /api/feedback/[id]/status serves
it (owner/editor in full, other seats the state of their own report),
Watch carries status.canonical, the reporter view carries state only, and
the agent filing route's statusUrl now points at the status route.
* feat(feedback): agents file reports with their own seat's Bearer token
POST /api/projects/[id]/feedback takes a ck_ token of any seat on the
project, stores source 'agent' with agentName and an idempotencyKey
(unique per project), and returns {id, status, statusUrl}. Filing never
starts a build: agent is not in BUILDS_UNASKED, so it waits for a tap.
* feat(feedback): agent reports carry screenshots, context and moments
One attachment schema (lib/feedback/attachment-schema.ts) now backs both
POST /api/feedback and POST /api/projects/[id]/feedback.
* style: format the generated drizzle meta
apps.conf lists revamp-info.orangecat.ch first (the Revamp-IT tenant site),
so the footer linked Hirnli to a customer's page. fleet-site-copy gains an
optional host, checked against the app's own apps.conf hosts; host order,
Caddy and deploys are unchanged.
GitHub Actions reserves the GITHUB_ prefix and will not store a secret
under such a name, so a names list that includes one can never work.
The shared script and reusable workflow now fail with a clear message.
The fixture in the tests uses GH_CLIENT_ID, matching Morulia.
loki-reindex hit its 15-minute TimeoutStartSec on 2026-11-09 with no error:
every run re-embedded every chunk for every user, ~630 identical essay chunks
per user included, and it was cut off after eight users. upsertKnowledgeBatch
now compares each chunk with the stored md5 for the same source and sends only
new or changed text to the embed server; an unchanged chunk only gets its
metadata refreshed.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
user@1000 failed three times on 2026-11-08 with "Main process exited,
code=killed, status=9/KILL": the kernel killed systemd --user itself, which
OOMPolicy=continue (#1606) cannot survive. Upstream user@.service ships
OOMScoreAdjust=100, which makes the ~10 MB manager outrank most real memory
hogs. The drop-in now sets OOMScoreAdjust=0 so the manager is ranked by its
real size and the OOM killer goes after the process using the memory.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
signin-wake.service failed on 2026-10-31. Its unit files were deleted when
signin went live and was later retired, but nothing ran reset-failed, so
systemd kept it as LOAD=not-found / failed. host-check's sweep paged it and
dispatched a fix agent every day from 2026-11-05 to 2026-11-08, each time
with an empty journal. #1603 stops the live switch from leaving new ghosts
behind. This clears the existing one, and any later one, with no hand on
the box.
The sweep now runs reset-failed on failed services whose LOAD column is
not-found, writes one journal line for each, and leaves them out of the
paged set. Nothing can start such a unit again, so there is nothing to fix.
A deleted unit file that a live site needs is still caught: the watchdog
probes the site itself.
install-box-alerts.yml installs this on merge (it watches this file).
test-host-alerts.sh: four new checks (a ghost is cleared and never paged
or tracked, and a real failure beside it still pages and is not cleared);
110 passed.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(rag): the embed server drops work nobody is waiting for, so one slow page cannot fail the reindex
The 2026-11-07 03:30 loki-reindex ran 15 minutes of "[embeddings] failed: The
operation was aborted due to timeout" and was killed by TimeoutStartSec. The
first user got 384/637 chunks, the second 0/632, with 3.9s of client CPU.
#1594 serialized inference behind one lock. The client aborts a page after
30s, but the server kept computing the abandoned page under the lock, so the
next page queued behind dead work, timed out too and left its own behind.
After the first slow page every page failed.
- embed-server.py checks whether the caller is still connected when it takes
the lock and between batches, drops the work if not, and logs the drop.
- embeddings.ts pages at 16, the server's own batch, instead of 48: a third
of the time per request against the same 30s timeout, and a third of the
wait for a live caller queued behind the reindex.
- scripts/test/embed-server-drops-abandoned.ts runs the real server.py on a
slow stub model. Against the old server the next caller waited 1761ms
behind abandoned work; now it does not.
Every deploy syncs server.py and restarts loki-embed when it changed (#1595).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ops): an OOM kill no longer takes down the ubuntu user manager
user@1000.service (the ubuntu account's systemd manager on bitbaum) failed
with "The kernel OOM killer killed some processes in this unit" followed by
"Failed with result 'signal'", and paged as a failed unit. It is the same
failure #1601 fixed for the openclaw manager (user@1001): systemd's default
OOMPolicy=stop stops the whole manager when the kernel kills any one process
inside it.
The deploy step from #1601 now installs the same OOMPolicy=continue drop-in
for both the openclaw and the ubuntu managers. It still writes only the
drop-in and runs daemon-reload (only when a file changed), restarts nothing,
skips users that do not exist, and warns without failing the deploy. The conf
and its guard test drop the openclaw- prefix, since they now cover both; the
test fails if ubuntu leaves the list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
sync-infra's live branch stopped <app>-wake.service and deleted its unit
files, but stopping a failed unit does not clear its failed state. systemd
then keeps it as a not-found, failed unit that nothing ever starts again,
and host-check's failed-unit sweep reports it as still failing.
signin-wake.service failed on 2026-10-31 (Result: resources, #1491). signin
went live minutes later (#1490). On 2026-11-01 an older retire-site.sh that
did not yet know about wake units retired signin. The ghost unit was still
dispatching an incident on 2026-11-05.
The live branch now runs reset-failed on both wake units before it removes
their files. retire-site.sh --mode delete already does the same.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 07:10 UTC the box ran out of RAM. The kernel OOM-killed
openclaw-gateway (797.5M peak), then its restarts and the user's dbus.
systemd's default OOMPolicy=stop then stopped user@1001.service, the
openclaw user's manager and the only thing that restarts the gateway, so
WhatsApp and the Telegram chat stayed down for more than a day.
Ship a drop-in, user@<openclaw uid>.service.d/10-oom-continue.conf, with
OOMPolicy=continue (same lesson as loki-box-runner, 2026-09-25). Every
deploy installs it with daemon-reload only. It restarts nothing, warns on
failure, and is skipped where there is no openclaw user.
openclaw-gateway-up.sh and doctor-messaging.sh report whether it is in
place. The doctor now asks systemd for the manager's state instead of
trusting the bus socket, which outlives a dead manager.
scripts/test/openclaw-survives-oom.ts guards both halves.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
grep exits 1 when the key is missing, and set -e aborted the shared
runner before curl. A daily job whose app does not use the secret
(botsmann /api/rebuild) then paged as status=1 with no HTTP line.
The memory bound from #1594 merged and changed nothing on the box: server.py
and the loki-embed unit were written only by install-fleet-rag.sh, which needs
a laptop's ssh key (and this morning the laptop's agent could not sign). The
unit lived as a heredoc inside that installer, so the deploy had nothing to
ship.
Move the unit to scripts/hetzner/loki-embed.service, have the installer copy
it, and have deploy-hetzner.sh content-sync server.py + the unit, restarting
loki-embed (and waiting on /health) only when one changed. Warn-only, skipped
where the install never ran. scripts/test/deploy-ships-embed.ts guards both
halves.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(rag): bound the embed server's memory so a reindex cannot starve the box
The 03:30 loki-reindex drove loki-embed (ThreadingHTTPServer, one onnxruntime
run per concurrent request, arena never returned) to 2GB, filled swap, and
pushed load to 53. Postgres connects timed out, so six other apps' crons
failed — sbb-fundbuero purge among them — until the OOM killer took the
embed process at 03:33:05.
Serialize inference behind a lock with a small batch size, and give the unit
MemoryHigh/MemoryMax so the kernel reclaims or kills this process alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(test): box-register-follow fixture no longer commits into the real repo
Under the husky pre-push hook the inherited GIT_DIR turned the suite's
`git init` into the pushing checkout: commits "one"/"two" landed on the
branch (emptying its tree) and core.bare=true reached the shared .git/config,
breaking the main checkout. Source git-fixture-env.sh like its siblings, and
add test-git-fixtures-isolated.sh to test:ops so a new fixture suite that
skips it fails instead of becoming the fourth incident.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
fc-cron@nudge-idle kept failing with HTTP 404 every night: the route was
retired on 2026-10-10 (replaced by autopilot-night), but
install-hetzner-crons.sh only ever wrote and enabled timers, so the old
timer stayed on the box calling a route that no longer exists.
The installer now treats SCHED as the whole list: any fc-cron@*.timer on
the box whose name is not in SCHED is disabled, deleted, and its service's
failed state reset. The deploy already re-runs the installer, so the merge
clears the nudge-idle unit with no hand step. test-cron-runner.sh covers
the prune against a stubbed systemctl.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
loki-reindex.service died on MODULE_NOT_FOUND: scripts/reindex-knowledge.ts
reaches src/lib/feedback/tour-token.ts, which imports widget/tour (since
#1534), but deploy-hetzner.sh and install-box-runner.sh never rsynced widget/
into /opt/loki/runner. Ship widget/ alongside src/ and chown it.
scripts/test/runner-ships-imports.ts walks the static import graph from every
runner entrypoint the deploy ships and fails if any reached file is not
covered by a sync_runner line — it reproduces this incident on the old deploy.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
SuccessExitStatus=143 only covers a Node that exits within the template's
3s TimeoutStopSec. biaslens-app (2026-11-04) did not: systemd killed it,
recorded Result=timeout, the unit read failed and the nap paged as an
incident. A nap follows 15min with no connection, so nothing is left to
drain; stop sleeping apps with SIGKILL and count it as a clean exit. OOM
kills still read failed (Result=oom-kill comes from the cgroup).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A live check that dies halfway leaves its throwaway account behind, and only
GoTrue's admin API can remove it (orangecat#1533 left one). The workflow finds
the user by an exact match of the email, deletes it with
DELETE /auth/v1/admin/users/<id> using the service-role key already on the box,
and reads the lookup back. Only example.com, example.test and .invalid
addresses are accepted, a second match is never guessed between, and no key is
printed. Tested against a fake admin API in test:ops.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
kivvi serves apps/web from its release, so its receipt is under
app/apps/web/public, and lightning-on said "no AccountKit in its release".
The receipt is now looked for up to five levels into the release.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
lightning-on all reached every app whose release carries AccountKit 0.26.1+,
including three whose sign-in other work owns right now (aoz-wohnen,
botsmann, vitareba). lightning-off removes the flag from one app and restarts
it; it refuses all.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
On the box, biaslens's release had no @bitbaum/accountkit/package.json (a
standalone build traces only the files it runs), so lightning-on said "no
AccountKit in its release". The release receipt names the locked version;
it is read first, then the package files as before.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
Closes#1566. Loki answered sign-in from AccountKit but drew its own forms;
its sign-up asked for a name and the password twice. On the AccountKit
runtime its sign-in, sign-up, recovery and account panel are now
AccountKit's SignInForm, SignUpForm, PasswordRecoveryForm and AccountPanel,
the same screens as every fleet app (screens: "accountkit").
- Sign-up asks for an email and a password, nothing else.
- Sign-in: OrangeCat, GitHub (Loki's own app, githubSignIn, AccountKit
0.26.1), the passkey, the password, the sign-in link and recovery, in
AccountKit's order and words; the demo and the site-widget hint stay
around the card.
- Settings → Account: AccountKit's panel (ways to sign in, passkeys, the
second factor). Loki keeps its own name, password change (through
AccountKit's endpoint when the credential is AccountKit's) and its own
deletion (DELETE /api/me, every table; accountDeletion: false).
- The sign-in hook's bootstrap (Loki row, personal org) is unchanged and
runs for AccountKit's sign-up too; a note's tracking link is claimed
before onboarding, as the old form did by hand.
- Auth.js (AUTH_RUNTIME unset) keeps Loki's old forms.
Journeys (real Postgres, test:db): AccountKit sign-up gives a Loki row
and a personal org; its password change works on an imported Loki hash
and ends the old one; its deletion answers 404 and Loki's row stays; the
GitHub-only / no Google, X or env owner key journey is kept. Browser
(scripts/test/accountkit-screens-browser.ts, 390 and 320px): sign-up
fields, sign-in order, the panel, adding a passkey and signing in with it.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
The first run of install-backups.yml (#1572) wrote every local dump in 45
seconds, then waited 29 minutes on restic before "restic repo unreachable",
and the job's 30-minute limit cancelled the check after it. It had already
printed all 412 files in /opt/backups/pg at mode 600, the newest dump too.
restic's reachability check now gets 120 seconds, the push an hour and the
prune half an hour, and the job 90 minutes, so a dead target is reported
quickly and the mode check always reports. The off-box target itself is
unreachable and needs its owner (Storage Box); that is not fixed here.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
AccountKit 0.26.1 mounts Lightning login (LNURL-auth) only with
ACCOUNTKIT_LIGHTNING=1. app-secrets.yml action=lightning-on adds it to one
app, or with app=all to every app whose running release carries AccountKit
0.26.1 or later, and restarts it. An older copy anywhere in the release holds
an app back; a value someone set is kept; nothing is paired, there is no key.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
The first apply (orangecat#1533) set the four variables and recreated the
auth container, and passkeys_enabled reads true; but the read-back ran into
the few seconds the restarting server answers 5xx, curl -f failed under set -e,
and the run reported failure. A failed read is now "not yet".
www.orangecat.ch serves the site itself (200, no redirect), so a passkey
ceremony there needs its origin listed; the RP id orangecat.ch covers it.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
* feat(ops): OrangeCat passkeys switch, a workflow for GoTrue's four variables
OrangeCat's code offers passkeys and hides them while GoTrue says
passkeys_enabled: false. GoTrue's env lives in /opt/supabase/docker, which no
workflow wrote, so the switch could only be thrown by hand (orangecat#1533).
orangecat-passkeys.yml (show / apply / rollback) sets GOTRUE_PASSKEY_ENABLED
and the relying party (orangecat.ch, OrangeCat, https://orangecat.ch) in
.env, passes them through the auth service's environment once, recreates
only that container and reads passkeys_enabled back from the public
settings. An RP id someone already set is never moved: passkeys made for it
would be stranded. Names and verdicts only in the log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
* fix(ops): no grep -q at the end of a pipe in the passkeys switch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
---------
Co-authored-by: Claude <noreply@anthropic.com>
AOZ refuses an unconfirmed address at sign-in when mail is configured
(emailConfirmation: 'before-sign-in'). Two proofs would have read that as a
failure:
- switch: the imported legacy proof account was written unconfirmed, so its
live sign-in would be refused and the switch rolled back. It is now written
with a confirmed address, as a claimed AOZ account has.
- prove: a fresh sign-up there waits for its mailed link instead of signing
in. An .invalid address receives no mail, so the journey confirms the
address as that link would, says so, and signs in.
Vitareba (no confirmation wall) is unchanged: its sign-up signs in at once.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
* fix(auth): Loki's sign-in in AccountKit's order and words
Every other app on AccountKit's screens draws OrangeCat, the passkey, the
password, the sign-in link and then recovery, and links between the pages
with "Create an account" / "Sign in". Loki put "Forgot password?" under the
password field and said "Welcome back", "Create one free →" and "Already
have an account? Sign in →".
The sign-in and sign-up cards now take those words from AccountKit's labels,
and recovery is a full-width row after the sign-in link. Loki still draws
these forms itself; moving them onto SignInForm/SignUpForm/AccountPanel is
the next step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
* test(auth): the shared sign-in's words come from AccountKit, not a copy
The expectation named Apple and X, which AccountKit's published label no longer
does, so the test failed on main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
---------
Co-authored-by: Claude <noreply@anthropic.com>
box-env-keys.yml (reusable) copies the names a caller lists from its
repository secrets into the app's env on the box (box-env-keys.sh: a value
set in GitHub wins, a name GitHub does not hold is left alone, names only
in the log), restarts the app when something changed, and with signin-on
runs app-secrets.sh signin-on all once Morulia lists a provider.
signin-on now skips an app whose AccountKit predates 0.24.0: its button
names a fixed list of providers, which may not be on.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
Vitareba (medical records) and AOZ (provisioned identities) create AccountKit
with accountDeletion: false, so /delete-user answers 404. prove expected 200
and would have failed on a correct deployment. It now checks the refusal with
the account and its session intact, then removes the throwaway account from
both tables itself and confirms nothing of it remains.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
The rehearsal of Vitareba's import read last night's dump and reported it as
mode 644. /opt/backups is 700, so nobody else could open it, but a dump holds
every row of a product, patients' and residents' among them, and one copied
or moved out of that directory keeps its mode. The runner now sets umask 077,
as the AccountKit cutover's own dumps already do.
It reaches the box when install-backups.sh is next run; no workflow installs it.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
Printcraft and Botsmann keep their data in a schema of the supabase-db
container, which publishes no port, so AccountKit (Drizzle) cannot reach
it. scripts/hetzner/accounts-db.conf (app|database) gives such an app a
second, host database for its accounts, without a new apps.conf column:
- provisionable-db.sh accepts a supabase app with a row, so
provision-db.yml creates its database, role and DATABASE_URL;
- deploy.sh applies drizzle/ to that database in its own step after the
schema step; apply-schema.sh takes ONLY_LAYOUT, and a supabase schema
only ever takes supabase/migrations;
- check-accounts-db.sh (in verify) fails when the file drifts from
apps.conf: unknown, archived, non-supabase, misnamed, duplicate or
colliding rows;
- accountkit-supabase.yml / accountkit-supabase.sh survey, rehearse
(always rolled back) and import an app's GoTrue people as AccountKit
accounts under their old ids, linked to OrangeCat by actor id, never by
address. Counts only; nothing empties a table.
test-accounts-db.sh (in test:ops) covers the register, the gate, the
layout split, the deploy order and the import's refusals.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
* feat(auth): the AccountKit switch for Vitareba and AOZ, with a restore-proven rehearsal
Vitareba (patients) and AOZ (residents) keep their accounts in their own
tables, so accountkit-switch.sh's survey and proofs do not fit them, and its
rollback empties the shared tables. scripts/hetzner/accountkit-cutover.sh
serves both from the same workflow:
- survey: counts per schema (Vitareba's Google-only patients among them),
the shared tables' counts and a 12-character digest of who may do what.
- rehearse: last night's box dump (or one made now, mode 600) restored into
a temporary database; the product's import SQL run there with a throwaway
legacy account, counts printed, rolled back, the database dropped. It fails
if an imported hash differs from its source, is in a format AccountKit
cannot read, or the proof account's imported bcrypt hash does not verify.
- switch: a fresh dump, rehearsed first; the app stopped for the import so no
legacy write lands after it; AUTH_RUNTIME=accountkit; then, on the public
site, the imported proof account refuses a wrong password and signs in with
its own, and the role digest is unchanged. Any failure rolls back.
- rollback: AUTH_RUNTIME emptied and a restart. No table is emptied.
- prove: sign up, sign out, a wrong password refused, sign in, delete, with
an .invalid account, checking no row of it remains.
Tested locally on both products' committed migration chains with synthetic
rows: survey, rehearse, and a switch whose proof fails and rolls back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
* test(auth): the switch check covers the cutover script and its guarantees
The workflow now offers Vitareba and AOZ and the rehearse action, served by
accountkit-cutover.sh; the check reads both registers and both action lists.
For the cutover it also refuses an unknown action and an unregistered app,
finds no TRUNCATE and nothing in rollback but emptying AUTH_RUNTIME, a dump
written 600 from its first byte, and no proof secret echoed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
---------
Co-authored-by: Claude <noreply@anthropic.com>
Loki's GitHub sign-in, and the repo and workflow grant "Start a new
project" acts with, waited on the bitbaum sign-in getting provider
credentials. AccountKit 0.22 brings a product's own GitHub app across at
its existing callback: GitHub is offered again on this runtime, with
githubScopes repo and workflow; a signed-in person pressing GitHub links
it ("Connect GitHub"); a new link's token goes to Loki's accounts, where
the GitHub features read it. GitHub links made under Auth.js are recorded
in AccountKit's table (the import, and migration 0133 on the switched
box), so they sign the same person in. The deploy's provider check
expects GitHub when the box has the app.
Also: prove's real-inbox step retries mail.tm when several proofs run at
once.
Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML
Co-authored-by: Claude <noreply@anthropic.com>
* feat(orangecat): a bot can ask Loki, as the person
POST /api/orangecat/ask on the signed OrangeCat rail: one of the person's
OrangeCat bots asks Loki a question and the turn runs as the Loki user
linked to that actor, read-only, so a relayed question can never dispatch,
approve or spend. An unlinked actor is told the one step that links it.
Door test: no secret, no signature, a tampered or oversize body are all
refused before a database or a model is reached.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* feat(review): take over the browser, hand it back, and see what comes next
The owner, 2026-11-02, beside Grok Bot's live Handler: "I want to see how
the machine is being used and click through", led through it and in
control, "and it should be objectively so". The project review's browser is
the fleet's one agent-driven browser, so it gets that first.
- Take over: the person's clicks on the picture, wheel scrolls, typed text,
Enter and Back reach the page; each answers with a fresh picture, and the
screen polls faster while they drive. Hand back returns it: the worker
goes back to the page and scroll it was on, finishes that page so its
notes stay about the right page, then reviews the person's page next.
- Inputs are data (two coordinates, at most 200 characters, one of ten
keys), queued atomically in site_reviews.control (migration 0132, one
column) and taken by the worker in one statement at its checkpoint. The
read-only guard is unchanged for the person: a form button sends nothing.
- Under the picture: Live/You, what Loki does now, the next page, pages done.
- Tests: real-Chromium take over (inspection-takeover-browser.ts); the
workspace test drives take over at 320/390/768/1440 in both themes and
checks a click on the scaled picture lands on the same page point.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* style(review): format the generated migration snapshot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
---------
Co-authored-by: Claude <noreply@anthropic.com>
The day-plan installer's report (run 5) showed how "Gateway was not
running. Restarted automatically. All good now." and "Swap at 99%" reach
the owner: OpenClaw's own watcher, tools/health-guardian.sh, run by the user
unit openclaw-guardian.service, sends them itself with `openclaw message
send` — not through the heartbeat, so the heartbeat contract could not stop
them. A heal that worked needs nobody, and Loki's check-gateway already sends
the one gateway message with a button. The send line becomes a no-op (dated
backup, parse-checked, restored on failure) and the unit is restarted.
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
Co-authored-by: Claude <noreply@anthropic.com>
Run 4 on 2026-11-02 applied every change (day plan, contract on 8 jobs and
on the heartbeat) and then exited 1 in the read-only report: under
set -o pipefail, a grep with no match (no health-guardian crontab line) ended
the script. The report section now runs without errexit/pipefail and the
script ends 0.
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
Co-authored-by: Claude <noreply@anthropic.com>
prove now also runs a real password reset on every switched product: the
product's own forgot-password page, the mail in a real inbox (a
throwaway mail.tm address), its link, a new password set on the
product's reset page, and that password signing in. On Loki, after the
real OrangeCat sign-in, the token it left in Loki's accounts is checked
against OrangeCat's userinfo, as publish needs. Nothing printed names an
address, a link, a password or a token.
Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML
Co-authored-by: Claude <noreply@anthropic.com>
The first look at someone else's version of this (a live picture of a
bot's browser on a phone, 2026-11-02) showed what not to do: a desktop
page shrunk to unreadable text, a dark void above it, and no sense of
what the bot meant to do. Loki's browser is now watched the way you'd
watch a friend use a page — on the workbench and on Review alike.
- The worker records where each press lands (ReviewFrame.target: the
element's box in viewport pixels, optional so older frames still play).
- RobotBrowser draws Loki's pointer there and lights the pressed thing
with a ring that arrives like a tap; the pointer glides between
presses, rests dimmed when Loki only looks, and no ring is lit at rest.
- One pure rule places the picture (lib/inspection/robot-view viewOf,
tested): a tall column is filled to its height with a desktop page
cropped at the sides, a phone page stands like a phone, a page too
small to read leans in, and it slides so the press sits as near the
middle as the edges allow. No void, no squinting.
- RobotEnding: a walk that finishes while you watch says so — a check
that draws itself, "All done. Loki looked at 3 pages and found 2 things
worth fixing.", one button to see them; nothing found is good news.
- The workbench follows the project's latest review (5 s while walking,
20 s at rest), so a walk started after the page opened appears too.
- Every glide, ring and breath stops under prefers-reduced-motion.
Checked in a browser against a staged walk: live on the workbench at
1440, the ending arriving mid-view, and Review on a 390px phone.
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9
Co-authored-by: Claude <noreply@anthropic.com>
* feat(notify): every person chooses what reaches their own Telegram
Loki is multi-tenant, but Telegram was one hard-wired chat (the operator's)
on a bot whose incoming messages belong to OpenClaw. Now each account sets
it up in Settings → Notifications → Telegram:
- Connect Telegram opens Loki's notification bot with a one-time code;
pressing Start links that chat (POST /api/telegram/webhook, verified by
Telegram's secret-token header). No chat ids, nothing to type. /stop or
blocking the bot unlinks. The webhook registers itself on first use.
- Six kinds of message (config/notify-categories.ts), each on/off per
person; "servers" is shown to the operator only.
- Every app sender now goes through the gateway as that person
(lib/notify/person.ts → deliverNotice): approvals, feedback, fixes, runs,
studio, build requests, sign-ups, autopilot, site live, gateway down. The
gateway applies the person's choices, sends to their own linked chat, and
falls back to the operator's old chat for the operator only.
scripts/test/one-telegram-door.ts fails the build on a direct send.
- Buttons Loki composes from its own records (a customer's own site) are
trusted; links from outside still meet the host allowlist.
- Migration 0132 adds the link and choices to notification_preferences.
- New env: TELEGRAM_NOTIFY_BOT_TOKEN, TELEGRAM_NOTIFY_BOT_USERNAME (checked as
a pair at boot). Until set, Settings says Telegram is not set up and the
operator's existing chat keeps working.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
* fix(openclaw): the heartbeat follows the same one-tap contract
The box audit (openclaw-day-plan run 3) found the sender of "Gateway was
not running. Restarted automatically. All good now.": the OpenClaw
workspace's tools/health-guardian.sh, not in any repo, whose status lines the
agent relays. The contract now goes on HEARTBEAT.md too (between markers,
backed up, idempotent), and the installer prints how health-guardian is
started and its speaking lines, numbers and secrets redacted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
* style(drizzle): format the generated 0132 snapshot and journal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
---------
Co-authored-by: Claude <noreply@anthropic.com>
* fix(openclaw): every scheduled job sends only what has one tap, else NO_REPLY
On 2026-11-02 the chat still carried OpenClaw's own messages that fail the
owner's test: "Invoice / Payment Alert … if credit card is on file, no
action needed", "Gateway was not running. Restarted automatically. All good
now." The scheduled jobs' prompts live only on the box, so:
- contract.md: one short block appended (between markers, replaced on each
install) to every enabled job except the day plan: send only what needs
him, each item with the ONE link that does it, never status or counts, and
reply exactly NO_REPLY when nothing passes — OpenClaw's documented silent
token, which suppresses delivery.
- The installer lists, by path only, every file on the box that calls the
Telegram API or says "restarted automatically", so the remaining sender is
found from the public log without printing anything private.
- Notices carry no machine name ("orangecat-cat · …"); the source stays on
the list row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
* docs(telegram): register the day-plan installer (it only searches for senders)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
* fix(notify): close the review's critical and high findings
An independent review of the messaging system found real defects; these
are the ones that lose an urgent message, send a wrong one, or wake him:
- Intrusions could be dropped: the caps held urgent notices, every SSH
password login shared one dedupe key, and /api/notify/box answered 200
when nothing was recorded, so the box never used its direct fallback.
Urgent notices skip the caps, intrusion lines are keyed on the whole line,
and the route answers 503 when an urgent line was not delivered.
- A link chosen by an email could become a trusted one-tap button. Buttons
now open only own domains, Gmail, Google Calendar, GitHub or Hetzner.
- Long titles/labels or a fourth button dropped real notices into the list;
they are clipped instead. Only a missing or unsafe action refuses.
- SSH login from a new address and edits to authorized_keys/sudoers/shadow/
PAM/ld.so.preload are intrusion signs (both lists, kept equal by test);
the button opens /today, where the notice is listed; the title names the box.
- Customers' escalations and capped goals reached the owner's chat
(selfTelegramTarget); they now use telegramTargetFor. The gateway-down
message went once per fleet account; it is sent once.
- The notify routes accept bearer tokens only (no browser session/CSRF).
- countDeliveries ignored rows older than a week; it no longer does.
- Night silence (22:00–07:00 Zurich) for the direct senders too: lib-alert's
fallback, ivy-health, fleet-uptime, deploy-hetzner. ivy-health names what
broke and offers Redeploy only when Loki's app is the failure, Box doctor
otherwise, and reads the chat id from the box's telegram.env.
- Prompts: the day plan no longer asks for approve links it cannot get or a
page it cannot open, never uses links found inside emails, and says when a
source failed. The summaries he asked for (reflection, digests, scorecard,
evening wrap) get a digest contract instead of being silenced; jobs with no
text prompt are left untouched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
* feat(day-plan): one morning message; the email scanner twice a day
Approved by the owner 2026-11-02. The day plan now carries a half-line on
each person he meets today, and the separate 07:30 "Meeting People Brief"
is switched off. The email deadline scanner runs at 08:00 and 17:00 instead
of four times a day.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
---------
Co-authored-by: Claude <noreply@anthropic.com>
The first install found no job named like 'morning brief': on the box the
06:00 brief is "Daily God Brief (calendar + inbox + priorities)". Matching
it by that name; "Meeting People Brief" still does not match.
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
Co-authored-by: Claude <noreply@anthropic.com>