* fix(sites): a new private site's CI can ship it; registration clears every message it wrote
The site template's ship job granted its token only actions:write. A
job-level permissions block switches everything else off, so on a PRIVATE repo
checkout answered "Repository not found": CI went red on main, the fleet
sweep never ships a red main, and a brand-new site stopped one step before
going live (probe-loop, 2026-09-26). contents:read added to the template and
to loki's own ship job; ci-jobs-can-read-their-repo.ts fails any job that
checks out without it.
isRegistrationNextStep missed the deployment verdicts from
site-cd-deployment.ts, so Farmhouse kept telling its owner "Deployment
failed" after it was live. The test now collects every reason sentence from
the source and requires the matcher to know it.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* test(cron-runner): free ports and a subshell that always records its exit
Several sessions run verify on one machine at once; two runs on the fixed
ports 4997/4998 answered each other's jobs, and the retry subshell inherited
errexit so a failing job never wrote its rc file. The retry case failed
twice in one day. Four parallel runs: old test 1/4 pass, this one 4/4.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
linkPromptBudgetTokens sized every Groq link to Loki's free-tier 8000
tokens/min, including a reader's own Groq key — whose limits are their
account's — so the person who brought the stronger key got their context cut
to fit Loki's pool. Own-key links (ai-kit 1.18 marks them; isOwnKeyLink) now
get the large-context budget like every other vendor.
ai-kit ^1.18.0.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A green deploy proved only that the site answered 200: an agent's change could
pass its checks and still leave the page scrolling sideways on a phone,
throwing in the browser, with broken images or most of its text gone, and on
autopilot nobody looks. The shared self-host deploy now reads the live page in
headless Chrome at 390px before and after shipping (page-check.mjs); if the
change ADDED any of those problems (page-check-compare.mjs), it rolls back to
the previous release and fails with the reasons. No baseline is never a
regression, and a checker that cannot run warns instead of blocking.
Screenshots are kept as an artifact for 14 days.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
George's decision 2026-09-26, relayed by the aoz session: no separate demo
instance. Removes the apps.conf row (port 4028, db aoz_demo) and its nightly
reset-demo cron. aoz-wohnen is unchanged. The box teardown (unit, timer,
Caddy vhost, database, /opt/aoz-demo) is done from the aoz session once this
is merged, so sync-infra cannot re-create it. test-demo-instance.sh keeps its
guard that no non-demo app carries the reset route; zero demos is now valid.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(crons): the feedback check runs every 15 minutes, as its own comment said
check-feedback-needs-you is where Loki merges a finished fix that nothing else
merges (and retries a stuck queue). Its route has always said "every 15 min",
but the timer fired hourly, so a green owner fix could sit up to an hour
(Farmhouse#2 waited 11 minutes for :05). GitHub reads only, no AI; its
Telegram alerts already back off, so a tighter tick sends no more messages.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* style: format telemetry-paths
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(drain): a Claude session showing a dialog does not hold runner updates
A dialog over an empty composer holds no work a restart could lose, but the
drain read Claude's "waiting" as working. Farmhouse sat on "Teach auto mode
about your environment?" and held every runner update for the whole cap —
including the one that clears such dialogs. session_status now reports
"dialog" for waiting + waitingFor dialog; a permission prompt mid-task is
still work.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(feedback): the owner repeating a note retries it instead of dropping their pass
A repeated note was de-duplicated onto the earlier row and answered as a
visitor's, so the widget concluded the pass was bad and forgot it. The pass
is now checked before dedupe: the owner's repeat starts a failed attempt
again, and one already running answers "On it".
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(sites): a site that goes live after registration is recorded, and its owner told
Registration wrote the live URL only if the site answered at that moment.
Farmhouse's first deploy failed, a later one succeeded, and nothing looked
again: no live URL, a Live link that opened the OrangeCat listing, and no word
to the owner. An hourly check (and the owner opening the project page) now
asks the same question registration asks and, the first time the answer is
yes, sends the owner their link that readies the widget.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* docs(telemetry): six crons run hourly now that check-site-live does
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(runner): a Claude session showing a dialog is cleared before a prompt is sent into it
Farmhouse's parked session sat on Claude Code's "Teach auto mode about your
environment?" dialog. The owner's widget note was injected into the dialog,
nothing ran, and the run was NACKed 33s later while the widget said "On it".
Claude reports this itself ({status: waiting, waitingFor: "dialog open"}); the
runner now presses Escape and, if the dialog stays, starts a fresh session.
Also: on the box every live-session lookup used the dispatch's laptop path,
which no session has, so the generation check fell back to guessing from
screen activity. They now use the folder the agent really runs in, and the
reader accepts current CLIs' updatedAt.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(widget): owner mode reads as the owner's, and the agent is told the owner asked
The widget no longer asks the owner for a name/email and says what happens
("Your site: what you say here gets built and goes live"). The agent's brief
now opens with "The owner of <project> asked for this change" instead of
"Fix this visitor feedback" — still fenced as text from a browser.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* chore(desktop): 0.8.35 — ships the dialog-clearing runner fix to Fleet Runner too
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* docs(changelog): Fleet Runner 0.8.35
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(feedback): the owner's note from their own site starts the fix and ships itself
The widget could not tell the owner from a stranger, so a note the owner said
on their live site waited in /feedback for them to come back, press Implement,
then merge. A signed owner pass (project + owner, 90 days, URL fragment only)
now marks the note as the owner's; ingest starts the fix through the same
implementFeedback() the Implement button now uses, and the fix merges once
green unless the project explicitly turned auto-ship off.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(widget): the owner's Live link opens their site ready to say what to change
Loki's Live link now carries the owner pass in the URL fragment. The widget
lifts it out of the address bar, keeps it for that site, opens straight to the
note, and sends it with each note; the reply says the fix is being built and
offers the next note. A refused pass is forgotten and the owner reads as a
visitor. Lint + tsc + test run on these files before committing.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(feedback): a run that went quiet no longer reads "Agent is working"
The step line claimed working whenever any progress had ever been recorded,
so a run whose laptop builder went offline showed "Agent is working" beside
"Needs you: Open Fleet Runner" (run ccaf19cf).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(loki): keep the open conversation in the URL so Back returns to it
Dispatching from /loki and navigating back landed on an empty composer while
the thread's follow-up chips still showed (feedback b8a97aef). ?c= now holds
the thread beside ?project=; a stale id falls back to the start page.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* style: format loki-conversation-in-url test
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Free-plan orgs expose org variables to public repos only; Loki provisions
private by default, so Farmhouse's Deploy failed with no box address.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The ledger judged deploy_failed only from the merge commit's own Deploy
runs, then froze it as terminal. PR #540's rows said "deploy failed" for
two weeks while dozens of later main deploys shipped the merge, and the
two OPEN rows kept loki's automatic shipping paused.
- healDeployFailed/pickLaterBaseDeploy (pure): a later successful deploy
of the base branch, created after the merge, whose head commit is dated
at/after it, with no revert of the PR seen, turns it into deployed
(liveVia: later_deploy; ownDeploy keeps the failed run).
- deploy_failed is no longer terminal: re-checked every 15 min, for 30
days after the merge.
- The deploy workflow's runs are listed without branch= (fleet#146) and
filtered on head_branch here.
- Healing announces "live" once, with copy that says a later deploy
shipped it; it can never re-announce "deploy failed".
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
demo.aoz.orangecat.ch did not: *.orangecat.ch covers one label only, and
aoz.orangecat.ch is its own DNS node, so the deploy's final check failed
with "does not resolve — DNS gap". Checked against 1.1.1.1:
aoz-demo.orangecat.ch -> 167.233.22.31, demo.aoz.orangecat.ch -> nothing.
Only the domain field changes.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
In a workspace with no projects the reply said "Pick one below — or I can
just answer instead" and showed nothing: the picker returns null with no
options, taking its "Just answer" button with it. The server now only asks
when there is a project to pick (shouldAskForProject, tested), and the
picker still offers "Just answer" if it ever gets no options.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Site registration wrote "Live site: <url>" / "Deployment queued…" into
next_step, which Control shows as "Suggested next" and every dispatch
briefs the agent with; Skif's agents were told their next step was a URL.
Success no longer writes a status there, and clears a message registration
itself left; failures (the owner must act) still say what to run.
isRegistrationNextStep lives in the pure site-cd module.
- Today's "N running" counted prompts STARTED in a window, so dead agents
kept counting ("2 running" beside Control's "1 working", zero open runs).
It now counts projects with a live agent turn, Control's source.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
getOrgProjects() includes the caller (403f47cd), so `[...own, ...org]`
listed every own project twice. OrangeCat's actor-status spent half its
25-project cap on duplicates (orangecat appeared twice), and
loki_fleet_status reported double the project count. /control already
deduped on its own. One pure helper, mergeVisibleProjects, own rows first.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- apps.conf: aoz-demo|4028|demo.aoz.orangecat.ch, kind demo, owner bitbaum
(same aoz-begleitung checkout as aoz-wohnen; not a client app).
- install-push-deploy: a demo sharing its repo with a real app is skipped.
install_hook REPLACES the marked block, so the last row sharing a repo
won; appended after aoz-wohnen, the demo would have made every push to
aoz-begleitung deploy the demo instead of the app.
- install-app-crons: nightly /api/cron/reset-demo for aoz-demo ONLY (the
route truncates the database).
- test-demo-instance.sh (in test:ops): the push-hook guard, and reset-demo
registered only on a kind=demo app, never aoz-wohnen.
Requested by the aoz session (box side: DB, env, sync-infra, crons is
theirs). No box changes here.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* wip: user_model_keys table + ai-kit 1.17.0
* wip: chat runs on the user's own model
* wip: settings API + screen for the user's own model
* wip: budget refusal offers your own model; tests
* fix: narrow userId for the own-model path; document BYOK_SEAL_SECRET
* fix(demo): the shared demo account may not store a model key
* fix(settings): deep links no longer cause a hydration mismatch
The reaper closes a stale run as timeout ("closed"); reap-evidence then
finds a PR it pushed and upgrades it to partial, and emitted a SECOND
"closed". Skif's history read "closed, closed" on two runs today. The
correction is now its own run_event kind, reclassified (text column, no
migration; nothing decides closedness from the latest kind).
Also: the partial note said "ran out of time", which is false for a run a
builder restart ended (#917 reaches the same copy). Now "ended before it
could report back".
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Banners, session summaries, the previous run and the Launch row appear and
disappear as live state polls in. Stacked above the composer, each one
moved Send: twice on 2026-09-25 a click on Skif's Send landed on nothing
and the brief stayed in the box. The composer now comes first; status
settles below it. Pinned by control-composer-leads-card (fails on the old
order). No lines added: ProjectCard sits at its 510-line ratchet.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The launcher knew its corner, an offset, a global data-fc-bottom and one
foreign fixed launcher. Everything else it could miss: any layer wider than
90% of the viewport was ignored, so on substrata /atlas at 390px it parked on
the country bottom sheet; and it re-measured only on load, resize, window
scroll and URL change, so a sheet mounted later was never seen.
One engine now, for every width and obstacle:
- placement.slotOrder: preferred corner up its near band, the mirrored
corner, then the rest of each edge (pure, unit-tested).
- host-scan: hit-tests each slot (launcher + 12px gap) with
elementsFromPoint and judges free / surface / layer / blocked. Controls
(incl. [tabindex], iframes, cursor:pointer) block; fixed/sticky bars and
inner scroll panels are layers; a control >=25% of the viewport (a
pannable map) is a surface.
- placement.chooseSlot: first free, else least-bad, else HIDE - never sit
on a control.
- Re-measures on DOM mutation (throttled 1/s) and on inner-panel scroll.
- Host contract: data-fc-avoid (never overlap), data-fc-place=
left|right|hidden on <html> or a page region. Documented in
widget/README.md.
Also fixes a latent bug the browser test caught: clearing inline edges to ""
let the shadow stylesheet's right:16px survive a move to a LEFT corner, so
"Move to other corner" stretched the launcher across the page.
Tests: widget-placement.ts (pure) and widget-host-avoid-browser.ts (real
Chromium, 9 fixtures). Against the pre-fix bundle 7 assertions fail; each
new rule (layer, surface) fails its fixture when mutated out. CI installs
chromium-headless-shell so the browser test runs rather than skips.
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The runner now reports bootedAt (process start, captured once) on every
runtime-state post. Runs on that runner's channel whose agent session was
live before the boot (claimed/launched/submitted/generating/progress event
older than bootedAt), with nothing heard since and no un-acked command, are
closed at once with the restart named, instead of reading 'waiting' until
the hourly reaper. Only-dispatched runs are left for the new runner.
Verdict matches the reaper's (partial on handoff, else timeout) so the same
repo-evidence correction upgrades runs that had already pushed work.
Fleet Runner 0.8.34.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The cap took the first 25 projects in list order, so an account with 37
projects never showed OrangeCat's Cat its own `orangecat` project. Sort by
what needs the owner (blocked on them, new feedback, working, queued,
linked, live) and cut after. Stable: ties keep list order.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Found on Skif's page, live (2026-09-25):
- The headline read "…freedom. From the owner: Who is this for, and who
pays for it? Year one pays per booking…". The interview appends the
owner's answers to the description ON PURPOSE (kickoff, dispatch and
search read the brief), but header, project row, public profile and the
OrangeCat listing showed the transcript. projectHeadline() cuts at the
brief heading for display surfaces only; agent briefs keep it all.
- The action row laid four ways of going public (List publicly, Publish,
Govern, Share) beside Live and Repository with nothing saying how they
differ. They are now one "Share & publish" door with a line each. The
"Live site set" chip went (the Live link says it, and does something).
- BRIEF_HEADING has one home (project-display) and the interview imports
it, so the dependency stays one-way.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The workspace strip (Profile · Chat · Control · Terminal) showed
"skif~d0a14b69" on every page after a parallel run's tab was opened:
the terminal remembered the raw tab as the fleet project. asFleetProject
normalises through baseProjectKey on the route parser, the stored read
and the write, so a stale stored alias heals on read.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(projects): tell the truth about cloud presence and separate header state
Box-runner heartbeats as cloud but could register bridge presence as local,
so /terminal said Cloud offline while the journal shipped work. Infer cloud
from box-* versions, force the channel in box-runner, and scope the terminal
honesty chip. Project header now shows listing/live as status, not peer links;
catalogue invite waits until kickoff/build is idle.
Co-authored-by: Cursor <cursoragent@cursor.com>
* chore(desktop): bump Fleet Runner to 0.8.33 for presence-channel fix
desktop/bridge-subscriber changed so box-* runners register as cloud; the
release-drift gate requires a version bump and changelog entry before merge.
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
Since #900 an extra concurrent run gets the tab alias <project>~<runId8>.
The terminal context matched tabs to projects by raw name, so the alias
matched nothing: the strip, page header and composer showed
"skif~d0a14b69", and the Loki rail said "No run on skif~d0a14b69 yet"
beside an agent nine minutes into its work (2026-09-25).
- terminal context resolves tabs via baseProjectKey (the run-tab SSOT)
- getLatestRunForProjectKey understands a lane tab: base project AND the
run its suffix names (runLaneOfTab), so parallel lanes don't swap runs;
a malformed suffix is rejected, never a LIKE wildcard
- the strip labels a lane "Skif · parallel", with the alias in the tooltip
Tests: run-tab (lane parse, malformed suffixes, context uses the SSOT).
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Solon returned 500 for ~30 min: Next 16 standalone + a middleware rewrite
behind Caddy's X-Forwarded-Proto: https fails with 'Failed to proxy
https://localhost:4018/en ... EPROTO' when HOSTNAME=127.0.0.1, because Next
normalises 127.0.0.1 to localhost. An app can now set BIND_HOST in its .env.
The test renders and runs the template for both cases plus a negative control.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 10:53: the box ran out of RAM during a heidi deploy, the
kernel OOM-killed one chrome-headless an agent was screenshotting with,
and systemd's default OOMPolicy=stop took the whole box-runner unit down,
with every agent session in it (Skif, 13 minutes into a brief).
OOMPolicy=continue in the unit install-box-runner.sh writes; pinned in
deploy-runner-decoupling. Applied live as a drop-in without a restart.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
On Skif the interview said "It does not say who it is for or what finished
looks like... Five questions" above ONE question about why it exists, on a
project that had answered both. interviewIntro(planned) now words it from
the fields the interview will actually ask, with the count.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Found by trying, as the owner, to tell Skif's story in Loki (2026-09-25).
1. The place for it was "Context", tab 4 of 6. It is now "Story", second,
right after Now. The id stays `context`, so #context links still work.
2. The interview never asked for a mission, though its own comment said a
project with "mission, problem and solution" is not interrupted. Skif had
customers, problem and solution but no WHY, so every dispatch briefed its
agent on a booking app. The interview now asks "Why does this exist?" as
the fourth essential question. The cap stays at 5 questions.
3. Pasting the 8.5k-character doctrine into "Sync from doc" failed twice
over. The textarea's maxLength (8,000) truncated the paste silently, and
given the full text, the server said "at least a sentence". Brief,
roadmap and reconcile now share pastedText() (DOC_PASTE_MAX 24,000;
too short and too long say which). Boxes keep the text and show
<CharCount>, and submit refuses while over. No maxLength remains.
Tests: project-story-tab-leads, pasted-docs-are-never-cut (both
mutation-checked), and project-interview updated for the mission question.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(build): keep fs out of the browser bundle — the exit-contract matcher gets a Node-free home
loki#900 made activity-status.ts import EXIT_CONTRACT_PATTERN from
agent-config.ts. activity-status is shared with client components (the
Activity feed strips the contract from a dispatch before showing it), and
agent-config imports `fs` — so `fs` landed in the browser bundle and
`next build` failed: "Module not found: Can't resolve 'fs'". Four deploys of
main were refused; production kept serving the previous release, but nothing
merged after #900 could ship either.
`verify` could not see it: CI deliberately does not run `next build`, so a
client/server boundary break only surfaces at deploy.
The heading and the matcher move to src/lib/exit-contract.ts, which imports
nothing. agent-config builds the full contract from that heading; the client
and the lane prompt read the matcher from the Node-free module.
Proved by the step that failed: `pnpm run build` against a schema-only
Postgres, exactly as the deploy runs it.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh
* test(build): catch a Node builtin in the browser bundle before the deploy does
verify does not run `next build`, so a client/server boundary break only
surfaces when the deploy builds — after the PR has merged. That is how #900
reached main and blocked every deploy.
client-bundle-node-free.ts walks the client graph the way Turbopack does,
without building: from every "use client" module through static value
imports, stopping at "use server" modules (RPC stubs on the client), and
fails on any builtin Next does not polyfill for the browser.
Proved against the real break: with #900's activity-status.ts it reports
exactly the two errors the deploy printed — `fs` in agent-config.ts and in
session-paths.ts via activity-status.ts <- project-intent-panel.tsx — and on
this branch it reports none.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh
* style: format
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Each probe is a real model call on the operator's Claude sign-in; 24 a day for
~2 dispatches a day was spend for nothing. Applied on the box already.
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
At 09:01 on 2026-09-25 the post-deploy drain reached its 30-minute cap
while a Skif agent was genuinely working, and force-restarted the box
runner, killing it mid-brief. Stale runner code is recoverable (the next
drain lands it); an agent's half-done work is not.
drain_decision is now pure and pinned: restart when nothing works, wait
while something does, and at the cap LEAVE the runner on its current
code, loudly. There is no forced-restart path. Default wait 6h.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A cloud `claude` tab viewed in a 46-column pane (41 after A+) kept a PTY of
120 columns (confirmed on the box: stty size 32 120, the spawn default).
ptyResizeToPublish stays silent under TERMINAL_MIN_COLS (60) so a narrow viewer
cannot squash the session, but the grid itself stayed 46 wide, so every row the
agent drew at 120 wrapped mid-token. The resize chain (route, bridge, runner)
was never reached: the client never sent anything.
gridForSession pins a real-but-narrow grid up to the floor (the host scrolls
sideways) and that size is published: the same size clampPtyGeometry would
apply on the server, so grid and PTY agree by construction. A collapsed host
(< 20 cols or < 6 rows) still publishes nothing and pins nothing.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(ai): no box timer or background path spends the shared free AI tier
Removes the frontier-digest, feedback-digest and scout-events cron routes and
timers; the digest email is built without a model; check-model-ids no longer
sends a one-token completion per pinned model; the DoD model judge on run
close (page poll / runner push / cron sweep) is gone - precheck only; the
Today Watch nudge composes on click, rate-limited, not on mount; the loki-e2e
check (a real chat turn 4x/day) is on demand only; standing-rule calendar
bookings never call the model to recover a date.
scripts/test/no-free-background-ai.ts walks the call graph from every cron
route and close path and fails if any reaches a model endpoint.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
* fix(ai): delete the scout and feedback-digest producers the removed crons left dead
Also lowers the telemetry monitored-path floor to 2: frontier_digests was
demoted on purpose with its cron.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
---------
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(composer): the composer is @bitbaum/chatkit
Every Loki composer (chat, the terminal's Ask/Inject rail and Prompt box,
Control's quick send) now renders chatkit's Composer through one adapter that
keeps this app's API: the model picker sits in chatkit's tools slot, the mic's
server leg is /api/control/transcribe (prefer server: dictation here is often
mixed German/English). New for every composer: mic failures shown in words and
a browser-recogniser fallback when the server leg cannot work.
globals.css imports chatkit's stylesheet and maps our OKLCH tokens onto --ck-*
once in :root; 22 composer/voice rules and two keyframes the old composer alone
used are deleted. one-composer.ts now asserts chatkit's class names — same
guarantee: the chat and the rail render the same input.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* style(test): prettier on one-composer.ts
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Two defects hit one Skif dispatch on 2026-09-25, and either alone loses work.
1. The dispatch was NACKed "claude cannot generate because its usage limit
is exhausted" 14s in, while Claude was visibly working on the brief. The
capacity check scanned the WHOLE PTY buffer with a topic-word regex
("rate limit", "credit", "context window"), so the echoed prompt, the boot
banner or a file the agent printed read as a quota wall. Now it reads only
what the CLI printed after the injection, ignores lines that are just the
prompt echoed back, and for Claude defers to its own session status: a
session still generating has not hit a wall.
2. Two minutes later the box runner restarted and killed every session. The
post-deploy drain waited for agent processes to EXIT, and interactive CLIs
never exit, so it always ran to its 30-minute cap and then killed whatever
had started most recently. It now counts agents that are WORKING: an idle
Claude does not hold the restart; generating, waiting mid-task, or any
status it cannot read does.
Fleet Runner 0.8.32 (desktop/ changed, so it ships as a release).
Tests: terminal-run-view (echo vs real wall, mutation-checked) and a new
test-drain-and-restart-runner.sh (18 checks, four mutations each caught).
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
apply-schema.sh runs migrations as the postgres superuser, so every table
belongs to postgres and the app's own role can read none of them. skif's
first deploy printed "schema applied ✓" over 14 tables its role could not
SELECT.
Before the batch, set ALTER DEFAULT PRIVILEGES (plain DML, sequences,
functions) for the role named after the database. After it, report any
EXISTING table the role still cannot read, with the GRANT to run. Existing
tables are never re-granted, so a deliberate REVOKE (kivvi's append-only
audit log) survives deploys. Identifiers are validated, not quoted.
Mutation-tested: re-granting existing tables, GRANT ALL, defaults after the
batch, and a missing identifier guard each fail the suite.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Hourly /api/cron/auto-updates drafts new leads only for readers who opted
in, on their stored key and daily cap. Nobody opted in = no model call; the
site's free AI is never spent in the background (substrata ratchet test).
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
No background job may spend the shared free AI pool (George 2026-09-25).
The surf-your-life digest becomes an on-demand staff action; its route is
removed in that repo. Timer was already stopped and disabled on the box.
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
No background job may spend free-tier AI (George, 2026-09-25): it used up the
shared free credits. The unit is already disabled on the box.
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
skif's row said db=- and kind=client-site.
db=- makes every deploy skip the schema step, so drizzle/0000_init.sql
would never be applied: the signed-in pages would serve against a
database with no tables (the exact botsmann shape the format note
records). The database now exists on the box: role and db `skif`,
pg_hba rules inserted above the reject block, public schema owned by
the role, verified by connecting and creating a table.
kind=client-site was wrong on its face: Skif is bitbaum's own product,
owner=bitbaum, federating to OrangeCat. And bitbaum has no clients.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(terminal): resize the PTY to the grid on screen, not only when typing
The resize was published only from an interactive (Type + live keys) view,
so Prompt mode, Voice mode and every phone fitted xterm locally and never
told the PTY. Measured: 79-col grid drawing a 120-col PTY on desktop Prompt
mode, 86 vs 120 on a 390px phone — torn words and stray columns at the
right edge. Fit + publish now run on mount, on every host resize, on a font
step, and re-assert on window focus.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(terminal): one composer for chat and inject; expandable, full-width pane
- components/composer/Composer is THE composer (text, attach, voice, model,
Send/Stop, optional modes). Loki chat (LokiComposer), the terminal's
Ask/Inject rail, the Prompt-mode box / phone dock and Control's quick send
all render it. TerminalLokiComposer (bare textarea, no attach/voice) is
deleted; Control's one-line ⌘Enter input is gone.
- The rail's Inject is the prompt composer while the rail is beside the
session, so the page no longer shows two inject boxes at once.
- Terminal pane: rail is a fixed width (lg+) instead of 40% of the row, can be
closed (remembered), is a sheet below lg; Expand works at every width and
Esc leaves it, except when typed into the xterm or handled by a dialog.
- Tests: one-composer (logic, per-call-site render, no private textareas),
terminal-expand (Esc rules).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>