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>
* 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>
* 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>
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>
register-drift reported orangecat-2 only in the box's register, and six
rows main had since corrected: the box's loki checkout sat on a
2026-10-07 commit, because only register-site.sh ever fast-forwards it.
- box-register.yml + box-register-follow.sh: the same adoption, on its
own. Fast-forward only, from the public repository URL; refuses while
the box holds a row main lacks, a local commit, or a change beyond
apps.conf. Plan by default; keeps the old register in the home dir.
- retire-site.sh, delete: also removes the row from the box's register.
Run from the workflow it removed it from the runner's copy only, which
is how orangecat-2 (retired 2026-10-17) stayed on the box.
- retire-site.sh, offline and delete: stop the wake socket too. A site
that sleeps when idle kept its socket listening on its port, and any
local request woke the app again.
- retire-site.sh: --no-github (no repository, workflow or secret step)
and --keep-data (delete keeps /opt and the checkout); RETIRE_LOOK=1
prints what is on the box before the plan.
- retire-site.yml: github and keep_data inputs, the look, and a site
that only the box's register still has is judged by that row.
Tests: test-box-register-follow.sh (new, in test:ops) and
test-retire-site.sh (12 more checks).
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
Every Linux launch passed --no-sandbox. afterPack.cjs wrapped the
Electron binary in a stub that added it unconditionally, the .desktop
Exec= line carried it (electron-builder's AppImage default), and the
systemd unit from install-fleet-runner.sh passed it again. The reason
was real but narrow: inside an AppImage the setuid chrome-sandbox can
never work (the FUSE mount is nosuid), so where unprivileged user
namespaces are also blocked Chromium aborts at FATAL. Everywhere else
the namespace sandbox works without any setuid helper, and the flag
switched off the renderer sandbox #1479 had turned on.
- desktop/scripts/linux-launcher.sh replaces the stub. It runs
Chromium's own probe (create a userns, write its maps, nest another)
and the setuid-helper check for .deb installs, and passes
--no-sandbox only when neither is available (or as root). It then
prints why and how to fix it, and sets FLEET_RUNNER_SANDBOX_OFF.
It also reports a --no-sandbox that arrives on argv, including the
one electron-builder's AppRun appends silently.
- The main process shows that reason as a notification.
- linux.executableArgs is [] so the .desktop entry stops passing it.
- The systemd unit no longer passes --no-sandbox.
- The stale-instance pgrep no longer requires --no-sandbox in argv.
- Packaged-build test: test-linux-sandbox.sh starts the real AppImage
under Xvfb and checks the live process tree (main argv; renderer
seccomp-bpf and its own user namespace). ci-linux-sandbox.sh runs it
with Ubuntu's userns restriction off (must be sandboxed) and on (must
still start, with the notice). New PR workflow
desktop-linux-sandbox.yml, and a step on the Linux release build.
- Version 0.8.62 with its changelog entry.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
register-drift.sh said only port and status for a differing row, so
biaslens, kivvi and vitareba (same port, same status on both sides) were
reported with nothing to go on. It now names every column that differs,
with both values. The workflow also prints the box checkout's branch,
distance from main and changed paths, as context for a red run.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
Nothing dropped a host database: retire-site.sh keeps a site's data by
design, so signin, renamed to morulia, left its empty database behind.
drop-db.yml drops exactly one, and refuses unless the register and the
box both say nothing can still mean it:
- droppable-db.sh, against main's register and the box's checkout of it:
not a system database, no row named after it, no row's db column
using it;
- drop-db-on-box.sh, on the box: not a template, no env file under /opt
naming it in DATABASE_URL, no open connection. Then the database, and
the role of the same name if Postgres lets it go.
An empty confirm is a dry run; confirm must repeat the name to drop.
Names, counts and sizes only in the log. Tested in test:ops
(test-drop-db.sh).
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
A prove action for accountkit-switch.yml, with throwaway accounts deleted
again: two sessions, a row change read on the next request, a password
write ending every session (old refused, new accepted), sign-out and
deletion. Where the product offers OrangeCat, a real browser sign-in
with a throwaway OrangeCat account through OrangeCat's sign-in and
consent and back. This replaces the approved test identity the switch
docs waited on.
Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML
Co-authored-by: Claude <noreply@anthropic.com>
Five products stage AccountKit beside Auth.js behind AUTH_RUNTIME. This is
the switch, from GitHub over the deploy's SSH, one product per run:
- survey: counts only, including people whose only way in is a social
provider AccountKit cannot reach yet (they would be locked out);
- switch: refuses while that count is above zero; imports under locks with
the product's own accountkit-import.sql, ensures a 32-character
BETTER_AUTH_SECRET, sets AUTH_RUNTIME=accountkit, restarts, then proves
on the public site that AccountKit answers and a throwaway account signs
in, reads its session and signs out (deleted after); any failure rolls
back;
- rollback: AUTH_RUNTIME off, restart on Auth.js, mirrors dropped, shared
tables emptied.
The log is public: counts and verdicts only. test-accountkit-switch.sh joins
test:ops.
Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML
Co-authored-by: Claude <noreply@anthropic.com>
bitbaum/signin was renamed to bitbaum/morulia (fleet #413) before any app
used it. The service moves to morulia.orangecat.ch:
- apps.conf: a morulia row (port 4041, db morulia, live). The signin row
is archived so no sync regenerates it; it goes once retire-site --mode
delete has cleared the box.
- app-secrets.sh: the registry entry is morulia, SIGNIN_URL is
https://morulia.orangecat.ch, same seven pair lines. With morulia's
side empty and each app holding its SIGNIN_CLIENT_SECRET, ensure copies
the app's value over; nothing is regenerated.
- retire-site.sh: a renamed repository still answers under its old name,
so retiring signin would have disabled morulia's workflows, removed its
deploy key and, with --repo archive, archived it. Every GitHub step is
now skipped when the repository belongs to another name. Tested.
- provision-db tests and examples name morulia.
The SIGNIN_* env names stay: they are generic.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
register-site.sh writes a new row into the box's checkout first and
opens a PR to carry it to main. When that PR stalls, the two registers
disagree without anyone being told, and main hands the port out again:
biaslens and signin both on 4038 (#1404, #1492). register-drift.yml
reads the box's apps.conf over the deploy SSH each day and fails on a
box-only or differing row (names and ports only); a main-only row is
reported as the box checkout lagging.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
provision-db-on-box.sh was only ever run from a laptop, so a registered
app with no box env (signin) failed every deploy until someone did. The
new dispatch-only workflow runs the same script on the runner over the
deploy's SSH key, in its own concurrency group. provisionable-db.sh
gates the input on the register: only a host database under the name
the script derives from the slug. Names only in the log; the script
never overwrites a key, so a re-run is a no-op.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
GitHub keeps one pending run per concurrency group and cancels the older
pending run when another arrives. The first app-secrets run queued behind a
deploy in `deploy-prod` and was silently cancelled by the next deploy
(2026-10-22 21:16, no job ever ran). The workflow touches one app's env and
restarts that app; a deploy does not edit .env, so it needs no lock with
deploys — only with itself, per app.
Claude-Session: https://claude.ai/code/session_01RKRxpcVWoZwtg6Gfr9m6Rb
Co-authored-by: Claude <noreply@anthropic.com>
* feat(box): app-secrets — generate an app's machine secrets on the box from GitHub
The secrets an app needs that no human holds: a cron bearer token the box's
own timer presents, and a Web Push (VAPID) key pair. Until now they were a
"generate this and paste it into /opt/<app>/shared/.env" ask handed to the
owner, who on 2026-10-22 — heidi's channel notifications waiting on exactly
that — rightly declined to run openssl for a value nobody will ever read.
scripts/hetzner/app-secrets.sh holds the registry (app|VAR|kind: hex32,
vapid, literal) and the rules: it adds only what is missing and never
overwrites, treats a VAPID pair as one unit, prints names and never values,
and restarts <app>-app only when it added something. Values are made on the
caller's side and travel to the box on ssh's stdin, never in argv or a log.
.github/workflows/app-secrets.yml runs it from GitHub over the deploy's SSH
(show | ensure), then re-runs install-app-crons.sh so a timer exists to
present the new CRON_SECRET.
First registered app: heidi (CRON_SECRET, VAPID_*, subject = the site's
contact address). Checked against a fake box: show, ensure, a second ensure
that adds nothing, the half-pair refusal; the generated pair is 65 + 32
bytes and web-push accepts it.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKRxpcVWoZwtg6Gfr9m6Rb
* test(terminal): the swipe test drags a finger that stops, over a deeper buffer
terminal-swipe-browser failed twice on one commit in CI (1 !== 0: the
"as far back" note was already showing after the first swipe) and passed
on main an hour earlier. Two things made the first swipe land on the
oldest line instead of short of it:
- The synthetic swipe lifted at full speed. CDP delivers the twelve moves
a millisecond or two apart, the scroller reads that as a very fast
finger, and the glide after a flick runs on that speed — on a quick
runner one 300px swipe glided past every kept line. Six still moves
before the lift decay the smoothed velocity to nothing (×0.2 each), so
a swipe now moves exactly what the finger moved.
- 120 lines was no margin: at 390px the fitted font gives ~66 rows a
screen, so only ~54 rows sat above the fold and a 300px swipe (~54 rows
at that cell height) reached the top exactly. 300 lines leave 180 rows
after the first swipe; the "to the top" loop allows twelve swipes.
Measured locally: start 234 → 180 after one swipe, top reached inside the
loop, the note on the swipe past it; three runs green.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKRxpcVWoZwtg6Gfr9m6Rb
---------
Co-authored-by: Claude <noreply@anthropic.com>
chatkit 0.14 carries the contract both ways; this is Loki's side of the
fleet chat-review loop (docs/architecture/chat-review.md).
- Thumbs under every Loki answer: chatkit's AnswerActions with onFeedback
replaces the hand-rolled "Bad answer" button and ReportAnswer form. The
thumb goes to POST /api/chat/feedback (new chat_feedback table, migration
0128); a thumb down is still filed as a report in Loki's own inbox through
the same plumbing the old button used (lib/loki/answer-report-file.ts).
The terminal's Loki rail and the prompt Run sheet pass onFeedback to
ChatThread.
- GET /api/chat/review-export: Loki's day of conversations as
ChatTranscript[] behind the shared CHAT_REVIEW_TOKEN (bearer, constant
time, 503 while unset), scope derived from Loki's own prompt
(lokiChatScope). Never a temporary chat; no names or user ids.
- src/config/chat-review.ts (SSOT): the four products, their export URLs
and repos, the night's budgets.
- Cron review-chats at 03:40: fetch each product's export, then start one
agent run on the product's Loki project (found by gitUrl, as its owner)
carrying chatkit's CHAT_REVIEW_INSTRUCTION + reviewPrompt for every
conversation and the door to file findings through (widget token + agent
pass, Origin = the product). The route calls no model: no box timer may
spend the free AI tier (no-free-background-ai), so the judge is the
project's agent, the way AI review reads a live page. Outcome per product
under debug_logs crons/review-chats.
- share-chat-review-token.yml: generate the token on the box into Loki's
env, copy it to heidi, orangecat, substrata when absent, redeploy all four;
the value is never printed.
- .env.example, docs/architecture/chat-review.md, link from the widget doc.
Verified: pnpm run verify green through test:unit (540 files) and the
remaining gates; test:ops fails only on .env ownership in the root sandbox.
Thumbs rendered at 390px in headless Chromium: 44px targets, no sideways
scroll, the app receives {messageId, verdict, reason} on Send.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude <noreply@anthropic.com>
loki-mailgate is the receiving half of the fleet email standard: one
public address per app on its own host (hello@<app host>), no mail server
or mailbox per app.
- Receive-only SMTP on :25 (smtp-server). Routes by apps.conf (Loki's live
copy, refreshed by every deploy, plus the one installed beside it), so a
new site gets mail after the next deploy with no step here. Accepts only
hello@, postmaster@ and abuse@; refuses everything else at SMTP time, so
it never bounces and cannot relay.
- SPF / DKIM / DMARC checked (mailauth); failures are marked, not dropped.
- Spooled to disk before "250", then POSTed to
http://127.0.0.1:<port>/api/mail/inbound signed with the fleet key
MAIL_INBOUND_SECRET (mail-kit 0.2 inbound contract), retried with backoff
until the app says 2xx. Delivered mail is pruned after 14 days: the app's
own retention governs its copy.
- Bundled to one file; a systemd unit with CAP_NET_BIND_SERVICE as ubuntu,
ProtectSystem=strict; install-mailgate.sh creates the secret and its own
STARTTLS key and opens 25/tcp; the manual Mailgate workflow tests,
bundles and installs. test:mailgate joins verify.
Checked end to end against the bundle: hello@skif accepted and delivered
with a valid signature; another mailbox and an unknown host refused 550.
Claude-Session: https://claude.ai/code/session_01TTH5cy8bKmEqzdTyAsbbT8
Co-authored-by: Claude <noreply@anthropic.com>
The first seed run failed at `sudo install -d -m 0755 /opt/fleet`: the
box's Rust coreutils fails that chmod with EPERM even under sudo. Use
mkdir + chown, the idiom every other box script already uses.
fleet-env.sh gains `secret KEY`, which generates a random value for a
key named in fleet-keys.conf (never prints it), and the conf gains
MAIL_INBOUND_SECRET for the signed inbound-mail contract in mail-kit 0.2.
Claude-Session: https://claude.ai/code/session_01TTH5cy8bKmEqzdTyAsbbT8
Co-authored-by: Claude <noreply@anthropic.com>
/opt/fleet/env holds the keys every app may use: the AI vendors, web
search and the shared mail account (scripts/hetzner/fleet-keys.conf).
The launch script reads it before the app's own .env, and the deploy
build does the same, so an app with its own key keeps it and every
other app gets the shared one. Rotating a key is one edit, not eleven.
fleet-env.sh seeds the file from the value the apps already share
(placeholders never count, an existing key is never overwritten, no
value is ever printed) and shows each key as a fingerprint; the
Fleet env workflow runs it on the box. api-key-check now probes the
fleet file too.
Why: eight apps held the shared Groq key, orangecat kept a revoked one
for days, and skif never got one, so its AI stayed off.
Claude-Session: https://claude.ai/code/session_01TTH5cy8bKmEqzdTyAsbbT8
Co-authored-by: Claude <noreply@anthropic.com>
* fix(beta): create app-scoped deploy key securely before Fleet registration
* fix(fleet): preserve product-owned CI and merge workflows even during GitHub API read failure
* ops(beta): provision existing analysis repo via one Fleet registrar after green CI
* docs(ops): record one-time beta provisioning acceptance and brand independence
* sealed-builds: diag mode (runner journal + gemini under real PTY in the sealed container)
* probe: show composer + working screens
* Sealed builds: Antigravity gets a TTY and its key; Gemini 0.65 working/composer markers
* Fleet Runner 0.8.53 release entry; .env.example XDG_RUNTIME_DIR
* format
---------
Co-authored-by: catomean <catomean@users.noreply.github.com>
* sealed-builds test: NoNewPrivileges toggle for diagnosis
* sealed test: qualified image name, image visibility diagnostics
* sealed test: store diagnostics
* sealed: load the agent image into the runner user's own store
* sealed test: diagnostic without runsc
* sealed: runtime matrix diagnostic
* Sealed builds that start: NNP off for the unit, runsc without NoCgroups, crun, per-user image
* Sealed builds: slirp4netns for rootless networking
* prettier
* test: sealed network is slirp4netns
---------
Co-authored-by: catomean <catomean@users.noreply.github.com>
* builder-agents: probe-only mode and masked failure detail
* key_present before the install block
* Probe gemini with the runner's key: root loads the root-only env
* Probe with --skip-trust
* Launch Antigravity with --skip-trust so a builder run never stalls on the folder-trust prompt
---------
Co-authored-by: catomean <catomean@users.noreply.github.com>
* Install Cursor, Grok and Antigravity on the cloud builder so quota failover has somewhere to go
* No grep -q in a pipe
---------
Co-authored-by: catomean <catomean@users.noreply.github.com>
- CLAUDE.md: loki/ components are Thread, LokiComposer (Composer.tsx) and
ThreadRail (Transcript/ConversationList no longer exist); test:home runs
eleven suites, not eight; /duet redirects straight to /control; the
machine dogfood is scripts/machine-dogfood.mjs, not a package script.
- AGENTS.md: home/ is a library embedded by the box runner, Fleet Runner
and hosted runner, not a process on the user's machine.
- SECURITY.md: execution runs on the cloud builder or Fleet Runner; the
audit workflow runs pnpm audit.
- hetzner-migration / feedback-widget: evig and AOZ are served at
evig.orangecat.ch and aoz.orangecat.ch; the old hosts only redirect.
- HANDOFF / oc-rail scope: bitbaum is unregistered (fleet registers/org.json),
no "bitbaum AG", never "solo founder".
- deploy.yml comment: the auto-merge sweep lives in bitbaum/fleet.
- debt-reduction-roadmap: unlink deleted scripts.
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
Co-authored-by: Claude <noreply@anthropic.com>
* feat(previews): a status mode that says where a change sent with `ask` is
An ask to a preview's builder answers with a runId and a commandId, and
nothing could read them back from Actions: a change that had not landed after
half an hour was waiting, running or failed, and there was no way to tell.
`status` reads the run (and the queued command) through the deployed app as
the operator, the same way the other modes act.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1
* feat(previews): status also says whether the cloud builder is running and what its update drain last did
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1
* feat(previews): status shows the runner restart's state and each agent the drain waits on
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1
* fix(runner): a day-old Claude with no status file no longer holds every runner update
The drain restarts the box runner only when no agent is working, and a Claude
with no status file counts as working ("unknown is not idle"). Two such
processes, 6 days and 1.8 days old, held the drain open while all six other
agents sat idle: the runner stayed on 12 October's code, and since the
commands route holds new work for a builder that is behind
(src/lib/runner-update-hold.ts), no new task started on the cloud builder
at all. Center SOM's change sat "Waiting for a builder" for over half an hour,
and so did everything else.
Every current Claude writes its status file for as long as it runs, so one
that has written none for a day (LOKI_RUNNER_LEFTOVER_SECS, default 86400) is a
leftover — a session from a CLI that predates the file, or a helper — and no
longer holds the restart. A young one with no file, a Claude whose file says it
is working, and every other agent CLI are still busy. Pinned in
test-drain-and-restart-runner.sh.
Also on this branch: previews.yml `status` (a run's state, the queued command,
the runner, its drain and each agent's status — names and states only), which
is how this was found.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1
---------
Co-authored-by: Claude <noreply@anthropic.com>
Private tiles on bitbaum.orangecat.ch/private/ now render through the same
tile as the public work grid (bitbaum PR #136). This adds the picture they
show: GET /api/fleet/private/shot/<slug>, owner only, a 1280x800 picture of
the project's site (a preview through Loki's own route with the owner's
cookie, its widget left out), kept for twelve hours. A site behind its own
access-code page is not photographed, so its tile is text, not a code page.
takePagePicture takes a viewport; wider than a phone is a desktop browser.
The owner check is one helper (studioOwnerCheck) shared by the list and its
pictures.
A preview can now move: POST /api/previews/<slug>/move { to, name } attaches
the new address, renames the folder, moves the project row and its name in
one transaction (the folder moves back if that fails), points the widget at
the new address and detaches the old one. Center SOM was born center-com-3
from a domain spelled in look-alike Latin letters; this is how it becomes
tsentr-som. previews.yml gains `move` and `ask` (send the builder a change).
A website preview's one line names the site by host ("center-com.ru"), not
by its URL.
Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1
Co-authored-by: Claude <noreply@anthropic.com>
* feat(previews): before and after, photographed — the tour of what Loki changed on a live site
A preview made from a live site (/change "Improve this site") used to end in
improvements.html, a page the build agent styled freehand that Loki could
neither check nor illustrate, and the owner still compared two sites from
memory. Now the build leaves improvements.json (one entry per change naming
the live page and the new file, plus the engineer's account under the
pull-request walkthrough's keys), and Loki shows it:
- `/p/<slug>/_loki/before-after`, behind the preview's own code: each change
as the live page and the new page photographed on a phone, side by side,
with the build's words, what was not brought over, the questions for the
owner, and the account. Pictures are taken by lib/feedback/page-picture on
first ask and kept in the folder's `.loki/pictures/`; "before" pictures are
taken the moment the preview starts, while they still are the before; an
"after" is Loki opening its own preview with the access cookie
(`x-loki-picture: 1` keeps the widget out of the shot), keyed by content.
- Watch it work links the tour and shows the Walkthrough from the folder.
- The brief says a preview is a first impression, not a migration: the
homepage and the pages a visitor uses, at the live site's own paths.
The consultation's tour now reads the pages a buyer reads: navigation before
footer, the biggest section (a shop's catalogue) first, one page per section
before the second, accounts and small print left out. center-com.ru's tour had
been the login page, the privacy policy and the bank details.
From the review of this flow: the consultation cache is keyed by the
normalized address (every "Build" click had re-read the whole site inside the
request); a create saves the access code and attaches a host only after every
check has passed; name and folder agree (a leftover folder no longer serves
<name> at <name>-2); the gate no longer names the client; the chat's
read_website reuses the crawl; one in-flight helper; the shared escaper; the
preview route memoizes its project lookup for a page load; stale comments.
Dogfood without a browser: the Previews workflow gets `website` (the exact
/change path, as the operator, on the deployed app) and `check` (open a
preview as its owner and report the site, the tour and its pictures — the
cookie is minted on the box and never printed).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1
* fix(watch): the preview walkthrough reads from a lib the shared-access test can bind
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1
---------
Co-authored-by: Claude <noreply@anthropic.com>
- .github/workflows/retire-site.yml runs scripts/hetzner/retire-site.sh
against the box from GitHub (plan by default, --go when asked), so a site
can be taken down without a laptop — the same script the project's
'Remove it from the server' button queues.
- drizzle/0110: orangecat-2 (a stray test rebuild, not a client) is
deactivated at the owner's request; every project list and the fleet map
already filter on is_active.
Claude-Session: https://claude.ai/code/session_014d9r6dNr1vW789Q75hPcHF
Co-authored-by: Claude <noreply@anthropic.com>
* feat(chat): book without a second tap, reminders, notes, agenda, pictures and voice; skill installs itself
* feat(ops): doctor prints how the gateway sends a message
---------
Co-authored-by: Claude <noreply@anthropic.com>
WhatsApp and the Telegram chat are both carried by the OpenClaw gateway
on bitbaum; Loki has no inbound channel of its own. The messaging doctor
(#1206) found it dead since 2026-10-08: no process, nothing on :18789, the
unit `disabled`, and the openclaw user's systemd manager unreachable.
Forwarding a message to WhatsApp to be put in the calendar had stopped
working and nothing said so — the health sweep stopped watching the
gateway the same day, on the belief it was retired.
scripts/hetzner/openclaw-gateway-up.sh, run by
.github/workflows/openclaw-gateway-up.yml over the same SSH setup as the
doctor, enables linger for the openclaw user (without it the user's
systemd manager exists only while someone is logged in, so the box's own
reboot left the gateway down for good), enables and starts the unit
`openclaw gateway install` wrote, waits for :18789 and prints the
gateway's own channel status, masked. It touches no config, credential or
token, and says plainly if WhatsApp's linked-device session needs a QR
scan, the one step only the phone's owner can do.
Claude-Session: https://claude.ai/code/session_01NJJp6XiUkeEVzjDaBmWjL3
Co-authored-by: Claude <noreply@anthropic.com>
* feat(ops): a read-only messaging doctor, run from GitHub
A Petvity report left from another phone could not be found, and no
Telegram, Web Push or WhatsApp message arrived for it. Everything that
answers "ingest, notifier, bot or gateway?" lives on the box, which an
agent session cannot reach — so the question was being guessed at.
scripts/hetzner/doctor-messaging.sh, run by .github/workflows/box-doctor.yml
over the same SSH setup as openclaw-media.yml, looks at: whether the
feedback rows exist, the widget token's status and last boot, what the
notifier logged, the channel configuration (yes/NO only), the Telegram
Bot API live (getMe, webhook state, optionally one test message to the
operator's own chat), the OpenClaw gateway (process, port, error-shaped
log lines, session and WhatsApp auth file times, the CLI's channel
status) and the last actions Loki queued from chat.
It changes nothing. The repo is public, so it prints counts, times and
statuses only: no feedback text, no action titles, no secrets, and every
line passes through a filter that masks long digit runs and token-shaped
strings.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJJp6XiUkeEVzjDaBmWjL3
* docs(telegram): register the box doctor's one test message
CI's Telegram-registry gate (scripts/ci/check-telegram-registry.sh) found
that scripts/hetzner/doctor-messaging.sh can reach the operator's phone
and was not listed. Add its row: one test message, on demand only, when
the Box doctor workflow is dispatched with send_test true.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJJp6XiUkeEVzjDaBmWjL3
---------
Co-authored-by: Claude <noreply@anthropic.com>
A visitor opening francesco.orangecat.ch saw "This preview is not available
right now / Previews are switched off on this server": the word "preview" is
ours, and the page spoke as if the site were broken. It now says what is true
in the visitor's terms: the site is private for now / not open yet / not here.
The previews job takes an optional `code` input (masked in the logs) and passes
it to the live API, which saves it before it checks whether the address is
taken, so it also sets the code for a preview that already exists. Delete the
run afterwards: a public repo shows a run's inputs.
Claude-Session: https://claude.ai/code/session_01XpakL9C3TESU4H45fXMFfc
Co-authored-by: Claude <noreply@anthropic.com>