Commit Graph
3384 Commits
Author SHA1 Message Date
dependabot[bot] a0936524dd ci: bump github/codeql-action from 4.38.2 to 4.39.3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.38.2 to 4.39.3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v4.38.2...v4.39.3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.39.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-09 18:24:57 +00:00
Catoandfleet-reconciler dd2146bb31 chore(deps): raise shared package floors to published versions (#1575)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-07 14:48:51 +01:00
Catoandbitbaum-fleet d7eab3fe4e docs(agents): the org rules block, generated from bitbaum/fleet (#1572)
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
2026-11-06 10:30:58 +01:00
Catoandfleet-reconciler fa51fb2e45 chore(deps): raise shared package floors to published versions (#1571)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-06 09:51:19 +01:00
CatoandClaude Opus 5.5 c10ee6b98f fix(wallets): a wallet link is deleted with its entity, whatever deletes it (#1570)
entity_wallets is polymorphic, so only the CRUD handler's DELETE cleaned it
and every other path leaked. The 2026-11-06 data-invariant gate found three
links (a project, two AI assistants) whose entities were deleted with no audit
row, i.e. outside the app. An AFTER DELETE trigger on each entity table
removes the links in the database, and the migration clears the existing
orphans so the gate is green on apply.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 06:34:42 +01:00
CatoandClaude Fable 5.1 50b96a1b92 ci(broken-words): say why sign-in got no answer, and try once more (#1569)
* ci(broken-words): say why sign-in got no answer, and try once more

Main went red twice on 8a3e050 (#1567) in build-and-smoke → check:broken-words
with `authPostStatuses: []`: the click sent the token request to the
self-hosted auth and no response ever came back. The diagnostic recorded
only responses, so it could not say whether the form had submitted at all.
The same sign-in from outside the runner answered 200 at the time.

- Record auth requests that FAILED (Playwright `requestfailed`, error text
  only) beside the ones that answered.
- Include the page's own alert text (first 160 characters; never input).
- When no auth request got any answer, wait 20 s and try once more before
  the gate gives up — the usual cause is the runner or the shared account
  being throttled for a moment.

Checks run directly (eslint 0 errors, 2 pre-existing warnings; prettier;
node --check): `pnpm exec` cannot resolve the private writingkit tarball
from this sandbox, so the hooks that wrap it were bypassed; CI is the gate.

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

* ci(broken-words): also name preflights that failed and auth requests still pending

The first diagnostic (1d0a135) ran on CI and reported nothing at all: no
response, no failed POST, no alert, twice. A cross-origin POST is preceded
by an OPTIONS preflight, and a connection the box silently drops answers
neither — so record every auth-path request that failed, whatever its
method, every preflight rejected with 4xx/5xx, and every auth request still
unanswered when the gate gives up.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-06 02:21:50 +01:00
CatoandClaude 8a3e050007 feat(articles): comments under every public article; share row wraps on phones (#1567)
- An article is a timeline event, so its replies are ordinary posts. The
  article page now ends with the discussion: the same cards, composer and
  reply threads as the timeline (ArticleDiscussion; usePostThread moved to
  src/hooks so two pages share it). Signed-out readers see the replies and a
  sign-in link.
- The share row (OrangeCat · Post · LinkedIn · Share) overflowed the screen
  on a phone; it wraps now.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-06 01:02:51 +01:00
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 0e410b3097 feat(writing): extract revision-safe content operation core (#1563)
* feat(writing): extract revision-safe content operation core

* docs(writingkit): make verification instructions portable
2026-11-05 10:41:19 +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 59d6b2a49f refactor(ux): groups and events empty states use the shared EmptyState with an explanation (#1553)
Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-11-04 13:50:48 +01:00
Catoandcatomean 0b115fd7e8 fix(sidebar): avatar keeps its square size inside the profile link (#1552)
Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-11-04 13:37:22 +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 830fdf2d5a docs: site audit matrix + 2026-11-04 handoff (#1550)
* docs: living site audit (works/broken matrix)

* docs: handoff for 2026-11-04 site-fix sweep

* docs: handoff status after #1544/#1545/#1547 verified live

---------

Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-11-04 13:16:17 +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 0476edee6d fix(ux): project Contact no longer lands on /messages?id=undefined; shared Cat composer on My things; Collaborate empty state (#1546)
* fix(ux): project Contact opens the conversation, My things uses the shared Cat composer, Collaborate empty state has an action

* refactor: collaborate empty state in its own component (size limit)

---------

Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-11-04 12:46:30 +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 c08d33ed7b fix(timeline): composer shows on an empty timeline (#1547)
Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-11-04 12:08:53 +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
Catoandfleet-reconciler df69c22ec2 chore(deps): raise shared package floors to published versions (#1541)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-04 08:16:19 +01:00
Cato c3ffe478ea fix(cat): make permissions atomic and recovery reflect availability (#1542) 2026-11-03 11:21:13 +01:00
Cato bb88fde042 blog: BiasLens one-loop concept (#1540) 2026-11-03 09:16:43 +01:00
Cato 8172121e7d Enable Cat to manage project investor rooms (#1538) 2026-11-03 08:54:30 +01:00
Catoandfleet-reconciler ef3808cdca chore(deps): raise shared package floors to published versions (#1539)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-03 08:42:52 +01:00
Catoandfleet-reconciler e80bfd3858 chore(deps): raise shared package floors to published versions (#1537)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-03 01:53:03 +01:00
CatoandClaude Opus 5.5 d5324bfb98 fix(fonts): load Inter, Space Grotesk and IBM Plex Mono from @bitbaum/design-tokens (#1536)
* fix(fonts): load Inter, Space Grotesk and IBM Plex Mono from @bitbaum/design-tokens

src/fonts held our own copy of the faces. The same files, byte for byte
(Google's hinted latin subsets), now ship in @bitbaum/design-tokens 1.4.0
for every fleet app, so the copy goes and src/app/fonts.ts is the
next/font/local module the package's design-tokens-next-fonts command
writes (hinting=on, latin, as before). The exports keep their names
(inter, spaceGrotesk, ibmPlexMono), so the family names, --font-inter,
--font-heading and --font-mono, weights and preloads are unchanged.

The command has no `fallback` key, so the system stack that --font-inter
carried after the face moves into Tailwind's font-sans, the one place
that used --font-inter alone; font-heading, font-mono and longform.css
already list their own.

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

* chore(deps): lock design-tokens 1.4.0 as the canary deployed it

The rollout gate compares locked artifacts. biaslens (the canary), hirnli,
loki and s-ink lock 1.4.0 as its verified commit,
github:bitbaum/design-tokens#8b82acc, the form the fleet's floor-raising
PRs write, so a registry `^1.4.0` here never matched the canary's
deployed artifact. Same files: the five faces this uses are identical
(SHA-256). With the git ref the release-age exclusion is no longer needed.

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

* chore(deps): lock design-tokens 1.4.0 from the registry, as the canary now does

biaslens#176 moved the canary from the verified commit to the published
^1.4.0, so the rollout gate now compares against the registry artifact.
Same five files (SHA-256). 1.4.0 is inside pnpm's release-age window, so
it gets the exclusion entry other fleet apps use.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-03 01:00:51 +01:00
Catoandfleet-reconciler 2fd59ba75b chore(deps): raise shared package floors to published versions (#1535)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-03 00:00:30 +01:00
Catoandfleet-reconciler 74407e8606 chore(deps): raise shared package floors to published versions (#1534)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-02 22:34:14 +01:00
Catoandfleet-reconciler 84ee58abe4 chore(deps): raise shared package floors to published versions (#1532)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-02 21:10:14 +01:00
Catoandfleet-reconciler a5e485d6f3 chore(deps): raise shared package floors to published versions (#1531)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-02 11:42:03 +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
Catoandfleet-reconciler f70514d4ee chore(deps): raise shared package floors to published versions (#1529)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-02 10:42:19 +01:00
Catoandfleet-reconciler dfc1c1a49e chore(deps): raise shared package floors to published versions (#1528)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-02 09:34:05 +01:00
CatoandClaude 0c293c7951 docs(changelog): the jump button, full-screen bot chats, the fleet line, Diplodoctor asking first (#1527)
What shipped on 2026-11-01 in #1515, #1518 and #1522 (chatkit 0.22.1),
and in Diplodoctor's answers here (#69-#73 there), from the reader's side.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 09:16:14 +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 b33230a694 chore(deps): chatkit 0.22.1 — the jump button goes once you are back at the bottom (#1522)
0.22.1 fixes the Diplodoctor chat on Android: scrolling back down by hand
left the jump-to-latest button over the reply chips, with nowhere to jump
(a finger's lift-off wobble paused following). It also tells every model
that chips under a question answer it. The floor-raising sweep at 20:31
left this app on 0.22.0.

Checked on the talk page at 390px with real touch: read up, tap the
button, it lands at the latest message; scroll back down by hand with a
2px lift-off wobble, the button is gone.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 23:32:17 +01:00
Catoandfleet-reconciler c478f70c04 chore(deps): raise shared package floors to published versions (#1521)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 23:21:47 +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
Catoandfleet-reconciler 67762f34f3 chore(deps): raise shared package floors to published versions (#1519)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 20:31:02 +01:00
Catoandfleet-reconciler a3f088eabf chore(deps): raise shared package floors to published versions (#1511)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 19:26:21 +01:00