280 Commits
Author SHA1 Message Date
a6878ff0cc fix(oauth): a client's origins are accepted from the next deploy; Heidi on fragheidi.ch (#1871)
* fix(oauth): a client's origins are accepted from the next deploy; Heidi on fragheidi.ch

Redirect URIs match exactly, and an origin added to client-specs.ts reached an
existing row only through a hand-written migration per app or a script run by
hand on the box. Heidi went live on fragheidi.ch with neither, so every
OrangeCat sign-in from there was refused.

The deploy-time refresh now also adds, for each origin in a spec, the shared
callback path and every path the row already accepts on another of the spec's
origins. It adds and never removes. Heidi lists fragheidi.ch.

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

* ci: re-run forge/verify (unrelated timing flake in planner/calendar-files.test.ts: ticks 5 vs >5 under load)

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Developer Heidi <heidi@orangecat.ch>
2026-12-03 18:44:58 +01:00
b2da8561b7 refactor(brand): marks come from @bitbaum/design-tokens/marks (#1584)
* refactor(brand): marks come from @bitbaum/design-tokens/marks

Every product's mark now lives in the design-tokens package (1.6.0), so
a logo is replaced once and OrangeCat, Solon and Loki follow. The local
copies (loki, orangecat, solon) and the source writer are gone;
src/config/marks, mark-svg and svg-to-mark re-export the package, so no
call site changed. The cat generator stays here and the brand test holds
the package's cat equal to it. `brand:import` now prints where to import
a mark instead of writing a copy that would drift.

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

* docs(brand): name the package's import script without claiming it here

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Cato <cato@orangecat.ch>
2026-11-28 22:56:37 +01:00
CatoandClaude 3857c7ae79 docs(agents): one AGENTS.md — fold verified rules in, delete the rest (#1859)
AGENTS.md is now the only repo-specific instruction file. CLAUDE.md and
.claude/CLAUDE.md are one-line pointers. Deleted: .claude/rules/* (6
files), .cursor/rules/* (7), docs/api/AGENTS.md (its machine-buyer
walkthrough moved into src/app/api/v1/README.md), .claude/README.md
(described the deleted layout) and the archived
docs/archive/development/guides/AGENTS.md.

Every rule kept was checked against the code. The deploy and verify
sections no longer describe GitHub Actions (off since 2026-11-15):
forge/verify merges, forge-ops on Gitea deploys. Ownership and money
lines corrected: owner column from getUserIdField, entity prices in
their own currency.

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 20:56:48 +01:00
29285fafe5 fix(cat): four fixes from the 15 Nov live retest, in one PR (#1858)
* feat(cat): add calendar_move to move or change an own calendar entry

The Cat could add and remove entries in the person's own calendar but not
move one, so live it told an owner it could not move calendar entries.

- calendar_move changes the start, and optionally the length, end, title
  or place, of one own entry (the calendar source: made by the person,
  the Cat or a bot). A new start with no end or length keeps the length.
- Times go through parseWhen in the person's zone, as calendar_add does.
- The write is filtered to the user's own rows on top of RLS, as
  calendar_remove is. An entry from a linked calendar, Google, a booking,
  an event or the to-do list is refused with a sentence saying where it
  is changed.
- Registered beside calendar_remove: cat-actions, summaries, action
  descriptions, companion labels and hands, planner hands and handlers,
  plus the "move" verb in the tool labels. Same permission level.

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

* fix(chat): Listen reads answers in a server voice, browser voice as fallback

Listen under a Cat answer (and under every bot answer) made no network
call: chatkit's useSpeech was given no speaker, so it used only the
browser's speechSynthesis. Reproduced live on /companions/talk?with=cat:
the press called speechSynthesis.speak("391") with 0 voices available and
the utterance ended with error "synthesis-failed"; the button flipped back
with no message. With a stubbed working engine the same press plays for
the full length, so the app wiring was fine: the voice was missing.

- POST /api/voice/speak: one piece of text -> audio/wav through Groq's
  speech endpoint on the platform GROQ_API_KEY (counted against the
  daily Groq cap); 503 / 502 carry the reason (no key, terms, bad key,
  limit, vendor down) and the vendor detail goes to the server log.
- createListenSpeaker: chatkit Speaker that cuts the answer into ~200
  character pieces, fetches one ahead, plays through an AudioContext made
  inside the tap, and hands the rest to the browser voice on any refusal
  (backing off two minutes). German text stays on the browser voice.
- Passed to the Cat (ChatApp thread.speaker) and ChatFrame (companions,
  fleet bots, rooms).
- rateLimitListen: 120 pieces / 10 min per person.

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

* fix(cat): page reads are cut to fit the free Groq link instead of losing it

Live, 2026-11-15: "What happened in the news today?" found six sources,
the page reads pushed the prompt past the free Groq per-minute cap, the
pre-flight skipped Groq, the free fallbacks were rate-limited, and the
person got "Cat couldn't reach an AI model". On the platform Groq link
the longest tool results are now shortened until the prompt fits, and
the pre-flight checks the shortened prompt.

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

* fix(ai): an OpenRouter refusal inside the stream is an error with its code

Production diagnostics after the live retest (2026-11-15) showed six
OpenRouter failures with no status. OpenRouter can refuse after the 200,
as an error object inside the stream; that chunk was skipped as
malformed, so a rate limit read as an empty answer. It now throws
OpenRouterAPIError with its code (429 is a rate limit), and the
diagnostics report the provider's error type next to its class.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Cato <cato@orangecat.ch>
2026-11-26 17:40:44 +01:00
eb5c14ce1a feat(cat): the Cat keeps a routine (#1841)
"Every morning at 8, send me the weather in Zurich" made the Cat propose a
project (live, 2026-11-15): it had no recurring action. Now:

- cat_routines (new migration, RLS: a routine is its owner's): instruction,
  time of day, zone, days of the week, enabled, next/last run.
- Cat actions routine_add (confirmed), routine_list, routine_remove, with
  summaries, card descriptions, chip labels and handlers. routine_add says
  NOT create_project and create_project points back at it.
- A routine ask is recognised in code before the model (turn/in-code.ts):
  the model is told to propose routine_add, and the turn is not mailed,
  written to the calendar or answered now.
- The runner runs on the routines timer (every 15 minutes), once a day per
  routine in the owner's zone, never hours late. The answer is worked out in
  code first (weather, bitcoin price, sum, calendar, list); a model only on
  the owner's own key. Delivered as the Cat in Messages, and Telegram via Loki.
- Weather from Open-Meteo (keyless, timeout, CC BY 4.0 attribution), as a
  pre-read used by chat and routines.


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

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Cato <cato@orangecat.ch>
2026-11-21 18:21:28 +01:00
CatoandClaude Opus 5.5 b4fe2fc932 fix(groups): an organization can be deleted, and edits save (#1853)
* fix(groups): an organization can be deleted, and edits save

The group route called updateGroup/deleteGroup without the request's
signed-in client, so the mutation used the browser client, which has no
session on the server: every edit and delete answered 500
"Authentication required". The only Delete button lived on a settings
page nothing linked to. The organization page now offers the same
DeleteEntityButton every other entity has, and the orphaned settings page
is gone.

Also: the place section said "optional" without saying a place is all
three levels, so a country and region without a locality was refused
after submit; and an article set to "Only me" was offered under a
"Publish" button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

* chore(sizes): drop the exception for the deleted group settings page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

* fix(groups): join the place-bound kinds without Intl

check:app-locale (on main since this branch was cut) forbids formatting
through Intl directly; the list is fixed English copy, so join it plainly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

---------

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:50:27 +01:00
Cato d57afbeec1 feat(planner): a reminder tells you when it is due (in-app notification, no model call) (#1845)
The Cat's set_reminder stored a task with is_reminder and a due date, and
nothing read it at its time. A job every 5 minutes (api/cron/task-reminders,
systemd orangecat-cron@task-reminders.timer) now sends the owner an in-app
notification once (tasks.reminded_at), linking to the task. No model call.
2026-11-19 20:29:17 +01:00
CatoandClaude Opus 5.5 3a952e3a3e feat(cat,apps): the Cat in Messages acts; Messages and Calendar open inside OrangeCat (#1842)
The Cat in Messages had no tools. "Reschedule to 7pm" was answered
"Done. Visit Anja is now at 7:00 PM Monday." and nothing moved. Asked
why, it said it had no live path into Loki or the calendar. Both were
true only of this path: the Cat chat has had these hands for months.

- cat-acts.ts: in a person's own conversation with the Cat, the newest
  message runs through a tool loop over the bots' hands
  (COMPANION_HANDS: calendar, to-do, Loki, mail and GitHub reads, own
  entities). Each call goes through CatActionExecutor as the sender,
  with permissions, confirmations and the action log as in the Cat
  chat. The reply is written from what happened. In rooms with other
  people it never acts, because a calendar read would be read out to
  everyone there.
- A reply that opens with "Done"/"Moved"/... when no tool completed is
  replaced. This applies to the tool-less fallback too.
- calendar_move: a new hand that moves an own entry and keeps its
  length (services/planner/calendar-move.ts). Before, there was add and
  remove only. Bots get it too.
- Separate apps open in OrangeCat: /messages, /dashboard/calendar,
  /dashboard/tasks and /studio wear OrangeCat's chrome unless the
  window was launched as the installed app. The manifest start_url
  carries ?app=<id>, which is remembered per window in sessionStorage
  (useLaunchedOwnApp).
- Prompt budget 8,110 -> 8,230 for calendar_move, recorded in the test.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 16:47:20 +01:00
CatoandClaude Opus 5.5 7f1dc4198d AI article writing: long text fitted, not refused; throw everything in and Cat writes it (#1838)
* fix(ai): fit long briefs instead of refusing them; actionable input errors

A pasted chat in Ask Cat's "What would you like to write about?" box hit a
300-character zod cap and answered "Invalid request". AI routes now fit free
text to the model budget (ai-kit fitPromptText) and explain real refusals
by field, limit and fix (ai-kit explainInputIssues).

Needs @bitbaum/ai-kit with the input module (bitbaum/ai-kit#119).

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

* feat(articles): AI-first writing — throw everything in, Cat writes it

An empty article now opens with "Write with Cat": thoughts, speech, a
pasted chat, links, notes and pictures go in; one button writes a cited,
illustrated article that opens in the editor for changes.

- POST /api/ai/writing/compose: thin route over services/cat/writing-compose,
  which binds writingkit's composeArticle to OrangeCat's adapters — ai-kit
  readPage (SSRF-checked), the platform serving chain, vision through the
  same chain (describePlatformImage), Openverse for illustrations, and the
  writer's recent posts for voice.
- ArticlePile: writingkit's PileComposer with OrangeCat's words, mic and
  picture storage.

Needs @bitbaum/ai-kit 1.31 and @bitbaum/writingkit 0.4.

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

* chore(deps): @bitbaum/ai-kit ^1.31.0 (fitPromptText, explainInputIssues)

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

* fix(types): AI input and compose pass strict exactOptionalPropertyTypes

Absent optional fields are left out instead of set to undefined
(toPileItems, labels, credit, voice, fetch signal).

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

* feat(articles): an empty article leads with Write with Cat

The article-writing browser test guarded "editor visible near the top" —
the title-first assumption the owner retired on 15 Nov 2026 (AI-first:
throw everything in, Cat writes it). It now guards the new rule: Write with
Cat near the top on a phone, the editor still on the page, and the Ask Cat
draft flow, overflow and 44px checks unchanged. The pile's one action is
ink, not the accent (One orange).

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-19 16:18:51 +01:00
CatoandClaude cb398d64ed fix(cat): mail and calendar reads get 12s each; failures are named (#1827)
The owner asked the Cat for their mail and next week and got "couldn't
generate a response", then a calendar read that "stopped before it
finished". The reads before the model had no time limit and swallowed
their errors, and the diagnostics counted 19 of 23 failures as
"unclassified". Each read now gets 12s and logs a failure by hand and
kind; the diagnostics report the failed step, provider, error kind and
key owner, from fixed labels only.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-15 20:13:30 +01:00
CatoandClaude bcd4c9bd43 feat(apps): Calendar with To-do, and Messages, become their own apps like the Studio (#1826)
OrangeCat's separate apps now share one system (config/own-apps.ts):
each owns its paths (ownAppIdFor in routes.ts), and AppShell gives
those pages the app's own bar (OwnAppBar) in place of the site
header, sidebar, footer and tab bar.

- Studio: /studio (moved onto the shared bar and registry).
- Calendar: /dashboard/calendar and /dashboard/tasks, with Calendar
  and To-do as tabs in the bar.
- Messages: /messages.

The bar is as tall as the site header and keeps its app-header class,
so the messages frame and the phone's immersive chat work unchanged.
With no tab bar, .oc-own-app points --mobile-nav-clearance at the home
indicator. Each app installs as itself: its own manifest and icon (the
cat head with the app's face: spark, calendar page, speech bubble),
written by scripts/generate-own-app-assets.mjs and checked by
own-apps.test.ts.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-15 18:54:20 +01:00
CatoandClaude Opus 5.5 6216d13f21 feat(studio): the Studio becomes its own app, keeps every work, saves to My things (#1802)
* feat(studio): the Studio becomes its own app, and keeps every work

The Studio lost work at every step: a revision or another form replaced
the last draft, a reload lost everything, and picking another form
disabled Revise with "The brief changed". Download gave a JSON file.

- Its own app: /studio drops the site header, sidebar, footer and tab
  bar (routeChrome.ownApp) and has its own bar, its own manifest
  (scope /studio) and icon, so it installs on a home screen as Studio.
- Every work is kept on the device (localStorage), newest first, with
  versions; opening one puts its brief back.
- Revise always works on the shown work, as a new version.
- "Try the same feeling as" makes another form in one tap.
- Copy, and Download as a readable .md file.
- On a phone the new work scrolls into view.

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

* feat(studio): a cat-family icon, and Save to My things

- The Studio's mark is OrangeCat's cat head with a spark for a face, in
  light ink (src/config/studio-mark.ts), drawn into the icons with the
  same tile as OrangeCat's own (iconSvg). The top bar wears it too.
- Save to My things: a work becomes a document (tagged studio + form),
  on every device and readable by the Cat. Signed out, it asks to sign
  in and returns to the Studio; the saved link survives a reload.
- Dates in Your works use the app locale (check:app-locale).

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-15 14:28:37 +01:00
Cato ab03ca70c3 fix(deploy): cap the app's V8 heap below its cgroup memory limit (#1784)
The app froze six times on 14-15 Nov with its main thread stuck in
__mem_cgroup_handle_over_high: memory sat at 790-850 MiB against the
unit's 768M memory.high, so the kernel throttled it instead of killing
it, and every stop needed SIGKILL. V8 sizes its heap from the machine's
RAM, not the cgroup, so it never ran a full collection before crossing
the throttle point. Run node with --max-old-space-size=512, self-healed
into the box launch.sh on each deploy like the header-size flag.
2026-11-15 07:33:59 +01:00
CatoandClaude ad012dfaf5 feat(home): the home page sells the outcome; a picture for every kind; one byline, one Cat face, one not-found (#1751)
* fix(community): a QA run's posts and listings stay off the public shelves

Live after #1736, /community opened with "QA test post from A" by
"QA Grok A", and Discover's first product, "Old Road Bike", was that QA
account's too, its share card reading "by QA Grok A".

- The community feed drops posts whose author's display name is a fixture
  name (NOT_A_FIXTURE_AUTHOR, the People directory's rule on the view's
  actor_data); checked read-only against production.
- 20261113201500 marks the QA account's remaining products, services,
  projects and causes is_test (matched by id and its QA name; nothing
  deleted; rollback in the file).

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

* fix(timeline): sign every post author through one byline helper

A minted user_<hex> handle was still printed as name and @handle on
/community, in quotes, reposts, the reply placeholder and the post's
share text. postAuthor() (src/utils/byline.ts) is now the one rule:
chosen name, else chosen handle, else the neutral phrase; no @line for
a minted handle; the avatar plate shows a person glyph, not its letter.

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

* fix(companions): no bot face is orange; check:one-orange covers the pigments

orange and amber are replaced in place by two shared map-scale token
values (indigo, steel), so every other name keeps the face it had. A
stored face URL with hue=orange/amber resolves to its replacement.

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

* feat(cat): one face for the Cat, used everywhere it is drawn

CatAvatar draws the brand icon tile; CAT_AVATAR_PATH is the same drawing
for slots that only take a URL. Feed, quotes, the answering row, the
mention menu, the profile, follow lists, Messages (list, picker, thread)
and the profile share card all use it. The answering row's AI chip is
neutral like the post header's, not orange.

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

* feat(not-found): one not-found page for every kind

components/ui/NotFound.tsx is the only 404 design: 'This {kind} isn't
here', one sentence, a search that goes to Discover, the kind's own
shelf and Home. Every public detail route has a not-found.tsx naming
its kind (products, services, events and others fell through to 'Page
Not Found'), wallets no longer have their own layout, and tab titles
come from notFoundTitle() in sentence case with registry names.

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

* refactor(cat): name the Cat's picture a src, not a path

audit:routes reads a *_PATH string constant as a page link and failed on
the static icon. It is an image source.

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

* feat(legal): read the operator from one unset constant

LEGAL_OPERATOR (src/config/legal.ts) is null: the legal entity is not
known and is not guessed. While null, /terms and /privacy say what they
said before and stay marked Draft. Once filled in, the opening sentence
and Contact section of both carry the legal name, address and contact.

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

* style(projects): merge a duplicate import to stay inside the size limit

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

* test(ci): cover the bot-face check in the one-orange gate fixtures

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

* feat(cat): one real answer for a visitor, and a pay-link name check

POST /api/cat/first-answer answers a visitor's own sentence before they
have an account, on the visitor budget (general per-IP, then 3 an hour of
its own), for the page's own origin only. Nothing is stored.
GET /api/pay/name says whether a pay-link name is free to claim.
The door helpers carry a typed sentence through sign-up to the Cat.

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

* fix(faq): say about Cat Credits what the pricing card says

The FAQ offered credits as open while /pricing badged them "Not open
yet". Both sentences are now built in cat-plans.ts from
CAT_CREDITS_ON_SALE. The free plan no longer calls Gemini open-source.

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

* feat(home): the home page sells the outcome, in one promise

The hero is the promise and one action: claim orangecat.ch/pay/<name>,
with the page that name makes shown as it is typed. Under it, Discover's
own "Just listed" rows instead of the studio grid and the small counts,
then the Cat's door, which answers a visitor's sentence once and invites
them to sign up with the sentence kept (the account screen shows it).

The promise is written once in config/brand.ts and read by the hero, the
titles and descriptions, the share card, the sign-in panel, About and the
footer. /pricing opens on "0% to sell"; the Cat plans follow.
The start action is named for what you get: "Get your page".

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

* feat(entities): one cover picture for every kind, in every create and edit form

ENTITY_COVER (src/config/entity-cover.ts) names each kind's cover column
once. base-config-factory puts the same picture field under the description
of every form (and into the wizard step that shows the description), the
schemas accept it, creates write it through coverColumn and updates through
coverFieldMapping, which also lets a removed picture clear the column.

Five kinds had no column to keep a picture in (service, cause, asset, loan,
research): one migration adds a nullable cover_image_url to each and makes
public_documents() read every kind's cover first, so Discover and search
show it. Rollback is in the migration.

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

* feat(discover): the cover is the hero, the card and the share picture; no picture shows the kind's icon

The public page's hero, the Discover and search card, the dashboard card, a
profile's shelves and the share card all read the kind's cover through
entityCoverImages. Without a picture a listing shows its kind's icon on a
token surface (EntityCoverPlaceholder) on every list, replacing three
different letter plates; a bot wears the face its name picks and a person
keeps a round initial.

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

* docs(changelog): home sells the outcome, a picture for every kind, one byline

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-14 11:38:41 +01:00
CatoandClaude Opus 5.5 a772acefdf fix(ux): close the UX audit and the UI/UX handoff — Studio drafts in every form, pay, sharing, groups, events (#1722)
* feat(ux): chatkit 0.31.3 and accountkit 0.30.0 — starters in one column, the Appearance row only on phones

- chatkit 0.31.3: the Cat's empty-state starters are one column at every
  width, not a wrapping row of pills (auth-firstrun#5).
- accountkit 0.30.0: the account menu's Appearance row is `shown: 'narrow'`,
  hidden by the package stylesheet from 768px up where the header carries
  its own theme toggle. The useMediaQuery width read, wrong on the server
  render and flashing on load, is gone.

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

* docs(audit): the package fixes are released — starters, the Appearance row and the feedback tab

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

* docs(audit): close the audit — triage of the eight findings left partly fixed

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

* fix(pay): paying someone on-chain shows their address and the BTC that must arrive, and Copy copies the address

On production, /pay/Penguin (receive-info says on-chain) at 390px, dark and
light, and at 1366px: after choosing CHF 10 the code screen read only
"CHF 9.98 / On-chain Bitcoin · no deadline / Open in wallet / Copy invoice".
No BTC figure and no address anywhere in the text; on a phone the only place
the address exists is the QR, behind a second tap. "Copy invoice" put
`bitcoin:bc1q…?amount=0.00016314&label=Tip+for+Penguin` on the clipboard, which
an exchange's or a bare-address wallet's send field does not take. On-chain
detection needs the full amount to arrive (mempool.ts), so a payer who converts
the CHF headline and rounds down is never seen. (The invoice request was
answered in the browser, so nothing was minted.)

PaymentQRCode, the one code screen behind /pay, the support panel and the
payment dialog, now reads the BIP21 URI with @bitbaum/paykit's settledRail.
When it is on-chain it says "0.00016314 BTC must arrive in full" under the
headline (displayBTC), shows the address in mono under the buttons, and the
button is "Copy address" and copies the bare address. Open in wallet keeps the
whole URI. Lightning is unchanged.

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

* fix(notifications): on a phone the item actions show and the words get the full width

Each notification held Ask the Cat, Mark as read and Delete at opacity 0.
Tailwind keeps group-hover behind @media (hover: hover), so a phone never
showed them, yet each was a live 44px target beside the unread dot, and their
140px squeezed the title and message into a narrow column.

The actions now sit on the time's line under the message, so the words use
the card's full width. They are hidden only for a fine pointer, shown on hover
there and while one has keyboard focus. The filter row was already fixed on
main; the test pins both.

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

* fix(events): an event that is over says so and sells no more tickets

Measured on orangecat.ch on 2026-11-12 (390px, light and dark, signed out
and signed in): the one public event, dated Sunday, September 13, 2026,
still showed "Free entry", a name field and "Get a free ticket", and
nothing on the page said it was over. The ticket box, the sticky "Buy a
ticket" bar and the pay panel decided from status alone, and nothing ever
moves a past event to 'completed'. claim_free_ticket and
claim_guest_ticket checked status alone too, and checkout for a paid
ticket never looked at the date.

- eventHasEnded (src/domain/events/time.ts): over once its end has
  passed (its start when it has none; an all-day event at midnight after
  its last day on the venue's clock), or once marked completed.
- Event page: the ticket box says "This event has ended." and offers no
  free or paid ticket; visitors see an "Ended" badge; no pay panel and no
  sticky "Buy a ticket". A ticket someone holds stays, without "show this
  at the door" or give-it-back. The organizer is told nobody can get a
  ticket instead of being handed the invite link.
- Checkout (initiatePayment, initiateGuestTicketPurchase) refuses an
  ended event before an invoice exists; the payment routes answer "This
  event has ended." instead of a generic failure.
- Migration 20261113163700: public.event_has_ended(event) holds the same
  rule; claim_free_ticket and claim_guest_ticket refuse with P0002. The
  paid issuers are left alone on purpose: they run at settlement, after
  the money has moved. Applied twice to a scratch Postgres 16 after the
  three ticket migrations and exercised as anon, authenticated and
  service_role.

Re-applied on current main; the migration is re-timestamped after the
newest one there.

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

* fix(assets): a rental's minimum and maximum period read "1 day", not "1 Per Day"

On orangecat.ch, the Availability card of a studio rented by the day read
"Minimum Period 1 Per Day" (390px and 1366px, dark and light). The rows
glued the count to the form select's cadence label, so a two-day maximum
would have read "2 Per Days", and the price row read "/ Per Day".

RENTAL_PERIODS now carries the unit each cadence is counted in (hour, day,
week, month) next to its select label. The asset page counts periods in
that unit ("1 day", "2 days", "3 weeks") and prices "/ day". An unknown
cadence still reads "period".

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

* fix(pay): the pay button says what it does; invoices say "Payment to"

Measured on orangecat.ch (2026-11-12, iPhone 13 390px, light and dark):
the button beside "Pay from my wallet" read "Show the code" and the
article Tip dialog's "Show tip QR", while a phone is shown Open in wallet
first and the code behind a second tap; /pay said the link and
your-name@orangecat.ch "are the same door", though the address refuses an
on-chain-only wallet; the article Tip button was 34px tall; every payment
from /pay, the Tip dialog and Receive was minted as "Tip for <name>".

Now:
- "Pay with a Bitcoin wallet" / "Tip with a Bitcoin wallet", and
  "Pay/Tip from another wallet" beside "Pay from my wallet". /pay's single
  action keeps main's "Pay CHF 20" / "Enter an amount".
- /pay's first point is "Two ways in".
- TipButton is min-h-11.
- The description is "Payment to <name>", plus ": <note>" when the payment
  answers an open request; a Lightning-address callback gets a comment no
  longer than the provider's commentAllowed.

Already on main, so not repeated here: both actions disabled outside
TIP_MIN/MAX (PayFlow amountReady), and the tertiary-text contrast
(--text-tertiary is now 42% light, 5.3:1 on white).

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

* fix(pay): your own pay page without a wallet shows where to add one, not a message to yourself

On orangecat.ch (2026-11-12, iPhone 13 390px, dark and light), signed in
as an account with no wallet, /pay/<own handle> showed the payer's dead
end: "<handle> hasn't added a Bitcoin wallet yet, so a payment has nowhere
to land. Nothing was charged." and one link, "Message <handle> to suggest
adding one", whose href was /messages?to=<the viewer's own profile
id>&draft=add-wallet. Nothing led to /receive, where a wallet is added.

PayPageClient now reads the viewer with useAuth(). When the viewer is the
recipient and the page has no way to pay, it shows an owner line ("This is
your pay page. Nobody can pay you here yet. Add a wallet and payments land
in it.") with an "Add a wallet" button to /receive. Every other visitor,
signed in or out, still gets the nudge. The words live in PAY_COPY.

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

* fix(share): a shared page says its own title, shows an image, and X says the same

The root layout's openGraph/twitter carried the homepage's title,
description and URL, so pages without their own shared as the homepage;
pages that set an openGraph dropped the root card image; descriptions of
entities, profiles, groups, articles and posts went out untrimmed.

- root layout keeps only type/locale/siteName and card; the homepage sets
  its own title, og:url and canonical
- pageMetadata() in src/lib/seo/metadata.ts: canonical, feed link, og and
  twitter in one shape, with the root card unless a page names one and
  descriptions cut by metaDescription(); generateEntityMetadata uses it
- /pay, /pay/<name>, /blog, /steal, /ecosystem, /community use it;
  profile, group, article and post descriptions are trimmed and X uses the
  same title as og:title

Re-applied from claude/orangecat-page-share-metadata (#1649) on current
main; /technology is now a redirect to /docs, so it needs no metadata.

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

* fix(groups): Discover counts the groups it lists; dashboard shows real member counts

Re-applies the closed #1675 on current main:
- fixture group names live once (FIXTURE_GROUP_NAME_PATTERNS) and travel to
  search_public / public_counts / public_search_text as p_exclude_group_names
  (new migration 20261113160000, rollback note inside), so count, total and
  rows agree;
- browse "Show more" only when rows lie past what the page asked for;
- the dashboard's groups queries drop fixture groups (imatch) and embed
  member_count; GroupCard says "1 member"/"N members", never "0 members".

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

* fix(profile): the Cat's profile leads to its chat, not a direct message it would not answer

/profiles/cat showed "Message", linked to /messages?to=<the Cat's id>. A
direct message to the Cat's account is answered only when it tags @cat, so an
ordinary question there got no reply and no error. The button now reads
"Talk to Cat" and opens the Cat's own chat, until a one-to-one with a bot
answers every message (ADR-0015 D3).

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

* fix(design): Bitcoin-orange words clear 4.5:1 in light (text-bitcoin-text)

#f7931a as text measured 2.01-2.30:1 on every light surface and
1.95-2.12:1 on the bitcoinOrange/10 chips, so BTC amounts, "Primary"
chips and Bitcoin labels were unreadable in the light theme.

- globals.css mirrors @bitbaum/design-tokens --bitcoin-orange-text
  (Unreleased, after 1.7.1): #9d5906 in light (4.75-5.43:1 on surfaces,
  4.61-5.01:1 on the orange/10 chip), the true orange in dark (6.14-8.17:1).
- tailwind maps it as `bitcoin-text`, the package preset's name.
- The 15 places that draw orange WORDS switch to text-bitcoin-text;
  icons, fills and borders keep bitcoinOrange.
- check:token-contrast measures the new token on all six surfaces and on
  the orange/10 chip in both themes (142 pairs, was 124), and requires
  .dark to set it.

Positive green already passes (light 145 60% 29%: 4.91-5.61:1; dark
145 55% 50%: 6.36-8.46:1), so it is unchanged.

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

* fix(a11y): Discover's focus rings show whole; the unread badge carries no label of its own

Re-applies the part of the closed Discover/badge contrast fix that main
still lacks. The chip counts (no more opacity-60) and the badge's ink
(text-fg-inverted) already shipped with the UX audit.

Measured on orangecat.ch, 2026-11-13: tabbing Discover, every chip and
every rail card had its 4px focus ring cut by the row that scrolls (54
of 54 at 390px, 13 of 13 at 1280px, light and dark); overflow-x: auto
clips overflow-y too, and since the chips now scroll at every width the
first chip lost its left edge from sm as well.

- .oc-discover-chips keeps 4px of padding on every side the ring reaches
  and gives it back in margin (-mb-1 mt-4 py-1, sm:-mx-1 sm:px-1); the
  mouse scrollbar's bottom padding keeps its old net spacing.
- .oc-discover-rail-track keeps 4px above its cards on a phone (-mt-1
  pt-1); from sm it is a grid and clips nothing.
- NotificationBadge drops aria-label: not allowed on a plain span, and
  the bell and tab already say "(3 unread)" in their own names.

With this branch's compiled CSS swapped into production /discover: 0
rings clipped at 390px and 1280px in both themes; the first chip and
first card sit at the same y as before.

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

* fix(cat): Cat settings checks for local runtimes only when asked

Re-applies the closed fix on current main. LocalRuntimePanel probed
http://localhost:11434 and http://localhost:1234 on mount, so every visit
to Cat settings (every phone included) made two refused connections and
logged two console errors, and a public site reaching for localhost is
what Chrome gates behind a local-network permission prompt.

- Nothing is probed until "Check this computer" is pressed; until then
  each runtime shows its install link and start command. After a check
  the button reads "Check again" and the result line is announced
  (aria-live). The check and Copy buttons are 44px on touch.
- The Cat page already has its h1 on main; it now takes the name from
  CAT_HUB_COPY.title instead of a literal.

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

* fix(groups): a public group's Events and Activity tabs answer a signed-out visitor

Re-applies the closed #1678 on current main. GET events and activities use
withOptionalAuth (row policies decide what is listed); activities tells a
non-member membersOnly: true without reading the table, and the feed says
"Activity is visible to members", with a Sign in link back to the group
when signed out, instead of "Could not load" or a false "No activity yet".

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

* fix(share): share cards only say what is true, and X fits one post

- project card draws "Back it in Bitcoin" only when the page's own wallet
  check (resolveSellerReceiveInfo) finds somewhere to receive; on no
  wallet or a failed lookup the line is left off
- profile and group cards use shareLine() instead of .slice(0, 180), so
  bios no longer stop mid-word
- a profile or group name with no row gets brandOnlyCard(), not a branded
  card built from the URL; the group card drops the "/<slug>" pill that
  pointed at a 404 (StatPill had no other user)
- xPostText() builds title + shareLine() + hashtags and drops hashtags,
  then the line, until the post fits 280 next to the link, counting CJK
  and emoji as X does; the X share target uses it

Re-applied from claude/orangecat-share-cards-and-sheet (#1650) on current
main. The sheet's dark-theme contrast and double close button were
already fixed on main (GRADIENTS ink fills carry text-fg-inverted; the
card hides its close inside the Dialog); the sheet test now guards them.

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

* fix(community): the footer's Community feed opens for signed-out visitors

The footer links "Community" from every public page, but signed out
/community showed only "Please sign in / You need to be signed in to view
this page" (orangecat.ch, 390px and 1440px, 2026-11-13). The feed's view,
community_timeline_no_duplicates, holds public posts only
(visibility = 'public') and is granted to anon: the data was public, only
the page refused to read it.

The community feed now loads signed out, and the composer's place shows the
"Sign in to post" prompt that profile and project timelines already use,
extracted into SignInToPost so it is one shape. Its sign-in returns to the
page (/auth?from=/community). The reader's own feeds (timeline, following)
still need a reader.

Re-applied from claude/orangecat-community-feed-signed-out onto current main.

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

* fix(public-copy): say which settings and payments are really public

- /faq ("Who can see my activity?") and /docs ("Visibility control") said
  every entity has a public / followers-only / private setting. Listings
  have "Show on Public Profile"; that three-way choice exists for posts and
  articles. Both pages now show one wording, ENTITY_VISIBILITY_SUMMARY in
  src/config/public-visibility.ts (faq.md takes it as a placeholder).
- /how-it-works and /security said every transaction is publicly
  verifiable on the Bitcoin blockchain. Lightning settles off-chain (the
  privacy policy in legal-content.ts says so). Both now show
  SETTLEMENT_TRANSPARENCY_CLAIM, kept next to FEE_CLAIMS.

The step-mark contrast half of the original branch is already fixed on
main (#1634 moved the steps to oc-icon-tile and a token pill; 7.8:1 in
both themes on orangecat.ch), and /technology is now a redirect to /docs,
so neither is carried over.

Re-applied from claude/orangecat-public-copy-truth onto current main.

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

* fix(groups,circles): no multisig promise; an empty kind says what it is

Re-applies what is still open from the closed #1680 on current main (the
Discover zero state, singular counts and the dashboard create button
already landed in #1716):
- the create panel no longer offers "multi-signature Bitcoin wallets";
  the treasury is the organization's own addresses, shown to its members,
  and multisig stays only as advice; the panel names the kind from
  ENTITY_REGISTRY ("Why organizations?") instead of "Group";
- Discover's empty kind adds the kind's plain verb and definition;
- the circles empty state says what a circle is;
- the dashboard adds its create button to the empty state only while the
  header's Create is hidden, so a screen never shows two.

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

* fix(ux): Loki on a phone, the model menu inside the panel, Bitcoin icons coloured; bip-kit 0.8.2; record the handoff

- The Loki chip shows on phones as its hammer alone (44px, named "Loki").
- The model menu opened upward hangs from the trigger's right edge.
- Five icons used text-bitcoin-orange, which is no class; they now use
  text-bitcoinOrange.
- @bitbaum/bip-kit ^0.8.2: readable Mermaid labels and a gutter that counts
  from the screen edge.
- The audit records the handoff of 19 closed PRs, item by item.

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

* docs(changelog): claim only the community feed

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

* fix(migrations): one version per migration — the groups count and the timeline view move off 20261113160000

Three files shared 20261113160000, which the Supabase ledger keys on. Both
renamed migrations are safe to run again (a guarded constraint drop / a view
option with its own check), and the deploy ledger keys on filename.

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

* fix(studio): every form drafts, not only music; visitors can create

On production every Studio form but music failed with "could not finish"
in about 350ms: the prompt shows a score example, so a poem came back with
"score": null and the strict schema discarded the whole draft. The route now
reads a draft the way the Studio means it (readCreativeDraft: a score for
music only, lines joined, the work under its form's name) and tries once
more on an unusable answer.

A visitor's draft no longer ends at a sign-in wall in a new tab: drafts run
on the per-IP budgets (general, then 6 per 10 minutes), the same shape as
dictation, now shared as visitorOrUserBudget.

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

* test(studio): the route test mocks the optional sign-in and the visitor budgets

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

* refactor(studio): the one retry is a bounded loop, not a repeated expression

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

* chore(deps): keep chatkit 0.31.2 and bip-kit 0.6.1 until the rollout gate clears them

The fleet's shared-package rollout gate holds a PR that moves to a package
version not yet proven in its canary product (bitbaum/kivvi), and it held
this one on chatkit 0.31.3 and bip-kit 0.8.2. The Studio, pay, sharing,
groups and event fixes here do not depend on either; the two bumps follow
on their own once the gate clears them. accountkit 0.30.0 is not held.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 17:58:09 +01:00
CatoandClaude Opus 5.5 142f21eb1b fix(ux): the rest of the UX/UI audit — sign-up, phone navigation, money, listings, settings, create, public pages (#1716)
* fix(design): the rest of the orange; a gate keeps it to Bitcoin and the sign-up action

The orange was still decoration and words across signed-in screens: Save
buttons in the room, deck and money-route editors, the AI key and onboarding
steps, passkeys, the profile wizard, Create Group, Cat memory import; focus
rings and borders on inputs, hover colour on article titles, drag-over and
selected outlines, AI sparkles and integration icons, the "Your plan" badge.
As text it is 2.0-2.3:1 on light surfaces.

Those in-app buttons are now variant="primary"; orange ink, borders and rings
are ink tokens (text-fg-primary/-secondary, border-fg-primary, ring-ring);
hover on titles underlines. Orange stays on Bitcoin (Pay, Fund, invoice,
ticket payment) and on the public sign-up / sign-in-to-act buttons.

New scripts/check-one-orange.mjs ratchets variant="accent" under
src/app/(authenticated) and (text|border|ring)-accent-warm anywhere in src,
both at a baseline of 0; registered as check:one-orange in package.json and
both verify lists, with a fixture test.

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

* fix(create): open every create page on the form, templates behind a button

Ten create pages opened on a template gallery with "Start from scratch"
pre-ticked and no Continue, and on a phone that was up to 50 full-height
cards before the first field. The project wizard had a template step of its
own with Previous, Skip and Next (two of them doing the same thing).

Now the form is always first. Where a type has templates, the page header
offers "Start from a template", which opens the picker in a dialog; picking
one fills only the fields not typed into yet and closes it. The picker
shows a check only for a template someone picked, and below sm it is one
bordered list of rows instead of cards. The project wizard loses its
template step.

The create header (single form and wizard alike) is now FormHeader, drawn
by PageHeader: breadcrumb, title, subtitle, owner picker and template
offer as actions. The palette-coloured type icon and the wizard's own
Cancel + h1 row are gone. The wizard's card header that repeated each
step's group heading is gone, and the AI prefill bar shows on the first
wizard step only instead of above every step.

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

* fix(chrome): one name per public page; Product and About split in the header

The header's "Product" menu held the company pages (about, roadmap, docs,
governance) and the top-level "Support" opened the page where people fund
OrangeCat, not where they get help. The header and footer labelled the same
routes independently, so Pricing was "Cat plans" in the footer and Docs was
"Documentation".

PUBLIC_PAGES in src/config/navigation.ts now holds each public page's name
and one-line description, keyed by route, and the header, the visitor menu
and the footer are all built from it. Product = How it works, What you can do,
Discover, Get paid; Pricing and Blog are top level; About = About & mission,
Roadmap, Changelog, Docs, Whitepaper, Governance, Support OrangeCat.

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

* fix(chrome): the search palette finds public pages and stops sending visitors to sign-in

buildPages() indexed only the sidebar and the entity lists, so "Pricing" or
"Docs" found nothing, and a signed-out visitor's default rows (Cat, Home, My
things...) and the Create group all ended at the sign-in form.

The palette now also indexes every public page (PUBLIC_PAGES, with keywords
such as "plans" for Pricing). Signed out, public pages lead, nothing behind
sign-in is offered, the Create group is hidden, and "Search Discover for ..."
replaces "Ask your Cat". The empty line reads "No page or listing matches".

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

* fix(cat-settings): permission rows speak to the person, and say what is really on

What was wrong:
- Each permission row rendered CatAction.description, which is the tool
  prompt the model reads: other tool ids, NOT/STARTED in capitals, "the user".
- Risk tiles used raw palette classes with no dark value.
- A brand-new account (Connect Wallet and Explain Transaction on by default)
  saw Payments switched on under "Send Bitcoin and fund projects", a bare
  "2/8", and a warning that something high-risk was enabled.
- Presets applied on one tap, replaced every individual choice without
  asking, never showed which one was active, and the fourth was a ghost link.

What it does now:
- src/config/cat-action-summaries.ts holds one plain sentence per action;
  the permissions API sends it instead of the model description. A test
  fails when an action has no summary or a summary reads like a prompt.
- RISK_COLORS use the status tokens.
- Categories read "2 of 8 on"; a partly-on category names what is on and
  starts open. Category names: "My things", "Memory and notes"; Payments is
  "Wallets, bookings and payments".
- The high-risk note names the actions that are on; it is a plain note
  unless an action that spends Bitcoin (send_payment, fund_project) is on.
- Turning on a whole category that would let Cat spend asks first; turning
  anything off never does. What a permission allows is unchanged.
- Presets are one radiogroup of four equal cells (Off, Minimal, Creator,
  Power) marking the active one ("Custom" otherwise); switching asks first
  and confirms with a toast.

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

* fix(cat-settings): spending caps are entered in the person's own currency

The two caps were raw number inputs labelled '(BTC)' with an eight-decimal
step, so people who see every other amount in CHF had to type a Bitcoin
decimal. They now use the shared AmountField (entry in the display currency,
the BTC figure always shown, value still stored in BTC), labelled 'Most Cat
may pay at once' and 'Most Cat may pay in a day', each with the saved value
under it and a 'No cap' button. 'Save caps' stays the card's one button.

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

* fix(sharing): the share sheet on a phone has one frame and one close button

On a phone the share card was rendered, with its own border, shadow and X,
inside a dialog that brings its own frame and X: two close buttons, one
inside the other. In the dialog the card now drops its frame and its X, so
the dialog's are the only ones; as a desktop dropdown it keeps both. The
platform grid is four equal cells for the four platforms (a fifth column
sat empty from sm up), and the labels are sentence case: 'Copy link',
'Share profile'. The 'Share via…' ink was already fixed in #1634.

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

* fix(content): placeholder and duplicate pages lead somewhere real; Builders says it leaves

/pages sent a visitor to the signed-in project dashboard, which only bounced
them to sign-in; it now redirects to Discover. /technology was an unlinked
copy of the Technology Stack section on /docs and now redirects there.
/company/about was a second About page; it redirects to /about, which now
links its one unique door, the ways in (/company/careers).

/channel keeps its waitlist, but Discover People went to the signed-in people
dashboard and Share My Profile opened a share sheet for an empty username for
a visitor. Discover People now opens Discover's people list, sharing shows
only for someone with a profile (as an outline button, not the orange), and
"Bitcoin tipping" reads "Bitcoin payments".

The footer's Builders link pointed at /builders, which only redirects off-site
to bitbaum; it now links there directly, marked external. The e2e route
contract lists the three new redirects.

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

* fix(chrome): the header stays put on desktop and comes back for keyboard focus

useHeaderScroll hid the header on scroll-down at every width, while from lg up
the sidebar is pinned at the header's height, so a hidden header left a 64px
empty band above the sidebar. The header now hides only below lg
(useIsDesktop). Focus that moves into .app-header also clears the hidden
state, so sticky bars pinned below the header move back with it (the CSS
already kept a focused header on screen).

useMediaQuery returns early where window.matchMedia does not exist (jsdom),
so the shell tests that render the header still run.

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

* fix(chrome): the phone drawer's close row is named "Close menu"

The close row at the bottom of the signed-in drawer reused the desktop
"Collapse sidebar" label as its aria-label, so a screen reader announced a
different action than the row shows. It now carries only its visible text,
"Close menu". (The drawer already ends above the tab bar via
.app-sidebar[data-above-mobile-nav].)

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

* fix(create): one create list for /create, the phone sheet and the header menu

The three create choosers had three anatomies (a list, a name-only grid,
a flat menu), none of them used the registry's plain copy, and they
grouped by an internal category. The phone's Create tab opened the
name-only grid.

CREATE_OPTIONS now reads each entity's plain.verb and plain.example, keeps
the type name as a small trailing label, and groups by plain.intent under
the intents' own titles. One CreateOptionList renders the rows; /create,
MobileCreateSheet and HeaderCreateButton all use it (the header wraps each
row in a menu item so arrow keys still work). "Need money for something?"
is the first row and "Not sure which one?" the last in all three.

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

* fix(chrome): closing search, notifications or the Cat returns focus to its button

Each overlay is opened from outside state rather than a Radix Dialog.Trigger,
so on close Radix had nothing to focus and keyboard focus fell to the top of
the page.

- palette-store remembers what had focus when the palette opened and gives
  it back once the dialog lets go (unless something else has taken focus or
  the element is gone).
- The header hands the bell to NotificationCenter (returnFocusRef), which
  refocuses it in onCloseAutoFocus, as MobileCreateSheet already does.
- GlobalCatLauncher keeps its button mounted (invisible) while the panel is
  open and wraps the panel in FocusLock with returnFocus; the panel is now
  aria-modal.

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

* fix(content): links in running text look like links, and the legal pages end with a way to ask

Links inside sentences were styled four ways: the paragraph's own grey with
an underline only on hover (roadmap goal records), grey with an underline
(changelog, roadmap), a bare underline, or an underline in ink (governance).
One class, .oc-text-link in globals.css (ink, underline in border-strong,
darker on hover), now styles every one of them.

/privacy and /terms rendered every paragraph as a plain string, so the
contact address in their Contact sections could not be tapped. Paragraphs
and bullets now go through linkify(), which turns email and web addresses
into links (unit-tested), and both documents close with "A question about
this? Ask the Cat, or write to" the contact address.

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

* fix(pay): the pay page shows who is paid — face, name and @handle

The pay page named the payee by display name alone; the avatar never
reached it because the recipient lookup did not select avatar_url, and
the face + name + handle block was private to ReceiveCode. A payer could
not tell one "Anna" from another on the page that sends her money.

The block is now PayeeIdentity, drawn by Receive above the code and by
the pay page under its "Pay" eyebrow (the name as the h1, the @handle a
44px link to the public profile). resolveLnurlRecipient selects and
returns avatarUrl on both the current-handle and renamed-handle paths.

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

* fix(money): pay waits for an amount it can pay, says "Pay CHF 20", and owns the one orange

- An amount outside the limits showed a red line but left the committing
  button live: every action tested only `amount <= 0`. One predicate,
  isAmountInRange (next to the amount field), now gates Pay, "Pay from my
  wallet", "Show the code", Send's Review and Request's Send request.
- The pay page's one action read "Show the code" and sat as a dimmed
  orange slab under a brighter header "Get Started". It now reads "Pay
  CHF 20" once an amount is in range and "Enter an amount" before, is
  accent only when it can act (monochrome disabled otherwise), and
  getRouteChrome().quietHeaderSignup turns the header's sign-up to outline
  on /pay/<username> (not on the /pay landing).
- The amount plate drew the global focus rectangle around its digits. The
  input cancels the ring; the plate carries it at AA strength.
- In BTC entry the four suggestions read "0.0001 B…": the rung now shows
  the number alone, with "0.0001 BTC" as its accessible name.

Also adds ROUTES.DASHBOARD.WALLETS_FOR_SEND, used by the next commit.

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

* fix(money): one frame on all three tabs; Send leads to the field it needs; Ask works signed out

- Frame: Receive's first run built its own column with a raw h1, Send's
  no-wallet state put its headline in the page title, and all three
  loading states returned a bare spinner, so title and tabs jumped. Every
  state now renders inside MoneyPage with the tab's own title; first run
  and no-wallet use MoneyPrompt (question as an h2, one sentence). Send's
  subtitle is one line at 390px.
- Send with no wallet linked to /dashboard/wallets with no context, in
  protocol words the page never repeated, to a form titled "Get paid in
  Bitcoin" with the connection field under "Other ways to get paid
  (advanced)". It now links to ?for=send, says "connect a Lightning
  wallet with a wallet connection link", and the wallet form opens with
  that field visible and focused under "Connect a wallet to send".
- Wallet form: toggles read "Add an on-chain address or a wallet
  connection" and "Name and details" (no "(optional)"/"(advanced)"); a
  `bare` prop drops the card when /receive hosts it; two actions are two
  equal cells ("Save wallet" / "Not now" on first run).
- Requests: two actions beside the text squeezed the note to "Dinn…";
  Pay and Decline now sit under it as two equal cells. The status line
  lost its stray paragraph margin, and Send request sits in
  MoneyActionBar like Send's button. Both gate on isAmountInRange.
- "Ask" on a way to pay shared on request: signed out, the row says
  asking needs a free account and the button goes to registration with
  `from` set; the conversation opens with an 'ask-payment-details' draft
  instead of an empty composer.

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

* fix(finances): empty cards lead somewhere; "Add a wallet" opens the wallets page

"Add a wallet" pointed at a hardcoded '/wallets' — the public directory,
where no wallet can be added. It now goes to ROUTES.DASHBOARD.WALLETS.
The "Came in" empty state named its actions as prose; it now has one
link, "Get paid by link" to Receive, and the tax card repeats "Declare
it" where the estimate needs a place. Stacked paragraphs get mb-0, the
section label is the money surface's (text-sm tracking-caps), and the
two totals are MoneyFigures.

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

* fix(wallets): the wallets page reads like the money tabs it is linked from

- Header: PageHeading instead of an icon and a raw h1; "Receive" is
  outline, a way out rather than the page's action.
- Empty state: "Add a wallet" is the primary action (was outline, Title
  Case), body "Add a Bitcoin wallet so people can pay you.", an arrow
  instead of the external-link glyph on an internal link, and the invalid
  `bg-surface-raised/40/50` class fixed.
- With no wallets the outer card is gone, so the empty state or the add
  form is the only surface.
- Reads ?for=send (from Send's "Connect a wallet") and opens the add form
  on the wallet connection field.

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

* fix(settings): split Account into named frames, move preferences out, and recognise an account with no email

What was wrong:
- Settings → Account was one card titled "Account & Security" holding
  thirteen sections and three save behaviours, thousands of pixels long.
  Currency and date format shared one "Save preferences" button; the theme
  was three large cards; currency was editable in the profile editor too.
- An account with no email (anonymous) read "the email address associated
  with your account" above an empty field, was offered a password it could
  never sign in with, saw an empty list of ways to sign in, and its profile
  said "Unknown" and "Not verified".

What it does now:
- Account is five frames with one header shape: Sign-in (email, password,
  two-factor, passkeys, ways to sign in, Nostr behind "Connect Nostr"),
  Devices, Identities, Your data, Delete account. Buttons are 44px and none
  is filled among peers; section text is max-w-prose.
- New Settings → Preferences (/settings/preferences, in SETTINGS_SECTIONS):
  currency and date format save on change with the notifications page's
  status line; the theme is a SegmentedControl. The profile editor links to
  it instead of carrying a second currency picker.
- With no email: "Add an email" with the page's one primary button, the
  password form waits until there is an email, the sign-in list says "This
  browser only" with a warning that names the fix, the profile shows
  "None yet" with an "Add an email" link and omits "Email Verified".
- "Memories … managed under Memory" (was "in AI settings").

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

* fix(content): the changelog shows each entry's headline and folds older months

Every entry is written "**Lead.** The rest." but the fleet map drops the bold,
so /changelog printed each one as a single grey paragraph: about fifty phone
screens with nothing to scan. Each line now leads with its first sentence as
a heading (ink, semibold) and the rest beneath in secondary ink.

The rail dot was offset by the wrong amount (it landed 19-23px inside the
rail) and was orange as decoration; it now sits on the rail in fg-tertiary.
The per-line bullet used bg-strong, which is not a utility, so it rendered
only as an indent; it is removed and every line shares one left edge.

The newest 30 days stay open; older days are grouped per month in a
<details> ("October 2026, 14 changes"). splitLead and groupChangelog live in
src/lib/development/changelog-view.ts with unit tests.

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

* fix(chrome): a visitor on Discover gets the site's navigation and footer, not Create

On app surfaces (Discover, events, public listings) the header turned the
marketing nav off even for nobody signed in, showed the "+" Create button
without checking auth, the visitor tab bar raised Create as its loudest slot,
and the footer was limited to public surfaces. A visitor had no way to the
rest of the site and every loud control led to the sign-in form.

- Header: the marketing nav and visitor menu show whenever nobody is signed
  in (on app surfaces once auth has settled, so it never flashes for a
  signed-in person); the "+" needs a signed-in user.
- Visitor tab bar: Home, Explore, How it works, Sign in; no raised slot.
- Footer: also on app surfaces for visitors (showsSiteFooter); the tab-bar
  clearance moves from main to below the footer there.
- A signed-out visitor bounced from a create form lands on the register tab
  (signInModeFor in the middleware).

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

* fix(funnel): a first-time visitor who taps Start sees the register form

The hero's "Meet your Cat" linked /auth with no mode, and the auth form
defaults to sign-in, so a newcomer was greeted with "Welcome back". Every
other public Start points at a protected path, and the middleware sent
every signed-out visit there to mode=login as well.

The hero now links /auth?mode=register (the header's target). The
middleware picks the form from the browser: no Supabase cookie means this
device has never signed in, so it gets the register form (which offers
"Already have an account?"); a browser with one, an expired session, gets
sign-in. from= is kept as before.

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

* fix(profile, civic-split): orange only for Bitcoin and top-of-funnel

Profile progress bars used GRADIENTS.progressBitcoin (Bitcoin orange) and
the civic split coloured the locality share and the slider thumbs with the
warm accent, under a comment saying 'nothing chromatic'. They are ink
(bg-fg-primary, accent-fg-primary) now. The settings tab and theme tick
were already fixed in #1634.

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

* fix(funnel): the studio grid shows products, not every entry in the fleet map

Home: the "Live now" grid listed every live studio project, the three
pillars again included, about 4,100px on a phone. It now shows six
products that are not pillars (homeFleetPreview) and links to
"All N live products" on /ecosystem.

/ecosystem: "Everything built on it" rendered the whole fleet map,
prospects, demos and "next" ideas named by sentence-casing their slug,
some with no description and no link. It now shows live projects in the
studio and client layers that the map describes; the sentence above it
says so. The home selection and the hero's live count drop undescribed
entries too, so the count still matches what is shown.

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

* fix(funnel): pricing's one warm action is on the free plan

The orange "Add your key" sat on Bring your own key, and the founding
band was an orange-tinted card with an orange icon and an orange button,
so the page had several warm actions and none on the plan that brings a
newcomer in. Free's "Start chatting" is now the accent; every paid or
set-up action is outline; the founding band is a neutral surface with a
primary button. "Available now" badges get a positive dot. The prose said
"two honest ways" over a list of three; it says three. From lg up each
card is a four-row subgrid so name, price, bullets and button line up.

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

* fix(settings): one shape for on/off rows, named by their words

On/off rows came in five shapes: a bare checkbox with 'On'/'Off' beside it
(notifications), a card around one switch (Cat proactivity, civic split),
and privacy rows labelled 'Website' where on meant hidden. A shared
SettingToggleRow (src/components/ui) now holds them all: name and one line
of detail on the left, the switch on the right, the whole row a 44px label,
the switch named by the visible words and described by the detail. Privacy
rows say the action: 'Hide website', 'Hide phone number'.

Also:
- Civic split: 'Declare my split' is the in-app primary (was the warm
  accent), and while it is disabled a line says what is missing.
- Profile tabs: panels claimed role=tabpanel labelled by tab ids nothing
  had; they are named regions now, matching the nav + aria-current strip.

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

* fix(create): one filled button per create form, and an equal action pair

The wallet box inside an entity form rendered a full-width filled "Save"
right above "Create Product": two primary buttons, the wider one not the
one that finishes the form. Its heading was derived from the button label
(`submitLabel === 'Save'`), so the label could not change without changing
the heading.

WalletForm now takes `title` (default "Get paid in Bitcoin") and
`submitVariant`. Inside an entity form the box says "Use this wallet" in
an outline button, so the form keeps one filled button. The wallet edit
card titles itself "Edit wallet" instead of "Save Changes".

FormActions lays Create/Cancel and the wizard's Previous/Next out as a
two-column grid of full-width 44px buttons (commit first); Skip is a
full-width ghost button under them.

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

* fix(tasks): say whose tasks these are and give the empty list a way forward

The visibility leak itself was closed by the RLS migration
20261113120000 (a task is seen by its creator and whoever is asked). The
page still described itself as "Manage and complete team tasks", showed
four zero stat cards on an empty list, and its empty state said "Create
your first task" with no button.

The subtitle now names the scope ("Tasks you made, and tasks someone
asked of you"), the stat cards show only when there are tasks, and the
empty list is the shared EmptyState with a Create Task action, or Clear
filters when filters hide everything.

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

* fix(funnel): one Cat door with a microphone, and capability cards a thumb can use

The public map's "What do you want to do?" was a hand-rolled text input
with no microphone, while the signed-in door (DashboardIntent) was
chatkit's Composer. TheDoor is now that composer, used on the dashboard,
My things and the public map; DashboardIntent is retired. The transcribe
route needs a session, so a signed-out visitor's microphone is the
browser's recogniser (SIGNED_OUT_VOICE; ChatInput takes a voice prop),
and chatkit says in words when a browser has none.

Capability cards: "Start" was a 36px text link; it is a 44px outline
button. "See yours" was offered to visitors with no account and nothing
to see; it now renders only for a signed-in user. The compact variant is
gone with its only caller.

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

* fix(forms): tag input keeps its Add button, task actions in order, ink radios

The task form's tag input was flex-1 without min-w-0, so on a phone it
kept its intrinsic width and pushed "Add" out of the row. Task actions
were Cancel then Save, content-width; they are now the create forms'
equal 44px pair with the commit first. Radios and checkboxes in create
forms were 13px browser-blue natives; they are 20px with accent-color
bound to the ink token, on 44px label rows.

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

* fix(funnel): one way to end a public page; How it works says how; About says who

One action had six names ("Meet your Cat", "Create Free Account", "Get
Started Free", "Get Started", ...) and every page closed differently: a
gradient card, a near-black band, and /what-you-can-do ended on a link
to another product. PublicStartBand is the home band, shared: one
sentence, the warm action CTA_LABELS.primaryAction to the register form.
Home, How it works, What you can do and About end on it; the header's
sign-up button uses the same label and target. CTA_LABELS.createAccount
and the "Get Started Free" literal are gone.

How it works: the title was "Meet Your Cat" with a hardcoded lede; it is
"How it works" with the configured subtitle. Step titles say what the
person does, in sentence case. The compact copy of the capability cards
is one row per intent, each a link into that section of What you can do
(PublicLinkList). Cards that were not links lose their hover styling,
and the "Need more help?" buttons are gone.

What you can do: the on-page index was a second row of wrapping pills
that looked like the example sentences; it is plain text links in one
row that scrolls.

About: it stated values and stopped. "Who builds it" lists the studio
(/company/about, now ROUTES.COMPANY_ABOUT), the MIT source on GitHub
(SOURCE_REPO_URL, also used by the footer), the stack and the contact
address, rows of one anatomy. The identity value's icon is Lock, as on
the home page, not a tree.

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

* fix(content): the say-it-in-one-box pages take a voice, and /raise's disabled button is not a faded orange

/raise, /feedback and /studio each open on one box to say what you need, and
none had a microphone. Each now shows the shared DictationButton beside the
box for a signed-in person (the transcription endpoint is signed-in only, so
a visitor types, as before); what is said is appended to what is written.

/raise's Price it pill faded to 40% orange while empty; it is now a neutral
raised pill with tertiary ink until there is a sentence, then the orange.
The helper line under the box and the character count on /feedback are in
secondary ink. /feedback's Send is primary (with the one-orange sweep).

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

* fix(profile): edit profile opens on the form on a phone, and Save stays in reach

What was wrong (390px):
- A completion checklist printed every missing field above a hand-built
  header, so no field was in the first screen; the bar was Bitcoin orange.
- Save sat at the very end of the form, about 3,800px down, not pinned.
- The form paid for three nested paddings, so four of the eight 'How can
  others help?' options were truncated mid-word.
- The handle was silently written into Name while completion still counted
  Name as missing, and the percentage ignored its declared weights.
- The avatar picker was a round User icon; the profile shows a rounded
  square with the cat mark.

What it does now:
- The page uses EntityListShell ('Edit profile', 'Back to profile').
  Completion moves below the form on phones, closed until wanted
  ('Profile N% complete — see what is missing').
- Cancel / Save profile are two equal 44px cells in a bar that sticks above
  the mobile tab bar and settles in place from lg up.
- The form padding is p-3 on phones; help options wrap to two lines in
  equal-height cells (still two columns).
- Name stays empty until given; completion is weighted.
- The avatar picker is a rounded square with DefaultAvatar and a visible
  'Add photo' button. DefaultAvatar (shared) sets an inline size only when
  'size' is passed, so responsive classes work; every caller passes one.

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

* fix(chrome): hover, open and selected states are visible in light theme; buttons have a pressed state

Every chrome state painted bg-surface-raised on the page surface. In light
theme that is 96% on a 97% page, so hovering a header button, opening a nav
dropdown or moving through the search palette showed nothing; and no button
variant had a pressed state.

States that sit on the page now use the existing surface-overlay token (94%
light, 17% dark): the header rail (HeaderIconButton), header nav and its
dropdowns, the visitor menu, the footer buttons, the search trigger and
palette rows, the tab bar's press, and the sidebar's hover/active constants
and rows. In design-system.ts the ghost, outline and secondary button
variants hover to surface-overlay, and every button and icon-button variant
has an active: state (overlay for ghost/outline/secondary, muted-strong for
primary, accent-warm-hover for accent).

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

* fix(chrome): the notifications panel shows one state, and its filters fit a phone

A failed first load drew the raw error message above the filter row and "No
notifications found" below it, so the panel said both. The five filters were
a hand-built row of flex-1 pills that ran off a 390px screen.

A failed load with nothing loaded is now one state: "Could not load your
notifications." with an outline "Try again", no filters, no empty state. A
failed refresh keeps the list with a short notice. The filters are the shared
SegmentedControl (44px segments) in one line that scrolls sideways when five
labels do not fit.

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

* fix(dashboards): every empty list ends in its create action, first

Wishlists, circles and documents said "create your first one" with no way
to do it: their configs had no empty-state action, and each config that
did brought its own button with its own colour class. Bookings said "No
bookings found" and stopped there. On My Projects the "Open Loki" card sat
above an empty list, so on a phone it was the only button on arrival.

- emptyStateWithCreate: the dashboard shell adds `Create <name>` (or the
  page's createButtonLabel) to any entity empty state without its own
  action; the per-config buttons and their GRADIENTS classes are gone. A
  tab's own empty state (Favorites) is left as written.
- EntityDashboardPage renders headerContent after the list while the list
  is empty, above it otherwise.
- Loans (its own page) uses the same empty state, hides the header Create
  while "My loans" is empty so the screen has one Create, gives each tab
  one label at every width, and makes the tabs 44px.
- Bookings: each empty tab says bookings appear when someone books one of
  your services, with "Create a service"; the first tab is "Requests".

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

* fix(content): the blog's filters are two rows, not a wall of 71 pills; choice-rows sees them

From md up the blog showed every tag and every month as a wrapping pill
(about 71) before the first post. The time filter is now a SegmentedControl
of four ranges (all time, this year, last 6 months, this month) and the
per-month pills are gone; topics are one line that scrolls sideways, limited
to topics two or more posts share (sharedTopics, unit-tested; the selected
one always stays), each pill 44px tall with aria-pressed. Both rows show at
every width, so the phone's "Filter posts" toggle is gone.

The /study-bitcoin level filter is a SegmentedControl; the /studio forms are
an even two-column grid of radio cells.

check:choice-rows only looked for aria-pressed, role="radio" and role="tab",
so none of these counted. It now also catches native radios and buttons that
set a selection (onClick={() => setSelectedX(...)}), with a fixture test.

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

* fix(discover): public listing pages give every visitor one way forward

What was wrong:
- A priced listing whose owner has no wallet showed a price and stock, then a
  bare "hasn't connected a wallet yet" and no sticky bar on a phone.
- Product and service pages kept price and action below the first phone
  screen; a product had a second, orange "Buy now" beside the pay panel; a
  service's sticky "Book this service" scrolled to the pay panel; fixed-price
  listings appended a full support form under the purchase.
- PriceDisplay appended "/ hr" after the BTC equivalent, so it wrapped away.
- The breadcrumb started at "Home" (the dashboard), which sends a signed-out
  visitor to the sign-in form.
- Descriptions were titled three ways and the raw "active" status was shown
  to buyers.

What it does now:
- The no-wallet card says who cannot be paid and offers "Ask how to pay", a
  message to the owner about the listing through sign-in; the sticky bar
  becomes that action instead of disappearing. One link builder
  (lib/navigation/inquiryHref) serves it and the owner card.
- Price (and stock / the Book button) lead product and service pages via
  renderLead; the extra "Buy now" is gone; the service bar leads to #book;
  the pay bar reads "Buy now · CHF 20.00"; BookEntityButton is primary.
- On fixed-price listings support sits behind "Add extra support".
- PriceDisplay keeps amount and unit together, the equivalent on its own line.
- Breadcrumb takes a root; public listing pages start at Discover.
- "About this <kind>" comes from the registry name; product, service and
  cause show their status to the owner only.

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

* fix(groups): Join where a visitor lands; the overview is not the owner's settings

What was wrong: a group page offered Join only inside the Members tab, so a
visitor on the Overview tab had no way in; the Overview and sidebar showed
the owner's "Suggested Features", label, visibility and listing flags to
everyone; one tab carried an icon; "1 Members"; and the page had no way back
to the list it came from.

What it does now: GroupJoinButton (one component, used in the header and the
Members tab) offers "Join group" to a signed-in non-member of an open group
and "Sign in to join" (back to the group) when signed out. Suggested
features and the label/visibility/listed rows are owner-only; counts are
singular for one; the Events tab has no icon. The header starts with a
Discover > <groups> breadcrumb (PageHeader and EntityDetailLayout pass a
breadcrumb root through).

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

* fix(projects): one way back, no "be the first" when nobody can pay, sign-in links that return

What was wrong: the project page opened with a Back button (which leaves the
site for anyone arriving from a shared link) where every other listing has
a breadcrumb; "Created by" took the global paragraph margin; the summary
rail said "No contributions yet — be the first." on a project with no wallet;
the timeline told a visitor to sign in with nothing to tap; and the project
room, deck and own-profile redirects sent `redirect=`, which /auth never
reads, so people landed on the dashboard.

What it does now: a Discover > Projects breadcrumb; mb-0 on "Created by";
the rail says "Not open for funding yet." when the project is not payable;
the timeline's "Sign in" is a link back to the project; the redirects send
`from=`.

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

* fix(discover): a kind's page says which kind, never ends in a wall, and links into it work

What was wrong:
- /events was an organiser sales page at the events address (accent "Near
  me", icon-only search, `redirect=` sign-in, an overridden final button).
- Cards without a picture were a big letter on a grey plate half the card's
  height; on a phone two listings fit a screen. Stacked <p>/<h3> kept the
  global margins.
- "QA test…" listings and the "QA Grok A" profile led the live shelf.
- A kind's page was headed "Discover"; "1 products"; an empty kind showed
  nothing; the chosen chip could sit off screen; a failed search call was
  cached for two minutes as an empty shelf.
- /projects and three dashboard buttons sent `?section=`, which Discover
  ignored; category tiles searched display names that match nothing.
- From sm up rails hide cards five to eight, but "See all" only appeared when
  more existed than were fetched.
- The row of kinds wrapped (10 + 3) on desktop.
- Card prices were grey mono text, unlike the detail page.
- /jobs ended with no link or button, its second line below AA contrast.

What it does now:
- /events redirects to Discover's events, with "What's on near you" above
  the grid (outline button, visible "Search" label).
- The media plate is 2:1 with a 48px bordered monogram tile; in the phone
  grid a card is a row with a 96px square face. Card text has mb-0.
- QA title patterns and display names are fixtures (SQL filter and
  isFixtureHit share the list).
- Browse mode heads with the kind under a "Discover" link and titles the
  page "<Kinds> — Discover"; singular counts; "No <kinds> listed yet." with
  "List the first one" and Just listed; the current chip scrolls into view;
  the shelf and browse reads are strict, so a failure reaches the error page.
- `section` is read as `type`; links use ROUTES.DISCOVER_TYPE; each category
  group has a searchTerm.
- DISCOVER_RAIL_VISIBLE = 4 (mirrors the CSS) decides "See all".
- The chip row is one sideways line at every width, thin scrollbar for mice.
- Card prices are a MoneyFigure in the listing's own currency.
- /jobs offers "Start a group" and "See groups".

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

* fix(create): form copy that does not leak the implementation

The product form asked for "-1 for unlimited" stock and had a second
"Default Currency" select under the Price field's own currency selector.
The project form's hints began "Optional:" and one explained "Currency
selector is included in this field". Investment amounts had
Bitcoin-scale placeholders (1.0, 0.01, 0.5) in fields that default to
francs.

- FieldConfig.emptyValue: a number field shows its sentinel as empty and
  sends it when cleared. Inventory uses it (-1 = unlimited) with the
  placeholder "Unlimited" and "Leave empty if you can always make more."
  The product guidance panel says the same.
- The product's separate currency select is removed; the selector on
  Price sets `currency`.
- Project hints lose "Optional:" and the selector note; the funding goal
  says "Leave empty if there is no target."
- Investment placeholders are 50000 / 500 / 10000.

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

* fix(create): a failed submit scrolls to and focuses the first field in error

Field errors were set and nothing moved: on a phone form thousands of
pixels long the person stayed at the button, far from the red. Now the
first failing field, in the form's own order and on screen, is scrolled
to the middle and focused, both on a wizard step and on the final submit.

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

* fix(profile): a new owner's profile shows first steps, not a blank panel

What was wrong:
- Overview always pushed the owner's support card into its list; an element
  is truthy, so the empty state could never render, while the card itself
  rendered nothing until a wallet could receive: a blank panel.
- The offerings block's filled 'Make offerings public' button published an
  empty card; the way to fill it was a text-xs link.
- The owner saw every tab, empty ones too, with zero passed as a badge; Info
  carried a second Edit button and inline editor beside the header's.
- With no banner the banner area kept its full photo height.

What it does now:
- The support card is included only when the wallet can receive. An empty
  owner Overview offers three list rows of one anatomy: add a wallet, add a
  photo and a bio, create your first project.
- With nothing to share, the offerings block shows the empty card with
  'Ask Cat to help me figure this out' as the primary button.
- Owners get the visitor's has-content tab filter (Overview, Timeline and
  Info always stay); a zero is not a badge. Info's duplicate editor is gone;
  editing is the header's 'Edit profile'.
- No banner: h-20 sm:h-24; the default avatar sizes by class.

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

* fix(content): a blog post reads in the same frame as a community article

A blog post put its header in a 4xl column and its text in bip-kit's
.bp-article, which centres itself at 70ch and adds 1rem of padding on
phones, so the title and the first line of text sat on different left
edges. It now uses the article frame (/articles/[slug]): one 680px column
holds the back link, the header and the body, with the TOC on a rail to the
right on xl; both readers drop .bp-article's extra padding so title, byline
and text share one edge at 390. The community article title takes the
heading face, like the blog's.

The end of a post had two buttons to /blog ("Back to Blog" and "Read More
Articles") on an orange gradient; it now offers the previous and next posts
and one Join button. Dates: the post card printed the raw string and the
post used toLocaleDateString; both go through FormattedDate now.

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

* fix(chrome): one name per signed-in destination; the avatar menu follows the sidebar

ROUTES.RECEIVE was "Money" in the sidebar and "Receive" in the tab bar; the
tab bar's create slot relabelled itself "Post" on Messages; and the avatar
menu hard-coded "Dashboard", "My projects", "Your page" and "Edit profile"
for places the sidebar calls Home, My things and Profile.

- The tab bar's money slot is "Money", and every slot prints its own name;
  only where Create leads stays contextual.
- The avatar menu is Home, My things, Profile, Settings, taken from the
  sidebar's entries (getAccountMenuPlaces) with their names and icons.
- Its Appearance row is hidden from md up, where the header has its own
  theme toggle.

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

* fix(auth): one orange button per side, the mode switch under the title, errors under their fields

Sign-in showed two orange buttons, and the first one ("Start instantly")
created a new anonymous account for someone who came back to sign in. The
switch between signing in and creating an account was a 24px text link
below the provider buttons, and every failure, an empty field included,
landed in one banner with a "Try Again" that could only fail the same way.

Now:
- One accent per side. Signing in: only "Sign in"; the no-email way in sits
  at the foot as an outline "Try it without an account". Creating an
  account: only "Start instantly"; "Create account", the emailed-code
  buttons and "Send reset email" are primary. The anonymous button has its
  own loading flag, so the spinner shows on the button that was pressed.
- A SegmentedControl ("Sign in" / "Create account") under the title, kept in
  step with ?mode=; the bottom switch is gone.
- Provider buttons keep their names unless four share the row, take the
  default border, and are labelled only when they are icons alone.
- The form is noValidate: each field says what is wrong under itself
  (authErrors.ts). The banner offers "Try again" only for timeouts and
  server or connection failures; credentials, unconfirmed email, an existing
  account and callback errors do not. Timeout copy is plain; the loader says
  "Opening OrangeCat…" instead of "Welcome back!" to a new account.
- The auth column is bg-surface-page in both themes (it was a 40% raised
  tint in light); the anonymous help line is text-fg-secondary.
- Password and anonymous sign-in decide where to land through one rule
  (lib/auth/landing.ts): an own-origin `from`, else the Cat welcome for a new
  account and the dashboard for a returning one.

Findings auth-firstrun #0, #1 (client half), #4, #7 (auth half), #8, #9, #10.

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

* fix(auth): every way in lands on the same first screen

A new person's first screen depended on which button they used: password
and anonymous sign-in went to /dashboard, Google/GitHub and the email
confirmation to the Cat welcome, and "/" sent anyone not yet onboarded to
the onboarding form, on every visit, logo included. The callback and the
confirmation also greeted a returning person as new, because "new" was read
from the URL.

Now the Google/GitHub callback and the email confirmation decide through
the same rule as the sign-in form (landingForSession → landingAfterSignIn):
an own-origin `next`, else the Cat welcome for an anonymous or not-yet-
onboarded account and the dashboard for a returning one. "/" sends a
not-yet-onboarded person to the Cat welcome; the onboarding form is linked
from there (next commit), not forced.

Finding auth-firstrun #1.

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

* fix(auth): password recovery in the sign-in page's own frame

The three recovery screens each had their own frame: a Card with an icon
tile, Title Case headings ("Enter Your Reset Code", "Reset Link Invalid",
"Password Updated Successfully"), buttons at a different height from /auth,
an unpadded "Back to Login" next to the sign-in page's "Sign in", and the
tab title "Account".

Now every step uses the same AuthTitle block and centred column as /auth
(AuthStepPage): no card, no icon tile, sentence case ("Enter your reset
code", "Choose a new password", "Password updated"), 48px fields and
buttons, "Send a new reset email", and one 44px "Back to sign in" link
(BackToSignIn). The reset page has its own title, "Reset password". The
MFA step says "Back to sign in" as well.

Finding auth-firstrun #13 (the field labels were already added by #1656).

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

* fix(onboarding): a full-width description field, whole examples, no orange on in-app actions

The onboarding description field was 241px wide in a 462px column:
Textarea wraps itself in a block div, which sat in a flex row without
flex-1 and shrink-wrapped to the browser's default 20 columns. The examples
were six wrapping pills clamped to two lines, under a grey "Examples" label
below AA. The main button was the warm accent, disabled orange on arrival,
and so were each offer's button, the pay step's retry and "Create" on My
things.

Now the field's wrapper is `min-w-0 flex-1`; three examples show as whole
sentences, one full-width 44px row each, under a text-fg-secondary label.
In-app actions are primary: "See what Cat suggests", the pay retry, "Create"
on My things (the shared Button), and the first offer (the others are
outline, one primary per screen). A unit test keeps `variant="accent"` and
the solid accent fill out of the signed-in pages and onboarding.

Findings auth-firstrun #2 and #7.

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

* fix(dashboard): first-run copy and a setup checklist with one row per destination

The first dashboard spoke to someone who already had things: "No pending
Cat approvals." under the greeting, a feed titled "Recent activity" that was
mostly other people's, and a filled "Share" inviting friends to a profile
still called "User". The setup checklist showed three rows that opened the
same profile form, sorted the Cat's "Set me up" row last (out of the two
shown), drew a border per row inside its card, and its row titles, as bare
h4s, outranked the card's own title.

Now:
- The status line says nothing to a named account with nothing waiting; to
  a person not yet named it says "Say what you want to do. Your Cat drafts
  it and asks before anything goes live."
- The feed is titled "From people on OrangeCat".
- The invite card is hidden while the name is a placeholder, and its Share
  is outline.
- "Let your Cat set you up" leads the high rows; bio and photo are one row,
  "Add a bio and a photo" → "Edit profile", held back while the name row
  (same form) shows. Titles and labels are sentence case.
- Rows are a divide-y list, titles text-sm.

The percentage the finding also named was already replaced by a count
(#1653). Findings auth-firstrun #3 and #6.

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

* fix(cat): a new person is offered the door's own sentences, and told what to say

The Cat's first-run starters were built from entity-registry nouns ("Help me
create my first product"), and the dashboard door showed no examples at all,
so a new person met a greeting, an empty box and the names of tables.

Now getStarterChips() returns the first three DOOR_EXAMPLES, the same
sentences the "What do you want to do?" box offers; the dashboard door shows
them while the person has no projects or drafts; and the Cat's welcome adds
one line under its title ("Say it in a sentence. Cat drafts it and asks
before anything goes live.") and a 44px link to the "who are you" form,
which "/" no longer forces on anyone.

Finding auth-firstrun #5. Not done here: the starter list's wrapping layout
lives in @bitbaum/chatkit (.ck-starters-list) and needs a package release.

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

* fix(what-you-can-do): keep the app shell and the app's door for a signed-in person

"What you can do" is in the app's navigation, but its route is public, so a
signed-in person who opened it lost the sidebar and the tab bar, and met the
native signed-out door with no microphone. Its section pills were 30px tall
in a wrapping box.

Now getShellSurface(pathname, signedIn) (src/config/routes.ts) treats that
page as 'app' for a signed-in person; AppShell and MobileBottomNav read it.
The page's door is DashboardIntent (chatkit composer, dictation) when signed
in and TheDoor's no-JavaScript GET form otherwise (WhatYouCanDoDoor). The
section links are 44px and one row that scrolls sideways.

Finding auth-firstrun #12. The shared DoorExamples component and 44px chips
had already landed. Not done: a microphone on the signed-out door, since
transcription is behind sign-in.

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

* fix(app-shell): sidebar drawer, collapsed rail and one name per place

The phone drawer stayed open after picking a destination (AppShell never
passed onNavigate) and was saved to localStorage, so it reopened over the
page after every reload. It now closes on navigation and on any path
change, and is never persisted; a value written by an older build is
cleared on load. Only the desktop collapse is a saved preference.

Visiting the Cat wrote "collapsed" into that saved preference, so one
visit collapsed the sidebar everywhere and hid the People, Work and More
groups. A focus route now shows the rail collapsed without writing
anything (expanding there lasts until the next page), and a collapsed
rail that hides groups ends with a "More" button that expands it.

Navigation vocabulary: Profile, Settings and Help leave the sidebar for
the account menu (config/navigation accountNavItems, also read by the
palette so "setings" still finds Settings); the account menu drops
Dashboard and My projects, which the sidebar calls Home and My things.
The sidebar regroups as People (People, Timeline, Community, Collaborate,
Set up for someone), Money and work (Finances, Deals, Civic split, Tasks,
Bookings, Analytics) and More (Bots, Discover, About); Deals no longer
wears Collaborate's handshake, Explore is named Discover after its page,
and each row is one line without the description under it.

Active state: a nav item can own other paths (activeFor). Money is lit on
Receive, Send and Requests in the sidebar and the tab bar, whose slot is
now called Money too; My things is lit on every type's own list.

Signed in, the logo leads to the dashboard rather than "/", which only
redirects a member to the Cat. The context switcher's chevron and menu
rows are 44px; the search shortcut hint uses secondary text.

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

* fix(app-shell): one Create, in plain verbs, on every page

The header's plus and the phone's sheet listed seventeen entity nouns
("Product", "Organization") while the command palette said the same
things in plain verbs. Create options now take the registry's plain copy
(verb and one line); the noun stays as `kind`, which the Cat's editor
links match on. Both surfaces draw one row shape (CreateOptionRow: icon
tile, verb, one line, 44px), grouped under the existing category labels,
and both end with the link to "What you can do". The sheet is no longer
a grid of bare nouns.

The tab bar's plus changed its name and behaviour from page to page: it
read "Product" on the store and jumped to a form, and on Messages it
opened the public post composer. It is now always "Create" and always
opens the sheet; the page's own kind (a group, on Groups) is the first,
highlighted row inside it. contextual-create now only answers which kind
a page is about, matching a base path and its sub-paths, not a prefix.

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

* fix(manage): one header frame and one name per type on create and list pages

Project Analytics hand-built its breadcrumb and a smaller title in all
three of its states; it now renders through EntityListShell (PageHeader),
with the time range as a SegmentedControl and a 44px project select in
the header actions. My Companions now says what a companion is ("Beings
with their own voice that remember whoever talks to them") instead of
"Build and monetize autonomous AI services".

The organisation form took the name "Group" while the chooser and the
registry say "Organization"; it now reads the registry's name and plain
description, and the organisations list (GroupsDashboard) says the same
word, with its in-app Create as the primary button instead of the orange
accent. The loan form is "Create Loan", not "Create Loan Listing".

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

* fix(dashboard): first run leads with the door, not a checklist

A new account's dashboard opened on "No pending Cat approvals." and two
profile chores in Title Case, with an empty "Your projects" box that
singled out one of the many kinds. Now:

- with no projects, the door shows its examples (as My things does) and
  the line under the greeting explains it: "Say what you want to do. Your
  Cat drafts it and asks before anything goes out." With nothing waiting
  and something owned, the line is simply absent;
- the empty "Your projects" section is gone; the door covers starting one;
- "Let your Cat set you up" leads the recommended tasks (a `leads` flag
  sorted ahead of priority), so the visible pair is not two chores;
- every task title is sentence case.

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

* fix(app-shell): social surfaces share one frame, one primary, honest states

Feeds: "Home", "My Timeline" and "Community" were three pages showing the
same feed under different names, and /home was linked from nowhere.
Signed in, each now carries one pick-one row (All · Following · Everyone,
the shared SegmentedControl) under one title, "Timeline"; each view keeps
its own address. An empty Following feed says "Nobody you follow has
posted yet." with one primary "Find people". The Timeline header's second
"Share Update" is gone; the composer is the first thing on the page.

One primary per screen, never orange inside the app:
- My things and Collaborate use the shared PageHeader with a primary
  action, in the dashboard's single column (Collaborate's title had its
  own size, typeface and an icon);
- Groups' header action is primary and appears only once the list has
  something; the empty state owns the one button;
- Messages keeps the header's New as its one primary: the list's "Start
  New Conversation" became a line, the empty pane's two buttons are
  outline and say "New";
- People keeps "Discover people" in the header only.
- A search match is underlined in ink, not the warm accent.

People at 390px: the invite card is two equal cells, Copy link and Share
(the third button ran "Copy Link" off the screen), and the three tabs are
the shared SegmentedControl, the count under it. A failed load now reads
"People could not be loaded." with Try again (fetchFollowListOrNull tells
a failure from an empty list) instead of "No connections yet".

Notifications: the five filters are five equal 44px cells that fit a
phone, and a failed load shows only the error and Retry, not the error
over "No notifications found". Discover's shelf with nothing in it says
nothing could be loaded, with Try again, instead of "That's everything".

PageHeading's page size now matches .oc-page-title (no md:text-4xl), so a
signed-in page's name is one size everywhere. The feed's end line and
Collaborate's helper text use secondary text, not the tertiary token.

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

* test(create): match the phone sheet's Article and Post rows by their start

The rows now carry a one-line description, so their accessible names are
"Article…" and "Post…" rather than the bare word.

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

* refactor: six components back under the 300-line limit

Merging the audit fixes pushed six components a few lines over the component
size limit. Each now moves one cohesive piece into a sibling file (task header
actions, the select and choice fields, the signed-out purchase card, two send
states, the share platform list, the wallet goal block). No behaviour, markup
or copy changes.

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

* test(nav): the account menu test names the places it now holds

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

* fix(discover, a11y): a failed count no longer takes Discover down; two controls named and sized

- Discover's chip counts are read strictly so a failure is not cached as
  zero, then caught: the page draws without numbers instead of falling to the
  error page. The listings themselves still go to the error page with Try
  again. Test: view-counts-degrade.test.ts.
- The currency picker beside a price has an accessible name (axe
  select-name on the create form).
- The xpub help toggle on Wallets is a 44px target (it was 16px tall).
- Docs: the audit gains the fourth batch, every finding's status, and the
  remaining work; CHANGELOG has 2026-11-13.

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

* fix(create, cat): keep the product form's fixes after merging main; summaries for the two new Cat actions

Main brought the product form's separate currency field back on purpose (so
Fill with AI can set a price in BTC); it stays, and the test that asked for
one currency control is dropped. The inventory field still shows unlimited as
empty, and the hints no longer explain the implementation.

walk_site and use_browser arrived on main without the plain-language summary
the permissions page now shows for every action.

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

* test(search): palette tests fit main's palette

- The visitor check skips pages the public footer also links (Community).
- "Settings is found from the palette" asks as a signed-in person.
- The store-focus test of the replaced palette store is dropped; main's
  command-palette-keyboard test covers returning focus.

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

* test(create): spell out the hint checks instead of a mis-anchored regex

CodeQL (js/regex/missing-regexp-anchor): in /^Optional:|-1|selector is
included/ the ^ anchors only the first alternative. The test meant exactly
that, but three explicit checks say it without the ambiguity.

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

* fix(auth): a protected page asks a signed-out visitor to sign in; only the Cat and create forms start on sign-up

The merged rule sent any browser without a session cookie to the sign-up
form, so /dashboard, /settings or /messages opened on a new device showed
"Create account" to a returning person, and the route contract
(tests/e2e/route-contract.spec.ts) failed on all five protected pages.

Sign-up is now the default only where a newcomer is the likely visitor: a
create form, and the Cat (where the public "What do you want to do?" box
sends its sentence) when this browser has never held a session. Everything
else asks to sign in. A middleware test pins the five-page case.

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

* test(e2e): sign in through the form's own button, not the Sign in / Create account switch

The sign-in page now has a segmented switch whose first option is also
named "Sign in", so a role lookup for that button matched the switch and
the form was never submitted.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 11:28:01 +01:00
CatoandClaude 09dd258b84 feat(articles): post an article on your own projects' walls too (#1596)
* feat(articles): post an article on your own projects' walls too

- publishArticle takes projectIds; keeps only projects the writer owns
  (fetchUserProjects: owned by their actor, not a draft — the list short
  posts cross-post to) and builds contexts with the one shared
  buildTimelineContexts, now in timeline/utils/timeline-contexts.ts.
- Composer: "Also post on a project" under "Who can read this?", opening the
  same ProjectSelectionModal short posts use; hidden when the writer has no
  projects; not shown when editing.
- ?project=<id or title slug> preselects an owned project; one that is not
  the writer's is not chosen and the composer says so. The fallback sign-in
  button now carries the query in `from`, like middleware and useRequireAuth.
- Project walls read `project` visibility contexts as well as subject posts,
  so cross-posts (short posts and articles) actually appear there.
- Link contract documented once in import-source.ts.

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

* test(articles): give the editor fixture its project list

The article-writing browser check bundles the real composer with its data
boundaries stubbed. "Also post on a project" added one (the writer's
projects, read through the Supabase client), which threw on load in CI with
no Supabase env, so the editor never rendered. The fixture now stubs it like
publishArticle, and checks the control at every width: a ?project= that is
not the writer's is not chosen and says so; an owned one is preselected, its
sheet fits and has full-size targets, and publishing sends its id; with no
projects the control is absent. The sheet is imported directly, not through
next/dynamic, which the fixture does not provide.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 11:02:40 +01:00
CatoandClaude Fable 5.2 d0b9c8dc96 feat(companions): model picker, your own rules, memory you can write and correct, and a library, for every bot (#1706)
* fix(migrations): the vendor daily cap takes its own version, 20261112202000

#1672 and the members-only groups migration landed on main with the same
version, 20261112200000. schema_migrations.version is a primary key, so
check:migration-versions and Migration Replay failed on main and the deploy
did not run. The cap's migration had not been applied anywhere (its deploy was
the one that stopped), so it takes an unused version; nothing else changes.

Unit suite locally: 718 files, 5841 tests passed.

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

* feat(companions): walk_site, a QA hand that opens a live site in Loki's browser and says what is wrong

Cat Bot's first missing row against Grok Bot (docs/PARITY.md, plan step 1):
headless browser testing. A bot proposes walk_site with one to three full
addresses and, optionally, phrases each page must show. Loki opens each page
at phone size in its own guarded browser (bitbaum/loki #1696) and answers
per page: it loads, shows what it must, does not scroll sideways, has no
broken picture. The thread keeps Loki's own sentences; nothing is filed, and
a problem is filed with file_loki_finding.

- services/loki/site-walk.ts: the call over the signed rail, the parsing of
  what a bot names, and the lines the thread keeps. Nothing is opened
  without a full address or for more than three pages; a refusal is Loki's
  sentence; an answer that cannot be read is never reported as a walk.
- One body in LOKI_HANDS, so the Cat's card and a bot's own work loop run
  the same thing; read-only, so it can be switched to "on its own".
- Registered in cat-actions, the Loki connection, the bot's hands and their
  labels, and the chat's progress words.
- The prompt budget is raised 7,080 -> 7,230 for one clause and two
  parameter names, with the reason beside it.
- docs/PARITY.md: the row is in progress, and step 1 says what is still to
  do (the picture in the thread; a walk that clicks through a flow).

__tests__/unit/cat/loki-site-walk.test.ts. Unit suite: 730 files, 5924 tests.

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

* feat(companions): use_browser, a browser of its own for every bot; a failed page's picture in the thread

Cat Bot's computer use against Grok Bot's (docs/PARITY.md, plan step 2),
OrangeCat's half; Loki's is bitbaum/loki #1697.

A bot proposes one step at a time: open, click, type, press, scroll, back,
look, close. Loki takes the step in that bot's own Chromium (its own
cookies, kept out of the private network) and answers with what the page
now shows. The thread keeps the picture, the address, what the page says,
and what can be clicked or typed into, numbered, so a model that cannot see
pictures drives by number. Loki never types a password or a card: that step
stops and says the owner does it.

- services/loki/browser.ts: the step a bot wrote becomes the step Loki is
  asked for, or a sentence saying what is missing; nothing is sent for a
  step that cannot be one. A stopped or failed step is its sentence, never
  a success; an unreadable answer is never a page.
- Whose browser is the server's to say: hands-server stamps bot_id from the
  bot whose turn it is and drops whatever a model wrote there. The Cat,
  which is no bot, uses the person's own.
- One body in LOKI_HANDS, so a card and a bot working on its own run the
  same thing.
- walk_site now shows the picture of a page that failed.
- Prompt budget 7,230 -> 7,440, with the reason beside it. PARITY rows
  updated.

__tests__/unit/cat/loki-browser.test.ts. Unit suite: 731 files, 5935 tests.

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

* feat(companions): a model picker for a bot's chat, from the person's own key

Grok Bot has a model picker. A Cat Bot's turn used one fixed model per
provider on a person's own key and nobody could change it.

- services/ai/own-models.ts: the choices are the provider's own answer for
  that key (GET /models, which every provider this app calls directly
  serves), not a table of other companies' model names kept here. Reading
  it calls no model. An OpenRouter key lists this app's routed table; the
  shared pool has nothing to choose and says so.
- GET /api/ai-assistants/models.
- "Model" in a bot's details (ModelRow): chosen per bot on this device and
  sent with each message; a name that is not a model id never reaches a
  provider (chosenModel), and a name the provider refuses is its error.
- The own-key turn uses the chosen model; "auto" and nothing mean the
  provider's default, as before.

__tests__/unit/ai/own-models.test.ts. Unit suite: 732 files, 5942 tests.

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

* feat(companions): a person can add and correct what a bot remembers about them

The memory page could only forget. Now a person tells a bot something to
remember, and corrects a line it got wrong.

- memory.ts writeCompanionMemory: the new words are stored first (embedded
  like any other, marked source "owner", never deduplicated), and only then
  is the line they replace forgotten, so a failed save loses nothing.
- POST and PATCH on /api/ai-assistants/[id]/memories, scoped to the caller
  like the rest of the route.
- MemoryList: a field to add one, Edit beside Forget, 44px targets.

__tests__/unit/companions/memory.test.ts (three new cases).

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

* feat(companions): a bot's library: the photos, files and links from your chats with it

Grok Bot keeps a Library per chat. Nothing new is stored for this one: a
stored message already says what went with it (the attachment tags the
thread draws its chips from) and a link is in the words.

- services/companions/library.ts libraryFrom: pure; photos and files from
  the person's own lines, links from both sides (each once, its latest), a
  picture the bot's browser took shown as a picture. A tag in a bot's line
  is never read.
- GET /api/ai-assistants/[id]/library: the caller's own conversations with
  that bot; a stored photo comes back as a ten-minute link, only from the
  caller's own folder.
- /companions/[id]/library, and "Library" in the bot's details.

__tests__/unit/companions/library.test.ts.

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

* feat(companions): your own rules for your bots, checked before a bot acts on its own; your time zone

Grok Bot reviews a bot's risky actions against rules the person wrote.

- user_ai_preferences gains bot_rules and time_zone (migration
  20261113130000), one set per person.
- services/companions/rules.ts: the rules are in a bot's prompt on its
  owner's turn, with the owner's hour. A step a bot would run ON ITS OWN is
  checked against them first: one short model call that answers ALLOW or
  ASK. Only a clear ALLOW runs; ASK, anything else, or silence turns the
  step into the ordinary card with the reason in the thread. A rule can
  only add a tap. Reads and looks are not checked.
- GET/PUT /api/ai-assistants/rules; "Your rules for your bots" in a bot's
  details (RulesRow), shown to the owner.
- Memory writes moved to /memories/write (POST, PATCH): storing a memory
  embeds its words, and a file a GET lives in may not import that.

__tests__/unit/companions/rules.test.ts. Unit suite: 734 files, 5958 tests.

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

* test(live): the rehearsal sets a model, rules, a memory and reads the library on the live site

Case 8 of bots-rehearsal.live.spec.ts, as a brand-new person: the shared
pool says it picks the model; rules save as written and a time zone nobody
knows is refused; a memory is added, corrected and forgotten; the library
answers a list.

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

* fix(migrations): the bot rules constraints are added only when missing, and nothing is dropped

safety-lint refused the DROP CONSTRAINT IF EXISTS that made the two ADDs
repeatable. A DO block that adds each constraint when it is not there is
repeatable too, and drops nothing.

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

* fix(companions): the library's dates and the owner's hour are written in the app's locale

check:app-locale refused a browser-locale date in LibraryList and two
hard-coded 'en-GB' formats in rules.ts. The date is formatDate, and the
hour uses APP_LOCALE. The whole of scripts/verify.mjs passes locally.

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

* fix(diagnostics): a bot turn's failed links tell our own daily cap apart from a vendor's 429

2026-11-13 06:24 UTC, first hand on the live site: a new person's bot got
502 in 0.7 s. cat-diagnostics showed google 403, groq 429 and openrouter 429
for the hour, and could not say whether those 429s were the vendors' own
limits or OrangeCat's daily spending cap, which refuses a call as a 429 so
the chain moves on. The summary now marks a cap refusal (cap: true) and the
public report prints it as "cap".

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 08:15:13 +01:00
CatoandClaude 26c35499d6 feat(messages): the packaged Messenger — files on messages, and a Cat nobody mistakes for a person (#1688)
* feat(messages): the packaged Messenger, with files and a Cat nobody mistakes for a person

/messages is now @bitbaum/chatkit/messenger: OrangeCat keeps the transport
(routes, storage, realtime) and the words; the screen is the package's.

- The Cat is marked as an agent, with whom it answered for; the top bar says
  it is in the conversation.
- The conversation fills the phone screen: no blank band under the box.
- Photos, videos and files on a message: private bucket on R2, signed upload
  and read URLs, one policy (config/message-attachments.ts) checked in the
  browser, the route and the bucket; 1 GB a person; unsent uploads and the
  files of deleted messages are swept daily.
- Unread counts are real, and the badge follows them.

The chatkit dependency moves to the published release in the next commit,
once the package is out.

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

* chore(type-scale): hold the ground the Messenger took (7 arbitrary sizes)

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

* fix(migrations): messages_can_carry_files takes an unused timestamp

Main's identity-handover migration took 20261112120000 first.

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

* fix(migrations): messages_can_carry_files moves to 20261112235900

Main's members-only-groups migration took 20261112200000.

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

* fix: leave main's members-only references on their own migration

The timestamp rename caught two files that name main's migration
20261112200000_members_only_groups_hide_their_members.

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

* test(messages): a link to an old conversation keeps the inbox, on the Messenger's reducer

main's #1682 test drove useConversations, which this branch deletes. The same
rule is checked where it now lives: the package's reducer adds the linked
conversation and keeps the list.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 07:01:30 +01:00
CatoandClaude Opus 5.5 a888e88d29 fix: Cat searches without its server; no rental suggestions for products you use; silent dictation stays empty; sign-in shows only its own words (#1626)
* fix(ux): provider names in the Cat's footnote come from the one list; one Share Update button on the timeline

- The Cat's fallback footnote read 'answered on google': a two-entry map in
  the component knew Groq and OpenRouter only. Names now come from
  data/aiProviders, so the line reads 'answered on Google AI Studio (Gemini
  Flash Latest)' and the provider is shown for every model, not two.
- My Timeline had 'Share Update' in the header and again in the composer
  directly below it; the first only scrolled to the second. The header
  button shows only when the composer is not on the page.

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

* fix(cat): never suggest renting out a product the person uses

The owner's dashboard said 'Put your loki to work — Requests or searches on
OrangeCat mention loki … List your loki' (2026-11-12). The economic profile
had kept 'loki' as an asset because the chat talked about it, and Loki is an
account the owner connects, not something to rent out.

canSuggestAssetListing now also refuses the ecosystem's product names
(OrangeCat, Loki, Solon, bitbaum from config/ecosystem). isEligibleNudge
uses the same rule, so the card already cached on the dashboard goes too.

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

* fix: silent dictation stays empty; the sign-in page shows only its own words; two phone defects

From the package audit of 2026-11-12, the cases a person meets:

- Dictation: a silent or muted take came back as Whisper's stock filler
  ('Thank you.', 'Untertitelung des ZDF') and was typed into the message.
  The route now uses @bitbaum/ai-kit's looksLikeSilence, speechChain and
  speechConfigured; the local copy (services/ai/speech) is deleted.
- Sign-in: /auth printed the ?error= parameter as it arrived, so a link could
  put any words on OrangeCat's sign-in card. The auth routes send a code;
  the page shows fixed copy for it (auth/url-error, via accountkit's
  signInErrorKind) and never the parameter.
- Task analytics: the contribution bars filled with the track's own colour
  and could not be seen.
- Time and date fields keep the 16px floor, so iOS no longer zooms in on the
  availability editor.
- scripts/check-ai-models.mjs read pinned ids from files that moved and
  failed on every run; removed (the Cat's health report runs ai-kit's
  catalogue check).

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

* chore(deps): @bitbaum/chatkit ^0.26.0 from npm, not a pinned commit

OrangeCat installed chatkit from a git commit (6451d3b, 0.23.0), which the
package README forbids because a pinned commit never gets dependency bumps.
0.26.0 hides the microphone on a page whose Permissions-Policy refuses it
(bitbaum/chatkit#81) and brings the dictation sign-in/busy messages from
0.24. Component tests pass (84 files).

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

* fix(cat): the Cat can still look things up when its search server is down

The Cat's health report on 2026-11-12: 'No search backend answered —
searxng unreachable.' The self-hosted SearXNG was the only backend
configured, so the Cat could not look anything up at all.

@bitbaum/ai-kit 1.25.0 adds two backends that need no key or server (GDELT
news and Wikipedia). catSearchProviders puts them after the configured
chain, for the Cat's web search and its health probe alike. They are
partial indexes, so an empty answer from them is never reported as
'nothing on the web'. ai-kit ^1.24.0 -> ^1.25.0.

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

* test(cat): the search-cap guard follows the multi-line webSearch call

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

* chore(deps): chatkit 0.29.0 and ai-kit 1.24.0, the versions the canaries run; the keyless Cat search waits for its canary

The fleet rollout gate held this PR: chatkit 0.26.0 never ran on its
canaries (kivvi and causius went to 0.29.0), and ai-kit 1.25.0 has not
reached kivvi, its only canary. The speech helpers are in 1.24.0. The
keyless search backends (withKeylessFallback) come back once kivvi runs
ai-kit 1.25 or later.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 06:11:06 +01:00
CatoandClaude 45d3f8d0fc feat(public): every public page opens with one header; the visitor menu lists the header's links and a way to sign in (#1689)
* fix(nav): the visitor menu on a phone lists the header's links and a way to sign in

On a phone the public menu showed "Blog" and "Support", dropped the Product
and Ecosystem groups (items with children and no href rendered nothing),
listed the whole footer in their place (27 links, 1,681px in a 780px panel)
and offered no Sign in anywhere in the public chrome. It was a plain div: no
dialog role, no close control, and the button that opened it did not say it
was open.

- The menu lists the header's own destinations in their groups, each with the
  line that says what it is; Blog and Support get that line in the config.
  A hairline separates a group from the plain links after it.
- It ends with Sign In and Get Started as two equal cells. The footer is not
  repeated; it is on the page.
- It is a modal dialog: a close button, a dimmed page behind it, focus kept
  inside while it is open and returned to the menu button after. The menu
  button carries aria-expanded and aria-controls, and closes the menu too.
- HeaderNavigation keeps only the desktop bar and is under its size limit, so
  its exemption is removed.

Measured at 390px in both themes with the menu open: no axe violation.

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

* feat(public): every public page opens with one header

Thirty public pages each built their own first screen: titles from 24px to
60px, centred on some and left on others, an icon above one title, a pill
above another, a raised band behind a third, and six content widths. Fleet
rule "One shape per kind": siblings share one frame.

- PublicPageHeader (src/components/layout/PublicPageHeader.tsx) owns the title
  scale (30/36/48px), the lead line, the space above and below, and the
  alignment: centred for a page about OrangeCat, start-aligned for a document
  read top to bottom. An optional label above the title, small print under
  the lead line, and a slot for buttons or a short form. No icon, pill or
  band, on purpose.
- PUBLIC_PAGE_WIDTH gives a page one of two widths, reading (768px) and wide
  (1152px), in place of six.
- 26 pages and the legal document renderer use it. Titles and lead lines are
  unchanged. The shield, cat, briefcase and play icons, the bitbaum logo above
  its title and three pills are removed; "Founding supporters" and "Open
  source · MIT" stay as the label.
- Articles, a blog post and "What do you need?" set their title in the
  heading face.
- check:public-frame (in verify) fails a page under src/app/(public) that
  writes its own h1, uses PageHeading directly or wraps itself in PageLayout;
  five pages are exempt by name with the reason.
- The code samples on "Sign in with OrangeCat" and the command on "Steal the
  cat" take focus, so a keyboard can scroll them. The first section heading
  on How it works is one step smaller than the page title.

Measured on 30 pages at 390px and 1440px in light and 390px in dark: no
sideways scroll, one h1 each, no axe violation.

Docs: the audit gains a "Second batch" section with before and after images;
CHANGELOG and AGENTS.md name the frame and the gate.

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

* fix(nav): the visitor menu's id lives with the header constants

#1663 added a test that replaces MobileMenu with a stub. Header imported
VISITOR_MENU_ID from MobileMenu, so the stub took the id away and the header
threw while rendering a 404 (11 tests, after main was merged into this
branch). The id now lives in src/constants/header.ts beside the other header
constants; MobileMenu and Header both read it from there.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 22:28:33 +01:00
CatoandClaude Opus 5.5 a70f1ad61f fix(ai, companions): a strict daily cap on the platform's paid vendor calls; a bot runs on the person's own key; a failed send says the way out (#1672)
* fix(companions): a bot the shared AI tier cannot answer says so, with the way out, and the diagnostics can see it

On 2026-11-12 every bot send on the live site answered 502 for hours: one
link of the shared chain had been switched off and the free links behind it
were spent. A person read "That did not go through. Try again.", which led
nowhere, and the Cat diagnostics workflow read "0 failures", because it
counted the Cat's turns and nothing else.

- services/ai/chain-failure-summary: the sentence ("The free AI tier could
  not answer just now. Try again shortly, or add your own API key in
  Settings → AI: your bots then answer on it.") and a summary of the failed
  links as vendor and HTTP status only.
- The bot turn returns AI_ERROR with sharedPool, the route passes it on, and
  the chat shows the server's line with the "Use your own key" button, the
  same block the day's spent free messages already use.
- The turn logs the summary under companions/chat;
  scripts/diagnose-cat-logs.mjs counts those turns and their links, so the
  workflow answers "which link, which status" without printing journal text.

A person's own key is asked first and never reaches the pool, so the way out
holds whatever the pool does.

Tests: __tests__/unit/ai/chain-failure-summary.test.ts,
__tests__/unit/cat/journal-diagnostics.test.ts.

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

* fix(companions): a bot turn runs on the person's own key from any provider they can add

The failed-send sentence says "add your own API key in Settings → AI: your
bots then answer on it". A review found that false for six of the seven
providers the settings page offers: a bot turn read one key only, an
OpenRouter key marked primary. A person who added a Groq, Anthropic, OpenAI,
Together, DeepSeek or xAI key, or whose OpenRouter key was no longer the
primary, still had every bot turn sent to the shared free pool, and the
"Use your own key" button led back to the same failure.

- services/ai/own-key: the Cat's own rule. The person's valid keys in the
  order they saved them, the first one this app can call; OpenRouter keeps
  its routed client, every other provider is called at its own address with
  its default model.
- sendMessage reads that key for both the turn and the work loop's steps; a
  turn on a direct key is an own-key turn (no free allowance spent).

Tests: __tests__/unit/ai/own-key.test.ts.

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

* fix(companions): every bot path reads the person's own key the same way, and the lookup cannot reach a model

After the previous commit a second reviewer found the promise still false on
two of the three bot paths: the group chat and the routine went on reading
only a primary OpenRouter key.

- own-key.ts readOwnKey: one reader for the one-to-one turn, the group chat
  (rooms/respond, which now passes the direct key on), the routine runner
  and the routine's settings row.
- The lookup and the client are two files. The routine's settings row is a
  page load, and no GET may be able to reach a model client
  (__tests__/unit/ci/no-background-ai caught the first version of this
  commit). own-key.ts imports no client; own-key-service.ts builds one, for
  the turn alone.
- The test walks the settings form's own list of providers
  (WIRED_PROVIDER_IDS), so a provider added there without a client here
  fails it.

The whole unit suite: 686 files, 5568 tests.

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

* test(companions): the own-key test checks the provider's host exactly

CodeQL flagged a pattern on a URL without anchors (it matches other hosts
too). The test now compares the parsed hostname.

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

* feat(ai): a strict daily cap on every call the platform's own key makes at a paid vendor

The Gemini API was switched off on 2026-11-12 to stop the spend, and every
bot on the shared pool stopped answering with it. The owner's rule: a vendor
may be on only with a strict spending cap.

- supabase/migrations/20261112200000: platform_vendor_daily_calls and
  reserve_vendor_call(vendor, cap), which counts a call BEFORE it is made and
  refuses once the UTC day's cap is reached, atomically. Service role only.
- services/ai/vendor-spend-cap: the platform's Gemini key is capped at
  GEMINI_DAILY_CALL_CAP calls a day (300 when unset; 0 turns it off). A call
  is refused when the count cannot be read: unknown is never room. A refusal
  reads as a 429, so the chain moves to the next link.
- Applied on every path that calls a vendor with the platform key: the chat
  and bot clients (buildPlatformProviders), the Cat's tool loop and the
  health probe. A person's own key is never counted.

Tests: __tests__/unit/ai/vendor-spend-cap.test.ts (includes a check that every
vendor key the chain can dial on the platform's account is capped). The whole
unit suite: 691 files, 5622 tests.

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

* feat(ai): every platform-paid vendor call is capped per day, and the per-person limit refuses when it cannot read its count

An audit after the Gemini spend found the cap covered Gemini only:

- Groq, OpenRouter and Together are capped too (3000, 1000 and 300 calls a
  day unless set). They are free tiers today, but a free key bills the day
  its account is upgraded, and OpenRouter's key also serves paid models.
- Embeddings on a paid host (5000 a day; a server on this machine is not
  counted) and every web search (1000 a day) are counted before the call.
  A refused embedding falls back to keyword search; a refused search says
  "could not search".
- checkPlatformUsage (10 free messages a day per person) let every message
  through when its database check failed. It refuses now: unknown is never
  room.

Each cap is an env var (<VENDOR>_DAILY_CALL_CAP); 0 turns the vendor off.

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

* fix(auth): "Start instantly" sends the captcha token with the sign-in

A pseudonymous account gets the free daily allowance, so accounts made by a
script multiply it. The page already holds a Turnstile token for the other
sign-ins; the anonymous sign-in now sends it too. It is enforced only where
the auth server requires a captcha.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 19:08:12 +01:00
CatoandClaude 10007be8b9 fix(routing): a missing product, service, cause, loan, event or investment answers 404, not 200 (#1662)
Measured on orangecat.ch (2026-11-12, 390px, signed out, light and dark):
/products/00000000-0000-0000-0000-000000000000 answered 200 with the title
"Product Not Found", and so did the same id under /services, /causes,
/loans, /events and /investments. The same id under /assets, /wishlists,
/research, /companions and /projects answered 404. Link checkers, uptime
monitors, CDN caches and share-link validators read the status, not the HTML.

Each of the six had a loading.tsx on its [id] segment, and /events, /loans
and /investments one more on the list segment above. The skeleton streams
first, so Next.js commits 200 before PublicEntityDetailPage reaches
notFound(). Removed all nine, as #629 did for projects and profiles. /loans
and /investments are redirect-only pages and /events is a client page, so
their skeletons showed nothing a visitor needed.

audit:routes missed it because it read only the page's own source, and
these pages hand the existence check to PublicEntityDetailPage. The rule now
follows the page's direct imports (type-only imports and comments ignored),
lives in scripts/lib/soft-status.mjs so it can be tested on a fixture tree,
and allowlists the eleven signed-in dashboard owner views that render the
same component, which redirect to /auth when signed out.

Checked against a local dev server: the six URLs answered 200 with the
loading files and 404 without them, with the same title and h1.

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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 18:00:46 +01:00
CatoandClaude 1d29cb4c47 fix(a11y): text that reads in both themes, ink that follows its fill, 44px targets, Send's button above the tab bar (#1634)
* docs(agents): keep the Next.js agent-rules block as next dev writes it

next dev regenerates the block between the nextjs-agent-rules markers and
now writes its heading one level down. Committing it keeps the tree clean,
as the block itself asks.

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

* fix(a11y): text that reads in both themes, ink that follows its fill, 44px targets

A measured audit (99 pages, 390 and 1440, dark and light) found 1,729
elements under 4.5:1, text that was invisible in the default dark theme,
and 1,438 tap targets under 44px on a phone. This fixes the causes rather
than the instances, and adds a gate for each class.

Colour
- Text ramp: secondary and tertiary now clear 4.5:1 on every surface in
  both themes (tertiary alone caused 81% of the failures). Primary is
  unchanged. check:token-contrast holds 124 pairs.
- Status colours are tuned to be read as words; `bg-status-*` paints new
  fill tokens, so a danger button stays red and a warning bar stays amber.
- `text-on-public` for the band that is near-black in both themes: the
  closing banner on About, Docs, Security and Domains showed only its
  button in dark.
- Fills that flip with the theme carry `text-fg-inverted`, not white: the
  step badges on How it works, the share sheet label, the wallet stats
  header. Orange fills carry `text-on-accent`.
- `text-fg-muted` and resting alpha on copy are gone (65 lines).
  check:accent-ink now holds six ink rules, across multi-line cn() calls.
- Article and FAQ links are ink with a full-strength underline.

Structure and touch
- Footer: 44px links on touch, two columns on a phone, no duplicated
  bottom bar. check:tap-targets holds every compact height.
- Switch: 44x44 hit area, off is an outline and on is a fill; the Cat
  permission switches and expanders are named.
- One h1 on sign-in, the Cat chat, the 404 and route errors; no nested
  <main>; one home link in the header; progress bars announce a value.
- The 404 names the failed address (read in the browser only, since the
  build prerenders it once), and offers search, home and Discover.
- Entity list tabs that pointed at panels which do not exist are a
  segmented control; its selected cell has an edge in dark.

Motion and focus
- A focus outline in forced-colours mode (the ring is a box-shadow).
- Smooth scrolling only without prefers-reduced-motion, in CSS and at
  every scripted scroll (src/lib/scroll-behavior.ts).

Also
- Headings no longer auto-hyphenate ("permission-less").
- The status page drops a hard-coded "Bitcoin Integration" row that drew
  as an outage, and its headline follows the worst row shown.
- 10px text on phones is 12px.

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

* fix(a11y): say only what is held; menu rows and the last in-app orange in touched files

Review of the previous commit:
- The changelog said every text colour clears 4.5:1. Grey text and the
  status colours do, and a gate holds them; orange words elsewhere do not
  yet. The entry says the former, and keyboard and screen-reader work has
  its own line.
- AGENTS.md and the frontend rules said a status fill takes
  text-fg-inverted; the warning fill is amber in both themes and takes
  text-warning-foreground, which is what the gate enforces.
- Dropdown menu rows are 44px on touch, as select rows are.
- Pricing: the plan card and its badge are neutral; orange is the action.
- Profile claims, the Loki chip, "Read article" and the model picker's
  unlock lines are ink: they are in-app, and as text the orange is 2.1:1
  in light.

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

* fix(send): the committing button stays above the phone tab bar

MoneyActionBar stuck to the bottom of the viewport, which is where the
fixed tab bar is drawn, at a higher z-index. After choosing a person and
an amount, "Review payment" sat at y 787-831 of 844 under the bar (763-844)
and its centre hit-tested to the bar's Receive button; the same at 390x667
and 320x568.

It now sticks at the tab bar's clearance. While the software keyboard is
up the tab bar is not rendered, so the bar returns to the bottom edge and
takes the home-indicator inset itself.

Measured after, field blurred: button 707-751, bar 763-844, hit = button,
at all three sizes; keyboard open: button at the bottom edge, hit = button.

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

* fix(ci): check:broken-words opens the pages it did before

build-and-smoke was cancelled at its 25-minute limit on this branch. The
step that never finished was check:broken-words: this branch had added
seven public pages to it, 39 screens in place of 18, and it ran for 20
minutes without output before the job was stopped.

The page list is main's again. What the extra pages were there to hold,
that headings do not auto-hyphenate, is pinned by the unit test on
globals.css. AGENTS.md records the budget so the next addition is made
with it in mind.

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

* fix(a11y): the hand-over page does not nest a second main landmark

The identity hand-over page (#1609) wraps its content in <main>, and the
app shell already renders <main id="main-content"> around every route, so
the page had two. Its wrapper is a div; the heading and layout are
unchanged. Caught by the page-structure test this branch adds.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 16:43:10 +01:00
Cato 91370743da fix(oauth): BiasLens's privacy and terms on the consent screen, kept in sync by deploy (#1660)
OrangeCat's consent screen told BiasLens users the app "has not published
a privacy policy or terms with OrangeCat". BiasLens now has /privacy and
/terms (bitbaum/biaslens #206); its client spec names them.

A link in the spec reached the live row only when someone re-ran
register-client.ts on the box. The deploy's client refresh now also
brings policy_uri/tos_uri in line with the spec, for clients whose spec
names either, and only when the row differs.
2026-11-12 16:09:51 +01:00
CatoandClaude 9452bf9137 fix(pay): the pay card names the BTC amount; dark ink on Bitcoin orange; 44px pay-card controls (#1631)
Measured on orangecat.ch (iPhone 13 at 390px and 1366px, dark and light):

- A CHF-priced product's "Pay with Lightning" card read "Amount CHF 20.00
  ≈ CHF 20.00" (a service: "CHF 1,000.00 ≈ CHF 999.89"). The "≈" side went
  through formatAmountBtc, which renders in the viewer's display currency, so
  the BTC figure a Lightning-address payer must type was nowhere on the card,
  and a lightning: URI cannot carry it. It now reads "CHF 20.00 ≈ ₿0.00032655"
  (the Details card's figure) and, for a Lightning address, "enter CHF 20.00
  (0.00032655 BTC) when prompted", the line open amounts already had. A
  BTC-priced booking gets the same BTC figure. The row wraps with a gap
  instead of running "AmountCHF 20.00" together at 1366.
- "Open in wallet" and "Send with Wallet" were white on Bitcoin orange,
  2.30:1. Now text-on-accent, 8.02:1. check:accent-ink only read
  bg-accent-warm, the same colour under its other name, so it now reads a
  solid bg-bitcoinOrange too (tints such as /10 excepted), and the ten
  labels it then found are text-on-accent.
- Share 97x38, Copy receiving address 308x38, "Sign in to track your order"
  147x15, the wallet "Copy" 46x16 and the unclaimed band's "@cato" 43x17 are
  now 44px tall. The inline links use -my-3 inline-flex min-h-11, as the
  project owner link does, so their lines do not grow.

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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 11:26:36 +01:00
CatoandClaude 67fb153499 fix(privacy): no owner email, password or email-derived handle in public pages or the repo (#1621)
This repository is public, and it carried the owner's sign-in email in
nine ad-hoc test scripts, an e2e spec and three docs, with the account
password beside it in most of them. The scripts and the spec now read
E2E_USER_EMAIL / E2E_USER_PASSWORD (the names the CI secrets already
use); the browser-console script prompts; the docs say where the
credentials live instead of what they are. Removing them from the tree
does not remove them from history: the password has to be changed.

Two old handles that were plus-addressed aliases of the owner's email
were also quoted in code comments and test fixtures (now neutral
examples), and in the text of a public project update on the OrangeCat
project, where the mention renderer linked one to a profile that 404s.
A migration rewrites any `<local part>+ocauth<N>` alias in timeline
titles and descriptions to "an old test account". It matches the
shape, never a name; run twice against a scratch Postgres 16 it changed
only those rows, left ordinary plus-addresses alone, and was a no-op
the second time.

Applied migrations and .mailmap are untouched: migrations are immutable
once applied, and .mailmap is what makes git show those commit emails
as Cato.

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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 07:29:52 +01:00
CatoandClaude Fable 5.2 bcdedd89ea fix(cat): say when the shared models are back; retire the dead default model; community tabs fit a phone (#1598)
* fix(cat): say when the shared models are back; retire the dead default model; community tabs fit a phone

A new account's first message to the Cat failed down the whole provider
chain on production (2026-11-11) and the screen said 'usually momentary'.
The shared daily pool was spent and the refusal had already named when it
returns.

- cat: a failed turn on the shared models names the wait when the pool's
  return is known (allProvidersDownMessage, getGroqDailyPoolReturnsAt)
- models: nvidia/nemotron-3-super-120b-a12b:free left OpenRouter's free
  catalogue and was the default, so every free-pool turn began with a 404.
  Marked unavailable; its live successor in the same family is the default
- community: the sort order is the shared SegmentedControl on its own row
  on a phone; the three chips ran under the title and off a 390px screen
- dashboard: an account with no name is greeted 'Welcome', not 'Welcome back'

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

* fix(deps): bitcoinjs-lib 6.1.10, clearing the critical merkle advisory

GHSA-8vv3-6qpc-gpw6 (undetected merkle node duplication, <6.1.8) made the
security job fail on every pull request. 6.1.10 is the patched 6.x line;
address derivation is its only use here and its tests pass unchanged.
pnpm also sorted three @bitbaum entries into place in package.json.

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

* fix(cat): the wait is the provider's word, not a promise

The daily limit is a rolling window. Measured on production the same
morning: the named wait passed and the pool was spent again at once.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-11 08:51:12 +01:00
CatoandClaude 8b31fd2c45 chore(deps): bip-kit, limitkit and threadkit from the @bitbaum scope (#1574)
Owner, 2026-11-06: the fleet's packages belong under the @bitbaum npm
organization (fleet docs/package-scope-migration-plan.md). Same code and
versions, now published as @bitbaum/bip-kit 0.6.1, @bitbaum/limitkit 0.2.1 and
@bitbaum/threadkit 0.1.1. Dependency keys, import specifiers and release-age
exclusions moved with scripts/packages/rename-package.mjs from fleet; prose and
the generated rules block are untouched.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 11:04:08 +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
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
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 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 702d5593de fix(cat): preserve failed turns and expose safe diagnostics (#1543) 2026-11-04 14:52:20 +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 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 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 fa09bc6a4f docs(agents): fold CLAUDE.md and .claude/CLAUDE.md into AGENTS.md (#1472)
Both CLAUDE.md files now only point at AGENTS.md, the fleet's one
agent-file shape (bitbaum/fleet scripts/ci/agent-rules.mjs). What was
still true moves into AGENTS.md: the principles and the entity test, the
shipping hand-offs (re-arm, post-main), the self-hosted Supabase read and
migration path, the design tiers and the one-orange rule, and the money
surface as the reference for one shape per kind. Every named path,
script, workflow key and component was checked against the tree.

Dropped as stale or copied:
- `.claude/CLAUDE.md` still listed the warm accent as `#ff5c00`; the root
  file and globals.css say it is gone (accent = Bitcoin orange).
- a machine-specific project path, the duplicated stack table and the
  `.claude/rules` restatements (those files remain).

Docs and comments that sent readers to CLAUDE.md for "Shipping" or the
principles now point at the AGENTS.md sections.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 10:57:51 +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
Cato 741e908057 fix(deploy): stage and verify public package artifact receipts (#1456) 2026-10-27 23:12:21 +01:00
CatoandClaude eb9b3149fc fix(ci): the E2E fixture no longer signs other runs out, and a dropped request is retried (#1454)
ensure-e2e-fixtures rewrote the shared user's password on every run. GoTrue
ends a user's other sessions on a password change, and every CI run (each PR,
each push) uses the same account, so one run's bootstrap signed another run's
browser out partway: check:broken-words opened /dashboard/cat, /receive and
/send@320 and then 'bounced to sign-in' for the rest (PR run 40504618122, 6.5
minutes instead of 1). The password is now written only when the user does not
already sign in with it.

refresh-e2e-reset-tokens failed main's CI (run 40450576245) on one dropped
request (AuthRetryableFetchError, status 0). A request with no answer is now
retried up to three times; a real refusal is not.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-27 22:18:14 +01:00
Cato 658883af58 fix(integrations): restore identity choices and recoverable controls (#1421)
* fix(integrations): restore identities and recoverable permission controls

* fix(integrations): use patched URI validation
2026-10-24 02:12:24 +02:00
CatoandClaude Sonnet 5.5 f2fd9e33f2 chore(chatkit): the broken-word audit runs on the Cat and money surfaces (#1411)
* chore(chatkit): the broken-word audit runs on the Cat and money surfaces

check:broken-words opens the landing page, /pay/<username>, the Cat chat and
the money surface (/receive, /send, /requests) in Chromium at 320/390/1440 and
fails on any word drawn across two lines, measured by findBrokenWords from
@bitbaum/chatkit/audit (chatkit ^0.13 -> ^0.14.2). CI runs it against the
standalone build; signed-in pages open with the E2E credentials and are named
as not opened, never passed, without them.

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

* chore(ci): hand the word audit to Playwright as a function, not source text

CodeQL read page.evaluate on a string as code injection (2 high alerts on
this PR). findBrokenWords is self-contained, so Playwright can serialise it
itself.

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

* chore(ci): the word audit takes no path or URL from the environment unchecked

BASE_URL is parsed to its origin, PAY_USERNAME must look like a handle, and
screenshots are named by page index instead of by the page path. Aimed at the
two CodeQL path/URL alerts on this PR.

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-23 18:17:01 +02:00
Cato ee8a955e4f fix(cat): open writing suggestions and keep passive memory useful (#1401) 2026-10-22 21:21:21 +02:00
Cato 372e4ebba8 Repair messaging interactions, mobile submit taps and session hydration (#1389)
* Refactor dashboard and activity layout and correct derived state

* Repair messaging interactions, session hydration and shared form controls

* Preserve mobile submit taps and isolate release login sessions
2026-10-22 18:48:12 +02:00
Cato 9e17bed51e Unify Cat branding, refresh install icons, and restore mobile writing choices (#1384)
* Restore article discovery and refactor the header create menu

* Unify Cat branding and refresh installed icons; restore mobile creation choices

* Use the canonical Cat mark across remaining app and public surfaces

* Load the current app shell on launch and keep cached navigation for offline use
2026-10-22 03:30:58 +02:00
CatoandClaude ed65865a06 feat(money): one payment surface — a scannable code, every way to be paid, one Send field (#1372)
Receive opens on what the bottom bar's QR icon promises: a QR of the pay
link with the owner's name on it, the link under it, Copy link · Share as
two equal cells, and "Add an amount" that the code and the link then
carry. Under it, every way the account is paid, as one list: Bitcoin first
(the Lightning name and the wallet it lands in), then any other app the
owner adds — Twint, PayPal, Revolut, Cash App, Venmo, Wise, a bank, a link.
OrangeCat is currency-agnostic by principle; this is the first surface that
is.

- payment_methods table + registry (src/config/payment-methods.ts) + domain
  service + /api/payment-methods. Handles are normalised per method (an
  IBAN passes mod-97, a pasted paypal.me link becomes the name).
- /pay/<username> shows the other ways under the Bitcoin flow, each with
  the one action its service has: open with the amount filled in when the
  service takes that currency, or copy. A page with no Bitcoin wallet but a
  Twint number is still payable. These settle outside OrangeCat and the
  copy says so.
- Send is one field: username, Lightning address, invoice, or a scanned
  code — someone's Receive QR included, amount prefilled. The person /
  invoice tab row is gone.
- Receive, Send and Request share one frame (MoneyPage lost its icon prop
  on purpose); in-app actions are monochrome primary; the note is a button
  that says "Add a note"; amount suggestions are four equal cells.
- Design discipline written down: CLAUDE.md → "Design discipline: one
  shape per kind" (instances, gates, pre-PR checklist), pointing at the
  fleet-wide rule. New gate check:choice-rows fails a wrapping box of
  choices; it found two (weekday picker, help-wanted tags), both fixed.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-21 06:49:12 +02:00
CatoandClaude Fable 5.1 cbf8296b92 feat(oauth): an app may list a service in your name — the fee of a builder booked through Loki (#1366)
* feat(oauth): an app may list a service in your name; the fee of a builder booked through Loki

Track 3 of Loki's docs/master-plan-2026-10.md, the OrangeCat half: a builder
booked on someone's project is paid through a service in the builder's own
name, listed by Loki with the builder's token, paid to the builder's wallet.

- `service.write` scope, sensitive, on the consent screen like timeline.write.
  Loki's ceiling carries it; every other client stays identity-only.
- CLIENT_SPECS moves to scripts/oauth/client-specs.ts (pure) so two readers
  share it: register-client.ts by hand, and the deploy, which now refreshes the
  scope ceiling of every REGISTERED client right after the migrations
  (client-scopes-sql.ts → box psql). It creates nothing: a missing client is
  still registered by hand, where its secret is printed once. A scope widened
  in the code used to reach the live sign-in only when someone re-ran the
  registration on the box.
- createService honours a validated `active` status (a fee Loki lists has
  nobody to press Publish); paused/unavailable still cannot be created.
- The settled-payment signal to Loki fires for a service bought outright, not
  only for project funding, so the booking is marked paid from the payment.
- product, service, cause and document creates carry the resolved actor
  (withResolvedActor): a type argument on createEntity<Row>( had hidden these
  four from the check that pins the carrier; the check now sees past it.

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

* fix(ci): align the playwright CLI with @playwright/test so the browser install matches

#1362 bumped @playwright/test to 1.64.1 and left `playwright` at 1.62.1, so
`pnpm exec playwright install chromium` fetched 1.62.1's browser while the
test runner looked for 1.64.1's headless shell (1248): build-and-smoke has
been red on main since, and on every PR. One package, one version.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-20 13:07:41 +02:00
CatoandClaude Opus 5.5 24c3d140ae docs: archive point-in-time records, fix live docs against the tree (#1349)
* docs: archive point-in-time records, drop broken guide symlinks

Status reports, progress trackers, audits, session summaries, completed
migration plans and the 2025 roadmap move to docs/archive/ (same relative
path), with a README saying they describe the day they were written.
.ai-guides/ held only symlinks into a docs/guides/ai/ that no longer
exists, tests/unit/docs/ held a stray copy of an old getting-started page,
and docs/operations/PORT_MANAGEMENT_README.md duplicated port-management.md;
all three are deleted.

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

* docs: correct drifted paths, links and versions in current docs

Fix in place the reference docs agents use: point paths at where the code
lives now (src/stores/auth.ts, src/lib/supabase/*, scripts/dev/*,
docs/reference/api/CONVENTIONS.md, the squashed baseline migration),
rewrite the development, features, operations and API index pages to list
documents that exist, say plainly where something is gone (/api/metrics,
the CSP report route, .envrc in the repo, Loki's `migrate` script), and
correct the Next.js major. docs-truth findings: 468 -> 2 (both "Next 30/90
Days" headings in the legal overview, a checker false positive).

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 14:09:06 +02:00
CatoandClaude Opus 5.5 b774f06de7 docs: correct drift in agent instructions, README and ops docs (#1348)
* docs: correct drift in agent instructions, README and ops docs

- Auto-merge sweep lives in bitbaum/fleet, not bitbaum/dotfiles; cd.yml is
  dispatch-only (handed off by ci.yml post-main), not a workflow_run listener
- Design-system docs match globals.css / tailwind.config.ts: warm accent
  #ff5c00, bg-bitcoinOrange (no bitcoin-orange utility), tiffany/orange are
  legacy; display typography is shipped
- .claude rules: real paths (src/lib/validation/, entityCrudHandler.ts,
  standardResponse.ts, withZod/withRateLimit/withRequestId, services/actors),
  real Button/Alert APIs, real rate limits, search via @bitbaum/searchkit,
  real payment modules, PostgREST instead of the POSTGRES_URL tunnel,
  lint-staged pre-commit, eslint.config.mjs
- README/AGENTS/REVIEW: Next 16 / TS 6 / Tailwind 4, pnpm, messaging is not
  E2E-encrypted yet, beta not Live, CD deploys, migrations apply on deploy
- docs/: deploy process, CI/CD, migrations guide, moved docs/ paths, stale
  CLI-entity and edge-function docs flagged

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

* style(docs): prettier on the docs touched by the drift fix

lint-staged would have run this; the commit was made without hooks.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 12:07:09 +02:00