spec rev 2.1: first-run next steps (Astra round 2 READY AFTER FIXES)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/specs/2026-11-08-first-run-next-steps-design.md+16 −7docs/superpowers/specs/CODEX-FINDINGS-first-run-next-steps-R2.md+33 −0
CI passed — run details
Intent
<task-notification> <task-id>bm2rlnmgf</task-id> <tool-use-id>toolu_01PZcWdEUUPAxcwERY7jk6Br</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a1de5273-c148-49b8-8267-3dee9d49c9c1/tasks/bm2rlnmgf.output</output-file> <status>completed</status> <summary>Background command "Run Astra round 2 on first-run spec" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 15.3 g CO₂e (1,997,890 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| index 33c41d618..296c675a6 100644 |
| --- 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 |
| @@ -1,6 +1,7 @@ |
| # First-run next steps (account "Getting started" checklist) |
| -Status: rev 2 for Paul, 2026-11-08. Astra round 1: |
| +Status: rev 2.1 for Paul, 2026-11-08. Astra round 2 READY AFTER FIXES, |
| +its two P2s applied (call 2). Astra round 1: |
| `CODEX-FINDINGS-first-run-next-steps.md` (NOT READY: P1 domain detection, |
| six P2s); accepted findings marked **(codex N)**, none declined. Slice 1 of "agent-first onboarding and |
| console parity" (order Paul approved 2026-11-08: first-run page, console |
| @@ -97,12 +98,20 @@ card hides it for that person on that account, permanently, with a small |
| that domain attach creates aliases the page's views don't carry |
| **(codex 1, 2, 3)**. A wrong tick is worse than asking, so the person |
| presses "Mark done" or "Skip". Both are stored per person per account. |
| -2. **Step 2 is done when an app shows a deployed version** in the data the |
| - apps list already loads: the "Observed versions" cell is non-empty |
| - (`Deployment.UniformVersion` set or `Deployment.Mixed`) and its verdict is |
| - not "attention". The step claims "live", not "healthy": the list has no |
| - process-liveness evidence **(codex 4)**. A static app whose route lacks |
| - its channel does not count. |
| +2. **Step 2 is done when an app is affirmatively live,** decided by ONE |
| + predicate (one function, with guard tests) over data the apps page |
| + already loads, claiming "live", not "healthy" (the list has no |
| + process-liveness evidence) **(codex 4, R2)**. An app counts when its |
| + verdict is "ok" (never "unknown" or "attention": a remote instance that |
| + is starting or stopping keeps its version but reports "unknown") AND |
| + either (a) the "Observed versions" cell is non-empty |
| + (`Deployment.UniformVersion` set or `Deployment.Mixed`), or (b) it is a |
| + static route whose OWN channel has a valid, non-empty pointer in the |
| + already-loaded `AppView.Channels` (static routes carry no observed |
| + version; another channel or environment never satisfies it). Guard |
| + tests: a static-only site ticks; a sole remote instance in a transient |
| + state does not; a static route whose own channel is empty does not even |
| + when another channel is set. |
| 3. **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. Step 1 ticks in every account the person belongs to. |
diff --git a/docs/superpowers/specs/CODEX-FINDINGS-first-run-next-steps-R2.md b/docs/superpowers/specs/CODEX-FINDINGS-first-run-next-steps-R2.md| new file mode 100644 |
| index 000000000..1f1a9d08d |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-FINDINGS-first-run-next-steps-R2.md |
| @@ -0,0 +1,33 @@ |
| +1. R1 #1 — **Resolved:** manual domain completion removes the faulty detection. |
| +2. R1 #2 — **Resolved:** no derived settings fact remains. |
| +3. R1 #3 — **Resolved:** settings writers no longer need to maintain checklist state. |
| +4. R1 #4 — **Partly resolved:** health claims are narrowed, but the deployment predicate still misclassifies two cases below. |
| +5. R1 #5 — **Resolved:** completion persists; Show resets completion and manual step state. |
| +6. R1 #6 — **Resolved:** preference handlers specify POST, session identity, membership, CSRF and allowed steps. |
| +7. R1 #7 — **Resolved:** secrets instructions no longer promise an existing console editor. |
| + |
| +Reviewed `80402dd66c1eee4b2e44e1ffea469a9e2dbcc3a3`, round 2 of 3. **No P1; two P2 cases remain under R1 #4.** |
| + |
| +**P2 — A successfully deployed static site never completes step 2.** |
| + |
| +The [specified predicate](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-first-run-next-steps/docs/superpowers/specs/2026-11-08-first-run-next-steps-design.md:100) requires `UniformVersion` or `Mixed`. However, [observedDeployment](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-first-run-next-steps/internal/console/deploymentstatus.go:50) excludes static routes from version observations, even when their registry version is populated. An account containing only a working static site therefore remains incomplete. |
| + |
| +Specify a static-route branch using the route’s own channel and its valid, nonempty pointer from the already-loaded `AppView.Channels`. An unrelated channel or environment must not satisfy it. These channel reads already occur in [loadAppFrame](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-first-run-next-steps/internal/console/appframe.go:107); no additional S3 reads are needed. |
| + |
| +Fault family: deployment completion must accurately represent the serving kind. |
| + |
| +**P2 — Excluding only “attention” allows an unknown deployment to tick “live.”** |
| + |
| +A sole remote instance can report a version while starting or stopping. [remoteRoute](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-first-run-next-steps/internal/console/remoteinstances.go:444) retains that version and sets `unknown` for the transient state. [summarize](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-first-run-next-steps/internal/console/server.go:7003) consequently returns `"unknown"`, while `UniformVersion` remains populated. The proposed predicate accepts this, despite the apps list explicitly withholding its “Deployed” verdict. |
| + |
| +Require affirmative deployment evidence. For the existing instance-row predicate, require `Verdict == "ok"` alongside the observed version. If evaluating individual routes instead, require at least one qualifying route with known state. |
| + |
| +Fault family: deployment completion must not overstate observed state. |
| + |
| +No additional S3 read is required by the remaining design: tokens and preferences use SQL, and deployment inputs are already loaded. The stated browser/CLI role distinctions match the handlers. |
| + |
| +R1 #4’s fault family has now recurred across two rounds. Under stopping rule 2, the choices are to refuse unsupported states, cut automatic deployment detection, or enforce one deployment predicate with guard tests. I recommend the last, covering both cases above and channel isolation. With no P1, apply the P2 fixes without another review round. |
| + |
| +No files changed. No tests or subagents run. |
| + |
| +READY AFTER FIXES |
| \ No newline at end of file |