Commit Graph
16 Commits
Author SHA1 Message Date
Cato fcd38cb463 fix(loki): clarify terminal and retire stale guidance (#866) 2026-09-23 07:58:21 -07:00
CatoandClaude Fable 5.1 95c40a9cd8 refactor: rename the product from FleetCrown to Loki (#695)
The product, its assistant, the repo, the host and every unit on the box now
share one name. 638 files, ~3,000 mentions: UI copy, config, env keys
(FLEETCROWN_* -> LOKI_*), systemd units (fleetcrown-* -> loki-*), docs,
articles, the deploy workflow other repos reuse, and nine file names.

- Three article slugs carried the old name and had been shared; permanent
  redirects keep those links alive (next.config.ts).
- test-no-retired-name.sh now also forbids the old product name across the
  whole repo, so the rename cannot creep back through templates and examples.
- ASSISTANT_STACK collapses the product and the assistant into one entry,
  because they are now the same name.

Infra was cut over ahead of this merge: /opt/loki, loki-* units, the `loki`
database and role, loki.orangecat.ch (old host 308s to it; /api, /widget,
/embed keep proxying), GitHub repos bitbaum/loki and bitbaum/loki-releases.
The Resend sending domain stays fleetcrown.orangecat.ch until the new domain
is verified in DNS.


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

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 16:13:10 -07:00
CatoandClaude Opus 5 a48e7c52dd docs(billing): the docs still described a rail that was deleted yesterday (#514)
#508 removed the Stripe rail. Four living docs kept describing it, and one of
them is named in CLAUDE.md as an SSOT — so the wrong answer was the documented
answer.

- `development/cloud-local-workflows.md` listed `Stripe billing | STRIPE_*` in
  the env-gated feature table. Replaced with the rail that exists:
  `ORANGECAT_PAY_URL_{PERSONAL,PRO,TEAM}`, names checked against lib/oc-pay.ts.
- `sustainability-gates.md` Gate 3 argued from a `quantity: 1` hardcode in
  `src/app/api/stripe/checkout/route.ts`. The gate did not go stale, it
  HARDENED: that route is gone and the BTC rail is a static per-plan URL with no
  quantity concept, so there is no seat number left in the purchase path to
  correct. Per-seat Team is now a build, not a config change.
- `oc-rail-monetization-scope.md` claimed the Stripe webhook "already calls"
  updateUserBilling and that /pricing has an isStripeReady() seam to reuse. The
  write survives (via /api/orangecat/entitlement, plus scripts/grant-plan.ts);
  the seam does not — the BTC CTA is the default case now, not one to add.
- `development/user-flow-audit.md` asserted `/api/stripe/portal` returns 503. It
  returns 404. CH01-CH04 and the CH04 runbook tested four deleted endpoints;
  retired with a pointer to what replaced them.

`scripts/grant-plan.ts` said it performs "the SAME write the Stripe webhook
does" — updated to name the entitlement route instead.

Two findings that were not about Stripe:

`docs/self-improvement-plan.md` enumerated three `insertPromptHistory` call
sites. There are four — `api/control/tab-inject` was missing — and all three
line numbers had drifted (270→397, 452→514, 80→138). Following that list would
have shipped the runId linking with one dispatch path still unlinked. Line
numbers dropped in favour of "grep the symbol"; same for `src/auth.ts:234` in
the OC scope doc, which now points at line 268's unrelated code.

`src/config/demo.ts` still denied `/api/checkout` under its "money" heading long
after #508 deleted that route — a deny rule for a route on no disk, which made
the billing section of the sandbox policy look staffed.

demo-sandbox.ts already had the reverse check for DEMO_SAFE_FAMILIES ("a family
listed as safe that no longer exists is dead reassurance"); the denied lists had
no equivalent, which is why that entry survived. Added the mirror check — it
caught `/api/checkout` on its first run — and mutation-proved it with a fake
prefix. 262 assertions.

Also measured and did NOT gate: doc path references (314) and `pnpm run`
commands (77) both came back clean once false positives were removed, and the
dominant pattern is prose naming a file precisely to record its REMOVAL, which
grep cannot tell from rot. A gate there would fire on the correct docs and stay
silent on the wrong ones. CLAUDE.md's own four flagged paths were all correct,
and all 22 routes in its Views table exist.

verify green (13 steps, exit 0).


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

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 05:05:54 +00:00
6b653c36d6 docs: sync docs with actual stack (#487)
The repo moved to pnpm 11.25.0 (packageManager, pnpm-lock.yaml, CI and
deploy all pnpm) but 17 docs still taught npm commands. Sync every
current-instruction command to pnpm (`npm run` → `pnpm run`,
`npm install` → `pnpm install`, `npx tsx` → `pnpm exec tsx`, and
`db:apply-box -- <file>` loses the `--` separator under pnpm).

Deliberately kept: npm inside desktop/ (own package-lock.json, installed
via `npm ci` in desktop-release.yml and check-desktop.sh — excluded from
the pnpm workspace); `npm i -g openclaw` (box-global install); dated
historical audit/log entries that record runs made under npm.

Also in docs/infrastructure/self-host-cd.md: the pipeline diagram said
`npm ci` where selfhost-deploy.yml detects npm/pnpm per lockfile, and the
`node-version` fallback is 24 (doc said default 20); documented the
`package-manager` override input.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-04 14:47:12 +00:00
Mao NakamotoandClaude Opus 4.8 6b1225f113 docs: record /pricing in changelog, master plan, user-flow audit
Pricing page shipped + verified live at 320/375/1280px, Stripe-dark CTAs
correct (all start free, no dead buttons). Master plan Phase 1.2 page-half
marked done; remaining is founder connecting Stripe.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-08 23:18:07 +02:00
Mao NakamotoandCursor 7656e45247 chore(dogfood): auto-load SMOKE_PRIVATE_PIN from .env.local on push
Pre-push prod dogfood and headless dogfood scripts source .env.local so
git push runs the full prod suite without exporting the PIN manually.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 01:57:59 +02:00
Mao NakamotoandCursor 53014acaca test(dogfood): M04/ST02/CH04 probes and fix settings Account tab
Extend authenticated smoke to 115 probes (billing SSOT, Stripe webhook
validation, ME02 chunk count) and UI dogfood for money links + settings
Account tab; update user-flow-audit grades.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 01:49:15 +02:00
Mao NakamotoandCursor 5304ebef88 feat(api): memory rag-stats probe and Fleet Runner dogfood
Expose GET /api/memory/rag-stats for ME02 smoke, add local-builder
open-tabs/peek probes when Fleet Runner is connected, and skip machine
dogfood cleanly when only the cloud builder is online.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 22:15:12 +02:00
Mao NakamotoandCursor 7abcb56ad6 fix(lint): drop unused APP_URL from agent install route
Extend Loki dogfood to verify the Terminal This computer shell after
dispatch, and grade X05 as partial when Fleet Runner is not connected.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 22:00:53 +02:00
Mao NakamotoandCursor ef7f04bef0 test(dogfood): run authenticated smoke in prod push checks
Extend the opt-in pre-push prod dogfood path to include authenticated smoke,
verify goal-card dispatch when a builder is online, and document manual
runbooks for third-party flows.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 21:23:38 +02:00
Mao NakamotoandCursor 7863ea8d2e chore(hooks): optional prod UI dogfood on push when PIN set
Run ui-flow-dogfood on every push with SMOKE_PRIVATE_PIN; run loki dogfood
only when the builder is online (or DOFOOD_LOKI_ON_PUSH=1).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 21:01:16 +02:00
Mao NakamotoandCursor 71ee0263ee test(dogfood): UI flows for People, habits, goals, prompts
Add headless Playwright dogfood covering Ask Loki from card, habit
heatmap, goal Control prefill, prompt fork, and Run with Loki modal.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 20:56:20 +02:00
Mao NakamotoandCursor f3a2364b6c test(smoke): settings, cron, and agent-token API probes
Extend authenticated smoke to 112 probes covering profile, notifications,
fleet lifecycle, beacon, agent tokens, scheduled jobs, and frontier
validation without mutating open proposals.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 20:50:51 +02:00
Mao NakamotoandCursor de1db42ceb test(smoke): execution API probes and headless Loki dogfood CI
Add X01–X09 API probes to authenticated smoke (97 total), print-session-token
helper, dogfood:loki:ci with JWT mint, and grade execution flows in the audit doc.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 20:18:58 +02:00
Mao NakamotoandCursor e3a92f8f81 test(smoke): add private-zone CRUD probes to authenticated smoke
Round-trip POST/PATCH/DELETE for people, goals, habits, events,
subscriptions, and prompts when SMOKE_PRIVATE_PIN is set. Updates
user-flow-audit checkboxes (89/89 on prod).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 20:01:35 +02:00
Mao NakamotoandCursor f887f220b6 feat(qa): flow audit SSOT, honesty labels, and prod smoke harness
Add user-flow-audit checklist, authenticated smoke with PIN unlock, builder
presence API, executor honesty chips on Control/Loki/Terminal, setup auto
sign-in, workspace gate on hosted, and fleetcrown brand-storage migration.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 19:35:25 +02:00