carlos / platform Public

spec: first-run next steps (checklist), draft + review brief

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev fafa6933c4721b858b5082856d752716cd9ae527 parent 3d0729b
2 files changed, +158 −0
  • docs/superpowers/specs/2026-11-08-first-run-next-steps-design.md +125 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-first-run-next-steps.md +33 −0

CI cancelled — superseded by a newer push — run details

Intent

Human

This all looks a bit prototype-y. Can we use the app styles? Do we need to create a styleguide or something so that mockups can draw on existing styles and patterns?

Human

CHecklist I think

Human

Looking good

Attributed to this commit: 40.6 g CO₂e (5,202,652 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-first-run-next-steps, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/superpowers/specs/2026-11-08-first-run-next-steps-design.md b/docs/superpowers/specs/2026-11-08-first-run-next-steps-design.md
new file mode 100644
index 000000000..f97020b0e
--- /dev/null
+++ b/docs/superpowers/specs/2026-11-08-first-run-next-steps-design.md
@@ -0,0 +1,125 @@
+# First-run next steps (account "Getting started" checklist)
+
+Status: draft for Paul, 2026-11-08. Slice 1 of "agent-first onboarding and
+console parity" (order Paul approved 2026-11-08: first-run page, console
+secrets, parity guard, MCP connector). Slice 0, agent login by link, is live
+in v0.34.27 (`2026-11-07-agent-login-link-design.md`).
+
+## Why
+
+A new Carloku user (2026-11-07) signed in, approved his agent and landed in
+his account with no sense of what to do next. Paul: "The Carloku account
+should be very clear on what next steps are for him", and the steps should
+"change with where he is". Paul's goal for the whole programme: a deployed
+app with as little friction as possible.
+
+Paul chose the checklist layout (option B) from mockups built in the real
+console styles on 2026-11-08.
+
+## What it is
+
+A "Getting started" card at the top of the account's apps page
+(`/a/<account>/`, template `apps.html`), above the apps list. It lists four
+steps in order, ticks the ones that are already true of the account, opens
+up the first step that isn't, and mutes the rest:
+
+1. **Connect your agent or terminal.** Done when the person viewing has at
+ least one live CLI token (`Store.CLITokens(address)`, unexpired, not
+ revoked). Open state: how to connect (`carlos auth login --no-wait` for an
+ agent; the link flow from slice 0), with a copyable prompt for an agent.
+2. **Put your first app live.** Done when any app in the account has a
+ running version (the same "deployed" fact the apps list already shows).
+ Open state: a copyable prompt for the agent ("Deploy this app to
+ {console}. Use the carlos CLI; my account is ready."), and "Create an app
+ here instead" linking the existing create-app page.
+3. **Add your app's secrets.** Carloku does not know which secrets an app
+ needs (nothing declares them today), so this step is done when any app in
+ the account has at least one saved environment setting or secret, or when
+ the person presses Skip for this step (my call, Paul agreed in principle
+ 2026-11-08). Open state: say secrets can be given to the agent or set
+ here; until slice 2 ships the console page, "set here" points at the
+ existing settings page and the CLI command; slice 2 replaces that link.
+4. **Use your own domain.** Done when any app in the account has a custom
+ domain attached. Open state: link the existing domain page/command; Skip
+ allowed.
+
+The card hides itself when all four are done or skipped. "Hide" on the
+card hides it for that person on that account, permanently, with a small
+"Show getting started" link left in the page footer area to bring it back.
+
+## Goals
+
+- A new person always sees exactly one clear next thing to do, worded for
+ someone driving an agent, with the agent prompt one tap from the clipboard.
+- The ticks are facts, computed when the page renders; nobody has to tick
+ anything except Skip.
+- Uses only existing console components (confirm-card, chips, code block,
+ buttons); no new visual language. Works with JavaScript off (Copy is an
+ enhancement; the prompt is selectable text).
+- Cheap: no new S3 reads per page view beyond what the apps page already
+ does (Paul's S3-cost rule).
+
+## Non-goals
+
+- Secrets UI (slice 2), the parity table and guard (slice 3), the MCP
+ connector (slice 4).
+- Per-app next steps on each app's page (option C), a guided wizard, email
+ nudges, analytics on checklist use.
+- Changing the agent login flow or the apps list itself.
+
+## Anti-goals
+
+- Nagging: the card never reappears after Hide or completion unless asked.
+- Wrong ticks: a step must never show done when it isn't (e.g. a token
+ that's expired, an app whose only version was retired).
+- A slower apps page: the checklist must not add S3 round trips.
+
+## Constraints
+
+- Copy drafts go through the Luna copy pass (Paul's delegation for platform
+ UI copy); house rules: no em or en dashes, brand from `{console}` (never a
+ literal "Carloku"), no customer or tenant names.
+- Per-person, per-account state for Hide and Skip lives in the console's
+ database (small table or columns); no new bucket records.
+- Census: if any changed code is in the root binary's scope, a cross-family
+ approval on #280 (console code normally is not).
+- Release like v0.34.27: console only, through the agent manager (8a3d302).
+
+## Calls made after the builder check (mine, 2026-11-08)
+
+1. **Step 3 without S3 reads.** The console records a per-account "has
+ saved settings" fact in its own database whenever a settings write
+ succeeds through the console: the CLI's `PUT /api/cli/apps/{account}/{app}/config`
+ (handleAPIConfigPut), `POST .../config/sync`, and the console's own
+ settings pages. Writes that bypass the console (an operator writing the
+ bucket directly) don't tick it; Skip covers that. "Settings" means
+ environment variables and secrets (appconfig), not the store record.
+ No backfill pass: existing accounts with settings already have apps and
+ rarely need the card; the bit is set on their next write, and Skip works.
+2. **Step 4 is routed custom domains only,** from the views the page
+ already loads (`AppView.Domains`), excluding the platform's own hosts
+ (compare against the apps domain, not a Type string). A domain still
+ attaching shows as not done until it routes, which is true.
+3. **Step 2 is done when any app's verdict is "ok"** (`summarize`), the same
+ "deployed and healthy" the list shows. A failing first deploy or an
+ unreported remote instance is not done: the card should keep helping.
+4. **Step 1 counts person tokens only** (`Kind == ""`, not revoked, not
+ expired); app and service tokens never tick it. A slice 0 agent login is
+ a person token. Tokens are per person, so step 1 ticks in every account
+ that person belongs to; Hide and Skip are per person per account.
+5. **Everyone who can see the account's apps page sees the card**; each
+ action link appears only if the viewer's role allows it (create app,
+ settings, domains), otherwise the step shows its text without the
+ button. It renders in the zero-apps branch too (above the welcome text),
+ which is the main new-user case.
+6. **Skip exists on steps 3 and 4 only.** A real "done" always wins over a
+ skip. "Show getting started" brings the card back and clears that
+ person's skips on that account.
+
+## Left to the builder
+
+Table/column shape for Hide and Skip, the exact "running version" predicate
+(reuse whatever the apps list uses), where "Show getting started" sits, and
+test structure. Facts that are expensive to compute (e.g. custom domains) may
+reuse data the page already loads or a cached account view; if a fact can't
+be had cheaply, say so in review rather than adding S3 reads.
diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-first-run-next-steps.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-first-run-next-steps.md
new file mode 100644
index 000000000..6698f9a1e
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-first-run-next-steps.md
@@ -0,0 +1,33 @@
+# Review brief: spec "First-run next steps", round 1 of 3
+
+Repo carlos/platform, branch `design-first-run-next-steps`, commit: the
+commit that adds this file. Under review:
+`docs/superpowers/specs/2026-11-08-first-run-next-steps-design.md`.
+Authorities: main's code (internal/console: apps.html, server.go apps render
+and summarize, authstore.go CLITokens, appsettings.go, apiconfig handlers,
+view.go AppView.Domains, the role checks on create-app/settings/domains).
+
+You are an independent reviewer. Read the spec, then the code it names, and
+check every claim against that code.
+
+Fixed, do not re-argue: Paul chose the checklist layout and the four steps
+(2026-11-08); the "Calls made after the builder check" are the author's and
+open to challenge on correctness, not taste.
+
+Check:
+1. Can each step's done-fact really be computed without new S3 reads per
+ page view, as specified? Name any read the spec misses.
+2. Wrong-tick risks (anti-goal): any case where a step shows done but isn't,
+ including expired tokens, retired versions, platform hosts counted as
+ custom domains, multi-environment apps.
+3. The "has saved settings" bit: every console write path that can save
+ env vars or secrets for an app, so none is missed; races; what happens on
+ account or app deletion.
+4. Role handling: viewers without permission must not get links that 403;
+ Hide/Skip handlers need CSRF and must be per person per account.
+5. Anything else that would make it not work or slow the apps page.
+
+Severity: P1 unsafe/would not work (blocks approval); P2 wrong or missing
+(fixed without another round); P3 polish (follow-up). End with exactly one
+verdict: READY, READY AFTER FIXES, or NOT READY. Do not edit files. No
+subagents. No full test suites.