Commit Graph
652 Commits
Author SHA1 Message Date
Cato d2dbb21ccc Unify article drafting and edits with WritingKit (#1565)
* fix(articles): unify drafting and edits with WritingKit

* fix(articles): use secure randomness for draft operation identities
2026-11-05 18:05:28 +01:00
CatoandClaude Fable 5.1 1976ad8a3f feat(articles): import a sister product's article, no duplicate excerpt, honest header label (#1564)
* 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>
2026-11-05 13:19:35 +01:00
Cato 961b7893f5 Keep temporary Cat chats from writing durable memory through tools (#1562)
* fix(cat): refuse durable memory tools in temporary chats

* fix(cat): include durable context documents in temporary privacy gate
2026-11-04 19:02:35 +01:00
Cato 0b970d0f18 Protect learned offerings and keep Cat recovery controls usable (#1558)
* 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
2026-11-04 16:51:35 +01:00
Cato 34a96adedc Keep paired Cat questions before replies when timestamps tie (#1559) 2026-11-04 15:54:23 +01:00
Cato a8023c4f9e Resolve the live free catalogue before building Cat fallback chains (#1557) 2026-11-04 15:35:41 +01:00
Cato ce4c1e64d2 Honor temporary chat and memory consent for economic learning (#1556) 2026-11-04 15:24:54 +01:00
Cato 702d5593de fix(cat): preserve failed turns and expose safe diagnostics (#1543) 2026-11-04 14:52:20 +01:00
Catoandcatomean 49290ffe92 feat(messages): Ask Cat button + @cat hint in the conversation composer (#1551)
Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-11-04 13:23:52 +01:00
Catoandcatomean 705056ac9f fix(messages): members can see each other's read state, so read receipts show (#1549)
Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-11-04 13:01:11 +01:00
Catoandcatomean 60abf17efd fix(messages): New message picker hides placeholder accounts, offers Talk to Cat; explanatory empty state (#1548)
Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-11-04 12:46:44 +01:00
Catoandcatomean 1b64f443b9 fix(profile): uploads work, Cat on the profile editor, sidebar name opens your profile (#1544)
* fix(profile): avatar/banner uploads, Cat on profile editor, sidebar name opens your profile

* fix(profile): avatar/banner uploads, Cat on profile editor, sidebar name opens your profile

* test: sidebar avatar links to profile; ci: supabase CLI renamed [inbucket] to [local_smtp]

---------

Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-11-04 12:22:49 +01:00
Catoandcatomean 875bf4ed15 fix(cat): publishing a Cat service draft sends hourly_rate/fixed_price, shows the real validation message (#1545)
Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-11-04 11:57:40 +01:00
Cato c3ffe478ea fix(cat): make permissions atomic and recovery reflect availability (#1542) 2026-11-03 11:21:13 +01:00
Cato 8172121e7d Enable Cat to manage project investor rooms (#1538) 2026-11-03 08:54:30 +01:00
Cato f65d12a23e fix(cat): preserve live-data answers and expose investor-room navigation (#1530)
* fix(cat): ground investor-room navigation and exercise real conversations

* fix(cat): ground replies in completed live-data tool results
2026-11-02 10:56:15 +01:00
CatoandClaude Opus 5.5 81942ce023 feat(bots): the owner's routines reach his Telegram, through Loki (#1526)
* 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>
2026-11-02 08:51:47 +01:00
CatoandClaude 69dc8e911e fix(cat): the owner's phone gets a brief only when there is something to tap (#1525)
"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>
2026-11-02 08:31:17 +01:00
CatoandClaude Opus 5.5 25ec4c3f6a feat(notify): OrangeCat's bots reach the owner through Loki's one gateway (#1524)
* 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>
2026-11-02 07:08:23 +01:00
CatoandClaude 553d330843 feat(oauth): a client for every fleet sign-in page, given its secret on the box (#1523)
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>
2026-11-01 21:55:29 +01:00
CatoandClaude Opus 5.5 56f8e9340a fix(bots): picked faces, fleet openings, chats keep the screen, no duplicate shelf bots (#1520)
* 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>
2026-11-01 21:43:20 +01:00
CatoandClaude 1fab45a57d feat(bots): an open bot chat is the whole phone screen, like the Cat's (#1518)
On a phone, a bot chat (/companions/talk?with=...) wore OrangeCat's app
header above its own floating header: two rows of chrome, about a fifth
of the screen, on the one page that is a conversation. The Cat hub has
been immersive since 2026-10-21, but the talk home cannot be told apart
by path, and reading the query in the root shell would stop every page
from rendering statically.

So the open conversation marks itself (IMMERSIVE_CHAT_ATTR) and the
existing immersive rules in globals.css also match it with :has(), and
hide .app-header below md. CSS, not state: the first paint is already
right, with no header flashing on the way from the list.

Checked in a browser on the real route: at 390px the chat runs 0-780
with no header and back returns to the list with it; 800 and 1280 keep
the header. A contract test keeps the three files on one name.


Claude-Session: https://claude.ai/code/session_019MDtms1H9g9uu7AdDgJzLQ

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 19:13:25 +01:00
CatoandClaude Fable 5.1 dc62ac87df feat(bots): what a bot did stays in the thread; the five demos as one live rehearsal (#1514)
* 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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 17:27:00 +01:00
CatoandClaude Fable 5.1 d78e17f6fe fix(companions): a proposal is a worked example, and a bare block still becomes a card (#1512)
* 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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 11:41:09 +01:00
CatoandClaude Fable 5.1 bf3f955aff fix(companions): a bot keeps offering its hands on a repeat ask (#1510)
* 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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 10:51:39 +01:00
CatoandClaude Fable 5.1 30ed087aef feat(bots): a bot writes first on the person's own key, and can ask Loki as them (#1503)
* 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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 07:40:33 +01:00
CatoandClaude cf50f0855a fix(voice): bot chats keep recording until you press done, like the Cat (#1505)
Speaking to Causius from the bots list stopped after one or two seconds;
the Cat's composer listened to the end. Same chatkit Composer, different
voice option: the Cat passed `prefer: 'server'`, the bot/companion/group
frame (ChatFrame) passed nothing, so chatkit started it on the browser's
recogniser, which on Android ends the take at the first pause.

- CHAT_VOICE in hooks/useDictation.ts is the one voice option; the Cat
  panel, its inline input and ChatFrame all use it.
- one-chat-surface test fails on any inline `voice={{…}}` / `voice: {…}`
  in src/components (it catches all three old sites).

chatkit 0.22.0 makes server-first the default whenever a server leg is
given (bitbaum/chatkit, same branch name), so other products get it too.


Claude-Session: https://claude.ai/code/session_019MDtmsZNxP7CFqQUe4uV3t

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 07:39:53 +01:00
CatoandClaude a331ba9aa4 feat(bots): hands — a bot proposes, the person taps (#1500)
A companion answers on any model, with or without tool calling, so it does
not call tools: it proposes. The owner's own companion is told what
OrangeCat can do for them (hands.ts: an event, a project, a product, a
service, a wishlist, a hand-off to Loki; nothing that moves money, nothing
high-risk) and ends an answer with one fenced block naming the action and
its parameters. The server takes the block off the words, validates the
parameters against the registry, asks the Cat's permission service and
writes the Cat's own consent row (hands-server.ts); the chat shows the
Cat's "Do it?" card (DoItCard), and the tap runs the Cat's executor. A bot
can set nothing in motion that the Cat could not, a standing grant given
here holds for the Cat too, and nothing exists until the tap, so a bot
never says a thing is done. Only the owner, only in the bot's own chat,
never in a group.

The boundary test that keeps companion code out of the Cat's mind now
names what stays forbidden (the executor, the loop, the tools, the
handlers) and lets the consent plumbing through, for the same reason the
credits ledger was never on its list. The ADR records D9 (hands) and the
decision on D6 and D7 (connectors through the ai-kit MCP client, routines
on a chosen budget, in that order).


Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 05:46:39 +01:00
CatoandClaude Fable 5.1 2bbfe4f07a fix(bots): a verdict per member in groups, plain previews, chatkit 0.21.5 for the tall sheet (#1497)
* feat(bots): one list with the Cat first, a shelf of ready bots, lanes in groups

Companions are now Bots, and the Cat is the first row of the list: the one
bot here that acts on OrangeCat, the same panel as its own page, so wanting
something done never means knowing a second page.

New bot opens on a shelf of five that come with a job (Letter Reader, Pitch
Coach, Day Planner, Writing Partner, Study Buddy): one tap makes one, with
the job under its name and a first line that says what to send it, written
at creation rather than asked of a model when the chat opens. Found live
2026-10-31: the greeting lost the race to the person's first message, and
the bot asked what it was for after being told. A blank bot greets at
creation the same way, and takes a job stated in the first message instead
of asking again.

In a group chat each bot keeps to its job: the router names every member
whose job a part of the question is, the room rule says to hand another's
part over with an @ rather than answer in its place, and the floor passes
to a member whose part is still open. Found live: a question with a medical
and a legal half, sent to nobody by name, was answered whole by Causius.

Every bot's definition now carries one honesty rule: never invent a number,
a name, a date or a source; write [X] and say what to fill in. Found live: a
pitch rewrite opened with a statistic from nowhere.

The ADR records what a Grok Bot bot actually is (a teammate with a cloud
computer), so the shape is not mistaken for the substance.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(bots): a list preview is plain words, never markdown

A row read "**What the clause says (in plain words)**" with the asterisks
on the live site (2026-10-31). The preview now goes through chatkit's
deriveTitle, the one rule for a line of a message as plain words cut at a
word, instead of a second trim written here.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(bots): the room router gives a verdict per member

Asked to "name the one or two members best placed to answer", the small
router model named one: on the live site (2026-10-31, before and after the
prompt said to name each member whose job a part of the question is) a
question with a medical half and a legal half went to Causius alone, which
answered the medical half itself.

The router is now asked one line per member, "handle: yes" or "handle:
no", which is a question a small model answers; the parser reads the
verdicts (a bare handle still counts as yes) and keeps at most two. The
continuation prompt names the medical-by-legal case in so many words.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* chore(deps): chatkit 0.21.5, a sheet taller than the screen scrolls

The New bot sheet (a shelf of five over the name, shape and colour form)
opened with its title, close button and first row cut off above the
viewport on a phone and on a 900px desktop (production, 2026-10-31). The
cap and the scroll are chatkit's (0.21.5); this takes them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-31 20:36:20 +01:00
CatoandClaude cb543d2579 feat(bots): one list with the Cat first, a shelf of ready bots, lanes in groups (#1496)
Companions are now Bots, and the Cat is the first row of the list: the one
bot here that acts on OrangeCat, the same panel as its own page, so wanting
something done never means knowing a second page.

New bot opens on a shelf of five that come with a job (Letter Reader, Pitch
Coach, Day Planner, Writing Partner, Study Buddy): one tap makes one, with
the job under its name and a first line that says what to send it, written
at creation rather than asked of a model when the chat opens. Found live
2026-10-31: the greeting lost the race to the person's first message, and
the bot asked what it was for after being told. A blank bot greets at
creation the same way, and takes a job stated in the first message instead
of asking again.

In a group chat each bot keeps to its job: the router names every member
whose job a part of the question is, the room rule says to hand another's
part over with an @ rather than answer in its place, and the floor passes
to a member whose part is still open. Found live: a question with a medical
and a legal half, sent to nobody by name, was answered whole by Causius.

Every bot's definition now carries one honesty rule: never invent a number,
a name, a date or a source; write [X] and say what to fill in. Found live: a
pitch rewrite opened with a statistic from nowhere.

The ADR records what a Grok Bot bot actually is (a teammate with a cloud
computer), so the shape is not mistaken for the substance.


Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-31 19:40:50 +01:00
CatoandClaude Fable 5.1 402f005eea fix(companions): room to answer, a label for a job, no empty turns (#1492)
* feat(companions): one home where companions talk, together and with the fleet

/companions/talk is the messaging-app home for every companion: one list of
bots and group chats, newest first, with face, "Name · job", last line and
when; "+" offers New companion (name, shape, colour — the job is defined in
chat) and New group chat (two to six members, @-mentions, bot-to-bot
handoff, six bot turns a round, every line says who said it). The fleet's
own bots (Diplodoctor, Causius) sit in the same list and the same rooms over
one /api/ask contract, their identity from the fleet map; a 1:1 chat with
them stays in the browser. Members can be added and removed from the
details sheet. Companions is in the sidebar's More section.

Three owner-only tables (companion_rooms, _members, _messages) under RLS;
room services for mentions, planning, prompts, the fleet contract and
rounds; faces as a static SVG route. ADR-0013 records the decisions and
what is deferred (connectors = MCP + skills, routines, voice). The Grok Bot
screenshots that shaped this live in docs/research/grok-bot/ with an index.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): the fleet's agents wear their own marks, one-line intro, no header overlap

Diplodoctor and Causius are products with their own identity; this page is
only the room where they can be reached and combined. Each now shows the
mark its own site serves (/icon.svg) in the list, the header, the details
sheet and group chats, instead of a face made up here. A fleet chat opens on
one line and a way into the product, not the whole description. chatkit
renders the empty slot outside its padded scroller, so the first screen
takes the screen's published insets and no longer sits under the header.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(companions): attach photos, PDFs and files in every companions chat

The paperclip was off in the companions home because none of its three
backends took a file. It is on now, and it is the Cat's: chatkit's
composer with the Cat's limits and PDF reader, the Cat's tagged message
blocks for text, the Cat's photo store and image parts for pictures.
Nothing about attaching is written a second time.

- A companion, one to one: the file is read, the photo is seen; the user
  line keeps the tags so a reload shows the chips.
- A group chat: the photo is stored once with the person's line and read
  back by each member's turn, which runs in its own request.
- A fleet bot: an attached document goes to the product as `context` (the
  field Diplodoctor's contract has, Causius gets in #91); a line is cut to
  the contract's caps; a photo is turned away at the box with the reason.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): fleet marks through OrangeCat, one-word job lines

Both products answer /icon.svg with cross-origin-resource-policy:
same-origin, so a browser on orangecat.ch showed a broken picture where
Diplodoctor\x27s and Causius\x27s marks should be (measured 2026-10-30). The
mark is now served by /api/ai-assistants/fleet/[slug]/mark, which fetches
the product\x27s SVG, checks it is one, and falls back to the face the name
picks when it is not. The job line under a fleet bot\x27s name is the one
word the map\x27s own phrasing gives ("The health layer of the fleet" →
"health"), so "Diplodoctor · health" fits a row and a speaker label.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): a fleet bot in a group chat is told who else is there

A companion\x27s room rules (the others\x27 names and jobs, speak as yourself
only, @ a companion once when you need it) sat under its own definition
in the system prompt, but a fleet bot\x27s prompt lives on its site, so it
got only the transcript. On the live site Causius wrote Diplodoctor\x27s
answer inside its own line (2026-10-30). The same room section now goes
with every fleet request as the contract\x27s `scene` (roomScene, cut to
the contract\x27s 1,000 characters), which Diplodoctor and Causius put
after their rules.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(companions): a group chat is a conversation, not a staging

Tested on the live site with two fleet bots on one cross-domain problem
and two made companions (a builder and a skeptic) on a launch plan: each
member answered once and well, but nobody answered anyone, a bot asked to
discuss wrote both voices inside its own line, and a companion given a job
in its own thread asked for it again in the room. Three rules, all within
the round's six lines:

- A companion's memories of the person (its job) come into the room with
  it, as they do one to one; a born companion never asks its question
  again once it knows its job.
- A line that stages another member's voice is cut where that voice
  begins and that member answers for itself (cutImpersonation). One line
  addressed to a member is a question and stays.
- When a line addresses nobody and turns remain, one small router call
  (pickNext) says whether the exchange is over or who speaks next: the
  person asked for a discussion that is unfinished, a question is open,
  or a disagreement stands.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): a name that opens a sentence addresses that member too

Re-tested on the live site after the conversation rules deployed: the
builder and the skeptic now trade lines and revise, but in the fleet
pair only Diplodoctor spoke to a message that named both ("Diplodoctor:
… Causius: …"), and "Diplodoctor, your turn" from Causius passed the
floor to nobody. A member name that opens a sentence, followed by a
colon or a comma, now counts as addressing, for the person and for the
bots, in order of appearance with the @ mentions. A bot that labels its
own line with its name ("Skeptic: …") loses the label; the thread says
who spoke.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(companions): the job you give a companion becomes its definition

Dogfooding on the live site: two companions were given jobs in their own
threads, then seated in a group chat to design improvements for Loki
assistant. Both asked "What should I help you with most?" again. The job
lived only as an extracted memory, which did not always exist and never
reached the room. The owner first answer to a born companion question now
rewrites the companion itself (system_prompt and the description under
its name), so it holds in every conversation, group chat and clone, and
the question is never asked again. A member that answers with nothing is
a failed line with Retry, never an empty bubble.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* chore(deps): joi 18.3.1, the patched release for GHSA-4528-x5fx-h6hg

The security job on the companions pull request went red on a new high
advisory in joi (quadratic-time split in string().email({ multiple:
true })), reached only through @hookform/resolvers. The existing override
is raised to the patched release; pnpm audit --prod passes at the gate's
level again.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): room to answer, a label for a job, no empty turns

The second dogfooding round on the live site: both companions kept their
jobs in the room (the previous fix), but Loki Architect proposal was cut
mid-sentence at the 1,000-token default and its next turn came back
empty, and the line under each name was the whole definition sentence.

- A born companion answers up to 2,048 tokens.
- On the platform chain an empty answer (a reasoning model that spent its
  budget thinking) passes to the next link instead of coming back blank;
  the link is not marked down.
- The job line is a label of a few words: "You are Skeptic: find the two
  biggest flaws in any plan. Be brief." reads "find the two biggest flaws
  in any plan", an option letter reads as the option.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-31 05:42:40 +01:00
CatoandClaude Fable 5.1 df23a30286 feat(companions): the job you give a companion becomes its definition (#1490)
* feat(companions): one home where companions talk, together and with the fleet

/companions/talk is the messaging-app home for every companion: one list of
bots and group chats, newest first, with face, "Name · job", last line and
when; "+" offers New companion (name, shape, colour — the job is defined in
chat) and New group chat (two to six members, @-mentions, bot-to-bot
handoff, six bot turns a round, every line says who said it). The fleet's
own bots (Diplodoctor, Causius) sit in the same list and the same rooms over
one /api/ask contract, their identity from the fleet map; a 1:1 chat with
them stays in the browser. Members can be added and removed from the
details sheet. Companions is in the sidebar's More section.

Three owner-only tables (companion_rooms, _members, _messages) under RLS;
room services for mentions, planning, prompts, the fleet contract and
rounds; faces as a static SVG route. ADR-0013 records the decisions and
what is deferred (connectors = MCP + skills, routines, voice). The Grok Bot
screenshots that shaped this live in docs/research/grok-bot/ with an index.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): the fleet's agents wear their own marks, one-line intro, no header overlap

Diplodoctor and Causius are products with their own identity; this page is
only the room where they can be reached and combined. Each now shows the
mark its own site serves (/icon.svg) in the list, the header, the details
sheet and group chats, instead of a face made up here. A fleet chat opens on
one line and a way into the product, not the whole description. chatkit
renders the empty slot outside its padded scroller, so the first screen
takes the screen's published insets and no longer sits under the header.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(companions): attach photos, PDFs and files in every companions chat

The paperclip was off in the companions home because none of its three
backends took a file. It is on now, and it is the Cat's: chatkit's
composer with the Cat's limits and PDF reader, the Cat's tagged message
blocks for text, the Cat's photo store and image parts for pictures.
Nothing about attaching is written a second time.

- A companion, one to one: the file is read, the photo is seen; the user
  line keeps the tags so a reload shows the chips.
- A group chat: the photo is stored once with the person's line and read
  back by each member's turn, which runs in its own request.
- A fleet bot: an attached document goes to the product as `context` (the
  field Diplodoctor's contract has, Causius gets in #91); a line is cut to
  the contract's caps; a photo is turned away at the box with the reason.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): fleet marks through OrangeCat, one-word job lines

Both products answer /icon.svg with cross-origin-resource-policy:
same-origin, so a browser on orangecat.ch showed a broken picture where
Diplodoctor\x27s and Causius\x27s marks should be (measured 2026-10-30). The
mark is now served by /api/ai-assistants/fleet/[slug]/mark, which fetches
the product\x27s SVG, checks it is one, and falls back to the face the name
picks when it is not. The job line under a fleet bot\x27s name is the one
word the map\x27s own phrasing gives ("The health layer of the fleet" →
"health"), so "Diplodoctor · health" fits a row and a speaker label.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): a fleet bot in a group chat is told who else is there

A companion\x27s room rules (the others\x27 names and jobs, speak as yourself
only, @ a companion once when you need it) sat under its own definition
in the system prompt, but a fleet bot\x27s prompt lives on its site, so it
got only the transcript. On the live site Causius wrote Diplodoctor\x27s
answer inside its own line (2026-10-30). The same room section now goes
with every fleet request as the contract\x27s `scene` (roomScene, cut to
the contract\x27s 1,000 characters), which Diplodoctor and Causius put
after their rules.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(companions): a group chat is a conversation, not a staging

Tested on the live site with two fleet bots on one cross-domain problem
and two made companions (a builder and a skeptic) on a launch plan: each
member answered once and well, but nobody answered anyone, a bot asked to
discuss wrote both voices inside its own line, and a companion given a job
in its own thread asked for it again in the room. Three rules, all within
the round's six lines:

- A companion's memories of the person (its job) come into the room with
  it, as they do one to one; a born companion never asks its question
  again once it knows its job.
- A line that stages another member's voice is cut where that voice
  begins and that member answers for itself (cutImpersonation). One line
  addressed to a member is a question and stays.
- When a line addresses nobody and turns remain, one small router call
  (pickNext) says whether the exchange is over or who speaks next: the
  person asked for a discussion that is unfinished, a question is open,
  or a disagreement stands.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): a name that opens a sentence addresses that member too

Re-tested on the live site after the conversation rules deployed: the
builder and the skeptic now trade lines and revise, but in the fleet
pair only Diplodoctor spoke to a message that named both ("Diplodoctor:
… Causius: …"), and "Diplodoctor, your turn" from Causius passed the
floor to nobody. A member name that opens a sentence, followed by a
colon or a comma, now counts as addressing, for the person and for the
bots, in order of appearance with the @ mentions. A bot that labels its
own line with its name ("Skeptic: …") loses the label; the thread says
who spoke.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(companions): the job you give a companion becomes its definition

Dogfooding on the live site: two companions were given jobs in their own
threads, then seated in a group chat to design improvements for Loki
assistant. Both asked "What should I help you with most?" again. The job
lived only as an extracted memory, which did not always exist and never
reached the room. The owner first answer to a born companion question now
rewrites the companion itself (system_prompt and the description under
its name), so it holds in every conversation, group chat and clone, and
the question is never asked again. A member that answers with nothing is
a failed line with Retry, never an empty bubble.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* chore(deps): joi 18.3.1, the patched release for GHSA-4528-x5fx-h6hg

The security job on the companions pull request went red on a new high
advisory in joi (quadratic-time split in string().email({ multiple:
true })), reached only through @hookform/resolvers. The existing override
is raised to the patched release; pnpm audit --prod passes at the gate's
level again.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-31 04:37:51 +01:00
CatoandClaude Fable 5.1 c85b26e8a5 fix(companions): a name that opens a sentence addresses that member too (#1489)
* feat(companions): one home where companions talk, together and with the fleet

/companions/talk is the messaging-app home for every companion: one list of
bots and group chats, newest first, with face, "Name · job", last line and
when; "+" offers New companion (name, shape, colour — the job is defined in
chat) and New group chat (two to six members, @-mentions, bot-to-bot
handoff, six bot turns a round, every line says who said it). The fleet's
own bots (Diplodoctor, Causius) sit in the same list and the same rooms over
one /api/ask contract, their identity from the fleet map; a 1:1 chat with
them stays in the browser. Members can be added and removed from the
details sheet. Companions is in the sidebar's More section.

Three owner-only tables (companion_rooms, _members, _messages) under RLS;
room services for mentions, planning, prompts, the fleet contract and
rounds; faces as a static SVG route. ADR-0013 records the decisions and
what is deferred (connectors = MCP + skills, routines, voice). The Grok Bot
screenshots that shaped this live in docs/research/grok-bot/ with an index.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): the fleet's agents wear their own marks, one-line intro, no header overlap

Diplodoctor and Causius are products with their own identity; this page is
only the room where they can be reached and combined. Each now shows the
mark its own site serves (/icon.svg) in the list, the header, the details
sheet and group chats, instead of a face made up here. A fleet chat opens on
one line and a way into the product, not the whole description. chatkit
renders the empty slot outside its padded scroller, so the first screen
takes the screen's published insets and no longer sits under the header.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(companions): attach photos, PDFs and files in every companions chat

The paperclip was off in the companions home because none of its three
backends took a file. It is on now, and it is the Cat's: chatkit's
composer with the Cat's limits and PDF reader, the Cat's tagged message
blocks for text, the Cat's photo store and image parts for pictures.
Nothing about attaching is written a second time.

- A companion, one to one: the file is read, the photo is seen; the user
  line keeps the tags so a reload shows the chips.
- A group chat: the photo is stored once with the person's line and read
  back by each member's turn, which runs in its own request.
- A fleet bot: an attached document goes to the product as `context` (the
  field Diplodoctor's contract has, Causius gets in #91); a line is cut to
  the contract's caps; a photo is turned away at the box with the reason.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): fleet marks through OrangeCat, one-word job lines

Both products answer /icon.svg with cross-origin-resource-policy:
same-origin, so a browser on orangecat.ch showed a broken picture where
Diplodoctor\x27s and Causius\x27s marks should be (measured 2026-10-30). The
mark is now served by /api/ai-assistants/fleet/[slug]/mark, which fetches
the product\x27s SVG, checks it is one, and falls back to the face the name
picks when it is not. The job line under a fleet bot\x27s name is the one
word the map\x27s own phrasing gives ("The health layer of the fleet" →
"health"), so "Diplodoctor · health" fits a row and a speaker label.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): a fleet bot in a group chat is told who else is there

A companion\x27s room rules (the others\x27 names and jobs, speak as yourself
only, @ a companion once when you need it) sat under its own definition
in the system prompt, but a fleet bot\x27s prompt lives on its site, so it
got only the transcript. On the live site Causius wrote Diplodoctor\x27s
answer inside its own line (2026-10-30). The same room section now goes
with every fleet request as the contract\x27s `scene` (roomScene, cut to
the contract\x27s 1,000 characters), which Diplodoctor and Causius put
after their rules.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(companions): a group chat is a conversation, not a staging

Tested on the live site with two fleet bots on one cross-domain problem
and two made companions (a builder and a skeptic) on a launch plan: each
member answered once and well, but nobody answered anyone, a bot asked to
discuss wrote both voices inside its own line, and a companion given a job
in its own thread asked for it again in the room. Three rules, all within
the round's six lines:

- A companion's memories of the person (its job) come into the room with
  it, as they do one to one; a born companion never asks its question
  again once it knows its job.
- A line that stages another member's voice is cut where that voice
  begins and that member answers for itself (cutImpersonation). One line
  addressed to a member is a question and stays.
- When a line addresses nobody and turns remain, one small router call
  (pickNext) says whether the exchange is over or who speaks next: the
  person asked for a discussion that is unfinished, a question is open,
  or a disagreement stands.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): a name that opens a sentence addresses that member too

Re-tested on the live site after the conversation rules deployed: the
builder and the skeptic now trade lines and revise, but in the fleet
pair only Diplodoctor spoke to a message that named both ("Diplodoctor:
… Causius: …"), and "Diplodoctor, your turn" from Causius passed the
floor to nobody. A member name that opens a sentence, followed by a
colon or a comma, now counts as addressing, for the person and for the
bots, in order of appearance with the @ mentions. A bot that labels its
own line with its name ("Skeptic: …") loses the label; the thread says
who spoke.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 23:35:22 +01:00
CatoandClaude Fable 5.1 91c0e858ae feat(companions): a group chat is a conversation, not a staging (#1488)
* feat(companions): one home where companions talk, together and with the fleet

/companions/talk is the messaging-app home for every companion: one list of
bots and group chats, newest first, with face, "Name · job", last line and
when; "+" offers New companion (name, shape, colour — the job is defined in
chat) and New group chat (two to six members, @-mentions, bot-to-bot
handoff, six bot turns a round, every line says who said it). The fleet's
own bots (Diplodoctor, Causius) sit in the same list and the same rooms over
one /api/ask contract, their identity from the fleet map; a 1:1 chat with
them stays in the browser. Members can be added and removed from the
details sheet. Companions is in the sidebar's More section.

Three owner-only tables (companion_rooms, _members, _messages) under RLS;
room services for mentions, planning, prompts, the fleet contract and
rounds; faces as a static SVG route. ADR-0013 records the decisions and
what is deferred (connectors = MCP + skills, routines, voice). The Grok Bot
screenshots that shaped this live in docs/research/grok-bot/ with an index.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): the fleet's agents wear their own marks, one-line intro, no header overlap

Diplodoctor and Causius are products with their own identity; this page is
only the room where they can be reached and combined. Each now shows the
mark its own site serves (/icon.svg) in the list, the header, the details
sheet and group chats, instead of a face made up here. A fleet chat opens on
one line and a way into the product, not the whole description. chatkit
renders the empty slot outside its padded scroller, so the first screen
takes the screen's published insets and no longer sits under the header.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(companions): attach photos, PDFs and files in every companions chat

The paperclip was off in the companions home because none of its three
backends took a file. It is on now, and it is the Cat's: chatkit's
composer with the Cat's limits and PDF reader, the Cat's tagged message
blocks for text, the Cat's photo store and image parts for pictures.
Nothing about attaching is written a second time.

- A companion, one to one: the file is read, the photo is seen; the user
  line keeps the tags so a reload shows the chips.
- A group chat: the photo is stored once with the person's line and read
  back by each member's turn, which runs in its own request.
- A fleet bot: an attached document goes to the product as `context` (the
  field Diplodoctor's contract has, Causius gets in #91); a line is cut to
  the contract's caps; a photo is turned away at the box with the reason.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): fleet marks through OrangeCat, one-word job lines

Both products answer /icon.svg with cross-origin-resource-policy:
same-origin, so a browser on orangecat.ch showed a broken picture where
Diplodoctor\x27s and Causius\x27s marks should be (measured 2026-10-30). The
mark is now served by /api/ai-assistants/fleet/[slug]/mark, which fetches
the product\x27s SVG, checks it is one, and falls back to the face the name
picks when it is not. The job line under a fleet bot\x27s name is the one
word the map\x27s own phrasing gives ("The health layer of the fleet" →
"health"), so "Diplodoctor · health" fits a row and a speaker label.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): a fleet bot in a group chat is told who else is there

A companion\x27s room rules (the others\x27 names and jobs, speak as yourself
only, @ a companion once when you need it) sat under its own definition
in the system prompt, but a fleet bot\x27s prompt lives on its site, so it
got only the transcript. On the live site Causius wrote Diplodoctor\x27s
answer inside its own line (2026-10-30). The same room section now goes
with every fleet request as the contract\x27s `scene` (roomScene, cut to
the contract\x27s 1,000 characters), which Diplodoctor and Causius put
after their rules.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(companions): a group chat is a conversation, not a staging

Tested on the live site with two fleet bots on one cross-domain problem
and two made companions (a builder and a skeptic) on a launch plan: each
member answered once and well, but nobody answered anyone, a bot asked to
discuss wrote both voices inside its own line, and a companion given a job
in its own thread asked for it again in the room. Three rules, all within
the round's six lines:

- A companion's memories of the person (its job) come into the room with
  it, as they do one to one; a born companion never asks its question
  again once it knows its job.
- A line that stages another member's voice is cut where that voice
  begins and that member answers for itself (cutImpersonation). One line
  addressed to a member is a question and stays.
- When a line addresses nobody and turns remain, one small router call
  (pickNext) says whether the exchange is over or who speaks next: the
  person asked for a discussion that is unfinished, a question is open,
  or a disagreement stands.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 22:14:37 +01:00
CatoandClaude f0092957e4 feat(tax-model): inputs added to a component's base (0.11.0) (#1486)
Schema version 10: a component's `adds` are inputs added to its base, each
times a fact and optionally rounded down first, before the tariff applies.
Liechtenstein taxes a 4 % yield on wealth as income on one tariff
(SteG, LR 640.0, art. 5, art. 14 para. 2 l, art. 18 para. 1, art. 19).


Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 20:22:28 +01:00
CatoandClaude 13ff9883a8 feat(tax-model): an indexed divisor, a capped rebate and a floor (0.10.0) (#1485)
Schema version 9, for Valais:
- a divisor's `scaledBy`: the canton and each commune move the tariff to
  higher incomes by an index of their own (StG VS art. 32 para. 4, 178 para. 5)
- a component's `rebate`: a couple's 35 %, at least and at most an amount
  (art. 32 para. 3a, 178 para. 3a)
- a component's `floor`: the minimum tax owed once it applies (art. 32 para. 6)


Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 19:37:55 +01:00
CatoandClaude a572f1e6fc feat(studio): call approved partners builders (#1484)
bitbaum renamed its partner directory to builders (/builders/): "partner"
read as a share in the business, which it never was. OrangeCat follows:

- ECOSYSTEM.studio.buildersUrl replaces partnersUrl
- new /builders redirect; /partners keeps working and lands there too
- footer and careers card say Builders; /steal says "builders in the loop"


Claude-Session: https://claude.ai/code/session_019MDtmw5m9WhdN77N2YeqDm

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 18:57:23 +01:00
CatoandClaude Fable 5.1 ad116886bb fix(companions): a fleet bot in a group chat is told who else is there (#1482)
* feat(companions): one home where companions talk, together and with the fleet

/companions/talk is the messaging-app home for every companion: one list of
bots and group chats, newest first, with face, "Name · job", last line and
when; "+" offers New companion (name, shape, colour — the job is defined in
chat) and New group chat (two to six members, @-mentions, bot-to-bot
handoff, six bot turns a round, every line says who said it). The fleet's
own bots (Diplodoctor, Causius) sit in the same list and the same rooms over
one /api/ask contract, their identity from the fleet map; a 1:1 chat with
them stays in the browser. Members can be added and removed from the
details sheet. Companions is in the sidebar's More section.

Three owner-only tables (companion_rooms, _members, _messages) under RLS;
room services for mentions, planning, prompts, the fleet contract and
rounds; faces as a static SVG route. ADR-0013 records the decisions and
what is deferred (connectors = MCP + skills, routines, voice). The Grok Bot
screenshots that shaped this live in docs/research/grok-bot/ with an index.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): the fleet's agents wear their own marks, one-line intro, no header overlap

Diplodoctor and Causius are products with their own identity; this page is
only the room where they can be reached and combined. Each now shows the
mark its own site serves (/icon.svg) in the list, the header, the details
sheet and group chats, instead of a face made up here. A fleet chat opens on
one line and a way into the product, not the whole description. chatkit
renders the empty slot outside its padded scroller, so the first screen
takes the screen's published insets and no longer sits under the header.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(companions): attach photos, PDFs and files in every companions chat

The paperclip was off in the companions home because none of its three
backends took a file. It is on now, and it is the Cat's: chatkit's
composer with the Cat's limits and PDF reader, the Cat's tagged message
blocks for text, the Cat's photo store and image parts for pictures.
Nothing about attaching is written a second time.

- A companion, one to one: the file is read, the photo is seen; the user
  line keeps the tags so a reload shows the chips.
- A group chat: the photo is stored once with the person's line and read
  back by each member's turn, which runs in its own request.
- A fleet bot: an attached document goes to the product as `context` (the
  field Diplodoctor's contract has, Causius gets in #91); a line is cut to
  the contract's caps; a photo is turned away at the box with the reason.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): fleet marks through OrangeCat, one-word job lines

Both products answer /icon.svg with cross-origin-resource-policy:
same-origin, so a browser on orangecat.ch showed a broken picture where
Diplodoctor\x27s and Causius\x27s marks should be (measured 2026-10-30). The
mark is now served by /api/ai-assistants/fleet/[slug]/mark, which fetches
the product\x27s SVG, checks it is one, and falls back to the face the name
picks when it is not. The job line under a fleet bot\x27s name is the one
word the map\x27s own phrasing gives ("The health layer of the fleet" →
"health"), so "Diplodoctor · health" fits a row and a speaker label.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): a fleet bot in a group chat is told who else is there

A companion\x27s room rules (the others\x27 names and jobs, speak as yourself
only, @ a companion once when you need it) sat under its own definition
in the system prompt, but a fleet bot\x27s prompt lives on its site, so it
got only the transcript. On the live site Causius wrote Diplodoctor\x27s
answer inside its own line (2026-10-30). The same room section now goes
with every fleet request as the contract\x27s `scene` (roomScene, cut to
the contract\x27s 1,000 characters), which Diplodoctor and Causius put
after their rules.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 12:39:51 +01:00
CatoandClaude Fable 5.1 71a7281027 feat(companions): attachments in every chat; fleet marks served here; one-word job lines (#1480)
* feat(companions): one home where companions talk, together and with the fleet

/companions/talk is the messaging-app home for every companion: one list of
bots and group chats, newest first, with face, "Name · job", last line and
when; "+" offers New companion (name, shape, colour — the job is defined in
chat) and New group chat (two to six members, @-mentions, bot-to-bot
handoff, six bot turns a round, every line says who said it). The fleet's
own bots (Diplodoctor, Causius) sit in the same list and the same rooms over
one /api/ask contract, their identity from the fleet map; a 1:1 chat with
them stays in the browser. Members can be added and removed from the
details sheet. Companions is in the sidebar's More section.

Three owner-only tables (companion_rooms, _members, _messages) under RLS;
room services for mentions, planning, prompts, the fleet contract and
rounds; faces as a static SVG route. ADR-0013 records the decisions and
what is deferred (connectors = MCP + skills, routines, voice). The Grok Bot
screenshots that shaped this live in docs/research/grok-bot/ with an index.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): the fleet's agents wear their own marks, one-line intro, no header overlap

Diplodoctor and Causius are products with their own identity; this page is
only the room where they can be reached and combined. Each now shows the
mark its own site serves (/icon.svg) in the list, the header, the details
sheet and group chats, instead of a face made up here. A fleet chat opens on
one line and a way into the product, not the whole description. chatkit
renders the empty slot outside its padded scroller, so the first screen
takes the screen's published insets and no longer sits under the header.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(companions): attach photos, PDFs and files in every companions chat

The paperclip was off in the companions home because none of its three
backends took a file. It is on now, and it is the Cat's: chatkit's
composer with the Cat's limits and PDF reader, the Cat's tagged message
blocks for text, the Cat's photo store and image parts for pictures.
Nothing about attaching is written a second time.

- A companion, one to one: the file is read, the photo is seen; the user
  line keeps the tags so a reload shows the chips.
- A group chat: the photo is stored once with the person's line and read
  back by each member's turn, which runs in its own request.
- A fleet bot: an attached document goes to the product as `context` (the
  field Diplodoctor's contract has, Causius gets in #91); a line is cut to
  the contract's caps; a photo is turned away at the box with the reason.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): fleet marks through OrangeCat, one-word job lines

Both products answer /icon.svg with cross-origin-resource-policy:
same-origin, so a browser on orangecat.ch showed a broken picture where
Diplodoctor\x27s and Causius\x27s marks should be (measured 2026-10-30). The
mark is now served by /api/ai-assistants/fleet/[slug]/mark, which fetches
the product\x27s SVG, checks it is one, and falls back to the face the name
picks when it is not. The job line under a fleet bot\x27s name is the one
word the map\x27s own phrasing gives ("The health layer of the fleet" →
"health"), so "Diplodoctor · health" fits a row and a speaker label.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 11:45:45 +01:00
CatoandClaude Opus 5.5 253a3d4d93 feat(tax-model): 0.9.0, a multiplier scaled by another fact; 0.8.1, own-base components apply only when given (#1478)
* fix(tax-model): a component on its own base applies only when that input is given

Without it, a canton whose wealth tariff is not recorded made every income
estimate there incomplete, though the reader entered no wealth.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC

* feat(tax-model): 0.9.0, a multiplier scaled by another fact

Schema version 8: a multiplier's scaledBy is a fact it is multiplied by
before it counts. Jura levies church tax on the cantonal tax rather than on
the basic tax: the church's rate times the canton's multiplier, which the
federal calculator applies (measured 2026-10-30, income and wealth).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 10:53:20 +01:00
CatoandClaude Fable 5.1 7548399213 fix(companions): the fleet's agents wear their own marks, one-line intro, no header overlap (#1477)
* feat(companions): one home where companions talk, together and with the fleet

/companions/talk is the messaging-app home for every companion: one list of
bots and group chats, newest first, with face, "Name · job", last line and
when; "+" offers New companion (name, shape, colour — the job is defined in
chat) and New group chat (two to six members, @-mentions, bot-to-bot
handoff, six bot turns a round, every line says who said it). The fleet's
own bots (Diplodoctor, Causius) sit in the same list and the same rooms over
one /api/ask contract, their identity from the fleet map; a 1:1 chat with
them stays in the browser. Members can be added and removed from the
details sheet. Companions is in the sidebar's More section.

Three owner-only tables (companion_rooms, _members, _messages) under RLS;
room services for mentions, planning, prompts, the fleet contract and
rounds; faces as a static SVG route. ADR-0013 records the decisions and
what is deferred (connectors = MCP + skills, routines, voice). The Grok Bot
screenshots that shaped this live in docs/research/grok-bot/ with an index.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(companions): the fleet's agents wear their own marks, one-line intro, no header overlap

Diplodoctor and Causius are products with their own identity; this page is
only the room where they can be reached and combined. Each now shows the
mark its own site serves (/icon.svg) in the list, the header, the details
sheet and group chats, instead of a face made up here. A fleet chat opens on
one line and a way into the product, not the whole description. chatkit
renders the empty slot outside its padded scroller, so the first screen
takes the screen's published insets and no longer sits under the header.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 10:31:34 +01:00
CatoandClaude e4719fdc80 feat(brand): the cat rotorelief, and Loki's disc, replace the coils (#1476)
The Cat's mark is now a cat's head whose face is one of Duchamp's
rotoreliefs (Anémic Cinéma, 1926): off-centre rings that, turned, read
as a tunnel breathing in and out. Only the rings turn (new motion
'turn', about the face's centre); the head stays still. On its icon tile
the Cat wears Bitcoin orange (new iconInk); elsewhere it is currentColor.

Loki's mark mirrors bitbaum/loki's new rotorelief disc.

The installed OrangeCat icon showed as a blank black tile on an Android
home screen. The manifest was the only one in the fleet listing its SVG
icon first; generate:brand now lists the PNGs first and the SVG last.


Claude-Session: https://claude.ai/code/session_019MDtmreRmsJkmf3AcYy6DS

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 09:52:18 +01:00
CatoandClaude 1dbce8189d feat(tax-model): 0.8.0, a component's own base and fixed amounts (#1475)
Schema version 7, for Solon's full Swiss tax bill:
- a component's `base` names the input its tariff applies to, so a wealth
  tax sits beside the income tax in one model; the effective rate stays the
  share of the model's base that the components reading it take;
- a `fixed` tariff is one amount whatever the base, as a tax per head.

An older evaluator refuses a model that needs 7 instead of ignoring it.


Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 09:41:50 +01:00
CatoandClaude a06b0b0808 feat(companions): one home where companions talk, together and with the fleet (#1474)
/companions/talk is the messaging-app home for every companion: one list of
bots and group chats, newest first, with face, "Name · job", last line and
when; "+" offers New companion (name, shape, colour — the job is defined in
chat) and New group chat (two to six members, @-mentions, bot-to-bot
handoff, six bot turns a round, every line says who said it). The fleet's
own bots (Diplodoctor, Causius) sit in the same list and the same rooms over
one /api/ask contract, their identity from the fleet map; a 1:1 chat with
them stays in the browser. Members can be added and removed from the
details sheet. Companions is in the sidebar's More section.

Three owner-only tables (companion_rooms, _members, _messages) under RLS;
room services for mentions, planning, prompts, the fleet contract and
rounds; faces as a static SVG route. ADR-0013 records the decisions and
what is deferred (connectors = MCP + skills, routines, voice). The Grok Bot
screenshots that shaped this live in docs/research/grok-bot/ with an index.


Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 09:16:12 +01:00
Cato 20d75f1b9a feat(auth): one password rule from @bitbaum/accountkit (non-empty, up to 128) (#1461)
* feat(auth): one password rule from accountkit (non-empty, up to 128); remove complexity rules, common-password list and strength meter

* fix(auth): reset-password form and settings use the one rule; drop stale 8-char docs example

* docs(utils): password example follows the one rule
2026-10-28 04:03:10 +01:00
CatoandClaude Sonnet 5.5 86bd63fb8c feat(cat): adopt chatkit 0.19 and delete the ChatApp workarounds (#1448)
* feat(cat): the Cat chat is chatkit's ChatApp

The Cat chat now renders @bitbaum/chatkit 0.18's ChatApp: its header, chat
list (drawer on a phone, rail from 64rem) with search and Today/Yesterday/
Earlier, rename and delete, New chat, Temporary chat, reopening the open chat
after a reload, Camera · Photos · Files with thumbnails, the queue, Stop and
Retry. The Cat keeps only its transport and its words.

- useCatTransport: the Cat's stream (and the local-model loop) as ChatApp's
  transport; tool calls stream as steps; a temporary chat runs in an unlisted
  ephemeral row deleted when it is left.
- catConversationStore: chatkit's ConversationStore over API_ROUTES.CAT;
  the chat route still writes every turn (append is a no-op), nothing is
  kept on the device but the open chat's id.
- API: PATCH /api/cat/conversations/[id] renames; GET is a 404 for a chat
  that is not the person's (it returned the default thread); POST takes a title.
- CatAnswerFooter under each answer: tool chips, destinations, actions,
  action results, drafts, provenance, fallback, upgrade nudge, failure fixes.
- Deleted: ConversationRail, useConversations (incl. its temporary chat),
  useChatHistory, useChatMessages, ChatHeader, MessageBubble,
  MessageAttachments, ErrorDisplay; TalkRoom draws chatkit's ChatMessage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* fix(cat): 44px targets in the chat's composer and header

The model picker, Loki and tool chips sat under 44px beside ChatApp's own
controls; the model's name hides on a phone so the composer's tools stay
one row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* feat(cat): adopt chatkit 0.19 and delete the ChatApp workarounds

- ?q= is ChatApp's deepLinkParam (auto-sent, as before); the Loki sheet's
  askCat sends through the ChatAppHandle. The bridge that set the composer
  value and clicked button.ck-send is gone, with the page's dropQuery.
- "Your things" are rows in chatkit's attach sheet (composer.attachExtras);
  the second button beside the paperclip is gone. Staged things show on the
  sent message (chipsFor / send chips), and read back from the server as the
  same chips (refChip).
- Temporary chat rows are keyed by turn.chatId and deleted from
  onTemporaryEnd; the empty-state mount hook, the onConversationChange
  cleanup and the transport's own pagehide listener are gone.
- Failures throw ChatTurnError: the bubble shows the server's words and
  TurnFailure reads failure.kind; the transport's latest-failure state is gone.
- Create links and the upgrade nudge show only under the latest answer
  (renderFooter isLatest).
- "Check Cat's status" is a 44px target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* chore(deps): chatkit 0.20.0, the artifact the canaries serve

The rollout gate releases a consumer only on the exact artifact the canaries (kivvi, causius) have live: 0.20.0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* feat(cat): PDF reading through ChatApp — chatkit 0.21's attach.readFile

Moving the Cat onto ChatApp dropped the PDF reading main's #1449 added to the
old composer (chatkit's attach refused every PDF). chatkit 0.21.0 adds
attach.readFile; the Cat's reader (readCatFile) calls the same attachPdf as
before: same size limit, same sentences, same pictures-per-message (5, shared
with staged photos), same text-or-sheets result. The live PDF spec now reads
chatkit's staged strip.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* ci(cat): browser-smoke.yml — the real-browser check the rollout gate asks of a chat consumer

The fleet's shared-package gate holds a chatkit consumer PR until
browser-smoke.yml has passed on its commit; OrangeCat had no such workflow on
main (only on the unmerged PayKit branch), so every chatkit PR here waited
forever. This one builds the standalone app, signs in as the E2E account and
opens the Cat at 390 and 1280 (composer, Send, Files input, no sideways
scroll), then runs the live PDF-attach spec against it. No model call.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* test(cat): the smoke spec says what the page showed when the composer is missing

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-28 00:28:52 +01:00
CatoandClaude Sonnet 5.5 398463e70a feat(cat): the Cat chat is chatkit's ChatApp (#1447)
* feat(cat): the Cat chat is chatkit's ChatApp

The Cat chat now renders @bitbaum/chatkit 0.18's ChatApp: its header, chat
list (drawer on a phone, rail from 64rem) with search and Today/Yesterday/
Earlier, rename and delete, New chat, Temporary chat, reopening the open chat
after a reload, Camera · Photos · Files with thumbnails, the queue, Stop and
Retry. The Cat keeps only its transport and its words.

- useCatTransport: the Cat's stream (and the local-model loop) as ChatApp's
  transport; tool calls stream as steps; a temporary chat runs in an unlisted
  ephemeral row deleted when it is left.
- catConversationStore: chatkit's ConversationStore over API_ROUTES.CAT;
  the chat route still writes every turn (append is a no-op), nothing is
  kept on the device but the open chat's id.
- API: PATCH /api/cat/conversations/[id] renames; GET is a 404 for a chat
  that is not the person's (it returned the default thread); POST takes a title.
- CatAnswerFooter under each answer: tool chips, destinations, actions,
  action results, drafts, provenance, fallback, upgrade nudge, failure fixes.
- Deleted: ConversationRail, useConversations (incl. its temporary chat),
  useChatHistory, useChatMessages, ChatHeader, MessageBubble,
  MessageAttachments, ErrorDisplay; TalkRoom draws chatkit's ChatMessage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* fix(cat): 44px targets in the chat's composer and header

The model picker, Loki and tool chips sat under 44px beside ChatApp's own
controls; the model's name hides on a phone so the composer's tools stay
one row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* feat(cat): PDF reading through ChatApp — chatkit 0.21's attach.readFile

Moving the Cat onto ChatApp dropped the PDF reading main's #1449 added to the
old composer (chatkit's attach refused every PDF). chatkit 0.21.0 adds
attach.readFile; the Cat's reader (readCatFile) calls the same attachPdf as
before: same size limit, same sentences, same pictures-per-message (5, shared
with staged photos), same text-or-sheets result. The live PDF spec now reads
chatkit's staged strip.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* ci(cat): browser-smoke.yml — the real-browser check the rollout gate asks of a chat consumer

The fleet's shared-package gate holds a chatkit consumer PR until
browser-smoke.yml has passed on its commit; OrangeCat had no such workflow on
main (only on the unmerged PayKit branch), so every chatkit PR here waited
forever. This one builds the standalone app, signs in as the E2E account and
opens the Cat at 390 and 1280 (composer, Send, Files input, no sideways
scroll), then runs the live PDF-attach spec against it. No model call.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* test(cat): the smoke spec says what the page showed when the composer is missing

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-27 23:51:36 +01:00
CatoandClaude 35ad879bb7 test(cat): Files asks for documents or nothing — never media (#1453)
chatkit 0.20.1 gives the Files input a document-only accept so Brave on
Android opens the file browser instead of a camera chooser. These two tests
pinned the old empty accept; they now pin the rule itself (no picture,
sound or video family on Files, one family per input), which both versions
satisfy, so the dependency bump can land on its own.


Claude-Session: https://claude.ai/code/session_019MDtmt7KKvAA6LzcgFqXA3

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-27 22:01:03 +01:00
CatoandClaude 489b5b2557 feat(cat): the Cat reads PDFs — as text, or as pictures of their pages (#1449)
A 17-slide investor deck could not be shared with the Cat: the composer
refused every PDF ("PDFs are not supported yet"). It now reads them in the
browser with @bitbaum/chatkit/pdf (0.20.0), the fleet's one PDF reader:

- a PDF with a text layer is attached as text, page markers kept;
- one without (slides exported as pictures, a scan — the deck in question,
  whose pictures are JPEG 2000) is attached as pictures of its pages, four to
  a sheet, through the photo path to a model that can see.

The person is told when not every page fit ("Cat sees pages 1–8 of 17"),
and a locked or oversized PDF gets its own sentence. Pictures per message
go from 3 to 5, so a 20-page deck goes whole (five is also what the free
chain's vision links accept). pdf.js's worker and decoders are copied to
public/pdfjs by `pnpm run pdf-assets`, the first step of dev and build;
served from our own origin, they need nothing from a CDN.


Claude-Session: https://claude.ai/code/session_019MDtmt7KKvAA6LzcgFqXA3

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-27 20:28:19 +01:00
CatoandClaude 45b68d6da8 feat(requests): a request stays in the currency it was asked in (#1427)
"Lena asks Marco for CHF 20" was frozen as a BTC decimal when asked, so the
person asked could open the link days later and be shown a different number of
francs. The request now keeps ask_amount / ask_currency beside amount_btc.

- The server prices the ask itself (never the browser's BTC) and refuses to
  send it when there is no rate, rather than guess a figure.
- The pay page opens on what the ask comes to in Bitcoin today, not on the
  number frozen into the link.
- Settlement counts the request paid when the payment covers the ask at
  today's rate, with 2% of room for the rate moving between invoice and
  payment. Requests in BTC keep the tighter tolerance.
- Lists, the notification and the receipt word the amount as it was asked.
- AmountField reports what was typed, in the currency it was typed in.


Claude-Session: https://claude.ai/code/session_01Te8nLte2wV2S7ttNgwSt3n

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-24 07:47:45 +02:00