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>
* fix(alerts): stop paging on transient systemd-run units; send digests silently
The 5-minute host sweep announced every failed one-off systemd-run unit
(run-p<pid>-i<id>) as its own incident. Each has a fresh name, so no
per-unit cooldown held and the phone rang every five minutes.
The sweep now resets those units and never announces them, and the
STILL FAILING / RECOVERED digests are delivered with disable_notification.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
* fix(alerts): quiet by default, ring only for down/intrusion; stop deploy and cron echoes
- lib-alert: all box alerts deliver silently except DOWN/deploy failure/
intrusion-class messages (_alert_silent)
- host sweep: failed appcron oneshots are the OnFailure notifier's, not repeated
- security check: files a deploy rewrites by design are journal-only
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
* ci(box): install the alerting scripts on the box when they change
The alert fixes only take effect once install-host-alerts.sh and
install-security-watch.sh run on the box, and nothing ran them.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
* feat(notify): one tap or not at all — every bot reaches the owner through one gateway
The owner's Telegram held ~1,200 unread messages and rang every five minutes
with lines he could do nothing with ("STILL FAILING: run-p…", "SENSITIVE
FILE(S) CHANGED … if this was a deploy, ignore", "built nothing"). New rule,
enforced in code: a message reaches the phone only with a button that does
the thing; everything else is recorded on /today or /system.
- telegram-send: refuses a message without a URL button (NOT_ACTIONABLE);
adds silent delivery and sendTelegramVoice.
- lib/notify: one gateway (deliverNotice) with the policy — at most 3
buttons, one incident one message with backed-off reminders, 3/source/hour
and 12/day caps, sound only for "now" and never 22:00–07:00 Zurich. Voice
notes for paid plans; a monthly "voice notes come with Personal" notice
with its pay button for free accounts.
- Routes: /api/notify (token holders, `loki.sh notify`), /api/notify/box
(the box's lib-alert), /api/orangecat/notify (OrangeCat's bots, signed).
- Box: lib-alert posts every line to Loki's list instead of Telegram; only an
intrusion goes straight to the phone when Loki is unreachable, with a Box
doctor button. ivy-health pages only "down and restart failed" with
Redeploy; clean deploy rollbacks are not paged; fleet-uptime pages only for
Loki or 3+ apps down; sleeping apps are no longer conformance findings.
- App senders: each kept one now carries its button (Triage it, Review it,
Watch the fix, Write to them, Restart the gateway, Decide on Control …);
telemetry/runner/model-id pings and run successes leave Telegram.
- Day plan: the morning brief's prompt is in the repo
(scripts/openclaw/day-plan) and installed on merge, which also switches off
jobs that only post swap/memory warnings.
- Workflows install the box alerting, ivy-health, the day plan and OpenClaw's
photo/video understanding on merge instead of by hand.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
* feat(telegram): every sender is silent between 22:00 and 07:00 unless it says otherwise
Feedback, studio briefs and the other direct senders skipped the notify
gateway's quiet hours. A send that does not ask for sound now arrives
silently at night in the owner's zone.
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>
On 2026-11-01 an `ensure` for keller wrote its OrangeCat client and then
failed the run: keller-app exists (registered 2026-10-29) but keller has
never been deployed, so there is no release to start, and the restart
exited 1. apps.conf lists keller as a prospect; it is meant to stay off.
The restart now asks `systemctl is-active` instead of `systemctl cat`. A
unit that is not running is left alone and the run reports that its next
start reads the new values, the same promise as for an app with no unit.
A running app is restarted exactly as before. test-app-secrets.sh pins
the stopped-unit case (26 pass).
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
Since the switch to AccountKit, Loki offered OrangeCat, email + password and
its own recovery. The runtime serves passkeys, the second factor and the
sign-in link, but the compat layer answered 404 for all of them, and Loki's
screens had no way to use them.
- src/lib/auth/shared/open-paths.ts lists the AccountKit endpoints Loki's
screens reach directly: passkeys, the second factor and the sign-in link.
src/auth.ts routes them past the compat layer. None of them writes a
password. Sign-up, reset, password, profile and deletion stay closed, so
Loki's users table remains the one credential writer.
- The sign-in card, on this runtime, adds "Sign in with a passkey", "Email me
a sign-in link instead" (with account mail), and the code step after a
password when the account has the second factor. The password goes straight
to AccountKit for that; the demo still uses compat. Sign-up offers the
link too. The words are AccountKit's labels.
- Settings → Account adds passkeys (add, remove) and the second factor (set
up with the password, confirm with the first code, backup codes, turn off).
- A runtime plugin (sign-in-hook.ts) runs after every new session, whatever
the way in. It gives a person AccountKit has but Loki does not (a link to a
new address) their users row, then runs bootstrapAfterSignIn. The compat
layer no longer runs it a second time.
- accountkit-journeys (test:db) adds three cases: the second factor (a
password alone gets the code step, the TOTP code makes the session), the
hook making the Loki row and workspace, and which paths are open.
- The migration doc says what is open and why.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
#1531 added SIGNIN_ISSUER/SIGNIN_CLIENT_ID literal rows for petvity and
surf-your-life, and #1533's merge of main carried them in. Any `ensure` for
those apps would show the Morulia button while Morulia lists no provider.
The rows go (the pairs stay), and a test now fails on any registry row that
sets either name: signin-on, which refuses without a provider, is the only
writer. Same intent as #1536, which no longer applies cleanly after #1533.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
rollback empties the shared auth_* tables, which was safe while they held
only copies of the product's own rows. Once a product renders AccountKit's
own screens (petvity and surf-your-life now do), those tables hold the only
copy of every password set through AccountKit, every passkey and every second
factor. rollback now counts those first and refuses on any, naming the safe
path: revert the product's screens pull request.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
Three things, all in the one registry that writes secrets nobody holds:
- morulia pair rows for the 13 apps bitbaum/morulia#21 adds (every fleet app
with a sign-in page, fleet docs/auth-parity-2026-11-01.md), so `ensure
morulia` gives each its SIGNIN_CLIENT_SECRET.
- a new kind, oc-client:<id>, for "Sign in with OrangeCat" in the ten apps
that had no OrangeCat client. It writes ORANGECAT_OAUTH_CLIENT_ID/_SECRET
into the app's env first, then the secret's sha256 into OrangeCat's
oauth_clients row (created switched off by orangecat's deploy) and switches
it on. A row holding a secret the app lacks is reported, never replaced.
Nothing is printed but names and states.
- an action, signin-on <app|all>: adds SIGNIN_ISSUER and SIGNIN_CLIENT_ID
beside the paired secret and restarts the app. It refuses while Morulia's
/api/health lists no provider, so the button can never lead to an empty
page. Ready for when the provider keys are in.
test-app-secrets.sh: 25 checks (11 new), including that neither a secret nor
its hash is printed.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
Loki has run on AccountKit since 2026-11-01. The runtime mounts the shared
sign-in (`bitbaum-signin`, SIGNIN_*) from env, and the compat layer can start
it, but Loki's sign-in and sign-up pages had no button for it. The deploy
check also expected only "email-password" on this runtime, so OrangeCat could
vanish from /api/auth/providers without failing a deploy.
- getEnabledAuthProviders().signin is AccountKit's signinBroker(env), on the
AccountKit runtime only. Sign-in and sign-up show "Continue with Google,
Apple, GitHub, X or Facebook" (AccountKit's own label) next to OrangeCat,
started through next-auth/react like OrangeCat.
- scripts/expected-auth-providers.ts expects, on AccountKit, the password
form plus every OIDC client AccountKit mounts (oidcClients): orangecat with
ORANGECAT_OAUTH_*, bitbaum-signin with SIGNIN_*. On Auth.js it behaves as
before.
- deploy-hetzner.sh reads the box's OIDC env for it from /opt/fleet/env and
the app .env, a non-empty app line winning as in launch.sh. The issuers and
client ids are passed as they are; each secret is passed only as "set".
- scripts/test/deploy-expected-providers.ts covers both runtimes and the
button.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
* feat(workbench): one project side by side, on one screen or two
A project's session and Loki as columns of one window, and its site in a
window of its own — beside this one or on the other screen. Nothing in it
is new UI: the columns are TerminalSurface and LokiWorkspace mounted as
they are; the site is the live page with the owner's pass, where pointing
and "Fix it now" already live. What the workbench adds is the arrangement.
- /projects/[id]/workbench, a Workbench row on the project page, and the
pane SSOT in config/workbench.ts (session, loki).
- The site is a window, not a pane, on purpose: every fleet site sends
frame-ancestors 'none' and Cross-Origin-Opener-Policy same-origin, so it
can be neither framed nor reached as an opener. The workbench says only
what it knows. docs/architecture/workbench.md.
- Windows open the best way the platform offers: Fleet Runner places them
from the real display list (new IPC open-workbench-window, v0.8.60,
caller tiled left / new window right, or the other display whole, an
open window brought forward); a Chromium browser places a popup on the
other screen once allowed; any browser gets a half-screen popup.
- Any pane in its own window (?pane=): a solo window hides the shell
chrome at every width; the windows of one project on one machine keep
each other honest over a BroadcastChannel (a popped-out pane leaves its
window and returns when that window closes).
- Which panes a window shows is device-local (localStorage per project),
never a column on the project. Two columns from xl; below that one pane
at a time and the strip chooses; below md the phone's rows.
- Each column's side rail (the session's Loki rail, the chat's history) is
remembered for the workbench apart from its own page and starts closed
in a column: TerminalSurface gets `rail`, LokiWorkspace gets `basePath`,
`project` and `history`.
- Full screen is the browser's own, on the workbench root.
- Pure parts tested: scripts/test/workbench-layout.ts, workbench-windows.ts,
workbench-placement.ts. Checked by hand at 390, 720, 1000, 1440 and
1920px and as a one-pane window at 900px, no horizontal scroll.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9
* refactor(workbench): one placement rule, a window's own layout, honest re-opens
A second pass over the workbench after an independent review of the diff.
- One placement module for both sides: src/lib/workbench/placement.ts is
the pure rule the browser popup and Fleet Runner's real windows share
(the desktop copy is gone). Tiling respects the caller's minimum width,
so the 800px shell and the new window meet on a 1440px display instead
of overlapping; only a display too small for both overlaps.
- The layout is the window's: sessionStorage per project, kept across the
window's reloads and never shared. Two full workbench windows of one
project each keep their own arrangement; localStorage's cross-window
storage event clobbered them. useLocalStorageState takes the area.
- A popped-out pane announces itself closed on every way out — pagehide
and a soft navigation away — and open again from the back-forward cache.
- A window already open is brought forward, never navigated again: the
site's address carries a pass minted per visit, and a second navigation
left it unread in the address bar. Fleet Runner keys windows by the URL
without its fragment, restores a minimized one and places it where the
person now asks.
- The screen-management prompt is raised when "On the other screen" is
chosen, not on the open that follows: a click that waits for a prompt
goes stale and the browser refuses the window.
- Close in a solo window leads somewhere even when window.close() is a
no-op (a typed address): it falls through to the whole workbench.
- The dock click on macOS asks whether the SHELL window exists, not any
window, so a site window open with the shell closed no longer hides it.
- Which panes are on screen (columns, or one of them) is a pure, tested
rule; window opening lives in one hook (use-workbench-windows) instead of
two states; the phone's rows read each pane's surface from the registry;
useBodyClass serves both the immersive chat and the solo window.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9
* feat(workbench): one box — Session and Watch, not Session and Loki
The first cut put Loki's chat in the second column. Beside the session's
box that was a second place to type on one screen, and a person had to
work out which box did what ("I see two chats, and it just gets
confusing"). The session's box already does the one thing the screen is
for — it types into the live agent, or starts one — and the session
already offers Loki about itself ("What's going on?").
- The second column is Watch: the project's run as a live thread (what you
asked, Loki narrating, the agent's screen, and where the change is —
pull request, tested and merged, live), mounted from ProjectWatch as it
is. It has no box. Loki's chat stays its own page.
- The pane registry carries where each pane's own page is (`pageHref`),
so the phone's rows and the columns read one list.
- A pane body can be a scrolling thread (Watch) or a surface that fills
the pane (the session).
- LokiWorkspace is back to what it was: the host-path, project and history
props it only grew for the workbench are gone with their only caller.
- The project row says what the screen is for: "Say what to change and
watch it happen, with the site beside".
Checked by hand at 390, 720, 1000, 1440 and 1920px and in both solo
windows: no horizontal scroll, no console errors.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9
* feat(workbench): one screen, one box — the site as Loki sees it, the robot, one line of state
"If a user sees tons of options, they can feel a paralysis" (owner,
2026-10-31). The screen showed about twenty controls: the Sessions page's
builder picker, tab strip, agent and view switches, Watch's card with its
own buttons, pane toggles, a window-placement menu. One thing to do, a
few things to see — so:
- The site, left, as Loki's own browser sees it (WorkbenchSiteView): the
review worker already walks the site in a headless Chromium on the box
and keeps one frame per action with the action named. While it walks,
this shows the robot using the site, frame by frame — the one thing no
window of yours can show; at rest, the last look. A tap opens the real
site in its own window, where the person uses it and the widget does
the watching. Fleet sites forbid framing and sever window.opener, so a
picture of Loki's browser is what can honestly be shown inside Loki.
- The robot, right: TerminalSurface in a new quiet shape (`quiet`) — no
builder picker (which builder runs a project is a stored decision), no
tab strip of other projects, no shell rows; the chat | terminal switch
and the agent stay. Its box is the ONE box on the screen.
- One line of state over the robot (WorkbenchStateLine): the sentence the
Watch track composes, a dot for its tone, "Watch it work" for the whole
story. Pure stateLine() in lib/workbench/state-line.ts, tested. The
Watch column is gone from the screen.
- One "⋯" for the rest: the robot in its own window / on the other
screen, the site on the other screen, full screen. The pane toggles and
the placement menu are gone; a placement named for one opening wins and
becomes the remembered one.
- The pane registry is the robot alone; the site is a region. Below xl the
robot alone (the site is in its own window anyway). On a phone: the
site, the robot, Watch it work, as rows.
- TerminalSurface stayed under the function-size ceiling by lifting the
builder-picker wrapper and the resume filter out of it.
Checked by hand at 390, 720, 1440 and 1920px and in the solo window: no
horizontal scroll, no console errors.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9
* feat(workbench): a focus screen — the app's chrome leaves while you build
Three layers of navigation sat around two columns: the sidebar's twenty
destinations, the project strip ("Profile · Chat · Home · Sessions"),
then the workbench's own header and the robot's bar with the Sessions
page's agent menu — "Frankenstein elements just thrown together" (owner,
2026-11-01).
- While the workbench is open, the sidebar, top bar, bottom tabs, footer
and project strip are gone (body.fc-workbench-focus, the former solo
rule applied to the whole screen from md up). They are for moving
between pages, and a person here is not moving. The one back link in
the header is the way out. A phone keeps its own bars: the rows need
them.
- The robot's bar is the chat | terminal switch alone (TerminalSessionBar
`agentSwitch`, off in the quiet shape): the session's own chip names the
agent and its box changes it.
What is on the screen now, left to right: back, Open the site, "⋯"; the
site as Loki sees it; the robot with one line of state, the view switch
and the one box.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9
* feat(workbench): two windows of one desk — one frame, a title bar each
The site sat in a card and the robot stood bare beside it, with a line
of state floating above and a caption floating below: two different
things on one screen. Now both regions, and a solo window, are one
frame (WorkbenchFrame): a title bar — a dot for its tone, one sentence,
one link — over a body.
- The site's bar is its address and what Loki is doing there ("Live",
"Loki is using it: …", "Loki's last look: …"), like a browser's own
tab; its body the page, top-aligned; before any look, the address alone
and "Tap to open" — never a sentence apologising for an empty box.
- The robot's bar is the build's state (hooks/use-run-state, the Watch
track's sentence) with "Watch it work"; its body the session with the
one box. WorkbenchStateLine is folded into it.
- The floating Ask Loki button leaves in focus: its panel is the second
chat this screen deliberately has not, and it sat on the send arrow.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9
* feat(nav): Loki first — the chat is the default screen, three words then folds
The owner's philosophy, 2026-11-01, now in AGENTS.md ("Why Loki exists,
and for whom"): a good Loki chat, reachable in one step, is the screen
that opens; the rest of the app one tap away; a friend on your side, not
a staff; never a screen that makes a person feel stupid; measure by
effort, not features.
- APP_HOME and RUNNER_HOME are /loki: signing in, and Fleet Runner
starting with the computer, land on the chat. They landed on Today, a
page to read before a person could say anything.
- The sidebar is three bare words — Loki, Home, Projects — the same three
as the phone's bottom bar (Loki first there too), then folded groups
that each say the question they answer: Waiting for you (Approvals,
Feedback), Your day (Today, Suggestions, Voice), Across your projects
(Sessions, Missions, Activity, Prompts), Under the hood (Packages,
System), and Private behind the PIN. Not a drawer called More: the
navigation test records why a "More" section rots, and still forbids
it; the phone's More is the folded groups as a sheet.
- Every sidebar line says what it is for on hover (the item's own
description), so nothing has to be guessed.
- SidebarSection gains `bare` (no header, never folded) and
`foldedByDefault`; the tests that pinned the old Build / Loki / To
review / The fleet placement now pin the new homes.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9
* feat(voice): Loki speaks as someone on your side
The owner's philosophy (AGENTS.md, "Why Loki exists"): a friend on your
side, not a staff you direct; never a word that makes a person feel
stupid. The public pages still said the opposite.
- Hero: "Say what you want. Loki builds it with you." (was "Describe it.
Agents build it."). The lede, APP_DESCRIPTION, the social-card tagline
and the how-it-works steps follow. Every factual claim is one the
product keeps: it builds with AI agents, puts it online, changes it on
ask.
- /why's principles open with two new ones from the owner's words: "On
your side" and "Life is short". Commitments about how Loki is made, not
claims about what it does.
- The new-project card says "Say what you want. Loki sets it up and
starts building." instead of repos and agents; the sidebar's Loki line
drops "dispatch" for "Loki answers, or builds it with you".
- The hero's two sentences are separate balanced blocks: on a phone each
breaks as an even pair, never one word alone.
The mission headline on /why ("Direct the creation of …") is left for
the owner to decide.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9
* feat(voice): the mission reads "with someone on your side"
/why's headline was "Direct the creation of everything you can
imagine." — the staff-you-manage voice the owner set aside. It now reads
"Make everything you can imagine, with someone on your side.", the
owner's own call (2026-11-01).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9
---------
Co-authored-by: Claude <noreply@anthropic.com>
Both apps move onto AccountKit's own sign-in screens, which offer Morulia once
SIGNIN_ISSUER, SIGNIN_CLIENT_ID and SIGNIN_CLIENT_SECRET are set. The client
secret is a pair with Morulia's SIGNIN_CLIENT_SECRET_<ID> (bitbaum/morulia
lib/clients.ts rows); the issuer and id are literals.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
* fix(auth): OrangeCat sign-in on AccountKit works, and keeps its tokens
AccountKit 0.19.0 fixes a first OrangeCat sign-in failing with
unable_to_create_user (Loki's mirror recorded the link before
better-auth stored its own) and hands the provider's tokens to
onAccountCreated. ensureLokiUser now keeps OrangeCat's token set in
Loki's accounts, where publish, promote and the wallet read it; on
AccountKit nothing reached them before, because AccountKit stores no
provider token. Migration 0131 drops the trigger that was meant to copy
them out of auth_accounts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML
* style: format the generated migration meta
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML
---------
Co-authored-by: Claude <noreply@anthropic.com>
Every Loki deploy since the AccountKit switch (#1513, AUTH_RUNTIME=
accountkit on the box) failed post-deploy verification with 'auth
provider missing: github' and rolled back. On that runtime GitHub,
Google and X are not mounted by design (getEnabledAuthProviders), and
the live build already served only orangecat, email-password and
user-password, but expected-auth-providers.ts still listed github.
deploy-hetzner.sh now reads AUTH_RUNTIME from the box's .env (a mode
name, lowercase letters only) and the script drops the social
providers when sharedRuntimeEnabled() says the shared runtime answers.
A rollback to Auth.js (AUTH_RUNTIME unset) expects github again.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>