spec + brief: console mockup kit and styleguide
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+80
−0
docs/superpowers/specs/2026-11-08-console-mockup-kit-design.md+53 −0docs/superpowers/specs/CONTROLLER-BRIEF-console-mockup-kit.md+27 −0
CI passed — run details
Intent
Attributed to this commit: 26.2 g CO₂e (3,400,439 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on console-mockup-kit, 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-console-mockup-kit-design.md b/docs/superpowers/specs/2026-11-08-console-mockup-kit-design.md| new file mode 100644 |
| index 000000000..e4abf400b |
| --- /dev/null |
| +++ b/docs/superpowers/specs/2026-11-08-console-mockup-kit-design.md |
| @@ -0,0 +1,53 @@ |
| +# Console mockup kit and styleguide |
| + |
| +Status: approved by Paul 2026-11-08 ("Yes"), small tooling branch. |
| + |
| +## Why |
| + |
| +Paul, 2026-11-08, on mockups for the first-run page: hand-built wireframes |
| +"look a bit prototype-y"; agents should draw on the console's real styles |
| +and patterns. The styleguide is "mainly for agents to make sure they come |
| +out without obvious prototype feel and layout/convention issues". |
| +Mockups rendered inside the real console page (test-dumped HTML with the |
| +console CSS inlined) were accepted the same day. |
| + |
| +## What |
| + |
| +1. **Mockup kit:** `make console-mockup-kit` (a skipped-by-default Go test |
| + in internal/console driven by an env var, like the dump used on |
| + 2026-11-08) renders a signed-in account page through the real templates, |
| + inlines every stylesheet, and writes a self-contained HTML shell to |
| + `docs/console-mockup-kit/shell.html` with a clearly marked |
| + `<!-- MOCKUP CONTENT -->` slot inside `<main>`. Neutral fixture data |
| + only (account "shop", person you@example.com); no tenant names. |
| + Also write `docs/console-mockup-kit/README.md`: how to make a mockup |
| + (copy the shell, fill the slot, render at 390 px and desktop with |
| + chromium headless, serve via the brainstorming visual companion as a |
| + full document). |
| +2. **Component guide:** `docs/console-styleguide.md`, for agents. For each |
| + console component in use (page head with eyebrow/h1/lede, confirm-card, |
| + tiles and stat tiles, banner, chips and their variants, buttons |
| + btn/btn-secondary/btn-sm/linkish/danger, tables in tablewrap, sectionhead, |
| + forms form.signin and settings rows, code/pre/term, done page, tabs, |
| + small/muted text, data-busy buttons): a copyable markup snippet, when to |
| + use it, when not to. Plus house rules: no coloured left-border accents |
| + (hairline border + tint instead), no em or en dashes in copy, brand via |
| + the console name never a literal, 16px fields on touch, check 390 px, |
| + JavaScript optional, existing components before new CSS. |
| +3. **Drift check:** a Go test in internal/console that extracts every |
| + class used in the guide's snippets and fails if the console CSS |
| + (console_chrome.html and the rastrillo files it uses) no longer defines |
| + it, so the guide cannot go stale silently. |
| +4. **Rule:** a short section in AGENTS.md: console mockups and new console |
| + UI use the kit and the guide; hand-rolled wireframes are not acceptable |
| + for review. |
| + |
| +## Non-goals |
| + |
| +A live /styleguide route, a new design system, changing any console CSS. |
| + |
| +## Review |
| + |
| +One whole-branch Astra review (tooling, low risk), max 3 rounds, stop at |
| +the first round with no P1. Census: likely untouched (test + docs); check |
| +`make census-card`. No release. |
diff --git a/docs/superpowers/specs/CONTROLLER-BRIEF-console-mockup-kit.md b/docs/superpowers/specs/CONTROLLER-BRIEF-console-mockup-kit.md| new file mode 100644 |
| index 000000000..cf3a86981 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CONTROLLER-BRIEF-console-mockup-kit.md |
| @@ -0,0 +1,27 @@ |
| +# Controller brief: console mockup kit and styleguide |
| + |
| +Coordinator: session 55f1f6a (platform-44). Paul approved this on |
| +2026-11-08. Build it end to end and merge; no release (docs + tooling). |
| + |
| +Worktree (do ALL work here, never the base checkout): |
| +/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-mockup-kit |
| +(branch console-mockup-kit; git identity set). Spec (binding): |
| +docs/superpowers/specs/2026-11-08-console-mockup-kit-design.md. Read |
| +AGENTS.md first. |
| + |
| +Steps: build it yourself or with one Sonnet implementer (it is small); |
| +render the shell at 390 px and desktop with chromium headless to check it |
| +looks like the real console; one Astra whole-branch review |
| +(`codex exec -m gpt-6-astra -c model_reasoning_effort="high" -s read-only |
| +-c 'sandbox_permissions=["disk-full-read-access"]' -o <file> "<prompt>" |
| +</dev/null`, brief from docs/superpowers/reviews/REVIEW-BRIEF-TEMPLATE.md); |
| +apply P2s; `make census-card` (if it moves, get Astra's census verdict and |
| +record it on amadan #280); CI green on the tip; merge with |
| +`amadan branch merge carlos/platform console-mockup-kit -squash -expect |
| +<full sha> -message ...` (subject under 80 chars). Another controller |
| +(1251bb3, first-run next steps) runs in parallel on a different branch: |
| +don't touch its worktree. Report: `paseo send 55f1f6a "<one paragraph>"`. |
| + |
| +Environment: Go commands need the Bash sandbox disabled (default GOCACHE); |
| +run only touched packages' tests with -run; never git stash; scratch in |
| +$TMPDIR, cleaned up; never bind servers to 0.0.0.0. |