Dogfooding the local dispatch loop (drive orangecat from FleetCrown) dead-ends
immediately: the documented way to boot the engine references files deleted in
a3f470d. That commit retired the standalone Brain (home/server.ts, :3001) and
its scripts/home-start.sh launcher — Fleet Runner desktop is now the sole local
executor — but explicitly deferred the doc cleanup to a "Session 4c" that never
happened. So a reader following the docs runs commands for files that don't
exist.
home/README.md:
- Title/intro/diagram no longer present the 3-process Brain stack as current;
they describe the 2 remaining pieces (watcher + worker) + Fleet Runner.
- "## Run": drop `bash scripts/home-start.sh` and `npx tsx home/server.ts`;
document the real per-piece `--start` iteration path.
- Smoke-test sections: replace dead `POST :3001/api/dispatch|/api/cancel` with
the verified current path — appending bridge.dispatch / bridge.cancel events
straight to ~/.<slug>/events.jsonl (the worker's actual contract).
- Files table: drop the deleted server.ts row; add the real state.ts / log.ts.
- Testing note: server.ts HTTP testing claim removed.
CLAUDE.md: home/ stack description + Dev Commands updated to match (Fleet
Runner is the executor; no home-start.sh).
Docs-only; every remaining server.ts/home-start mention is explicitly historical.
- CLAUDE.md: drop the "migration from cockpit name in progress" qualifier on
the Postgres database stack note. The rename completed; tracking it as
in-progress in 2026-06 is noise.
- docs/desktop-app.md: prepend a "Status: SHIPPED through v0.4.0" banner so
future readers understand the doc is the original execution plan kept for
context, and the @cockpit/* package names / cockpit-daemon.sh / 0.1.0
artifact references inside are pre-rebrand historical. Points at the
authoritative current sources (desktop/src/main/index.ts, home/README.md,
marketing-content.ts, mirror-desktop-release.sh).
Both stale items would have led a new reader to think work was still in
flight when it isn't.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Removed erroneous separate 'FleetWave' project/relations from DB.
- Updated all code, consts, docs, banners, CLAs, legal, READMEs to correctly present FleetCrown itself as the customer of OrangeCat (both as projects/profiles on the platform).
- Integration remains: shared wallet, customer stakeholder edge, live on orangecat.ch.
- Sessions updated.
No separate 'fleetwave' entity; the customer use case is FleetCrown.
- FleetCrown is customer of OrangeCat (stakeholder 'customer' edge, shared wallet).
- Both + FleetWave as projects/profiles on orangecat.ch for Mao Nakamoto.
- Added integration banner in /money page (visible UX for the customer relationship).
- Updated CLAUDE.md, README, legal/IP memo, marketing-content to reflect current names, FleetWave customer, rebrand.
- Legacy 'cockpit' paths kept per branding-design for transition.
- Data updated live in DB (rename, wallets, relations, new FleetWave project).
- Makes the full stack work for real customer FleetWave; scales to others.
Changes in both cockpit and orangecat for good UX and functioning product.
- desktop build clean, tsc clean, lint 0, home/ 89/89
- advances desktop-2/3: dispatches now produce durable events in ~/.fleetcrown/events.jsonl with proper runId/sentinel so stop-hooks and web control plane treat them as first-class
- still no embedded watcher (idle via co-running home/watcher.ts for now)
Refs: desktop-app.md phases, Cockpit.roadmap T1/T2, prior landing 2d98638
Mobile was cramped by six bottom tabs plus a floating FAB. Consolidate to five slots with Ask Ivy in the bar, put Control's brain panel first, and tighten spacing/safe-area padding across shell pages.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add @cockpit/agent init, server-side PIN enforcement for private APIs,
Postgres-backed cron jobs, daemon auto-continue sync, and cloud/local docs
so SaaS users get a clear path from browser signup to local dispatch.
Co-authored-by: Cursor <cursoragent@cursor.com>
home/README.md said 'state.ts # 15 tests' and CLAUDE.md said '76 inline
tests' — both stale already (3ff199f added 2 state regressions so the
true count is 17/78). Every test-add commit was implicitly creating
a doc-rot debt. Replaced the hardcoded numbers with semantic labels
('event projection', 'autonomy + confidence', etc.) and added one
short note that 'npm run test:home' aggregates the actual N/M total —
the real count lives in the test runner output, not in prose.
No code change. tsc clean.
CLAUDE.md is the first file future agents read when entering this
repo. It described src/ tree, design system, conventions, and dev
commands — but never mentioned the home/ stack (server.ts + watcher.ts
+ worker.ts) that's been the focus of the last twenty commits. A new
agent walking in cold would only find the local Brain by accident.
Added a home/ block right after the src/ tree explaining the three
processes, the JSONL log, the UI port (3001), and pointing at the
boot command + npm run test:home + home/README.md for the full
breakdown. Also added 'npm run test:home' and 'bash scripts/
home-start.sh' to the Dev Commands section and a note about the
pre-push hook's gate.
No code change. Pure docs.
Navigation:
- Add description field to NavItem type (navigation.ts is now SSOT)
- Write real per-item descriptions for all 12 nav items
- Control: "Dispatch agents across projects" (was "Brain switching")
- 9 generic items: specific descriptions (was "Tracked view" x9)
- Sidebar reads item.description instead of hardcoded ternary
- Control page subtitle: "Dispatch AI agents across your projects — pick an intent and fire"
(was "Switch brains, models, and terminal sessions")
Multi-user read path fix:
- today.ts: all 5 functions now accept userId param (was DEFAULT_USER_ID)
- goals.ts: getGoals/getGoalStats now accept userId param
- goals/page.tsx, prompts/page.tsx: call getCurrentUserId()
- CommitmentsCard, GoalsDueCard, SubscriptionsCard, SummaryBar: call getCurrentUserId()
- actions.ts fulfillCommitment: call getCurrentUserId() in server action
CLAUDE.md:
- Add Mission section (2-sentence product definition)
- Add control/ to Architecture component list
- Add /control, /thoughts, /settings to Views table
- Update /control description to match actual fleet command feature
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Auth & multi-user:
- GitHub OAuth via next-auth DrizzleAdapter; signIn callback absorbs first
login into is_default=true user so all pre-auth data stays accessible
- getCurrentUserId() helper; onboarding + profile pages
- normalizeUsername() extracted to lib/username.ts (DRY fix)
Design system:
- All public pages (landing, sign-in, onboarding, settings) rebuilt to use
ui-* classes and semantic tokens only — zero raw Tailwind color violations
- ui-input, ui-btn-*, ui-panel, bg-surface-*, text-text-* throughout
Reliability (M1–M7):
- M1: Stale claude-stop-active lock cleanup on stop hook entry
- M2: /api/inject validates tab exists in Zellij before writing /tmp
- M3: Prompt SSOT unified — claude-prompts.json single array format
- M4: DBUS UID hardcode removed (already in dotfiles)
- M5: auth.ts signIn callback + AdapterAccountType cast
- M6: project_states DB table — persists ready/closing/closed/session/prompt
across reboots; stop.sh PATCHes on stop/close; control falls back to DB
when /tmp is empty (24h window); inject writes currentPrompt to DB
- M7: scheduleOpenClawWorker now async; waits for spawn event (2s timeout);
marks run as error in DB if worker fails to start
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds husky as a dev dep and wires .husky/pre-commit to run:
npx tsc --noEmit
npx eslint src/
Both must pass for the commit to land. Smoke is intentionally NOT in
the hook because it needs a live dev server — run `npm run smoke`
manually before opening a PR.
Catches the regressions a 100-commit refactor sweep can introduce
(broken zod schema, missed import, accidentally-disabled rule)
before they reach origin/main, complementing the human / cron /
agent commit flow we've established.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Until now the codebase had zero automated coverage; every refactor
relied on a manual curl loop. scripts/smoke.sh runs that loop in one
command: probe BASE/, then GET every page route and assert 2xx/3xx.
- Routes match config/navigation.ts NAV_ITEMS plus the / redirect
- BASE env var override for prod smoke (defaults to localhost:3000)
- Fast-fails with a clear "start the dev server first" message if
the base is unreachable, instead of dribbling 11 curl errors
- No new dependencies — bash + curl only
Verified: all 11 routes return 200 against the running dev server.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Audit caught documentation drift:
- Views table listed 7 routes; the codebase ships 10. Add Habits,
Events, Prompts and refresh the Status column for the routes whose
capabilities have grown (inline editors, daily habit check-off,
archive flow, etc.).
- Architecture tree missed components/{events,habits,goals,money,
prompts,system}, the projects subdir's split, and the new hooks
beyond useFetch (useCreateMutation, useInlineEdit). Updated.
- SSOT Rules block didn't list the new shared primitives or helpers
worth knowing — Modal/Drawer, Field/FIELD_INPUT_CLASS{,_COMPACT},
HABIT_HISTORY_DAYS, useInlineEdit, useCreateMutation, lib/dates.ts.
CLAUDE.md is the project-root contract for future sessions and
contributors; keeping it in sync is a real user-impact fix.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- CLAUDE.md with full project conventions, architecture, SSOT rules
- Seed 10 real goals: God Mode, Financial Independence, Civilizational Stack, Health, Relationships + 5 sub-goals with milestones
- Add Cockpit to ~/.config/claude-projects.conf for zellij auto-detect
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>