mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-06 01:27:43 +01:00
fix/responsive-auth-load-wait
3373
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
0fe6d7e567 | Report safe sign-in lifecycle metadata when responsive checks fail | ||
|
|
8094d1ab06 | Wait for authenticated DOM before responsive layout checks | ||
|
|
a8023c4f9e | Resolve the live free catalogue before building Cat fallback chains (#1557) | ||
|
|
ce4c1e64d2 | Honor temporary chat and memory consent for economic learning (#1556) | ||
|
|
702d5593de | fix(cat): preserve failed turns and expose safe diagnostics (#1543) | ||
|
|
59d6b2a49f |
refactor(ux): groups and events empty states use the shared EmptyState with an explanation (#1553)
Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
0b115fd7e8 |
fix(sidebar): avatar keeps its square size inside the profile link (#1552)
Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
49290ffe92 |
feat(messages): Ask Cat button + @cat hint in the conversation composer (#1551)
Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
830fdf2d5a |
docs: site audit matrix + 2026-11-04 handoff (#1550)
* docs: living site audit (works/broken matrix) * docs: handoff for 2026-11-04 site-fix sweep * docs: handoff status after #1544/#1545/#1547 verified live --------- Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
705056ac9f |
fix(messages): members can see each other's read state, so read receipts show (#1549)
Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
60abf17efd |
fix(messages): New message picker hides placeholder accounts, offers Talk to Cat; explanatory empty state (#1548)
Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
0476edee6d |
fix(ux): project Contact no longer lands on /messages?id=undefined; shared Cat composer on My things; Collaborate empty state (#1546)
* fix(ux): project Contact opens the conversation, My things uses the shared Cat composer, Collaborate empty state has an action * refactor: collaborate empty state in its own component (size limit) --------- Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
1b64f443b9 |
fix(profile): uploads work, Cat on the profile editor, sidebar name opens your profile (#1544)
* fix(profile): avatar/banner uploads, Cat on profile editor, sidebar name opens your profile * fix(profile): avatar/banner uploads, Cat on profile editor, sidebar name opens your profile * test: sidebar avatar links to profile; ci: supabase CLI renamed [inbucket] to [local_smtp] --------- Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
c08d33ed7b |
fix(timeline): composer shows on an empty timeline (#1547)
Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
875bf4ed15 |
fix(cat): publishing a Cat service draft sends hourly_rate/fixed_price, shows the real validation message (#1545)
Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
df69c22ec2 |
chore(deps): raise shared package floors to published versions (#1541)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid> |
||
|
|
c3ffe478ea | fix(cat): make permissions atomic and recovery reflect availability (#1542) | ||
|
|
bb88fde042 | blog: BiasLens one-loop concept (#1540) | ||
|
|
8172121e7d | Enable Cat to manage project investor rooms (#1538) | ||
|
|
ef3808cdca |
chore(deps): raise shared package floors to published versions (#1539)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid> |
||
|
|
e80bfd3858 |
chore(deps): raise shared package floors to published versions (#1537)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid> |
||
|
|
d5324bfb98 |
fix(fonts): load Inter, Space Grotesk and IBM Plex Mono from @bitbaum/design-tokens (#1536)
* fix(fonts): load Inter, Space Grotesk and IBM Plex Mono from @bitbaum/design-tokens src/fonts held our own copy of the faces. The same files, byte for byte (Google's hinted latin subsets), now ship in @bitbaum/design-tokens 1.4.0 for every fleet app, so the copy goes and src/app/fonts.ts is the next/font/local module the package's design-tokens-next-fonts command writes (hinting=on, latin, as before). The exports keep their names (inter, spaceGrotesk, ibmPlexMono), so the family names, --font-inter, --font-heading and --font-mono, weights and preloads are unchanged. The command has no `fallback` key, so the system stack that --font-inter carried after the face moves into Tailwind's font-sans, the one place that used --font-inter alone; font-heading, font-mono and longform.css already list their own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 * chore(deps): lock design-tokens 1.4.0 as the canary deployed it The rollout gate compares locked artifacts. biaslens (the canary), hirnli, loki and s-ink lock 1.4.0 as its verified commit, github:bitbaum/design-tokens#8b82acc, the form the fleet's floor-raising PRs write, so a registry `^1.4.0` here never matched the canary's deployed artifact. Same files: the five faces this uses are identical (SHA-256). With the git ref the release-age exclusion is no longer needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 * chore(deps): lock design-tokens 1.4.0 from the registry, as the canary now does biaslens#176 moved the canary from the verified commit to the published ^1.4.0, so the rollout gate now compares against the registry artifact. Same five files (SHA-256). 1.4.0 is inside pnpm's release-age window, so it gets the exclusion entry other fleet apps use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
2fd59ba75b |
chore(deps): raise shared package floors to published versions (#1535)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid> |
||
|
|
74407e8606 |
chore(deps): raise shared package floors to published versions (#1534)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid> |
||
|
|
84ee58abe4 |
chore(deps): raise shared package floors to published versions (#1532)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid> |
||
|
|
a5e485d6f3 |
chore(deps): raise shared package floors to published versions (#1531)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid> |
||
|
|
f65d12a23e |
fix(cat): preserve live-data answers and expose investor-room navigation (#1530)
* fix(cat): ground investor-room navigation and exercise real conversations * fix(cat): ground replies in completed live-data tool results |
||
|
|
f70514d4ee |
chore(deps): raise shared package floors to published versions (#1529)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid> |
||
|
|
dfc1c1a49e |
chore(deps): raise shared package floors to published versions (#1528)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid> |
||
|
|
0c293c7951 |
docs(changelog): the jump button, full-screen bot chats, the fleet line, Diplodoctor asking first (#1527)
What shipped on 2026-11-01 in #1515, #1518 and #1522 (chatkit 0.22.1), and in Diplodoctor's answers here (#69-#73 there), from the reader's side. Claude-Session: https://claude.ai/code/session_019MDtms1H9g9uu7AdDgJzLQ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
81942ce023 |
feat(bots): the owner's routines reach his Telegram, through Loki (#1526)
* feat(bots): a bot writes first, on the person's own key A person can tell one of their bots to write first, every day at a time they pick, with a prompt they wrote. The run happens on the person's own OpenRouter key only; without a key the routine is kept, shown as waiting, and skipped with the reason, so no platform key is ever spent by a timer (fleet standing rule 2026-09-25). - companion_routines table (one per person per bot, owner-only RLS), routines-store (time validation, next run in the person's zone) and the runner behind a cron route + 15-minute systemd timer, registered as a person-asked timer in the no-background-ai gate with a marker check. - GET/PUT/DELETE /api/ai-assistants/[id]/routine for the owner. - RoutineRow in a bot's own chat: "Writes first, every day", time and prompt inline, a line to Settings when a key is missing. - Hands: the proposal line names what will be set up, never only "Sure"; a created event's outcome carries its link. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): a bot can ask Loki, as the person — the first connector ask_loki: a Cat action (communication, low risk, confirmed) in the hands launch set. The bot relays a question over the signed OrangeCat → Loki rail to Loki's POST /api/orangecat/ask, which runs a read-only turn as the Loki user linked to the actor; Loki's own sentence is the outcome the person reads, and a refusal (no linked account, a spent budget) is relayed as written. A relayed question can never dispatch, approve or spend: that stays with send_task_to_loki, and the two verbs name each other so a question is never dispatched as a task. ADR-0013: D6 first connector and D7 recorded as shipped. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the routine's day-in-zone comes from the timezone helper check:app-locale (new on main) refuses a literal locale handed to Intl; the routine's next-run computation now takes the day in the person's zone from instantToWallTime, the one rendering the app already trusts. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the chip knows the verb of ask_loki The tool-label table of leading verbs gains ask → Asking / Asked, so the chip for a bot's question to Loki never falls back to the generic label. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(cat): a failed "Do it?" card shows the server's sentence, not [object Object] The confirm and reject hook handed the API's error envelope (an object) to new Error(), so every failed action read "[object Object]". Seen live the first time a bot asked Loki for an account not linked to Loki: Loki's sentence naming the one step was on the action row and lost on the card. The hook, the memory import and the interests list now read the message through apiErrorMessage, the reader written for exactly this. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a bot keeps offering its hands on a repeat ask Live on 2026-11-01 the second "Ask Loki" in one thread came back as "I can ask Loki for you." with no fence and no "Do it?" card. The proposal fence is taken off a reply before it is stored, so the model saw its own earlier offers as plain sentences and copied them. - The queued proposal is kept in the assistant message's metadata. - The history given to the model writes the fence back onto those turns (withProposal), so a proposal in the history looks like one. - proposeFromReply returns the proposal as queued; hands tests cover the round trip and metadata reading. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a proposal is a worked example, and a bare block still becomes a card Live on 2026-11-01 a fresh bot's first "Ask Loki" came back as "Here's the query I'll send to Loki:" over a json fence holding {"question": "..."}: the free-tier model copied the template's inner half and left out the action, so the person saw code and no card. - The hands section ends with a complete block for a real offered action, required fields filled with their own names, instead of a template with <id> and {...}; it says the block is the proposal itself and to write no other code block. - extractProposal reads a propose, json or untagged fence at the end; a block with fields but no "action" names the one offered action that owns every field and has its required ones present; a propose fence that said nothing usable comes off so it is never shown as code. - Tests for the example, the lenient read, the inference and its refusals. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): a failed "Do it?" card is finished, a second card starts clean, no empty bubble Seen live on 2026-11-01 (fresh thread, two asks of Loki): - a card whose action ran and failed kept Confirm/Reject under the reason; the reason is now the outcome line, as a success would be - the second card in the thread showed the first card's failure line inside it: the card is keyed by its action - a model that wrote only the block left an empty bubble above the card: the card's description stands in for the words, and ask_loki is described as the question ("Ask Loki: ...") rather than "Execute Ask Loki" Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * test(bots): the five demos as one live rehearsal, run by a person tests/e2e/bots-rehearsal.live.spec.ts walks the live site as a brand-new person (a pseudonymous account minted at the start, no fixture secret): one door, the shelf and a real letter, a group with two specialists in their lanes, an event proposed and created from a "Do it?" card, Loki asked twice with an honest outcome and a clean second card, a routine set and stopped, and the API edges. Every assertion names the value it protects. The Live rehearsal workflow runs it on workflow_dispatch only and keeps the screenshots; it has no schedule, because a free-tier key is spent only when a person asks (fleet rule 2026-09-25). docs/testing/live-rehearsal.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): what a bot did stays in the thread A "Do it?" card's outcome lived only in the slot above the composer: it left the screen when a second card arrived and was gone on reload (seen live 2026-11-01). The confirm route now records the outcome as a line of the bot conversation the card came from (services/companions/outcomes.ts): the handler's own sentence with its page, or the reason it failed. The chat re-reads the thread after the tap, so the line shows where it was asked for, and the bot's next turn knows what happened. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * test(bots): the rehearsal retries a gateway error once Seen 2026-11-01 at 16:50Z: the first post-deploy rehearsal passed six of seven and failed the routine step on one PUT that answered 502, because another merge (#1515) was rolling out at that second; the same call answered 400 a minute later. An API call in the rehearsal now retries once after five seconds on 502/503/504 and logs that it did; two in a row stay a failure. Documented in docs/testing/live-rehearsal.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): picked faces, fleet openings, chats keep the screen From a look at the live site at 390px on 2026-11-01: - every picked bot face rendered as a black circle: the avatar route was force-static, so it was built with no query and served the first shape in the first colour for every address. The route is dynamic again (still cached a year by its header), and Face draws our own faces inline from parseFaceUrl, so no request and no stale cache can lose them. - fleet bots opened with one word and a link; FLEET_BOTS carries an opening line and three starters per bot. - Loki's feedback launcher floated over the last message and a Confirm card; full-screen chats ask for its edge tab (data-fc-place="tab", routeChrome). - the Cat greeted by a minted handle; greetingFor skips it. - the disclosure says "an AI, not a person". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): a shelf bot you already have opens instead of a second copy Seen live on 2026-11-01: tapping "Writing Partner" on the shelf twice made two bots, and the list showed two "Writing Partner" rows told apart only by their times. The sheet now gets the list's bots; ownedShelfBot finds the one the person made from that entry (theirs, name and job unchanged), the row says "Open", and a tap opens it. A renamed copy is the person's own bot, so the shelf still makes a new one beside it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): the owner's routines reach his Telegram, through Loki The owner, 2026-11-02: Telegram is "the way for any bot of mine to contact me". A routine's message (a bot that writes first) now also goes through notifyOwnerViaLoki: the bot's name, the reply, one "Open the chat" button, urgency "today" (silent), keyed per routine per day so it is one message. Loki's gateway speaks only to its operator, so this is a no-op for everyone else, who keep OrangeCat's in-app notification. routineNotice is pure and tested against the wire body Loki accepts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
69dc8e911e |
fix(cat): the owner's phone gets a brief only when there is something to tap (#1525)
"Daily brief: 33 unread notifications. Ask your Cat for details" reached the owner's Telegram on 2026-11-02 — a count with nothing to act on. The brief's facts are now collected once (collectBriefFacts); the in-app line is unchanged, and ownerBriefNotice sends the owner a notice only for an overdue task, an upcoming booking or a sale, with the button that opens it. Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
25ec4c3f6a |
feat(notify): OrangeCat's bots reach the owner through Loki's one gateway (#1524)
* feat(notify): OrangeCat's bots reach the owner through Loki's one gateway The owner wants Telegram to be the way any of his bots reaches him, and only with a one-tap action. Loki now owns that contract (loki src/lib/notify/policy.ts); OrangeCat hands it the owner's news over the existing signed rail instead of keeping it in-app only. - services/loki/notify-owner.ts: posts the owner's notices (only when the recipient IS the owner, OPS_NOTIFY_USER_ID) to /api/orangecat/notify. - The Cat's daily brief and fired watches go there with "Open the Cat". - Ops alerts go there with no button, so they land in Loki's list and never ring the phone. - uptime.yml: the outage message carries "Run Box doctor"; the recovery message is gone (nothing to do). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN * chore(env): list LOKI_NOTIFY_URL in .env.example Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtzUbLhg3oqt4X1NaN --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
b33230a694 |
chore(deps): chatkit 0.22.1 — the jump button goes once you are back at the bottom (#1522)
0.22.1 fixes the Diplodoctor chat on Android: scrolling back down by hand left the jump-to-latest button over the reply chips, with nowhere to jump (a finger's lift-off wobble paused following). It also tells every model that chips under a question answer it. The floor-raising sweep at 20:31 left this app on 0.22.0. Checked on the talk page at 390px with real touch: read up, tap the button, it lands at the latest message; scroll back down by hand with a 2px lift-off wobble, the button is gone. Claude-Session: https://claude.ai/code/session_019MDtms1H9g9uu7AdDgJzLQ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
c478f70c04 |
chore(deps): raise shared package floors to published versions (#1521)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid> |
||
|
|
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> |
||
|
|
56f8e9340a |
fix(bots): picked faces, fleet openings, chats keep the screen, no duplicate shelf bots (#1520)
* feat(bots): a bot writes first, on the person's own key A person can tell one of their bots to write first, every day at a time they pick, with a prompt they wrote. The run happens on the person's own OpenRouter key only; without a key the routine is kept, shown as waiting, and skipped with the reason, so no platform key is ever spent by a timer (fleet standing rule 2026-09-25). - companion_routines table (one per person per bot, owner-only RLS), routines-store (time validation, next run in the person's zone) and the runner behind a cron route + 15-minute systemd timer, registered as a person-asked timer in the no-background-ai gate with a marker check. - GET/PUT/DELETE /api/ai-assistants/[id]/routine for the owner. - RoutineRow in a bot's own chat: "Writes first, every day", time and prompt inline, a line to Settings when a key is missing. - Hands: the proposal line names what will be set up, never only "Sure"; a created event's outcome carries its link. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): a bot can ask Loki, as the person — the first connector ask_loki: a Cat action (communication, low risk, confirmed) in the hands launch set. The bot relays a question over the signed OrangeCat → Loki rail to Loki's POST /api/orangecat/ask, which runs a read-only turn as the Loki user linked to the actor; Loki's own sentence is the outcome the person reads, and a refusal (no linked account, a spent budget) is relayed as written. A relayed question can never dispatch, approve or spend: that stays with send_task_to_loki, and the two verbs name each other so a question is never dispatched as a task. ADR-0013: D6 first connector and D7 recorded as shipped. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the routine's day-in-zone comes from the timezone helper check:app-locale (new on main) refuses a literal locale handed to Intl; the routine's next-run computation now takes the day in the person's zone from instantToWallTime, the one rendering the app already trusts. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the chip knows the verb of ask_loki The tool-label table of leading verbs gains ask → Asking / Asked, so the chip for a bot's question to Loki never falls back to the generic label. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(cat): a failed "Do it?" card shows the server's sentence, not [object Object] The confirm and reject hook handed the API's error envelope (an object) to new Error(), so every failed action read "[object Object]". Seen live the first time a bot asked Loki for an account not linked to Loki: Loki's sentence naming the one step was on the action row and lost on the card. The hook, the memory import and the interests list now read the message through apiErrorMessage, the reader written for exactly this. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a bot keeps offering its hands on a repeat ask Live on 2026-11-01 the second "Ask Loki" in one thread came back as "I can ask Loki for you." with no fence and no "Do it?" card. The proposal fence is taken off a reply before it is stored, so the model saw its own earlier offers as plain sentences and copied them. - The queued proposal is kept in the assistant message's metadata. - The history given to the model writes the fence back onto those turns (withProposal), so a proposal in the history looks like one. - proposeFromReply returns the proposal as queued; hands tests cover the round trip and metadata reading. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a proposal is a worked example, and a bare block still becomes a card Live on 2026-11-01 a fresh bot's first "Ask Loki" came back as "Here's the query I'll send to Loki:" over a json fence holding {"question": "..."}: the free-tier model copied the template's inner half and left out the action, so the person saw code and no card. - The hands section ends with a complete block for a real offered action, required fields filled with their own names, instead of a template with <id> and {...}; it says the block is the proposal itself and to write no other code block. - extractProposal reads a propose, json or untagged fence at the end; a block with fields but no "action" names the one offered action that owns every field and has its required ones present; a propose fence that said nothing usable comes off so it is never shown as code. - Tests for the example, the lenient read, the inference and its refusals. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): a failed "Do it?" card is finished, a second card starts clean, no empty bubble Seen live on 2026-11-01 (fresh thread, two asks of Loki): - a card whose action ran and failed kept Confirm/Reject under the reason; the reason is now the outcome line, as a success would be - the second card in the thread showed the first card's failure line inside it: the card is keyed by its action - a model that wrote only the block left an empty bubble above the card: the card's description stands in for the words, and ask_loki is described as the question ("Ask Loki: ...") rather than "Execute Ask Loki" Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * test(bots): the five demos as one live rehearsal, run by a person tests/e2e/bots-rehearsal.live.spec.ts walks the live site as a brand-new person (a pseudonymous account minted at the start, no fixture secret): one door, the shelf and a real letter, a group with two specialists in their lanes, an event proposed and created from a "Do it?" card, Loki asked twice with an honest outcome and a clean second card, a routine set and stopped, and the API edges. Every assertion names the value it protects. The Live rehearsal workflow runs it on workflow_dispatch only and keeps the screenshots; it has no schedule, because a free-tier key is spent only when a person asks (fleet rule 2026-09-25). docs/testing/live-rehearsal.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): what a bot did stays in the thread A "Do it?" card's outcome lived only in the slot above the composer: it left the screen when a second card arrived and was gone on reload (seen live 2026-11-01). The confirm route now records the outcome as a line of the bot conversation the card came from (services/companions/outcomes.ts): the handler's own sentence with its page, or the reason it failed. The chat re-reads the thread after the tap, so the line shows where it was asked for, and the bot's next turn knows what happened. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * test(bots): the rehearsal retries a gateway error once Seen 2026-11-01 at 16:50Z: the first post-deploy rehearsal passed six of seven and failed the routine step on one PUT that answered 502, because another merge (#1515) was rolling out at that second; the same call answered 400 a minute later. An API call in the rehearsal now retries once after five seconds on 502/503/504 and logs that it did; two in a row stay a failure. Documented in docs/testing/live-rehearsal.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): picked faces, fleet openings, chats keep the screen From a look at the live site at 390px on 2026-11-01: - every picked bot face rendered as a black circle: the avatar route was force-static, so it was built with no query and served the first shape in the first colour for every address. The route is dynamic again (still cached a year by its header), and Face draws our own faces inline from parseFaceUrl, so no request and no stale cache can lose them. - fleet bots opened with one word and a link; FLEET_BOTS carries an opening line and three starters per bot. - Loki's feedback launcher floated over the last message and a Confirm card; full-screen chats ask for its edge tab (data-fc-place="tab", routeChrome). - the Cat greeted by a minted handle; greetingFor skips it. - the disclosure says "an AI, not a person". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): a shelf bot you already have opens instead of a second copy Seen live on 2026-11-01: tapping "Writing Partner" on the shelf twice made two bots, and the list showed two "Writing Partner" rows told apart only by their times. The sheet now gets the list's bots; ownedShelfBot finds the one the person made from that entry (theirs, name and job unchanged), the row says "Open", and a tap opens it. A renamed copy is the person's own bot, so the shelf still makes a new one beside it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
67762f34f3 |
chore(deps): raise shared package floors to published versions (#1519)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid> |
||
|
|
a3f088eabf |
chore(deps): raise shared package floors to published versions (#1511)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid> |
||
|
|
1fab45a57d |
feat(bots): an open bot chat is the whole phone screen, like the Cat's (#1518)
On a phone, a bot chat (/companions/talk?with=...) wore OrangeCat's app header above its own floating header: two rows of chrome, about a fifth of the screen, on the one page that is a conversation. The Cat hub has been immersive since 2026-10-21, but the talk home cannot be told apart by path, and reading the query in the root shell would stop every page from rendering statically. So the open conversation marks itself (IMMERSIVE_CHAT_ATTR) and the existing immersive rules in globals.css also match it with :has(), and hide .app-header below md. CSS, not state: the first paint is already right, with no header flashing on the way from the list. Checked in a browser on the real route: at 390px the chat runs 0-780 with no header and back returns to the list with it; 800 and 1280 keep the header. A contract test keeps the three files on one name. Claude-Session: https://claude.ai/code/session_019MDtms1H9g9uu7AdDgJzLQ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
cc57921fd7 |
ci: run mcp-servers smoke test in build-and-smoke (#1517)
mcp-servers/smoke.mjs (#1491) holds a real MCP exchange with all seven servers (initialize, tools/list, one read-only tools/call where there is one) and exits 1 if any fails to start or answer, but nothing ran it. Wire it into build-and-smoke right after the root install: lint-server's probe needs the repo's prettier in node_modules/.bin, which that job already has. `npm ci` in mcp-servers is ~6s and the smoke takes about a second. Placeholders only; no network, no real credentials. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
39bf29f158 |
test(bots): the rehearsal retries a gateway error once (#1516)
* feat(bots): a bot writes first, on the person's own key A person can tell one of their bots to write first, every day at a time they pick, with a prompt they wrote. The run happens on the person's own OpenRouter key only; without a key the routine is kept, shown as waiting, and skipped with the reason, so no platform key is ever spent by a timer (fleet standing rule 2026-09-25). - companion_routines table (one per person per bot, owner-only RLS), routines-store (time validation, next run in the person's zone) and the runner behind a cron route + 15-minute systemd timer, registered as a person-asked timer in the no-background-ai gate with a marker check. - GET/PUT/DELETE /api/ai-assistants/[id]/routine for the owner. - RoutineRow in a bot's own chat: "Writes first, every day", time and prompt inline, a line to Settings when a key is missing. - Hands: the proposal line names what will be set up, never only "Sure"; a created event's outcome carries its link. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): a bot can ask Loki, as the person — the first connector ask_loki: a Cat action (communication, low risk, confirmed) in the hands launch set. The bot relays a question over the signed OrangeCat → Loki rail to Loki's POST /api/orangecat/ask, which runs a read-only turn as the Loki user linked to the actor; Loki's own sentence is the outcome the person reads, and a refusal (no linked account, a spent budget) is relayed as written. A relayed question can never dispatch, approve or spend: that stays with send_task_to_loki, and the two verbs name each other so a question is never dispatched as a task. ADR-0013: D6 first connector and D7 recorded as shipped. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the routine's day-in-zone comes from the timezone helper check:app-locale (new on main) refuses a literal locale handed to Intl; the routine's next-run computation now takes the day in the person's zone from instantToWallTime, the one rendering the app already trusts. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the chip knows the verb of ask_loki The tool-label table of leading verbs gains ask → Asking / Asked, so the chip for a bot's question to Loki never falls back to the generic label. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(cat): a failed "Do it?" card shows the server's sentence, not [object Object] The confirm and reject hook handed the API's error envelope (an object) to new Error(), so every failed action read "[object Object]". Seen live the first time a bot asked Loki for an account not linked to Loki: Loki's sentence naming the one step was on the action row and lost on the card. The hook, the memory import and the interests list now read the message through apiErrorMessage, the reader written for exactly this. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a bot keeps offering its hands on a repeat ask Live on 2026-11-01 the second "Ask Loki" in one thread came back as "I can ask Loki for you." with no fence and no "Do it?" card. The proposal fence is taken off a reply before it is stored, so the model saw its own earlier offers as plain sentences and copied them. - The queued proposal is kept in the assistant message's metadata. - The history given to the model writes the fence back onto those turns (withProposal), so a proposal in the history looks like one. - proposeFromReply returns the proposal as queued; hands tests cover the round trip and metadata reading. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a proposal is a worked example, and a bare block still becomes a card Live on 2026-11-01 a fresh bot's first "Ask Loki" came back as "Here's the query I'll send to Loki:" over a json fence holding {"question": "..."}: the free-tier model copied the template's inner half and left out the action, so the person saw code and no card. - The hands section ends with a complete block for a real offered action, required fields filled with their own names, instead of a template with <id> and {...}; it says the block is the proposal itself and to write no other code block. - extractProposal reads a propose, json or untagged fence at the end; a block with fields but no "action" names the one offered action that owns every field and has its required ones present; a propose fence that said nothing usable comes off so it is never shown as code. - Tests for the example, the lenient read, the inference and its refusals. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): a failed "Do it?" card is finished, a second card starts clean, no empty bubble Seen live on 2026-11-01 (fresh thread, two asks of Loki): - a card whose action ran and failed kept Confirm/Reject under the reason; the reason is now the outcome line, as a success would be - the second card in the thread showed the first card's failure line inside it: the card is keyed by its action - a model that wrote only the block left an empty bubble above the card: the card's description stands in for the words, and ask_loki is described as the question ("Ask Loki: ...") rather than "Execute Ask Loki" Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * test(bots): the five demos as one live rehearsal, run by a person tests/e2e/bots-rehearsal.live.spec.ts walks the live site as a brand-new person (a pseudonymous account minted at the start, no fixture secret): one door, the shelf and a real letter, a group with two specialists in their lanes, an event proposed and created from a "Do it?" card, Loki asked twice with an honest outcome and a clean second card, a routine set and stopped, and the API edges. Every assertion names the value it protects. The Live rehearsal workflow runs it on workflow_dispatch only and keeps the screenshots; it has no schedule, because a free-tier key is spent only when a person asks (fleet rule 2026-09-25). docs/testing/live-rehearsal.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): what a bot did stays in the thread A "Do it?" card's outcome lived only in the slot above the composer: it left the screen when a second card arrived and was gone on reload (seen live 2026-11-01). The confirm route now records the outcome as a line of the bot conversation the card came from (services/companions/outcomes.ts): the handler's own sentence with its page, or the reason it failed. The chat re-reads the thread after the tap, so the line shows where it was asked for, and the bot's next turn knows what happened. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * test(bots): the rehearsal retries a gateway error once Seen 2026-11-01 at 16:50Z: the first post-deploy rehearsal passed six of seven and failed the routine step on one PUT that answered 502, because another merge (#1515) was rolling out at that second; the same call answered 400 a minute later. An API call in the rehearsal now retries once after five seconds on 502/503/504 and logs that it did; two in a row stay a failure. Documented in docs/testing/live-rehearsal.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
c3a2908aa7 |
fix(bots): one true footnote under a fleet chat (#1515)
The line under every fleet bot's chat said "nothing here is kept" while the chat itself is saved in the browser (useFleetTalk), and the details sheet printed that next to "This chat stays in this browser". Now one line: "From <host> · saved on this device only". Measured in the page's font, it sits on one line from a 360px phone up (the old one took two at 360), so the composer is not pushed up. Claude-Session: https://claude.ai/code/session_019MDtms1H9g9uu7AdDgJzLQ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
dc62ac87df |
feat(bots): what a bot did stays in the thread; the five demos as one live rehearsal (#1514)
* feat(bots): a bot writes first, on the person's own key A person can tell one of their bots to write first, every day at a time they pick, with a prompt they wrote. The run happens on the person's own OpenRouter key only; without a key the routine is kept, shown as waiting, and skipped with the reason, so no platform key is ever spent by a timer (fleet standing rule 2026-09-25). - companion_routines table (one per person per bot, owner-only RLS), routines-store (time validation, next run in the person's zone) and the runner behind a cron route + 15-minute systemd timer, registered as a person-asked timer in the no-background-ai gate with a marker check. - GET/PUT/DELETE /api/ai-assistants/[id]/routine for the owner. - RoutineRow in a bot's own chat: "Writes first, every day", time and prompt inline, a line to Settings when a key is missing. - Hands: the proposal line names what will be set up, never only "Sure"; a created event's outcome carries its link. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): a bot can ask Loki, as the person — the first connector ask_loki: a Cat action (communication, low risk, confirmed) in the hands launch set. The bot relays a question over the signed OrangeCat → Loki rail to Loki's POST /api/orangecat/ask, which runs a read-only turn as the Loki user linked to the actor; Loki's own sentence is the outcome the person reads, and a refusal (no linked account, a spent budget) is relayed as written. A relayed question can never dispatch, approve or spend: that stays with send_task_to_loki, and the two verbs name each other so a question is never dispatched as a task. ADR-0013: D6 first connector and D7 recorded as shipped. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the routine's day-in-zone comes from the timezone helper check:app-locale (new on main) refuses a literal locale handed to Intl; the routine's next-run computation now takes the day in the person's zone from instantToWallTime, the one rendering the app already trusts. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the chip knows the verb of ask_loki The tool-label table of leading verbs gains ask → Asking / Asked, so the chip for a bot's question to Loki never falls back to the generic label. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(cat): a failed "Do it?" card shows the server's sentence, not [object Object] The confirm and reject hook handed the API's error envelope (an object) to new Error(), so every failed action read "[object Object]". Seen live the first time a bot asked Loki for an account not linked to Loki: Loki's sentence naming the one step was on the action row and lost on the card. The hook, the memory import and the interests list now read the message through apiErrorMessage, the reader written for exactly this. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a bot keeps offering its hands on a repeat ask Live on 2026-11-01 the second "Ask Loki" in one thread came back as "I can ask Loki for you." with no fence and no "Do it?" card. The proposal fence is taken off a reply before it is stored, so the model saw its own earlier offers as plain sentences and copied them. - The queued proposal is kept in the assistant message's metadata. - The history given to the model writes the fence back onto those turns (withProposal), so a proposal in the history looks like one. - proposeFromReply returns the proposal as queued; hands tests cover the round trip and metadata reading. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a proposal is a worked example, and a bare block still becomes a card Live on 2026-11-01 a fresh bot's first "Ask Loki" came back as "Here's the query I'll send to Loki:" over a json fence holding {"question": "..."}: the free-tier model copied the template's inner half and left out the action, so the person saw code and no card. - The hands section ends with a complete block for a real offered action, required fields filled with their own names, instead of a template with <id> and {...}; it says the block is the proposal itself and to write no other code block. - extractProposal reads a propose, json or untagged fence at the end; a block with fields but no "action" names the one offered action that owns every field and has its required ones present; a propose fence that said nothing usable comes off so it is never shown as code. - Tests for the example, the lenient read, the inference and its refusals. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): a failed "Do it?" card is finished, a second card starts clean, no empty bubble Seen live on 2026-11-01 (fresh thread, two asks of Loki): - a card whose action ran and failed kept Confirm/Reject under the reason; the reason is now the outcome line, as a success would be - the second card in the thread showed the first card's failure line inside it: the card is keyed by its action - a model that wrote only the block left an empty bubble above the card: the card's description stands in for the words, and ask_loki is described as the question ("Ask Loki: ...") rather than "Execute Ask Loki" Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * test(bots): the five demos as one live rehearsal, run by a person tests/e2e/bots-rehearsal.live.spec.ts walks the live site as a brand-new person (a pseudonymous account minted at the start, no fixture secret): one door, the shelf and a real letter, a group with two specialists in their lanes, an event proposed and created from a "Do it?" card, Loki asked twice with an honest outcome and a clean second card, a routine set and stopped, and the API edges. Every assertion names the value it protects. The Live rehearsal workflow runs it on workflow_dispatch only and keeps the screenshots; it has no schedule, because a free-tier key is spent only when a person asks (fleet rule 2026-09-25). docs/testing/live-rehearsal.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): what a bot did stays in the thread A "Do it?" card's outcome lived only in the slot above the composer: it left the screen when a second card arrived and was gone on reload (seen live 2026-11-01). The confirm route now records the outcome as a line of the bot conversation the card came from (services/companions/outcomes.ts): the handler's own sentence with its page, or the reason it failed. The chat re-reads the thread after the tap, so the line shows where it was asked for, and the bot's next turn knows what happened. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
e0b3d99749 |
fix(bots): a failed "Do it?" card is finished, a second card starts clean, no empty bubble (#1513)
* feat(bots): a bot writes first, on the person's own key A person can tell one of their bots to write first, every day at a time they pick, with a prompt they wrote. The run happens on the person's own OpenRouter key only; without a key the routine is kept, shown as waiting, and skipped with the reason, so no platform key is ever spent by a timer (fleet standing rule 2026-09-25). - companion_routines table (one per person per bot, owner-only RLS), routines-store (time validation, next run in the person's zone) and the runner behind a cron route + 15-minute systemd timer, registered as a person-asked timer in the no-background-ai gate with a marker check. - GET/PUT/DELETE /api/ai-assistants/[id]/routine for the owner. - RoutineRow in a bot's own chat: "Writes first, every day", time and prompt inline, a line to Settings when a key is missing. - Hands: the proposal line names what will be set up, never only "Sure"; a created event's outcome carries its link. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): a bot can ask Loki, as the person — the first connector ask_loki: a Cat action (communication, low risk, confirmed) in the hands launch set. The bot relays a question over the signed OrangeCat → Loki rail to Loki's POST /api/orangecat/ask, which runs a read-only turn as the Loki user linked to the actor; Loki's own sentence is the outcome the person reads, and a refusal (no linked account, a spent budget) is relayed as written. A relayed question can never dispatch, approve or spend: that stays with send_task_to_loki, and the two verbs name each other so a question is never dispatched as a task. ADR-0013: D6 first connector and D7 recorded as shipped. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the routine's day-in-zone comes from the timezone helper check:app-locale (new on main) refuses a literal locale handed to Intl; the routine's next-run computation now takes the day in the person's zone from instantToWallTime, the one rendering the app already trusts. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the chip knows the verb of ask_loki The tool-label table of leading verbs gains ask → Asking / Asked, so the chip for a bot's question to Loki never falls back to the generic label. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(cat): a failed "Do it?" card shows the server's sentence, not [object Object] The confirm and reject hook handed the API's error envelope (an object) to new Error(), so every failed action read "[object Object]". Seen live the first time a bot asked Loki for an account not linked to Loki: Loki's sentence naming the one step was on the action row and lost on the card. The hook, the memory import and the interests list now read the message through apiErrorMessage, the reader written for exactly this. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a bot keeps offering its hands on a repeat ask Live on 2026-11-01 the second "Ask Loki" in one thread came back as "I can ask Loki for you." with no fence and no "Do it?" card. The proposal fence is taken off a reply before it is stored, so the model saw its own earlier offers as plain sentences and copied them. - The queued proposal is kept in the assistant message's metadata. - The history given to the model writes the fence back onto those turns (withProposal), so a proposal in the history looks like one. - proposeFromReply returns the proposal as queued; hands tests cover the round trip and metadata reading. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a proposal is a worked example, and a bare block still becomes a card Live on 2026-11-01 a fresh bot's first "Ask Loki" came back as "Here's the query I'll send to Loki:" over a json fence holding {"question": "..."}: the free-tier model copied the template's inner half and left out the action, so the person saw code and no card. - The hands section ends with a complete block for a real offered action, required fields filled with their own names, instead of a template with <id> and {...}; it says the block is the proposal itself and to write no other code block. - extractProposal reads a propose, json or untagged fence at the end; a block with fields but no "action" names the one offered action that owns every field and has its required ones present; a propose fence that said nothing usable comes off so it is never shown as code. - Tests for the example, the lenient read, the inference and its refusals. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): a failed "Do it?" card is finished, a second card starts clean, no empty bubble Seen live on 2026-11-01 (fresh thread, two asks of Loki): - a card whose action ran and failed kept Confirm/Reject under the reason; the reason is now the outcome line, as a success would be - the second card in the thread showed the first card's failure line inside it: the card is keyed by its action - a model that wrote only the block left an empty bubble above the card: the card's description stands in for the words, and ask_loki is described as the question ("Ask Loki: ...") rather than "Execute Ask Loki" Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
d78e17f6fe |
fix(companions): a proposal is a worked example, and a bare block still becomes a card (#1512)
* feat(bots): a bot writes first, on the person's own key A person can tell one of their bots to write first, every day at a time they pick, with a prompt they wrote. The run happens on the person's own OpenRouter key only; without a key the routine is kept, shown as waiting, and skipped with the reason, so no platform key is ever spent by a timer (fleet standing rule 2026-09-25). - companion_routines table (one per person per bot, owner-only RLS), routines-store (time validation, next run in the person's zone) and the runner behind a cron route + 15-minute systemd timer, registered as a person-asked timer in the no-background-ai gate with a marker check. - GET/PUT/DELETE /api/ai-assistants/[id]/routine for the owner. - RoutineRow in a bot's own chat: "Writes first, every day", time and prompt inline, a line to Settings when a key is missing. - Hands: the proposal line names what will be set up, never only "Sure"; a created event's outcome carries its link. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): a bot can ask Loki, as the person — the first connector ask_loki: a Cat action (communication, low risk, confirmed) in the hands launch set. The bot relays a question over the signed OrangeCat → Loki rail to Loki's POST /api/orangecat/ask, which runs a read-only turn as the Loki user linked to the actor; Loki's own sentence is the outcome the person reads, and a refusal (no linked account, a spent budget) is relayed as written. A relayed question can never dispatch, approve or spend: that stays with send_task_to_loki, and the two verbs name each other so a question is never dispatched as a task. ADR-0013: D6 first connector and D7 recorded as shipped. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the routine's day-in-zone comes from the timezone helper check:app-locale (new on main) refuses a literal locale handed to Intl; the routine's next-run computation now takes the day in the person's zone from instantToWallTime, the one rendering the app already trusts. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the chip knows the verb of ask_loki The tool-label table of leading verbs gains ask → Asking / Asked, so the chip for a bot's question to Loki never falls back to the generic label. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(cat): a failed "Do it?" card shows the server's sentence, not [object Object] The confirm and reject hook handed the API's error envelope (an object) to new Error(), so every failed action read "[object Object]". Seen live the first time a bot asked Loki for an account not linked to Loki: Loki's sentence naming the one step was on the action row and lost on the card. The hook, the memory import and the interests list now read the message through apiErrorMessage, the reader written for exactly this. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a bot keeps offering its hands on a repeat ask Live on 2026-11-01 the second "Ask Loki" in one thread came back as "I can ask Loki for you." with no fence and no "Do it?" card. The proposal fence is taken off a reply before it is stored, so the model saw its own earlier offers as plain sentences and copied them. - The queued proposal is kept in the assistant message's metadata. - The history given to the model writes the fence back onto those turns (withProposal), so a proposal in the history looks like one. - proposeFromReply returns the proposal as queued; hands tests cover the round trip and metadata reading. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a proposal is a worked example, and a bare block still becomes a card Live on 2026-11-01 a fresh bot's first "Ask Loki" came back as "Here's the query I'll send to Loki:" over a json fence holding {"question": "..."}: the free-tier model copied the template's inner half and left out the action, so the person saw code and no card. - The hands section ends with a complete block for a real offered action, required fields filled with their own names, instead of a template with <id> and {...}; it says the block is the proposal itself and to write no other code block. - extractProposal reads a propose, json or untagged fence at the end; a block with fields but no "action" names the one offered action that owns every field and has its required ones present; a propose fence that said nothing usable comes off so it is never shown as code. - Tests for the example, the lenient read, the inference and its refusals. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
bf3f955aff |
fix(companions): a bot keeps offering its hands on a repeat ask (#1510)
* feat(bots): a bot writes first, on the person's own key A person can tell one of their bots to write first, every day at a time they pick, with a prompt they wrote. The run happens on the person's own OpenRouter key only; without a key the routine is kept, shown as waiting, and skipped with the reason, so no platform key is ever spent by a timer (fleet standing rule 2026-09-25). - companion_routines table (one per person per bot, owner-only RLS), routines-store (time validation, next run in the person's zone) and the runner behind a cron route + 15-minute systemd timer, registered as a person-asked timer in the no-background-ai gate with a marker check. - GET/PUT/DELETE /api/ai-assistants/[id]/routine for the owner. - RoutineRow in a bot's own chat: "Writes first, every day", time and prompt inline, a line to Settings when a key is missing. - Hands: the proposal line names what will be set up, never only "Sure"; a created event's outcome carries its link. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): a bot can ask Loki, as the person — the first connector ask_loki: a Cat action (communication, low risk, confirmed) in the hands launch set. The bot relays a question over the signed OrangeCat → Loki rail to Loki's POST /api/orangecat/ask, which runs a read-only turn as the Loki user linked to the actor; Loki's own sentence is the outcome the person reads, and a refusal (no linked account, a spent budget) is relayed as written. A relayed question can never dispatch, approve or spend: that stays with send_task_to_loki, and the two verbs name each other so a question is never dispatched as a task. ADR-0013: D6 first connector and D7 recorded as shipped. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the routine's day-in-zone comes from the timezone helper check:app-locale (new on main) refuses a literal locale handed to Intl; the routine's next-run computation now takes the day in the person's zone from instantToWallTime, the one rendering the app already trusts. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the chip knows the verb of ask_loki The tool-label table of leading verbs gains ask → Asking / Asked, so the chip for a bot's question to Loki never falls back to the generic label. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(cat): a failed "Do it?" card shows the server's sentence, not [object Object] The confirm and reject hook handed the API's error envelope (an object) to new Error(), so every failed action read "[object Object]". Seen live the first time a bot asked Loki for an account not linked to Loki: Loki's sentence naming the one step was on the action row and lost on the card. The hook, the memory import and the interests list now read the message through apiErrorMessage, the reader written for exactly this. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a bot keeps offering its hands on a repeat ask Live on 2026-11-01 the second "Ask Loki" in one thread came back as "I can ask Loki for you." with no fence and no "Do it?" card. The proposal fence is taken off a reply before it is stored, so the model saw its own earlier offers as plain sentences and copied them. - The queued proposal is kept in the assistant message's metadata. - The history given to the model writes the fence back onto those turns (withProposal), so a proposal in the history looks like one. - proposeFromReply returns the proposal as queued; hands tests cover the round trip and metadata reading. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
dc789c9a4b |
chore(deps): raise shared package floors to published versions (#1509)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid> |
||
|
|
09862475c3 |
feat(oauth): accept AccountKit's callback for petvity, surf-your-life and loki (#1508)
AccountKit returns from "Sign in with OrangeCat" to /api/auth/oauth2/callback/orangecat. This data migration adds that URI beside each client's Auth.js one, as 20261101120000 did for evig. Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
f67efa8926 |
fix(cat): a failed "Do it?" card shows the server's sentence, not [object Object] (#1507)
* feat(bots): a bot writes first, on the person's own key A person can tell one of their bots to write first, every day at a time they pick, with a prompt they wrote. The run happens on the person's own OpenRouter key only; without a key the routine is kept, shown as waiting, and skipped with the reason, so no platform key is ever spent by a timer (fleet standing rule 2026-09-25). - companion_routines table (one per person per bot, owner-only RLS), routines-store (time validation, next run in the person's zone) and the runner behind a cron route + 15-minute systemd timer, registered as a person-asked timer in the no-background-ai gate with a marker check. - GET/PUT/DELETE /api/ai-assistants/[id]/routine for the owner. - RoutineRow in a bot's own chat: "Writes first, every day", time and prompt inline, a line to Settings when a key is missing. - Hands: the proposal line names what will be set up, never only "Sure"; a created event's outcome carries its link. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): a bot can ask Loki, as the person — the first connector ask_loki: a Cat action (communication, low risk, confirmed) in the hands launch set. The bot relays a question over the signed OrangeCat → Loki rail to Loki's POST /api/orangecat/ask, which runs a read-only turn as the Loki user linked to the actor; Loki's own sentence is the outcome the person reads, and a refusal (no linked account, a spent budget) is relayed as written. A relayed question can never dispatch, approve or spend: that stays with send_task_to_loki, and the two verbs name each other so a question is never dispatched as a task. ADR-0013: D6 first connector and D7 recorded as shipped. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the routine's day-in-zone comes from the timezone helper check:app-locale (new on main) refuses a literal locale handed to Intl; the routine's next-run computation now takes the day in the person's zone from instantToWallTime, the one rendering the app already trusts. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the chip knows the verb of ask_loki The tool-label table of leading verbs gains ask → Asking / Asked, so the chip for a bot's question to Loki never falls back to the generic label. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(cat): a failed "Do it?" card shows the server's sentence, not [object Object] The confirm and reject hook handed the API's error envelope (an object) to new Error(), so every failed action read "[object Object]". Seen live the first time a bot asked Loki for an account not linked to Loki: Loki's sentence naming the one step was on the action row and lost on the card. The hook, the memory import and the interests list now read the message through apiErrorMessage, the reader written for exactly this. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et --------- Co-authored-by: Claude <noreply@anthropic.com> |