Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
entity_wallets is polymorphic, so only the CRUD handler's DELETE cleaned it
and every other path leaked. The 2026-11-06 data-invariant gate found three
links (a project, two AI assistants) whose entities were deleted with no audit
row, i.e. outside the app. An AFTER DELETE trigger on each entity table
removes the links in the database, and the migration clears the existing
orphans so the gate is green on apply.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* ci(broken-words): say why sign-in got no answer, and try once more
Main went red twice on 8a3e050 (#1567) in build-and-smoke → check:broken-words
with `authPostStatuses: []`: the click sent the token request to the
self-hosted auth and no response ever came back. The diagnostic recorded
only responses, so it could not say whether the form had submitted at all.
The same sign-in from outside the runner answered 200 at the time.
- Record auth requests that FAILED (Playwright `requestfailed`, error text
only) beside the ones that answered.
- Include the page's own alert text (first 160 characters; never input).
- When no auth request got any answer, wait 20 s and try once more before
the gate gives up — the usual cause is the runner or the shared account
being throttled for a moment.
Checks run directly (eslint 0 errors, 2 pre-existing warnings; prettier;
node --check): `pnpm exec` cannot resolve the private writingkit tarball
from this sandbox, so the hooks that wrap it were bypassed; CI is the gate.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD
* ci(broken-words): also name preflights that failed and auth requests still pending
The first diagnostic (1d0a135) ran on CI and reported nothing at all: no
response, no failed POST, no alert, twice. A cross-origin POST is preceded
by an OPTIONS preflight, and a connection the box silently drops answers
neither — so record every auth-path request that failed, whatever its
method, every preflight rejected with 4xx/5xx, and every auth request still
unanswered when the gate gives up.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD
---------
Co-authored-by: Claude <noreply@anthropic.com>
- An article is a timeline event, so its replies are ordinary posts. The
article page now ends with the discussion: the same cards, composer and
reply threads as the timeline (ArticleDiscussion; usePostThread moved to
src/hooks so two pages share it). Signed-out readers see the replies and a
sign-in link.
- The share row (OrangeCat · Post · LinkedIn · Share) overflowed the screen
on a phone; it wraps now.
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD
Co-authored-by: Claude <noreply@anthropic.com>
* feat(articles): import a sister product's article, no duplicate excerpt, honest header label
- /articles/new?import=<fleet article JSON url> seeds the composer with an
article from a sister product (BiasLens's "Post on OrangeCat"). The server
proxy at /api/articles/import reads it: HTTPS fleet hosts only, bounded in
time and size, shape checked (src/services/articles/import-source.ts). The
body ends with where it was first published. A local draft no longer
replaces an imported article; it stays listed instead.
- The reader no longer repeats the opening paragraph as the excerpt when the
author wrote no summary (feeds and metadata still use the derived one).
- The mobile header button opened registration while saying "Login"; it now
says what it does.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD
* refactor(articles): move the import notice out of the composer to keep it under the size limit
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD
---------
Co-authored-by: Claude <noreply@anthropic.com>
* Require owner consent before publishing learned economic offerings
* Honor the feedback host hiding contract in chats and overlays
* Wait for authenticated DOM before responsive layout checks
* Report safe sign-in lifecycle metadata when responsive checks fail
* Consolidate the remaining Cat privacy and recovery release handoff
* Prevent caching of the owner-only offerings response
* Use and verify the actual no-store policy for private offerings
* Reload sharing state safely after an uncertain write result
* docs: living site audit (works/broken matrix)
* docs: handoff for 2026-11-04 site-fix sweep
* docs: handoff status after #1544/#1545/#1547 verified live
---------
Co-authored-by: catomean <catomean@users.noreply.github.com>
* fix(ux): project Contact opens the conversation, My things uses the shared Cat composer, Collaborate empty state has an action
* refactor: collaborate empty state in its own component (size limit)
---------
Co-authored-by: catomean <catomean@users.noreply.github.com>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
* fix(fonts): load Inter, Space Grotesk and IBM Plex Mono from @bitbaum/design-tokens
src/fonts held our own copy of the faces. The same files, byte for byte
(Google's hinted latin subsets), now ship in @bitbaum/design-tokens 1.4.0
for every fleet app, so the copy goes and src/app/fonts.ts is the
next/font/local module the package's design-tokens-next-fonts command
writes (hinting=on, latin, as before). The exports keep their names
(inter, spaceGrotesk, ibmPlexMono), so the family names, --font-inter,
--font-heading and --font-mono, weights and preloads are unchanged.
The command has no `fallback` key, so the system stack that --font-inter
carried after the face moves into Tailwind's font-sans, the one place
that used --font-inter alone; font-heading, font-mono and longform.css
already list their own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
* chore(deps): lock design-tokens 1.4.0 as the canary deployed it
The rollout gate compares locked artifacts. biaslens (the canary), hirnli,
loki and s-ink lock 1.4.0 as its verified commit,
github:bitbaum/design-tokens#8b82acc, the form the fleet's floor-raising
PRs write, so a registry `^1.4.0` here never matched the canary's
deployed artifact. Same files: the five faces this uses are identical
(SHA-256). With the git ref the release-age exclusion is no longer needed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
* chore(deps): lock design-tokens 1.4.0 from the registry, as the canary now does
biaslens#176 moved the canary from the verified commit to the published
^1.4.0, so the rollout gate now compares against the registry artifact.
Same five files (SHA-256). 1.4.0 is inside pnpm's release-age window, so
it gets the exclusion entry other fleet apps use.
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>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
* feat(bots): a bot writes first, on the person's own key
A person can tell one of their bots to write first, every day at a time
they pick, with a prompt they wrote. The run happens on the person's own
OpenRouter key only; without a key the routine is kept, shown as waiting,
and skipped with the reason, so no platform key is ever spent by a timer
(fleet standing rule 2026-09-25).
- companion_routines table (one per person per bot, owner-only RLS),
routines-store (time validation, next run in the person's zone) and the
runner behind a cron route + 15-minute systemd timer, registered as a
person-asked timer in the no-background-ai gate with a marker check.
- GET/PUT/DELETE /api/ai-assistants/[id]/routine for the owner.
- RoutineRow in a bot's own chat: "Writes first, every day", time and
prompt inline, a line to Settings when a key is missing.
- Hands: the proposal line names what will be set up, never only "Sure";
a created event's outcome carries its link.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* feat(bots): a bot can ask Loki, as the person — the first connector
ask_loki: a Cat action (communication, low risk, confirmed) in the hands
launch set. The bot relays a question over the signed OrangeCat → Loki rail
to Loki's POST /api/orangecat/ask, which runs a read-only turn as the Loki
user linked to the actor; Loki's own sentence is the outcome the person
reads, and a refusal (no linked account, a spent budget) is relayed as
written. A relayed question can never dispatch, approve or spend: that stays
with send_task_to_loki, and the two verbs name each other so a question is
never dispatched as a task.
ADR-0013: D6 first connector and D7 recorded as shipped.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(bots): the routine's day-in-zone comes from the timezone helper
check:app-locale (new on main) refuses a literal locale handed to Intl; the
routine's next-run computation now takes the day in the person's zone from
instantToWallTime, the one rendering the app already trusts.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(bots): the chip knows the verb of ask_loki
The tool-label table of leading verbs gains ask → Asking / Asked, so the
chip for a bot's question to Loki never falls back to the generic label.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(cat): a failed "Do it?" card shows the server's sentence, not [object Object]
The confirm and reject hook handed the API's error envelope (an object) to
new Error(), so every failed action read "[object Object]". Seen live the
first time a bot asked Loki for an account not linked to Loki: Loki's
sentence naming the one step was on the action row and lost on the card.
The hook, the memory import and the interests list now read the message
through apiErrorMessage, the reader written for exactly this.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(companions): a bot keeps offering its hands on a repeat ask
Live on 2026-11-01 the second "Ask Loki" in one thread came back as
"I can ask Loki for you." with no fence and no "Do it?" card. The
proposal fence is taken off a reply before it is stored, so the model
saw its own earlier offers as plain sentences and copied them.
- The queued proposal is kept in the assistant message's metadata.
- The history given to the model writes the fence back onto those
turns (withProposal), so a proposal in the history looks like one.
- proposeFromReply returns the proposal as queued; hands tests cover
the round trip and metadata reading.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(companions): a proposal is a worked example, and a bare block still becomes a card
Live on 2026-11-01 a fresh bot's first "Ask Loki" came back as "Here's the
query I'll send to Loki:" over a json fence holding {"question": "..."}:
the free-tier model copied the template's inner half and left out the
action, so the person saw code and no card.
- The hands section ends with a complete block for a real offered action,
required fields filled with their own names, instead of a template with
<id> and {...}; it says the block is the proposal itself and to write no
other code block.
- extractProposal reads a propose, json or untagged fence at the end; a
block with fields but no "action" names the one offered action that owns
every field and has its required ones present; a propose fence that said
nothing usable comes off so it is never shown as code.
- Tests for the example, the lenient read, the inference and its refusals.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(bots): a failed "Do it?" card is finished, a second card starts clean, no empty bubble
Seen live on 2026-11-01 (fresh thread, two asks of Loki):
- a card whose action ran and failed kept Confirm/Reject under the reason;
the reason is now the outcome line, as a success would be
- the second card in the thread showed the first card's failure line inside
it: the card is keyed by its action
- a model that wrote only the block left an empty bubble above the card:
the card's description stands in for the words, and ask_loki is described
as the question ("Ask Loki: ...") rather than "Execute Ask Loki"
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* test(bots): the five demos as one live rehearsal, run by a person
tests/e2e/bots-rehearsal.live.spec.ts walks the live site as a brand-new
person (a pseudonymous account minted at the start, no fixture secret): one
door, the shelf and a real letter, a group with two specialists in their
lanes, an event proposed and created from a "Do it?" card, Loki asked twice
with an honest outcome and a clean second card, a routine set and stopped,
and the API edges. Every assertion names the value it protects.
The Live rehearsal workflow runs it on workflow_dispatch only and keeps the
screenshots; it has no schedule, because a free-tier key is spent only when
a person asks (fleet rule 2026-09-25). docs/testing/live-rehearsal.md.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* feat(bots): what a bot did stays in the thread
A "Do it?" card's outcome lived only in the slot above the composer: it left
the screen when a second card arrived and was gone on reload (seen live
2026-11-01). The confirm route now records the outcome as a line of the bot
conversation the card came from (services/companions/outcomes.ts): the
handler's own sentence with its page, or the reason it failed. The chat
re-reads the thread after the tap, so the line shows where it was asked
for, and the bot's next turn knows what happened.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* test(bots): the rehearsal retries a gateway error once
Seen 2026-11-01 at 16:50Z: the first post-deploy rehearsal passed six of
seven and failed the routine step on one PUT that answered 502, because
another merge (#1515) was rolling out at that second; the same call
answered 400 a minute later. An API call in the rehearsal now retries once
after five seconds on 502/503/504 and logs that it did; two in a row stay a
failure. Documented in docs/testing/live-rehearsal.md.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(bots): picked faces, fleet openings, chats keep the screen
From a look at the live site at 390px on 2026-11-01:
- every picked bot face rendered as a black circle: the avatar route was
force-static, so it was built with no query and served the first shape in
the first colour for every address. The route is dynamic again (still
cached a year by its header), and Face draws our own faces inline from
parseFaceUrl, so no request and no stale cache can lose them.
- fleet bots opened with one word and a link; FLEET_BOTS carries an opening
line and three starters per bot.
- Loki's feedback launcher floated over the last message and a Confirm card;
full-screen chats ask for its edge tab (data-fc-place="tab", routeChrome).
- the Cat greeted by a minted handle; greetingFor skips it.
- the disclosure says "an AI, not a person".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(bots): a shelf bot you already have opens instead of a second copy
Seen live on 2026-11-01: tapping "Writing Partner" on the shelf twice made
two bots, and the list showed two "Writing Partner" rows told apart only by
their times. The sheet now gets the list's bots; ownedShelfBot finds the one
the person made from that entry (theirs, name and job unchanged), the row
says "Open", and a tap opens it. A renamed copy is the person's own bot, so
the shelf still makes a new one beside it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* feat(bots): the owner's routines reach his Telegram, through Loki
The owner, 2026-11-02: Telegram is "the way for any bot of mine to contact
me". A routine's message (a bot that writes first) now also goes through
notifyOwnerViaLoki: the bot's name, the reply, one "Open the chat" button,
urgency "today" (silent), keyed per routine per day so it is one message.
Loki's gateway speaks only to its operator, so this is a no-op for everyone
else, who keep OrangeCat's in-app notification. routineNotice is pure and
tested against the wire body Loki accepts.
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>
"Daily brief: 33 unread notifications. Ask your Cat for details" reached
the owner's Telegram on 2026-11-02 — a count with nothing to act on. The
brief's facts are now collected once (collectBriefFacts); the in-app line is
unchanged, and ownerBriefNotice sends the owner a notice only for an overdue
task, an upcoming booking or a sale, with the button that opens it.
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
Co-authored-by: Claude <noreply@anthropic.com>
* feat(notify): OrangeCat's bots reach the owner through Loki's one gateway
The owner wants Telegram to be the way any of his bots reaches him, and only
with a one-tap action. Loki now owns that contract (loki
src/lib/notify/policy.ts); OrangeCat hands it the owner's news over the
existing signed rail instead of keeping it in-app only.
- services/loki/notify-owner.ts: posts the owner's notices (only when the
recipient IS the owner, OPS_NOTIFY_USER_ID) to /api/orangecat/notify.
- The Cat's daily brief and fired watches go there with "Open the Cat".
- Ops alerts go there with no button, so they land in Loki's list and never
ring the phone.
- uptime.yml: the outage message carries "Run Box doctor"; the recovery
message is gone (nothing to do).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN
* chore(env): list LOKI_NOTIFY_URL in .env.example
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>
0.22.1 fixes the Diplodoctor chat on Android: scrolling back down by hand
left the jump-to-latest button over the reply chips, with nowhere to jump
(a finger's lift-off wobble paused following). It also tells every model
that chips under a question answer it. The floor-raising sweep at 20:31
left this app on 0.22.0.
Checked on the talk page at 390px with real touch: read up, tap the
button, it lands at the latest message; scroll back down by hand with a
2px lift-off wobble, the button is gone.
Claude-Session: https://claude.ai/code/session_019MDtms1H9g9uu7AdDgJzLQ
Co-authored-by: Claude <noreply@anthropic.com>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
The owner's rule (2026-11-01): every fleet app offers every sign-in method,
"Continue with OrangeCat" included. Ten apps with a sign-in page had no
client: aoz-begleitung, biaslens, botsmann, diplodoctor, hirnli (on both
hosts), keller, kivvi, printcraft, reparaturbonus-zh and vitareba (vita and
vitareba hosts). They are now in client-specs.ts, identity-only.
Creating a client used to mean running register-client.ts on the box and
copying the printed secret by hand. Now the deploy's client SQL also creates a
missing row, switched off and with no secret: inert twice over (getClient
reads only enabled rows; verifyClientSecret rejects a null hash). loki
app-secrets.sh (kind oc-client, bitbaum/loki#1533) then writes the secret
into the app's env and its sha256 into the row, and switches it on, printing
neither. register-client.ts now mints a secret for such a row instead of
re-enabling it secretless.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
* feat(bots): a bot writes first, on the person's own key
A person can tell one of their bots to write first, every day at a time
they pick, with a prompt they wrote. The run happens on the person's own
OpenRouter key only; without a key the routine is kept, shown as waiting,
and skipped with the reason, so no platform key is ever spent by a timer
(fleet standing rule 2026-09-25).
- companion_routines table (one per person per bot, owner-only RLS),
routines-store (time validation, next run in the person's zone) and the
runner behind a cron route + 15-minute systemd timer, registered as a
person-asked timer in the no-background-ai gate with a marker check.
- GET/PUT/DELETE /api/ai-assistants/[id]/routine for the owner.
- RoutineRow in a bot's own chat: "Writes first, every day", time and
prompt inline, a line to Settings when a key is missing.
- Hands: the proposal line names what will be set up, never only "Sure";
a created event's outcome carries its link.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* feat(bots): a bot can ask Loki, as the person — the first connector
ask_loki: a Cat action (communication, low risk, confirmed) in the hands
launch set. The bot relays a question over the signed OrangeCat → Loki rail
to Loki's POST /api/orangecat/ask, which runs a read-only turn as the Loki
user linked to the actor; Loki's own sentence is the outcome the person
reads, and a refusal (no linked account, a spent budget) is relayed as
written. A relayed question can never dispatch, approve or spend: that stays
with send_task_to_loki, and the two verbs name each other so a question is
never dispatched as a task.
ADR-0013: D6 first connector and D7 recorded as shipped.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(bots): the routine's day-in-zone comes from the timezone helper
check:app-locale (new on main) refuses a literal locale handed to Intl; the
routine's next-run computation now takes the day in the person's zone from
instantToWallTime, the one rendering the app already trusts.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(bots): the chip knows the verb of ask_loki
The tool-label table of leading verbs gains ask → Asking / Asked, so the
chip for a bot's question to Loki never falls back to the generic label.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(cat): a failed "Do it?" card shows the server's sentence, not [object Object]
The confirm and reject hook handed the API's error envelope (an object) to
new Error(), so every failed action read "[object Object]". Seen live the
first time a bot asked Loki for an account not linked to Loki: Loki's
sentence naming the one step was on the action row and lost on the card.
The hook, the memory import and the interests list now read the message
through apiErrorMessage, the reader written for exactly this.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(companions): a bot keeps offering its hands on a repeat ask
Live on 2026-11-01 the second "Ask Loki" in one thread came back as
"I can ask Loki for you." with no fence and no "Do it?" card. The
proposal fence is taken off a reply before it is stored, so the model
saw its own earlier offers as plain sentences and copied them.
- The queued proposal is kept in the assistant message's metadata.
- The history given to the model writes the fence back onto those
turns (withProposal), so a proposal in the history looks like one.
- proposeFromReply returns the proposal as queued; hands tests cover
the round trip and metadata reading.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(companions): a proposal is a worked example, and a bare block still becomes a card
Live on 2026-11-01 a fresh bot's first "Ask Loki" came back as "Here's the
query I'll send to Loki:" over a json fence holding {"question": "..."}:
the free-tier model copied the template's inner half and left out the
action, so the person saw code and no card.
- The hands section ends with a complete block for a real offered action,
required fields filled with their own names, instead of a template with
<id> and {...}; it says the block is the proposal itself and to write no
other code block.
- extractProposal reads a propose, json or untagged fence at the end; a
block with fields but no "action" names the one offered action that owns
every field and has its required ones present; a propose fence that said
nothing usable comes off so it is never shown as code.
- Tests for the example, the lenient read, the inference and its refusals.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(bots): a failed "Do it?" card is finished, a second card starts clean, no empty bubble
Seen live on 2026-11-01 (fresh thread, two asks of Loki):
- a card whose action ran and failed kept Confirm/Reject under the reason;
the reason is now the outcome line, as a success would be
- the second card in the thread showed the first card's failure line inside
it: the card is keyed by its action
- a model that wrote only the block left an empty bubble above the card:
the card's description stands in for the words, and ask_loki is described
as the question ("Ask Loki: ...") rather than "Execute Ask Loki"
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* test(bots): the five demos as one live rehearsal, run by a person
tests/e2e/bots-rehearsal.live.spec.ts walks the live site as a brand-new
person (a pseudonymous account minted at the start, no fixture secret): one
door, the shelf and a real letter, a group with two specialists in their
lanes, an event proposed and created from a "Do it?" card, Loki asked twice
with an honest outcome and a clean second card, a routine set and stopped,
and the API edges. Every assertion names the value it protects.
The Live rehearsal workflow runs it on workflow_dispatch only and keeps the
screenshots; it has no schedule, because a free-tier key is spent only when
a person asks (fleet rule 2026-09-25). docs/testing/live-rehearsal.md.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* feat(bots): what a bot did stays in the thread
A "Do it?" card's outcome lived only in the slot above the composer: it left
the screen when a second card arrived and was gone on reload (seen live
2026-11-01). The confirm route now records the outcome as a line of the bot
conversation the card came from (services/companions/outcomes.ts): the
handler's own sentence with its page, or the reason it failed. The chat
re-reads the thread after the tap, so the line shows where it was asked
for, and the bot's next turn knows what happened.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* test(bots): the rehearsal retries a gateway error once
Seen 2026-11-01 at 16:50Z: the first post-deploy rehearsal passed six of
seven and failed the routine step on one PUT that answered 502, because
another merge (#1515) was rolling out at that second; the same call
answered 400 a minute later. An API call in the rehearsal now retries once
after five seconds on 502/503/504 and logs that it did; two in a row stay a
failure. Documented in docs/testing/live-rehearsal.md.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(bots): picked faces, fleet openings, chats keep the screen
From a look at the live site at 390px on 2026-11-01:
- every picked bot face rendered as a black circle: the avatar route was
force-static, so it was built with no query and served the first shape in
the first colour for every address. The route is dynamic again (still
cached a year by its header), and Face draws our own faces inline from
parseFaceUrl, so no request and no stale cache can lose them.
- fleet bots opened with one word and a link; FLEET_BOTS carries an opening
line and three starters per bot.
- Loki's feedback launcher floated over the last message and a Confirm card;
full-screen chats ask for its edge tab (data-fc-place="tab", routeChrome).
- the Cat greeted by a minted handle; greetingFor skips it.
- the disclosure says "an AI, not a person".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(bots): a shelf bot you already have opens instead of a second copy
Seen live on 2026-11-01: tapping "Writing Partner" on the shelf twice made
two bots, and the list showed two "Writing Partner" rows told apart only by
their times. The sheet now gets the list's bots; ownedShelfBot finds the one
the person made from that entry (theirs, name and job unchanged), the row
says "Open", and a tap opens it. A renamed copy is the person's own bot, so
the shelf still makes a new one beside it.
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>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>