carlos / platform Public

review: Astra round 1 on console mockup kit (READY AFTER FIXES)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 67d7a5fdcb4c2e4fc08f1d34d98983fedf3dae19 parent 55ace42
1 file changed, +26 −0
  • docs/superpowers/reviews/CODEX-REVIEW-console-mockup-kit-R1.md +26 −0

CI passed — run details

Intent

Attributed to this commit: 26.8 g CO₂e (3,103,695 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/reviews/CODEX-REVIEW-console-mockup-kit-R1.md b/docs/superpowers/reviews/CODEX-REVIEW-console-mockup-kit-R1.md
new file mode 100644
index 000000000..40fd5c0e5
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-console-mockup-kit-R1.md
@@ -0,0 +1,26 @@
+Round 1: no P1 findings; three P2 findings.
+
+1. **P2 — Class extraction silently skips valid HTML.**
+ [styleguide_test.go:17](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-mockup-kit/internal/console/styleguide_test.go:17) recognizes only `class="..."`. In an in-memory reproduction, replacing the banner attributes with `class='no-such-class'` leaves 58 recognized classes and no reported missing class. The 30-class floor still passes.
+ **Failure scenario:** an edited snippet introduces an undefined class using single quotes, and CI misses it.
+ **Fix:** tokenize the HTML attributes, or explicitly reject unsupported syntax; add this negative case.
+ **Invariant:** every snippet class participates in the drift check.
+
+2. **P2 — CSS extraction counts text outside selectors.**
+ [styleguide_test.go:38](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-mockup-kit/internal/console/styleguide_test.go:38) scans entire template files after removing comments. Reproducing its expression with `p::before { content: ".no-such-class"; } {{.Brand}}` reports both `no-such-class` and `Brand` as defined classes. The current header’s template fields are likewise counted.
+ **Failure scenario:** an undefined snippet class passes because its spelling occurs in a string or template expression.
+ **Fix:** restrict extraction to CSS selector tokens, excluding declaration values and template markup; add negative cases for both.
+ **Invariant:** only a CSS selector establishes that a class exists.
+
+3. **P2 — Destructive-action guidance contradicts the existing flow.**
+ [console-styleguide.md:129](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-mockup-kit/docs/console-styleguide.md:129) reserves `.btn-danger` for a separate confirmation step. Its settings and confirm-card examples model app deletion that way. The real [app_settings.html:621](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-mockup-kit/internal/console/templates/app_settings.html:621) uses a red button beside a required typed-name field, followed by passkey confirmation. [appsettings.go:1344](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-mockup-kit/internal/console/appsettings.go:1344) requires `confirm=<app name>`; the guide’s `confirmed=1` does not satisfy it.
+ **Failure scenario:** an agent follows the guide and draws or implements a deletion flow that differs from the console.
+ **Fix:** document the existing typed-name/passkey pattern, preserve its danger styling, and illustrate `.confirm-card` with an action that actually uses that interstitial.
+ **Invariant:** copyable examples and guidance match the real components and flows.
+
+The current guide’s 59 snippet classes exist, it contains no em/en dashes, and the committed shell has one `<main>`, one slot, and no external stylesheet or script references. Targeted Go tests could not start because the sandbox blocked creation of Go’s build directory; regeneration and determinism were not execution-verified. No files were edited.
+
+Fix these P2s without reopening review, as the brief requires.
+
+**READY AFTER FIXES**
+[exited with code 0]