- Desktop renderer: refactored App.tsx to eliminate vast majority of raw hex (#000, #1f1f1f, #ff5c00 etc) and arbitrary text-[Npx] by using the existing runner CSS vars + newly added .runner-* component classes (header, card, input, btn, project, result, label, mono). Hero, connect, runtime, projects, command bar, results, footer all now class-driven.
- Extended desktop runner globals.css with additional primitives and --text-micro etc so the ultra-minimal x.ai aesthetic is still 100% defined in one CSS file (SSOT for this surface).
- Small functioning win: status pane now renders a tiny human summary (homeStack, watcher embedded, real log) on top of the raw JSON for debug.
- Public website: added "Download" to PUBLIC_NAV (SSOT) so visitors see the local app path clearly in the marketing nav.
- Fixed last user-facing rebrand leak in a tooltip (cockpit-daemon → fleetcrown-daemon).
- All changes keep strict design system, no new violations. Runner and main site build clean.
This advances "impeccable website and functioning app (web + local)" per the vision. The local Fleet Runner UI is now much closer to the quality bar of the rest of the product while preserving its pure black character. Web surfaces have better discoverability for the desktop download.
- SSOT in marketing-content.ts: fixed investors@cockpitapp.com → investors@fleetcrown.app
- Explicit promises for desktop (macOS/Windows/Linux one-click + auto-update coming; build today), native iOS + Android mobile apps, and "more" runtimes — exactly as requested so the live site can deliver on "apps for... you know".
- Updated /download page (now uses config steps, added dedicated FUTURE DOWNLOADABLE APPS section, web access links via next/link).
- Enhanced the reusable DesktopDownload component (used on landing too) with future vision.
- Zero new design violations; build + lint + tsc clean.
- First principles: honest progressive disclosure (what works today vs. soon), one source of truth for copy, serves the human who opens fleetcrown.vercel.app expecting a real product with a future.
The site (once deployed) will now clearly show: use web now, download/build desktop Fleet Runner now, expect polished desktop binaries + mobile apps.
- Refactor home/watcher.ts for dual use: library (startWatcher() returns {close}, no auto process.exit, conditional SIG handlers) + CLI (--start / --self-test unchanged, 8/8 tests pass).
- Wire in desktop/src/main/index.ts: import + start on whenReady (after createWindow), store closer, stop on before-quit.
- desktop runtime status now advertises hasWatcher + updated version string.
- Desktop main process now owns the full local event loop for its dispatches: append bridge.dispatch + started/crashed (with sentinel) on the way in, worker.idle (from real session.md changes) on the way out.
- Rebuilds clean; home/ 89/89; no separate watcher process required when Fleet Runner is the runtime.
- Docs + session updated.
This largely completes the "real worker idle path" part of desktop-2/3. GUI dogfood + projection verification in a graphical env still needed for the last mile.
- 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
Multi-source polling forks one child per extra base URL (typically
http://127.0.0.1:3000 + https://cockpitapp.vercel.app). Each child's
push-failure budget exit (`kill -TERM "$$"`) only stops itself —
systemd supervises the parent, not the children — so a dead sibling
left its URL silently unpolled while the parent kept working its own.
Observed today: the Vercel-bound child exited at 08:44 after 30
network-error timeouts over a quiet ~1.5h. From then until restart,
dispatches from cockpitapp.vercel.app queued in Neon for ~14h with
nothing on the local end claiming them.
Fix has two parts:
- Parent records forked child PIDs and runs a 10s watchdog. When any
tracked child PID is dead, the parent SIGTERMs itself; systemd's
Restart=always + KillMode=control-group rebuilds the whole tree.
- Push timeout is now remote-aware (8s local, 20s https://) so a
Vercel cold-start tail doesn't burn the failure budget.
Smoke-tested: killing the Vercel child triggers the watchdog and the
whole tree restarts in ~13s.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two things ship together in this commit because they are answers to
the same question — how should Cockpit and OrangeCat relate to each
other from a visitor's perspective.
1. New "external" entry kind in PUBLIC_NAV. PublicNavEntry can now
be "menu" (dropdown), "link" (internal route), or "external"
(cross-origin link with an ExternalLink indicator). Adds an
OrangeCat entry at https://orangecat.ch so visitors landing on
cockpitapp.vercel.app can discover the sibling product.
Renders on desktop with a small chevron-out icon and on mobile in
the drawer with the same indicator + the description as subtext.
target=_blank rel=noopener so the cross-origin handoff is clean.
2. New Thoughts essay "Two Products or One" — direct answer to the
strategic question of whether Cockpit and OrangeCat should
eventually merge into a single product. Argues the systems-
engineering cut: converge the user experience now, converge the
agent reasoning soon, leave the codebases separate until merging
clearly reduces complexity rather than introducing it. Names the
phased path (six months / twelve months / twenty-four months) and
the concrete scenarios where each direction wins out.
Companion to "The Two Halves of the Individual Singularity,"
"From Two AIs to One," "Where Stakeholders Live," and "The Techno-
Capital Machine for Individuals." Together those five essays form
the strategic substrate under which the joint engineering work
happens.
The user explicitly framed this turn as "approach as a team of
extremely high level systems engineers and designers." This commit is
that team's coherent answer to (a) how the products should reference
each other in their marketing surfaces and (b) whether they should
fuse into one. Both questions answered concretely, both deliverables
pointable-at.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The Watch's templated context line ("Overdue by 29d", "85% done · 1mo
past target", etc.) is concrete and ships in the server render. This
commit adds an LLM-composed paragraph on top — Ivy speaking the focus
back to the user in one or two warm, direct sentences with a
proposed move.
Architecture:
POST /api/today/watch/compose
Body: { kind, title, context }
Returns: { composed: string }
Calls Groq with GROQ_FAST_MODEL via the existing callGroqText helper.
System prompt enforces the voice: direct, warm, no preamble, no
hedging, no questions back. Two-sentence cap. 8s timeout, 120 tokens.
IvyNudge client component renders inside the Watch card. Reads from
localStorage cache first (1h TTL keyed by kind|title|context). If
miss, posts to compose; replaces "Ivy is composing…" shimmer with
the prose when it lands. If the endpoint 503s (no key, rate-limit,
timeout), renders nothing — parent's template prose stays in place.
Strict enhancement, never a regression.
Why this matters:
The Watch already proves Ivy is paying attention. This makes Ivy
*speak* — and speaking specifically about the user's life with prose
the user could not have written themselves is the demo moment that
shows the AI is composing, not just templating. It is the next step
of the same line that shipped the Watch's seven priority branches
(commitments, goals, habits, bills, events, relationships, stalled
goals).
Cost shape: caches aggressively in localStorage. A focus item
typically lasts hours or days — most page loads hit cache, not Groq.
The compose call only fires when the focus changes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Andreessen described the techno-capital flywheel — technology creates
value, value compounds into capital, capital funds the next round of
technology, the loop accelerates. He named it as a corporate
phenomenon because that is what the historical substrate allowed.
The interesting question now is: what happens if the same flywheel is
sized for one person? Cockpit is the production half (operator
leverage at team scale). OrangeCat is the capital half (settlement
without gatekeepers, identity without coupling, full economic
spectrum). Together they are the techno-capital machine sized for an
individual builder.
The corporation has been the unit of economic agency for two hundred
years because individuals could not historically capture either half
of the flywheel on their own. AI delaminates the production half;
Bitcoin and adjacent settlement layers delaminate the capital half.
The substrate now exists. The question is who builds the version of
the machine that fits one person.
This essay is the umbrella thesis under which the other strategic
pieces operate:
- "The Two Halves of the Individual Singularity" — why production
and transaction must be paired infrastructure.
- "From Two AIs to One" — why the pairing has to converge from two
AIs into one agent as scale moves from thousands to billions.
- "Where Stakeholders Live" — how the first concrete cross-product
feature (the stakeholder graph) operationalises the convergence.
Companion to the OrangeCat-side commit that adds the
stakeholder_relationships migration — typed edges between projects
and the eight stakeholder categories every project has around it.
The substrate now exists in both repos. Convergence is engineering,
not invention.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Direct answer to the founder's question: where should the stakeholder
map (competitors / collaborators / investors / customers / employees /
acquirers / acquisition targets / in-house dev projects) live —
Cockpit, OrangeCat, or both?
Honest answer: the graph belongs in OrangeCat, the operations belong
in Cockpit, and the convergence is what makes the feature feel
seamless instead of split.
Two deliverables:
1. New Thoughts essay "Where Stakeholders Live"
(content/thoughts/where-stakeholders-live.md) — argues the eight
stakeholder categories are all edges between entities OrangeCat
already has (no new entity types). The clean split: OrangeCat
stores the typed-edge graph; Cockpit reads it via the identity
bridge and surfaces signals through the Watch and approval queue.
Ship competitors first — most automatable, highest signal density,
concrete action loop.
2. New STAKEHOLDERS phase in Cockpit's public roadmap, placed under
CONVERGE because the stakeholder graph IS the first concrete cross-
product use case — same data, two surfaces, one agent reasoning
across both. Five bullets covering the storage / operations split,
the competitors-first sequencing, and the no-second-graph
architectural commitment.
This makes the convergence argument concrete. From Two AIs to One was
the abstract case for convergence; this is the first feature that
operationalises it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Direct answer to the founder's strategic question: is Ivy as the tie
between Cockpit and OrangeCat sustainable at billions of users? Honest
answer: no, not as currently structured. The tie today is the founder
owning both products, not the software. That scales to one user.
Two deliverables, one strategic thesis:
1. New Thoughts essay "From Two AIs to One"
(content/thoughts/from-two-ais-to-one.md) — argues that two AIs per
user is engineering convenience and must converge into one agent per
user before the architecture scales beyond the early adopter phase.
The user-facing reality has to be "my agent" — one memory graph, one
reasoning loop, one autonomy ladder, one approval queue — with
Cockpit and OrangeCat fading into engineering boundaries below the
surface. The approve/disapprove interaction model is what makes
nine-billion-builder scale work; humans cannot direct eight agents
each, but they can triage hundreds of decisions per day.
2. New CONVERGE phase in Cockpit's public roadmap. Five concrete
convergence steps: memory unification, reasoning-loop unification,
autonomy-ladder unification, approval-queue unification, surfaces-as-
engineering-boundaries-only.
The phase ordering is now: NOW → NEXT → AFTER → THEN → LATER → TEAMS →
CONVERGE → ECONOMY → ROBOTICS. CONVERGE precedes ECONOMY because the
identity bridge / integration work assumes a single user-facing agent
model that we are explicitly committing to here.
Paired with the prior essay "The Two Halves of the Individual
Singularity": that piece argued why production and transaction must be
paired infrastructure. This one argues that the pairing itself has to
collapse from two AIs into one as scale moves from thousands to
billions.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two deliverables, one strategic thesis:
1. New Thoughts essay "The Two Halves of the Individual Singularity"
(content/thoughts/the-two-halves-of-the-individual-singularity.md)
— published at /thoughts/<slug>. The argument: the individual
singularity is not a productivity gain, it is a leverage shift, and
that shift requires both production (Cockpit) and transaction
(OrangeCat) infrastructure built from the same first principles. AI
agents as first-class actors, the individual as the unit of leverage,
no gatekeepers between you and what you can build.
2. New ECONOMY phase in the public roadmap (src/config/marketing-content.ts).
Five concrete first integrations:
- Identity bridge — Cockpit users connect their OrangeCat actor.
- Publish to OrangeCat — agent output becomes a Lightning-paid listing
in one click.
- Agent costs as outflows — compute, API tokens, third-party services
route through the operator's OrangeCat Cat, per project.
- Subscriptions as assets — drag becomes liquid; refinance, sublet,
co-fund via OrangeCat without leaving the platform.
- Cockpit pricing on Lightning rails — settle through OrangeCat. No
Stripe in the path. Pseudonymous customers welcome.
Why this matters strategically: it makes the integration pointable-at.
Investors evaluating either platform see the pair, not the silo. The
founder eats their own dogfood — Cockpit revenue routes through
OrangeCat — proving both platforms at once. The roadmap phase is a
public commitment; the essay is the argument behind it.
The pieces exist in production today on both platforms. The integration
is engineering, not invention.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The third major private-zone domain joins the synthesizer. A habit due
today, not yet done, with a streak ≥ 7 days is a real psychological
moment — the user has built momentum and is one missed day from the
streak breaking. Surface it.
Reuses getTodayHabits which already computes the streak from completion
history (no duplicate streak math). Filters to streak ≥ HABIT_STREAK_THRESHOLD
(7d) and not-done-today, sorts by streak desc so the longest streak
gets the focus when multiple qualify.
Priority order in pickFocus (full chain):
1. Overdue commitment — explicit promise, now late.
2. Overdue goal — close to done, past target.
3. Habit at risk — ≥7 day streak, not done today. ← NEW
4. Imminent bill — money about to leave in <5d.
5. Imminent event — non-financial deadline in <5d.
6. Stale contact — relationship past fading threshold.
7. Stalled goal — 21+ days idle on an active goal.
Habits slot ahead of bills because the streak is broken at midnight if
you do nothing today; a bill renewal has more flexibility. Below
overdue commitments and goals because those have an explicit promise
already broken.
Ivy handoff is direct: "Nudge me to do it now in two short lines — be
direct and warm, not preachy."
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The first cut of Ivy's Watch was aware of goals, events, commitments,
and subscriptions. Relationships — the largest private-zone domain by
volume (this account has 1,286 contacts) — were invisible to the
synthesizer. Add them.
A new stale-contact branch in pickFocus + a dedicated query that returns
the top N entities of type=person whose last interaction is older than
HEALTH_FADING_DAYS (30d). The Watch's totals strip now surfaces the
count ("25 relationships going stale"); when the priority chain falls
to relationships (no overdue commitments, goals, bills, or events), the
focus zooms in on the most-stale person by name with their days-since
context.
The Ivy handoff prompt is deliberately direct: "Draft a warm, short
check-in message I can send to {first-name}. Keep it natural, no
business angle, in the tone I'd actually use." That turns the Watch
from "here is who you should think about" into "here is the AI doing
the work of remembering for you."
Priority order in pickFocus (highest first):
1. Overdue commitment — explicit promise, now late.
2. Overdue goal — close to done, past target.
3. Imminent bill — money about to leave the account in <5d.
4. Imminent event — non-financial deadline in <5d.
5. Stale contact — relationship past the fading threshold. ← NEW
6. Stalled goal — 21+ days idle on an active goal.
Relationships slot below acute money/deadline categories but above
stalled goals — losing a relationship is slower than missing a deadline
but more emotionally consequential than an idle work item.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The product had data (1,286 contacts, 7 goals, 15 commitments…) but no
moment where the user felt the AI was actually managing their life. The
Brief-Ivy button was user-initiated; the Action Queue surfaced templated
check-ins. Nothing proactive said "here is the one thing right now."
Build a Watch card that sits at the top of /today (when the private zone
is unlocked) and synthesizes signals across categories into one focus:
IVY IS WATCHING
OVERDUE COMMITMENT
Get a $50 signup bonus when you spend $100 within 30 days of
getting a new Coinbase One Card →
Overdue by 29d
Also: 1 overdue goal · 5 more imminent bills · 7 stalled goals.
[Brief Ivy on this]
Priority order is deliberate:
1. Overdue commitments — promises the user made, now late.
2. Overdue goals — close to done, past target.
3. Imminent renewals — money about to leave the account in <5 days.
4. Imminent events — non-financial deadlines in <5 days.
5. Stalled goals — 21+ days idle on an active goal.
When nothing in any category fires, the card stays present but shows
"Nothing pressing in the private zone right now" — calm, not absent.
Implementation:
- New src/db/queries/today-watch.ts — one getTodayWatch(userId) that
fans five COUNT+TOP queries through Promise.all and runs the priority
ordering in a single pickFocus pure function. SSOT for what counts as
"the focus" lives there; future refactor (LLM synthesis, learned
weighting, etc.) just swaps that one function.
- New src/components/today/TodayWatch.tsx — server component, gated by
isPrivateZoneLocked, wired to the existing IvyDispatchButton so the
"Brief Ivy on this" handoff prebuilds a prompt body specific to the
current focus.
- New ui-today-watch-* class block — theme-aware tokens throughout.
No LLM call yet — this is pure data synthesis. The hooks are in place for
a future iteration that replaces the templated context strings with
Ivy-composed prose without touching the data layer.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The /unlock page listed what private areas exist (Memory, People, Goals…)
with abstract descriptions. The user had no concrete sense of what
unlocking actually restores — "your contacts" is vague; "1,286 contacts"
is visceral.
Add a single getPrivateZoneStats(userId) query that aggregates COUNTs
for memory entities, person entities, goals, habits, events,
subscriptions, and commitments — seven independent queries fanned out
through Promise.all so the total latency is one round-trip.
Wire the counts into the "What this unlocks" panel — each area now shows
its label, description, AND the live count on the right. Empty areas
render without a count (zero is noise; "Memory · 0 entities" would
imply the gate is gating nothing).
End-to-end Playwright test:
POST /api/auth/pin (PIN: 55550) → ok: true
navigate /today (locked) → banner up top, cards hidden
navigate /today (unlocked) → Action Queue, full SummaryBar
navigate /unlock → counts render (1.286 contacts,
1.324 entities, 15 commitments…)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two real bugs surfaced by testing the locked /today end-to-end through
the actual UI:
1. PrivateZoneDataGate placeholders read "Enter your PIN on **People**
to view {label}" — stale copy from the era when /people was the
unlock entry point. /unlock now exists; the placeholder routed the
user to the wrong page.
2. A locked /today was a silent collection of empty / placeholder cards
with no inviting unlock CTA. The user had no obvious "this is gated
on purpose, click here" affordance.
Fixes:
- PrivateZoneDataGate: copy now reads "Unlock the private zone to view
{label}" with the link pointing at /unlock.
- New LockedZoneBanner — a server component that renders a single
prominent card at the top of /today when isPrivateZoneLocked(userId).
Names what's behind the gate (goals, people, habits, events, money,
memory) and surfaces one Unlock CTA. Renders nothing when unlocked.
- Three new ui-locked-banner-* classes for the banner styling, all
theme-aware tokens (no hardcoded colours).
Verified end-to-end via Playwright: unlock with PIN 55550 succeeds via
the API endpoint, locked state hides every private card and zeroes the
SummaryBar chips, unlocked state restores the full Today.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Three cards still rendered private data on /today even when the PIN gate
was locked. Each one had a different data path, so the previous
gating sweep missed them:
- ActionQueueCard — surfaces "Check in with X" actions where X is a
contact from the People graph. Names leaked through even when locked.
- AlertsCard — alerts can include contact names ("Andreas needs
attention"), goal titles, and money amounts. All locked-state
visible.
- CommitmentsCard — commitments are personal life management; same
sensitivity as habits / money / events. Title + due date + financial
impact were rendering through.
Same pattern as the existing gates (GoalsDueCard, EventsDueCard,
StuckGoalsCard, MemorySummaryCard) — return null when
isPrivateZoneLocked(userId).
Also tighten SummaryBar — the locked-state field zeroing now covers
overdueCommitments, urgentAlerts, and pendingDrafts in addition to the
goals / habits / events / contacts counts. Those three are all
private-zone-derived too.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Three sections × ~6 items each plus headers added up to a sidebar that
required scrolling on shorter viewports and gave the user no way to hide
groups they don't need right now. Make sections collapsible.
Behaviour:
- Defaults: Work expanded, Private collapsed, Site collapsed. Picked so the
daily operational nav is visible while less-frequent groups stay quiet.
- User toggles persist in localStorage (key cockpit-sidebar-sections-v1)
with DEFAULT_EXPANDED merged in, so adding a new section in the future
picks up its default without overwriting saved prefs.
- Section containing the active page auto-expands so the active item is
never hidden under a collapsed header.
- When the whole sidebar is in icon-only mode, expansion is ignored and
every item renders as an icon — toggling has no meaning without labels.
Private when locked:
- The Private section header transforms into the unlock affordance itself.
No expand chevron, no internal "Unlock to view" entry — clicking the
header routes straight to /unlock. The auto-expand-on-active rule skips
Private when locked (the user shouldn't even be on a private page).
- When unlocked, the user can expand/collapse like any other section.
Implementation:
- ui-sidebar-section-toggle for the chevron+label button.
- ui-sidebar-section-locked for the lock-state non-toggle header.
- Drop the now-redundant ui-sidebar-section-header + ui-sidebar-private-unlock
classes (the locked header subsumed both roles).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The previous model gated the entire private surface behind a single
PRIVATE_ZONE_PIN_HASH env var, which only the founder could set. That
worked for one user; it does not scale to a SaaS where each operator has
their own contacts, goals, habits, events, money, and memory graph.
Move the PIN to the user record so every user can manage their own gate.
Schema:
- Add private_zone_pin_hash (text, nullable) + private_zone_pin_set_at
(timestamptz) to the users table on both local and Neon.
Library:
- Refactor src/lib/private-zone.ts around getEffectivePinHash(userId),
wrapped in React's cache() so multi-component pages only hit the DB
once per request. The env var stays as a fallback for users without
their own hash so existing installs keep working through the
transition; new users set their PIN in-app.
- isPrivateZoneConfigured and isPrivateZoneUnlocked become async +
per-user. New isPrivateZoneLocked(userId) helper collapses the common
configured && !unlocked pattern into one call.
- guardPrivateZoneApi is now async + per-user.
API:
- POST /api/auth/pin still verifies and sets the unlock cookie, but
resolves the hash via the user record. Rate-limit moved from IP-key
to userId-key (multi-user prod has many users behind shared IPs).
- New POST /api/auth/pin/setup — set or change the PIN. Requires the
current PIN when one already exists.
- New DELETE /api/auth/pin/setup — disable the PIN entirely. Always
requires the current PIN.
UI:
- New /unlock page replaces the arbitrary "click Unlock → land on /people"
flow. The form shows what's behind the gate (Memory, People, Goals,
Habits, Events, Money) and accepts a ?next= param so the user lands
back where they were going after a successful unlock.
- Sidebar "Unlock to view" now routes to /unlock (not /people).
- Settings → Privacy gets real management UI: Set PIN, Change PIN,
Disable PIN, Lock now. Each action lives in its own subform with
proper validation (digits only, 4–12 length, confirm match).
- Every call site of the old configured && !unlocked pattern migrated
to await isPrivateZoneLocked(userId).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two issues bundled:
1. After the sidebar section refactor, Settings stopped rendering — NAV.settings
was kept in the flat NAV_ITEMS list but absent from every SIDEBAR_SECTIONS
group, so SidebarNav had nothing to draw. Restore access by adding a
Settings link to the sidebar footer cluster alongside Lock / Theme /
Sign out, where utility navigation already lives in this product.
2. Settings was rich on the operational side (Profile, Account, Location,
Agent, Projects, Team, Billing) but had no surfaces for two things the
user explicitly asked for: appearance customization and privacy.
Add two tabs:
- Appearance — Light / Dark / System theme picker. Future expansion
hook for density, accent, etc.
- Privacy — Status panel showing PIN configuration + current
lock state, with a Lock-now button when unlocked. Honest copy
about the env-managed PIN and the roadmap items (in-app PIN
management, data export, full deletion).
Tab order placed near the front so customization is reachable before the
operational tabs.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Architectural distinction the public marketing nav has been blurring:
platform-wide content (mission, philosophy, roadmap, whitepaper, investors)
belongs in the public nav. Per-user content (a particular user's Thoughts)
does not — even when the founder's own essays happen to discuss the
platform. Marketing surfaces the product; user surfaces (the in-app
sidebar, /u/<username>/...) surface the person.
- Drop Thoughts from the public nav. The /thoughts route stays reachable
for now (the founder's essays are the only data there), but it is no
longer surfaced as platform marketing — a downstream refactor will move
individual essays under their author's profile route.
- With Thoughts gone, the "Company" mega-menu had only Investors left. A
one-item dropdown is silly; refactor the SSOT type so entries can be
either a "menu" (dropdown + descriptions) or a "link" (direct nav
link), and make Investors a link.
- Rename PUBLIC_NAV_GROUPS → PUBLIC_NAV (it is no longer all groups) and
derive PUBLIC_NAV_LINKS from it.
- PublicNav.tsx walks the entries and renders the right shape per entry
on both desktop and the mobile drawer.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Memory is the user's personal entity graph — contacts, projects, decisions,
conversations — derived from the same private data People / Goals / Habits
surface. It belongs alongside them in the PIN-gated zone, not in a separate
"Knowledge" category invented to pair it with Thoughts.
Thoughts is the opposite: essays the user authors and publishes to the
public /thoughts route. Its sensitivity is "published content," not
"private graph." Different domain → different home.
Re-audit by data sensitivity, three sections instead of four:
- WORK (always visible): Today, Control, Projects, Prompts, History,
System, Thoughts.
- PRIVATE (PIN-gated): Memory, People, Goals, Habits, Events, Money.
- SITE (marketing): Mission, Philosophy, Roadmap, Investors,
Whitepaper.
Concrete changes:
- SIDEBAR_SECTIONS in config/navigation.ts: drop "Knowledge" group.
- Move /memory route into src/app/(app)/(private)/memory so direct visits
hit the existing PrivatePinGate flow.
- MemorySummaryCard on /system returns null when PIN-locked so entity /
relation counts do not leak through the System surface.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Resolve three coupled issues:
1. Sidebar gets too crowded with 19 items and no domain grouping.
2. Goals lives outside the (private) route group even though it is one of
the personal-life surfaces the user wants PIN-gated alongside money,
habits, people, events.
3. Public marketing nav exposes six flat links; the sign-in / get-started
pair on the right is visible even for already-signed-in users.
Sidebar restructure (SSOT in config/navigation.ts):
- Replace flat NAV_ITEMS with SIDEBAR_SECTIONS — work / knowledge / private
/ site groupings. NAV_ITEMS is now derived from the sections so mobile
bottom nav and the command palette keep working without duplication.
- SidebarNav renders a section header per group. The private section uses
the existing usePrivateZone() hook; when the PIN is configured but
locked, the section collapses to a single "Unlock to view" entry that
routes through /people (existing PrivatePinGate flow).
- New ui-sidebar-section-header / -lock / -private-unlock classes —
theme-aware tokens, no hardcoded colours.
Private zone consistency:
- Move /goals into src/app/(app)/(private)/goals so direct visits hit the
existing layout's PIN gate, matching events / habits / money / people.
- GoalsDueCard, StuckGoalsCard, EventsDueCard return null when PIN-locked
so Today's actionable grid does not leak counts.
- SummaryBar zeroes out activeGoals / habitsTotal / goalsDueSoon /
stuckGoals / eventsDueSoon / staleContacts when locked.
Public mega-menu (SSOT in config/auth.ts):
- Replace flat PUBLIC_NAV_LINKS with PUBLIC_NAV_GROUPS = Product (Mission,
Philosophy, Roadmap, Whitepaper) + Company (Investors, Thoughts). Each
item carries a one-line description. PUBLIC_NAV_LINKS is now derived
from the groups so legacy consumers keep working.
- New PublicNav client component renders two hover/click dropdowns on
desktop (md+) and a portaled full-screen drawer on mobile (<md). Esc
closes either; click-outside closes the dropdown; body scroll locks
while the drawer is open. createPortal ensures the drawer is not
trapped inside ui-public-surface's stacking context.
- PublicSurface now uses PublicNav internally and drops the navLinks prop;
pages pass right={<PublicHeaderActions />} only. AuthShell opts out of
the marketing nav via showNav={false}.
Misc cleanup:
- Replace remaining inline border-white/10 in marketing JSX with
border-border-subtle.
- Drop the now-unused PUBLIC_NAV_LINKS imports across marketing pages and
AuthShell.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Bring the public marketing pages (/, /mission, /philosophy, /investors,
/roadmap, /whitepaper) and the auth surface (/sign-in, /sign-up, /onboarding,
etc.) onto the same theme-aware token system that the rest of the app uses.
Before: ui-public-* and ui-auth-* both hardcoded text-white/X and bg-white/X
opacities. Marketing was visually broken in light mode; the two namespaces
duplicated the same visual primitives with bespoke opacity values.
After: both class families resolve every visible decision through the shared
--text-*/--surface-*/--border-* tokens that flip with .dark. One change to
:root/.dark in globals.css now rethemes both surfaces in lockstep.
Specific changes:
- ui-public-surface: bg-surface-public (always dark) → bg-background (flips).
- Backdrop grid + glow gradients now read --public-grid-stroke and
--public-glow-* variables that flip with theme.
- All ui-public-* + ui-auth-* classes refactored: text-white/X → text-text-*,
bg-white/X → bg-surface-*, border-white/X → border-border-*, bg-white text-black
buttons → bg-text-primary text-text-inverted.
- Drop dead ui-brand-mark-inverted / ui-brand-kicker-inverted /
ui-brand-wordmark-inverted classes and the BrandMark `inverted` prop; the
brand mark now uses --text-primary which already flips correctly.
Bidirectional navigation:
- New PublicHeaderActions server component renders session-aware right-side
CTA — guests see Sign in / Get started; signed-in users see Open Cockpit →.
Used by every marketing + whitepaper page.
- Add Thoughts to PUBLIC_NAV_LINKS; reorder Mission → Philosophy → Roadmap →
Investors → Thoughts → Whitepaper for a clearer narrative flow.
- New SITE_NAV_ITEMS in config/navigation.ts surfaces the marketing pages
inside the app sidebar under a "Site" header so logged-in users can reach
Mission/Philosophy/Roadmap/Investors/Whitepaper without leaving the shell.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replace the three-paragraph skeleton with seven detailed phases — Foundation,
Local Fleet Runner, Remote Control Channel, Mobile Fleet Control, Cloud Agents,
Teams, Robotics — each with a summary, concrete bullets, and (where useful) a
trailing note.
Adds a Throughlines section enumerating the cross-cutting constraints that hold
across every phase: local execution privileged, open and local models first-class,
autonomy as a user-controlled dial, outbound-only connections, nothing hidden.
This brings the public roadmap into alignment with the depth of the two Thoughts
essays shipped yesterday — the Electron app, the authenticated outbound WebSocket
to the control plane, mobile apps, complementary cloud execution, and the
robotics continuity.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Add /mission, /philosophy, /investors, /roadmap with x.ai-style discipline:
giant display titles, sparse confident statements, numbered value markers,
generous whitespace, consistent final CTA, opacity-graded body text.
- Rewrite landing page with the same shared ui-public-* primitives so all
marketing pages share one design surface.
- Add src/config/marketing-content.ts as the SSOT for every public string —
rebrand or A/B test by editing this one file.
- Extend src/config/brand.ts with MARKETING_TAGLINE / MARKETING_SUBTITLE /
MARKETING_HERO_PRIMARY / MARKETING_HERO_SECONDARY / MARKETING_POSITIONING.
- Add ~20 new ui-public-* classes to globals.css (display titles, hero parts,
eyebrow, lede, body, meta, step-num, prose-strong/-muted, CTAs, band) so
components carry zero arbitrary values and zero raw color/typography.
- Add FinalCta component used by every marketing page for a consistent close.
- Add the four marketing routes to the public matcher in src/proxy.ts so they
render without auth.
- Replace generic Features/Pricing entries in PUBLIC_NAV_LINKS with the four
new pages + keep Whitepaper.
- Publish two Thoughts essays: enabling-the-individual-singularity and the
local-fleet-runner-and-remote-control-plane-architecture.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Added support for 'Auto paused' chip in ProjectStatusChips when autoContinueEnabled=false for the project.
The indicator is ready (one-line wiring from the card passes the value). Combined with the existing prominent Play/Pause button in the input, this makes per-project pause obvious for launch.
Part of the final launch-day tranche.
Only render the 'Reuse recent prompts' section when there are 2+ useful non-meta items after filtering.
This directly improves the visual duplication the user reported between 'Sent prompts', 'Reuse recent prompts', and the Prompt library on the /control project cards.
Part of launch-day tranche for cleaner, more trustworthy cards.
The previous quit logic was too polite (only sent quitCommand and polled). Now it always does:
- quitCommand (if registered)
- Ctrl+C (hard interrupt)
- longer best-effort wait
This makes the switcher in the /control cards actually work for real usage (Grok, custom Claude wrappers, etc.) instead of leaving the old agent running.
Part of the launch-day tranche for functional agent switching + per-project pause.
- Card header: when project is ready and has a real handoff with 'next', show 'Next: <short>' instead of generic 'Ready for next step' tag. Directly reduces the duplicate 'Ready for next step ✓ ✓ Ready for next step today' + meaningless checkmarks the user sees on the Cockpit card.
- sendCustom + smartEnqueue: strengthened special case so any prompt starting with 'status: working/ready' (the exact pattern the user pastes to drive the agent) always takes the direct send path instead of being routed to queue just because the card thinks the project is busy.
- Builds on previous agent label fallback (now shows correct live agent like 'Grok' instead of stale 'Claude ready') and mobile label cleanup.
This delivers real, visible progress on both the lying/crowded card UI and the 'UI send not landing in tab' problem in one deployable change. Enough micro-slices.
When the text the user pastes into a project card starts with 'status: working' (or ready), treat it as an intentional custom instruction and send direct instead of routing through the 'if not idle then queue' logic.
This directly addresses the reported symptom: pasting a full task starting with 'status: working' + sending (via queue button or direct) was not landing in the active tab.
Part of making the UI→tab dispatch loop reliable while fixing the lying/crowded card status.
- formatAgentRuntimeLabel now accepts optional liveTab and falls back to inferAdapterFromTabName when activeAgents and currentPrompt.adapter are empty.
- Updated call sites in ProjectStatusChips and live tab rows.
- This makes the card for a project the user is actively in (e.g. running Grok in the Cockpit tab) show the correct agent instead of stale 'Claude ready'.
- Part of the duplicate H2 + status labels truthfulness slice.
- ControlPanel mobile summary: 'Terminal workspaces' → 'Workspaces' (shorter, less visual duplication with the inner live panel content and desktop h2).
- ProjectStatusChips: improved tooltip on the agent chip to explicitly address 'why does it say Claude ready when I'm using Grok?' and point to live detection source + switcher/repair.
Part of the duplicate H2 + status labels truthfulness slice (user dogfood feedback).
- project-intent-panel.tsx and BeaconClient.tsx now exclude the autopilot 'Setup (run, read outputs)...' and 'Picked X (T_)' prompts from the recent chips the user sees in /control cards and beacon popup.
- Directly addresses the reported pollution (same meta prompt showing 'used 123×' in Reuse recent while Sent prompts also lists them, with Prompt library between).
- Reduces visual duplication and makes real user history more prominent.
Part of the ordered UI truthfulness work (recent prompts section cleanup).
- ProjectCard: onEnqueueCustom now smartEnqueue — if project idle/ready (no agent, ready tone), sendText() direct; else enqueue() to DB queue for auto-drain. Matches exact user spec for type/library/history flows. Alt+Enter and ListPlus + mic path all benefit.
- prompt-input: updated status/tooltip to describe the new "queues (or sends now if idle)" behavior.
- use-project-card-actions + dispatch/route: pass project.profile?.mission (and accept in body). buildPrompt includes it in projectCtx; COMPOSED instruction updated to require the body stay aligned with mission.
- dispatch-gates: import canonical AutoInjectMode from config/beacon (was local stale type missing "beacon"); explicit fallthrough for beacon + strategist so Groq composer runs for popup auto-pick and L5.
Delivers the 4 explicit requirements (proper tab already solid; smart queue #2; beacon countdown+pause already wired + now feeds better prompts; internal Groq AI now mission-aware for the next-best when queue empty).
Pre-existing: 2 lint warnings (unrelated files), 8 template TODO mentions, tsc clean. No same-dir regression on these changes.
Picked via rule 2 on uncommitted work from the 4-point request.
User clarified the actual product vision: autopilot is a TRUST LADDER,
not a config screen. Five levels, each adding one more thing Cockpit
decides on your behalf. The middle level (Beacon — popup + countdown
auto-pick) was orphaned by commit 848da6c "stop hook calls strategist
(no more popup race)" — that swap traded the popup race for a
loose-cannon strategist that fired AI-composed prompts without consent.
Bringing the popup back, without the old race (KDE D-Bus + Chrome
+ /tmp polling), since the SSE-driven Chromium window already
replaced the old multi-layer setup.
The five-level ladder, marketing-clear:
L1 Manual — only what you type (Free tier)
L2 Queue — drains your queue (Free tier)
L3 Beacon — popup + countdown (Pro $20/mo) ← new default
L4 Continuous — auto-fires next-best (Pro $20/mo)
L5 Mission — Groq composes from
mission/goals/roadmap (Mission $50/mo)
Concrete changes this commit:
- src/config/beacon.ts: AUTO_INJECT_MODE_VALUES gains "beacon" (the
popup level). All five values have user-facing labels Manual / Queue
/ Beacon / Continuous / Mission with description lines that name the
level number and the sales-grade one-line pitch.
- src/lib/constants/control.ts: DEFAULT_AUTO_INJECT_MODE flips from
"strategist" (L5) to "beacon" (L3). New users start at the right
trust level — Cockpit shows them every dispatch through a popup
with countdown auto-pick, so they earn confidence in the system
before opting into Continuous or Mission.
- scripts/agent-hook-bridge.sh:
• autopilot_dispatch_and_inject() gains a new branch for
mode="beacon": calls ./beacon.py stop $tab $session_file, captures
the user's choice (or countdown auto-pick) on stdout, then
dispatches via emit_or_inject_prompt with the chosen prompt key.
Custom prompts come back as "__custom__<body>".
• Bash defaults for _BEACON_AUTO_MODE change from "strategist" →
"beacon" in both the API-fetch path and the Python-config
fallback path, so a fresh install with no settings row lands at
L3, not L5.
- src/components/control/AutomationPolicyControl.tsx: MODE_STYLE record
gains the "beacon" case (cyan-dot, pulsing). Tooltips for all five
cases rewritten with the level number + the one-line pitch so
hovering the pill teaches the trust ladder.
- src/components/control/ControlFleetStatus.tsx: AUTOMATION_HINT
record gains the "beacon" case. Hints under the fleet chips now
describe the level in plain English (was: jargon like "strategist
composes context-aware prompts" → now: "Mission — Cockpit composes
context-aware prompts from project mission, goals, and history").
Note: the existing "strategist" code value is preserved as the L5
storage key. Mission as a customer-grade feature still needs the
work tracked in roadmap "## Proposed": project context loader,
quality gate, audit trail, sleep budget, trust score. Today's commit
is just the ladder + the missing beacon wire.
beacon.py itself was already installed at
~/.local/share/cockpit-beacon/beacon.py (orphaned since 848da6c);
this commit puts it back in the call path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
User shared live revamp-it transcript: autopilot was firing the
next_best Setup template at the agent every ~1-2 min, the agent
had nothing to do (branch in sync, no blockers, deploy live), so
it wrote the same ready handoff each iteration, and the cycle
repeated indefinitely. Wasted Claude tokens, wasted agent
attention, surfaced as user-visible noise.
The status:working + blocker gates shipped earlier today
(b89fdfc + 7ded0c2) couldn't break this loop because the AGENT
itself writes status:ready each iteration — the gate is correctly
open. The missing primitive was an absolute MINIMUM INTERVAL
between consecutive autopilot fires for the same project,
independent of handoff content.
scripts/agent-hook-bridge.sh:autopilot_dispatch_and_inject() now
maintains a sentinel file per tab at /tmp/cockpit-daemon/last-
autopilot-<tab>. Default cooldown is 300s (5 min); override via
COCKPIT_AUTOPILOT_COOLDOWN_S. When the file's mtime is younger
than the cooldown, autopilot refuses the fire and logs
"cooldown 12s/300s for <tab> — staying idle". Manual dispatches
via the UI bypass this (they go through /api/orchestration/run
which has its own gates) — the cooldown only governs autopilot's
own decision to compose-and-inject.
Concrete effect: revamp-it can fire at most once per 5 min, so
the agent gets 5 min of breathing room to actually do work
before the next prompt arrives. If 5 min is too aggressive for a
healthy project, the env var lets the user tune it.
Roadmap "## Proposed" entry "Autopilot fires uncoordinated across
ALL zellij tabs" can be partly closed by this — it's the option
(2) per-tab cooldown solution. Options (1) global kill switch
and (3) decision-attestation queue are still open and have their
own design merits, but this is the minimum fix that breaks the
worst current symptom.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Browser dogfood 2026-05-31: user typed into the /control textarea
"Fix the 'Saved agent context Xw ago' wording — it sounds like a
security leak. Use 'Idle · last active Xw ago' instead." Caught
that the label was opaque jargon — it describes the INTERNAL
data state ("we have a saved handoff blob") rather than the
OBSERVABLE state for the human reader ("the agent is idle").
control-presenter.ts:563 — handoff-present-but-no-live-observation
case now reads "Idle" instead of "Saved agent context". The row's
timestamp column already shows recency (Xw ago) so the prefix
doesn't need to duplicate it.
Test updated to match the new wording. 19/19 stays green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Browser dogfood 2026-05-31 surfaced: querySelectorAll('h2') returned
two "Terminal workspaces" headings on /control. Mobile renders the
section inside a <details> whose <summary> already labels it
"Terminal workspaces", but the embedded ZellijLivePanel rendered
its own <h2> with the same text — same heading shown twice in a
single mobile viewport, broken document outline for screen readers.
ZellijLivePanel.embedded prop now suppresses the inner H2. The
parent <summary> owns the label when embedded; desktop renders
directly with no summary so the H2 still appears.
Caught while user-flow walking through cockpitapp.vercel.app. The
prior commit's hierarchy-rewrite (383e9b0) moved sections around
but didn't catch this — the duplicate was always there, just
buried below the fold.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Page hierarchy was upside-down: user landed on /control and saw
(1) vague title preamble "Live agent state, project readiness, and
next actions" — meaningless words, (2) small fleet-status header,
(3) "Agent operations / Current work, queued instructions, and
saved context by project" section header explaining nothing the
user couldn't infer, (4) THEN the actually-actionable daemon-offline
banner. The thing that fixes their problem was four scrolls below
the thing they didn't need.
Three coordinated cuts:
1. PageLayout subtitle removed from /control. The chip strip and
banner below carry all the real state — the subtitle was just
text taking space.
2. DaemonStatusBanner moved to the TOP of ControlPanel — when
daemon is offline, the Start/Restart buttons are now the first
thing the eye lands on. When daemon is healthy, the banner
self-hides (existing behavior), so this move costs nothing for
the happy path.
3. "Agent operations" section header collapsed. Renders only when
headerRight has content (project filters etc); the wordy
subtitle is gone. Empty div placeholder keeps the flex layout
stable when headerRight is present.
Final item of the 7-item Elon-team-pass plan. Net effect: /control
opens with the actionable signal first, vague chrome last.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>