Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA
TypeScript
v1.91.260.0 feat(design-review,plan-design-review): craft audit and Persuade plan checks; craft tells as checker-only catalog entries (GSTA-92 phase 2) (#3433)
Garry Tan6c5b2d46123c
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.mdindex d9e8082cd..c789cfc73 100644--- a/ARCHITECTURE.md+++ b/ARCHITECTURE.md@@ -356,6 +356,8 @@ Templates contain the workflows, tips, and examples that require human judgment.| `{{DESIGN_MD_CHECK}}` | `resolvers/design.ts` | Open DESIGN.md format check through `bin/gstack-design-md.ts`, with the one-time conversion offer persisted in the file; `:calibrate` renders the tokens-as-calibration form for /design-review || `{{OVERUSED_FONTS}}` | `resolvers/design.ts` | Role-scoped font lists from `lib/design-catalog.ts` (overused as display, fine as body/UI, mono, banned, verified-free) for /design-consultation || `{{DESIGN_SLOP_BULLETS}}` | `resolvers/design.ts` | Prose-only slop bullets from `lib/design-catalog.ts` (no rule ids) for the proposal skills |+| `{{DESIGN_CRAFT_RULE:<lead>}}` | `resolvers/design-craft.ts` | One paragraph of `design-html/sections/craft.md.tmpl`, found by its bold lead, with its bullets, for /design-review's craft audit; a missing or ambiguous lead fails generation |+| `{{DESIGN_PERSUADE_CHECKS}}` | `resolvers/design-craft.ts` | The five Persuade conversion checks (one primary action, named objections, proof beside each claim, a real risk reversal, an index/noindex decision) for /design-review's craft audit and /plan-design-review Pass 1 || `{{DESIGN_SHOTGUN_LOOP}}` | `resolvers/design.ts` | Shared comparison board feedback loop for /design-shotgun, /plan-design-review, /design-consultation || `{{UX_PRINCIPLES}}` | `resolvers/design.ts` | User behavioral foundations (scanning, satisficing, goodwill reservoir, trunk test) for /design-html, /design-shotgun, /design-review, /plan-design-review || `{{GBRAIN_CONTEXT_LOAD}}` | `resolvers/gbrain.ts` | Brain-first context search with keyword extraction, health awareness, and data-research routing. Injected into 10 brain-aware skills. Suppressed on non-brain hosts. |@@ -369,7 +371,9 @@ This is structurally sound — if a command exists in code, it appears in docs.The generator also owns two files that are not skill docs: `review/design-checklist.md` is rendered from `lib/design-catalog.ts` (through `scripts/resolvers/design-checklist.ts`), and `lib/dom-dump.js` is written from `lib/dom-dump-script.ts`. The checklist `/review` and `/ship` read and the DOM dump `/design-review` runs therefore cannot drift from the catalog and the script the templates describe; `test/design-checklist-sync.test.ts` pins both.The internal async `runGeneration()` driver inventories skills, Claude sections-and QA/qa-only sections on every supported host, host metadata, OpenClaw snippets,+and, on every supported host, the sections of the skills carved on every host+(`CARVED_ON_EVERY_HOST` in `scripts/resolvers/sections.ts`: qa, qa-only, ship,+plan-ceo-review, office-hours and design-review), host metadata, OpenClaw snippets,the index, the agent digest, and auxiliary assets. Other skills remain inline onnon-Claude hosts; QA assets resolve relative to the installed host skill.Every artifact goes through one compare-or-write function. Dry runsdiff --git a/CHANGELOG.md b/CHANGELOG.mdindex e4f4d63ec..986195305 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,23 @@# Changelog+## [1.91.260.0] - 2026-10-27++### Changed+- **/design-review audits a Persuade page or a redesign for craft, or on request** (`sections/craft-audit.md`, read in Phases 1-6; design-review is now carved on every host, so the audit is one lazy section, not inlined text). It runs `bin/gstack-design-craft` on each page's served HTML (or the repo file when no app runs) and files each `CRAFT_CHECK` line as a category 9 finding (no `CRAFT_RESULT` line means the check was unavailable, and a framework mount-node shell is judged by eye too; the saved page holds only inline CSS and JS, so `100vh`, `transition: all`, scroll listeners and `alert()` are also judged by eye; it also holds session data, so it is deleted in the block that checks it, whatever the exit code, and never copied to the report; `--accepted` takes that screen's finalized.json, only for a page /design-html finalized, and never covers `needs-proof` or `lorem`; a claim without proof is filed and asked about, never marked or cut); checks what the tool cannot see (claims only from the user, realistic sample content, the ship floor, a designed 404, cookie consent where required, the motion rules); files a failed Persuade check (one primary action, named objections, proof beside each claim, a real risk reversal, an index/noindex decision) as a deferred High finding, since its fix needs the team's copy or indexing call; and in Phase 8 breaks impact ties with Elaya's fix order and reads the installed Tailwind major version before touching its config. The audit's rules render from /design-html's craft section, so the build and the audit cannot drift.+- **/plan-design-review**: a Persuade plan gets the same five checks in Pass 1, Pass 4 rejects unsourced proof, and the runner checklist names them.+- **The craft tells are catalog entries.** Placeholder people and brands, lorem, round sample numbers, `[Needs proof:` markers, "Oops" errors, scroll-listener reveals, dead `href="#"`, `alert()`, images without alt, `100vh`, and a missing title, description, favicon, skip link or `aria-current` live in `lib/design-catalog.ts` as `checkerOnly` entries: one id, one short line and the fix, reported by the craft check and kept out of Methodology category 9, `review/design-checklist.md` and the consultation bullets, so no skill carries their prose. `lib/design-craft.ts` prints only catalog ids, with each entry's `fix` text; `transition: all` now reports under the existing `layout-transition` id instead of `transition-all`.+- **The craft check's `transition: all` tell is `layout-transition`, the design lint's id for it** (`lib/design-lint/rules/copy.ts` leaves it to the lint's static tier, as it does `vh-height`). A `craft_exceptions` entry recorded as `transition-all` is read as `layout-transition`, so an exception accepted before the rename still applies.++### Tests+- `test/helpers/placeholder-allowlist.ts` lists `<path-to-page.html>` (path grammar), the saved page the craft audit passes to the check.+- The design-review and plan-design-review paid cases and judges that read a design resolver now also select on `scripts/resolvers/design-craft.ts`, and `design-html-slop-gate` on `lib/design-catalog.ts`, where the craft check's ids and fixes now live.+- `test/design-craft.test.ts`: every id the check prints is a grep-detectable catalog entry, and the fix it prints is the catalog's. design-review gets its first carve guard (skeleton, union and parity ratio at their measured sizes).+- `test/design-craft.test.ts` also pins that `checkerOnly` entries reach no rendered list while the craft check prints each one, that a change to `scripts/resolvers/design-craft.ts` selects the design-review and plan-design-review cases, and the exception cells a stale record, an over-count tell without `--accepted` and a malformed record on disk reach. New `test/design-craft-resolvers.test.ts`: `{{DESIGN_CRAFT_RULE}}` renders one paragraph with its bullets and fails generation on a missing or ambiguous lead, and both skills carry the same five Persuade checks; the generated craft audit keeps its outcome, exception and session-data rules (and the design-review carve guard checks the last one). `test/design-craft.test.ts` also covers the needs-proof and stale-record exception cells.+- `test/design-lint.test.ts` reads the craft ids from `CRAFT_IDS` instead of scanning `lib/design-craft.ts`, and every one is a lint rule (`layout-transition` and `vh-height` belong to the static tier); `test/design-craft.test.ts` covers the legacy `transition-all` exception.++### Gate integrity+- Size budgets raised to measured sizes only (Garry 2026-10-25 "Do it" (GSTA-92)): the SKILL.md pins of design-review on 12 hosts (+578 Claude, +608 on the 11 external hosts: the Section index the carve test requires and the STOP pointer) and plan-design-review on the 11 external hosts (+1,082: the five Persuade plan checks). The craft tells are catalog entries the craft check reports with their fix, kept out of every rendered skill list, so design-consultation and the review checklist do not grow. No other threshold, budget, timeout, retry or trial count changed.+## [1.91.259.0] - 2026-10-26**New `/ubicloud` skill: the Ubicloud runner moves into gstack with the discipline a shared vCPU quota needs.** Crews ran heavy suites on Ubicloud through a user-scope skill and per-lane wrappers, and paid for it in stray VMs after a machine slept, a project quota at 528 of 512 vCPUs when lanes verified in parallel, verifies that hung for an hour before anyone noticed, and a stale wrapper that skipped a service start. `scripts/ubicloud/ubi-runner.sh` now carries the fixes and `ubicloud/SKILL.md` (entry point `bin/gstack-ubi`) teaches the watched launch; `bun run test:ubicloud` and the remote pregate are unchanged.diff --git a/NOTICE.md b/NOTICE.mdindex 0d26c6b8f..c9a6b0d41 100644--- a/NOTICE.md+++ b/NOTICE.md@@ -49,6 +49,12 @@ signature components are not carried over):- `lib/design-craft.ts` and `bin/gstack-design-craft`: the content-realism andship-floor tells, turned into a free check.- `design-shotgun/SKILL.md.tmpl`: page archetypes as a variant axis.+- `design-review/sections/craft-audit.md.tmpl` (and the generated+ `sections/craft-audit.md`): the redesign-skill audit of an existing site,+ its fix-priority order and Tailwind version check; `scripts/resolvers/design-craft.ts`:+ the Persuade conversion checks, also rendered into+ `plan-design-review/sections/review-sections.md`; and the craft-tell entries+ in `lib/design-catalog.ts`.## hallmark — Copyright (c) 2026 Hallmark contributors — MIT Licensediff --git a/VERSION b/VERSIONindex 08528ff87..f07e90758 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-1.91.259.0+1.91.260.0diff --git a/agents-digest/gstack-AGENTS.md b/agents-digest/gstack-AGENTS.mdindex 203312cf5..f21a13900 100644--- a/agents-digest/gstack-AGENTS.md+++ b/agents-digest/gstack-AGENTS.md@@ -1,4 +1,4 @@-# gstack digest v1.91.259.0 — regenerate/re-copy after upgrading gstack+# gstack digest v1.91.260.0 — regenerate/re-copy after upgrading gstackBehavioral rules from gstack (https://github.com/garrytan/gstack), compressedfor agent hosts without a full skill install. The full skills add workflows,diff --git a/bin/gstack-design-craft b/bin/gstack-design-craftindex 11569f4ed..1c92b4483 100755--- a/bin/gstack-design-craft+++ b/bin/gstack-design-craft@@ -1,5 +1,6 @@#!/usr/bin/env -S bun --no-env-file --config=/dev/null-// gstack-design-craft — free craft check for a generated page (/design-html Step 4).+// gstack-design-craft — free craft check for a page (/design-html Step 4,+// /design-review craft audit).//// Usage: gstack-design-craft <file.html> [--accepted <finalized.json>]//diff --git a/design-review/SKILL.md b/design-review/SKILL.mdindex ce030be9e..25dd2b22e 100644--- a/design-review/SKILL.md+++ b/design-review/SKILL.md@@ -1566,6 +1566,18 @@ Tie everything to user goals and product objectives. Always suggest specific impSource: [OpenAI "Designing Delightful Frontends with GPT-5.4"](https://developers.openai.com/blog/designing-delightful-frontends-with-gpt-5-4) (Mar 2026) + gstack design methodology.+## Section index — Read each section when its situation applies++This skill is a decision-tree skeleton. The steps below point to on-demand+sections. Read a section in full before doing its step; do not work from memory.++| When | Read this section |+|------|-------------------|+| a craft, Persuade or redesign audit | `sections/craft-audit.md` |++> **STOP.** Before a craft, Persuade or redesign audit, Read `~/.claude/skills/gstack/design-review/sections/craft-audit.md` and execute it+> in full. Do not work from memory — that section is the source of truth for this step.+Record baseline design score and AI slop score at end of Phase 6.---diff --git a/design-review/SKILL.md.tmpl b/design-review/SKILL.md.tmplindex 4e7960250..ba964e156 100644--- a/design-review/SKILL.md.tmpl+++ b/design-review/SKILL.md.tmpl@@ -119,6 +119,10 @@ Remember `RUN_ID` and restate it literally in later blocks (each bash block is a{{DESIGN_HARD_RULES}}+{{SECTION_INDEX:design-review}}++{{SECTION:craft-audit}}+Record baseline design score and AI slop score at end of Phase 6.---diff --git a/design-review/sections/craft-audit.md b/design-review/sections/craft-audit.mdnew file mode 100644index 000000000..ebcaed021--- /dev/null+++ b/design-review/sections/craft-audit.md@@ -0,0 +1,63 @@+<!-- AUTO-GENERATED from craft-audit.md.tmpl — do not edit directly -->+<!-- Regenerate: bun run gen:skill-docs -->+## Craft audit: Persuade pages and redesigns++Run this in Phases 1-6, on every audited page, when a page is Persuade (the classifier in the Design Hard Rules) or the user asked for a redesign or a craft audit.++### 1. Run the craft check on each page++With a URL, save the page in the script that opens it. Aside: add `await fs.writeFile(path.join(pwd, ".{page}.html"), await pg.evaluate(() => document.documentElement.outerHTML));`. Fallback engine: `_CR=$(mktemp -d "${TMPDIR:-/tmp}/gstack-craft.XXXXXX"); $B js 'document.documentElement.outerHTML' --out "$_CR/{page}.page.html" --raw`. A saved page holds session data: whatever the exit code, `rm -rf` it (or `${_CR:?}`) in the block that checks it, and never copy it to the report directory. With no running app, use the page's HTML file in the repo.++```bash+~/.claude/skills/gstack/bin/gstack-design-craft <path-to-page.html>+```++Each `CRAFT_CHECK: <id> <count> <fix>` line is one category 9 finding under that id; `CRAFT_RESULT: clean` adds none; no `CRAFT_RESULT` line (framework source or an empty or unreadable file) or a mount-node shell: say the check was unavailable for that page and judge the tells below by eye. A saved page holds only inline CSS and JS: judge `100vh`, `transition: all`, scroll listeners and `alert()` by eye. For a page /design-html finalized, add `--accepted` with that screen's finalized.json (under `$GSTACK_STATE_ROOT/projects/$SLUG/designs/`; unsure: omit it): a `CRAFT_ACCEPTED` line is a finding the user accepted, listed with its reason, not filed again, except `needs-proof` and `lorem`, which a live page cannot carry. After a `cannot use exceptions` warning, file every line. A hit real user content explains (a customer named Nexus) is noted, not filed. Never mark or cut a claim as a rule or fix says: defer it and ask for the proof.++### 2. What the check cannot see++**Claims come from the user, never from you.** Testimonials, customer names and logos, results, uptime, prices and guarantees appear only when supplied. Missing proof: leave the slot out, or mark it `[Needs proof: …]` in the warning color so it cannot ship by accident. A believable invented claim is worse than an obvious placeholder.++**Illustrative content looks real.** Sample data in product shots and UI (table rows, chart values, people in a demo inbox):+- No placeholder people or brands (John Doe, Jane Doe, Acme, Nexus, SmartFlow); distinct avatars; varied dates.+- No round sample numbers (99.99%, 50%, 1,000+ customers, 10x). In a claim, a round number signals it was made up: use the supplied figure or drop it.+- No buzzwords: elevate, seamless, effortless, supercharge, streamline, revolutionize, unlock, empower, unleash, next-gen, game-changer, delve, tapestry, "in the world of".+- Sentence-case headings. Errors say what happened and what to do, never "Oops!". No exclamation marks in success messages.++**Ship floor.** Head tags apply to a full HTML document, not a component or fragment. Every full document has `<title>`, a meta description, a favicon (an inline SVG data URI from the brand mark when no file is supplied), and on a page meant for sharing `og:title` and `og:description`; `og:image` only from a supplied URL. A "Skip to content" link is the first focusable element, hidden until focused, targeting the `id` of `<main>`. Landmarks (`<header>`, `<nav>`, `<main>`, `<footer>`); alt text on meaningful images, `alt=""` on decorative ones. A marketing footer links privacy and terms at supplied URLs. Required fields and email format validate inline, wired with `aria-invalid` and `aria-describedby`. Every link goes somewhere real: no `href="#"`, no made-up path; a control with no target renders disabled. Navigation to other pages marks the current one `aria-current="page"`; in-page section links do not.++Beyond the document: a made-up path returns a designed 404 with a way back, every page has a way out, and cookie consent appears where the jurisdiction requires it.++**Motion.** These govern the one authored motion moment and state transitions; they license no more motion.+- Content is visible by default; script adds the hidden start state only after the observer is set up (`.motion-ready` on `<html>`), so a script failure or a crawler sees everything and the CTA never waits on an animation.+- Reveal with `IntersectionObserver` (`threshold: 0`, bottom `rootMargin` about −20%, once). Never an unthrottled `window.addEventListener('scroll')`; scroll-linked effects read scroll inside `requestAnimationFrame`.+- Animate `transform`, `opacity`, `filter`, `clip-path` only; blur 14px or less.+- No object grows from `scale(0)` (start at 0.85 or more); only lines and bars grow from zero. A data bar fills as a left-to-right `clip-path` wipe, 0.7–1.1s.+- Stagger in reading order inside one section (30–80ms), never across the page.+- Curves are named tokens: DESIGN.md's, else `cubic-bezier(0.16, 1, 0.3, 1)` for entrances and `cubic-bezier(0.65, 0, 0.35, 1)` for wipes; `linear` only for constant motion.+- Loops pause off-screen. `prefers-reduced-motion: reduce` shows the final state. Full-height sections use `min-height: 100dvh`, not `100vh`.++### 3. Persuade pages++File a failed check as a deferred High.++1. **One primary action**, named; nothing competes with it above the fold, and the closing CTA repeats it.+2. **Named objections**: the visitor's top objections, each answered where it arises (FAQ of real questions, comparison, guarantee).+3. **Proof beside each claim**: a supplied customer, quote or figure next to the claim it supports, never a metric row; an unsupported claim is cut or marked `[Needs proof: …]`.+4. **A risk reversal** the business really offers (free plan, trial, no card, cancel anytime, refund); never an invented one.+5. **An index/noindex decision**: an ad-only or time-bound page is `noindex`; an indexed one has a real title and description, and its FAQ ships as FAQPage JSON-LD.++**Conversion rules.**+- A page behind an ad repeats the ad's promise and tone in the hero.+- One primary CTA; nothing competes with it above the fold.+- Benefit first and specific: "Cut weekly reporting from 4 hours to 15 minutes", never "save time".+- Show the risk reversal the business offers (free plan, trial, no card, cancel anytime). Never invent one.+- Proof sits beside the claim it supports. A high-friction offer moves the FAQ up.++### 4. Fix order and stack (Phase 8)++Within one impact level, take the biggest visible gain at the least risk first: type, color, hover/active/focus states, layout and spacing, motion, components, loading/empty/error states, copy, type-scale polish.++Work inside the existing stack: no framework or styling migration; check the dependency file before importing a library. With Tailwind, write for the installed major (`tailwindcss` in package.json or the lockfile): v3 configures `tailwind.config.*`, v4 CSS (`@import "tailwindcss"`, `@theme`).++Adapted from Elaya's [redesign-skill](https://github.com/elayadesign/redesign-skill) and [ai-design-skills](https://github.com/elayadesign/ai-design-skills) (MIT, © 2026 Elaya), rewritten for gstack. See NOTICE.md.diff --git a/design-review/sections/craft-audit.md.tmpl b/design-review/sections/craft-audit.md.tmplnew file mode 100644index 000000000..b6bad2b1b--- /dev/null+++ b/design-review/sections/craft-audit.md.tmpl@@ -0,0 +1,41 @@+## Craft audit: Persuade pages and redesigns++Run this in Phases 1-6, on every audited page, when a page is Persuade (the classifier in the Design Hard Rules) or the user asked for a redesign or a craft audit.++### 1. Run the craft check on each page++With a URL, save the page in the script that opens it. Aside: add `await fs.writeFile(path.join(pwd, ".{page}.html"), await pg.evaluate(() => document.documentElement.outerHTML));`. Fallback engine: `_CR=$(mktemp -d "${TMPDIR:-/tmp}/gstack-craft.XXXXXX"); $B js 'document.documentElement.outerHTML' --out "$_CR/{page}.page.html" --raw`. A saved page holds session data: whatever the exit code, `rm -rf` it (or `${_CR:?}`) in the block that checks it, and never copy it to the report directory. With no running app, use the page's HTML file in the repo.++```bash+{{BIN_DIR}}/gstack-design-craft <path-to-page.html>+```++Each `CRAFT_CHECK: <id> <count> <fix>` line is one category 9 finding under that id; `CRAFT_RESULT: clean` adds none; no `CRAFT_RESULT` line (framework source or an empty or unreadable file) or a mount-node shell: say the check was unavailable for that page and judge the tells below by eye. A saved page holds only inline CSS and JS: judge `100vh`, `transition: all`, scroll listeners and `alert()` by eye. For a page /design-html finalized, add `--accepted` with that screen's finalized.json (under `$GSTACK_STATE_ROOT/projects/$SLUG/designs/`; unsure: omit it): a `CRAFT_ACCEPTED` line is a finding the user accepted, listed with its reason, not filed again, except `needs-proof` and `lorem`, which a live page cannot carry. After a `cannot use exceptions` warning, file every line. A hit real user content explains (a customer named Nexus) is noted, not filed. Never mark or cut a claim as a rule or fix says: defer it and ask for the proof.++### 2. What the check cannot see++{{DESIGN_CRAFT_RULE:Claims come from the user}}++{{DESIGN_CRAFT_RULE:Illustrative content looks real}}++{{DESIGN_CRAFT_RULE:Ship floor}}++Beyond the document: a made-up path returns a designed 404 with a way back, every page has a way out, and cookie consent appears where the jurisdiction requires it.++{{DESIGN_CRAFT_RULE:Motion}}++### 3. Persuade pages++File a failed check as a deferred High.++{{DESIGN_PERSUADE_CHECKS}}++{{DESIGN_CRAFT_RULE:Conversion rules}}++### 4. Fix order and stack (Phase 8)++Within one impact level, take the biggest visible gain at the least risk first: type, color, hover/active/focus states, layout and spacing, motion, components, loading/empty/error states, copy, type-scale polish.++Work inside the existing stack: no framework or styling migration; check the dependency file before importing a library. With Tailwind, write for the installed major (`tailwindcss` in package.json or the lockfile): v3 configures `tailwind.config.*`, v4 CSS (`@import "tailwindcss"`, `@theme`).++Adapted from Elaya's [redesign-skill](https://github.com/elayadesign/redesign-skill) and [ai-design-skills](https://github.com/elayadesign/ai-design-skills) (MIT, © 2026 Elaya), rewritten for gstack. See NOTICE.md.diff --git a/design-review/sections/manifest.json b/design-review/sections/manifest.jsonnew file mode 100644index 000000000..22ef3efb8--- /dev/null+++ b/design-review/sections/manifest.json@@ -0,0 +1,14 @@+{+ "$schema": "https://gstack.dev/schemas/section-manifest.json",+ "skill": "design-review",+ "version": 1,+ "note": "PASSIVE registry (v2 plan T9 / CM2). Fields are IDs, file paths, human titles, and human-readable trigger text ONLY. The skeleton's decision-tree prose is the ONLY place that decides WHEN to read a section. Carved on every host (CARVED_ON_EVERY_HOST in scripts/resolvers/sections.ts).",+ "sections": [+ {+ "id": "craft-audit",+ "file": "craft-audit.md",+ "title": "Craft audit: Persuade pages and redesigns",+ "trigger": "a craft, Persuade or redesign audit"+ }+ ]+}diff --git a/docs/PROJECT_STRUCTURE.md b/docs/PROJECT_STRUCTURE.mdindex c637ad2d3..2b8fb696d 100644--- a/docs/PROJECT_STRUCTURE.md+++ b/docs/PROJECT_STRUCTURE.md@@ -26,7 +26,7 @@ gstack/│ ├── gen-agents-digest.ts # Generates the budget-capped instruction-tier digest (agents-digest/)│ ├── host-config.ts # HostConfig interface + validator│ ├── host-config-export.ts # Shell bridge for setup script-│ ├── resolvers/ # Template resolver modules (preamble, aside = the Aside driver contract + research, browse = $B fallback setup + command reference, qa = surface-aware QA/exploration, sections = lazy loading, design, design-checklist = renders review/design-checklist.md from lib/design-catalog.ts, review-dashboard / plan-gates / spec-review / review-scope, outside-voice = outside-voice primitives + the one failure policy, outside-voice-steps = second opinion / adversarial / plan and doc review, gbrain, etc.)+│ ├── resolvers/ # Template resolver modules (preamble, aside = the Aside driver contract + research, browse = $B fallback setup + command reference, qa = surface-aware QA/exploration, sections = lazy loading, design, design-checklist = renders review/design-checklist.md from lib/design-catalog.ts, design-craft = craft-section paragraphs and the Persuade checks for /design-review's craft audit and /plan-design-review, review-dashboard / plan-gates / spec-review / review-scope, outside-voice = outside-voice primitives + the one failure policy, outside-voice-steps = second opinion / adversarial / plan and doc review, gbrain, etc.)│ ├── lib/shard-engine.ts # Shared shard engine for both test lanes: spawn, group kill, strict verdicts, per-shard sandbox, logs, duration seeds, flags│ ├── skill-check.ts # Health dashboard│ ├── test-free-shards.ts # Free-lane policy on the shard engine (GSTACK_FREE_JOBS, opt-in flaky retry)diff --git a/lib/design-catalog.ts b/lib/design-catalog.tsindex da67f8ffb..b2093e147 100644--- a/lib/design-catalog.ts+++ b/lib/design-catalog.ts@@ -12,13 +12,14 @@// │ design-html anti-slop line (catalogEntries)// ├─ scripts/resolvers/design-checklist.ts review/design-checklist.md (generated)// ├─ bin/gstack-design-detect.ts normalizes engine findings by impeccableId+// ├─ lib/design-craft.ts CRAFT_CHECK ids and their `fix` text (gstack-design-craft)// └─ design/src/brief.ts MOCKUP_NEVER_NAMES in the image-generation prompt//// Rule ids. An entry's `impeccableId` is set only when that id exists in// test/fixtures/impeccable-antipatterns.json (test-enforced), and rendered// prose brackets an id only in that case, so a reader never meets a bracketed// id the detector cannot emit. Everything else is a gstack-only tell that the-// LLM pass judges. The four lists this file replaced (constants.ts, the+// LLM pass judges (or, for an entry with a `fix`, the craft check counts). The four lists this file replaced (constants.ts, the// consultation proposal section, design-html's blacklist, and the review// checklist) had drifted apart; they now render from here.@@ -59,6 +60,10 @@ export interface DesignSlopEntry {/** roles the values are banned for; present iff values is */roles?: FontRole[];handoff?: Handoff;+ /** one-line fix the free craft check prints beside this id (lib/design-craft.ts) */+ fix?: string;+ /** reported only by gstack-design-craft, with its fix; never rendered into skill prose (token weight) */+ checkerOnly?: true;source: 'gstack' | 'impeccable' | 'both';/** the 11 originals; AI_SLOP_BLACKLIST derives from these verbatim */legacyBlacklist?: true;@@ -299,7 +304,7 @@ export const DESIGN_SLOP_CATALOG: DesignSlopEntry[] = [prose: '"Seamless", "effortless", "supercharge", "streamline": words that describe nothing. Say what the product does.',category: 'copy', kind: 'slop', detect: ['engine', 'grep'], confidence: 'MEDIUM', tier: 'ask', impact: 'medium',heuristic: 'Grep visible copy for seamless, effortless, supercharge, streamline, revolutionize, unlock, empower, elevate.',- handoff: 'clarify', source: 'impeccable',+ handoff: 'clarify', source: 'impeccable', fix: 'say the specific thing',},{id: 'aphoristic-cadence', impeccableId: 'aphoristic-cadence', name: 'Aphoristic cadence',@@ -459,6 +464,122 @@ export const DESIGN_SLOP_CATALOG: DesignSlopEntry[] = [handoff: 'harden', source: 'gstack',},+ // ── Craft tells (GSTA-92): grep-checkable; the free craft check (lib/design-craft.ts)+ // prints each id with its `fix`. checkerOnly keeps them out of the rendered skill lists. Adapted from Elaya's landing-page-design and+ // redesign-skill (MIT); see NOTICE.md.+ {+ id: 'placeholder-name', name: 'Placeholder people',+ prose: 'John Doe and Jane Doe in quotes, team rows and demo data. A supplied name, or one that fits the product.',+ category: 'copy', kind: 'slop', detect: ['grep'], confidence: 'HIGH', tier: 'ask', impact: 'medium',+ heuristic: 'Grep visible copy for "John Doe" and "Jane Doe".',+ handoff: 'clarify', source: 'gstack', checkerOnly: true, fix: 'use a supplied name, or one that fits the product in sample data',+ },+ {+ id: 'placeholder-brand', name: 'Placeholder brands',+ prose: 'Acme, Nexus and SmartFlow as the customers in logos, quotes and sample data. A supplied customer, or none.',+ category: 'copy', kind: 'slop', detect: ['grep'], confidence: 'MEDIUM', tier: 'ask', impact: 'medium',+ heuristic: 'Grep visible copy for Acme, Nexus, SmartFlow.',+ handoff: 'clarify', source: 'gstack', checkerOnly: true, fix: 'use a supplied customer, or a fitting name in sample data',+ },+ {+ id: 'lorem', name: 'Lorem ipsum',+ prose: 'Lorem ipsum where a visitor can read it. Write the draft copy.',+ category: 'copy', kind: 'slop', detect: ['grep'], confidence: 'HIGH', tier: 'ask', impact: 'high',+ heuristic: 'Grep visible copy for "lorem ipsum".',+ handoff: 'clarify', source: 'gstack', checkerOnly: true, fix: 'write real copy',+ },+ {+ id: 'round-number', name: 'Round sample numbers',+ prose: '99.9% uptime, 50% faster, 10x, 10,000+ users: round figures nobody measured. The supplied number, or no claim.',+ category: 'copy', kind: 'slop', detect: ['grep'], confidence: 'MEDIUM', tier: 'ask', impact: 'medium',+ heuristic: 'Grep copy for 99.9%, a round percentage before faster, more or uptime, 10x, and "<n>0+ users".',+ handoff: 'clarify', source: 'gstack', checkerOnly: true, fix: 'use the supplied figure, or drop the claim',+ },+ {+ id: 'needs-proof', name: 'Unresolved proof marker',+ prose: 'A `[Needs proof: …]` marker still on the page. Supply the proof or cut the claim before it ships.',+ category: 'copy', kind: 'slop', detect: ['grep'], confidence: 'HIGH', tier: 'ask', impact: 'high',+ heuristic: 'Grep for `[Needs proof:`.',+ handoff: 'clarify', source: 'gstack', checkerOnly: true, fix: 'supply the proof or remove the claim before publishing',+ },+ {+ id: 'oops', name: '"Oops" errors',+ prose: '"Oops!" in place of what happened and what to do next.',+ category: 'copy', kind: 'slop', detect: ['grep'], confidence: 'HIGH', tier: 'ask', impact: 'polish',+ heuristic: 'Grep visible copy for "oops".',+ handoff: 'clarify', source: 'gstack', checkerOnly: true, fix: 'say what happened and what to do',+ },+ {+ id: 'scroll-listener', name: 'Scroll-listener reveals',+ prose: 'Reveals driven by an unthrottled `scroll` listener. IntersectionObserver for reveals; scroll-linked effects read scroll inside requestAnimationFrame.',+ category: 'motion', kind: 'slop', detect: ['grep'], confidence: 'HIGH', tier: 'ask', impact: 'medium',+ heuristic: 'Grep scripts for `addEventListener(\'scroll\'`.',+ handoff: 'animate', source: 'gstack', checkerOnly: true, fix: 'use IntersectionObserver; read scroll inside requestAnimationFrame for a scroll-linked effect',+ },+ {+ id: 'dead-link', name: 'Dead links',+ prose: '`href="#"` on links and buttons that go nowhere. Link it, or render the control disabled.',+ category: 'states', kind: 'slop', detect: ['grep'], confidence: 'HIGH', tier: 'ask', impact: 'medium',+ heuristic: 'Grep markup for `href="#"`.',+ handoff: 'harden', source: 'gstack', checkerOnly: true, fix: 'link it, or render the control disabled',+ },+ {+ id: 'alert', name: 'alert() messages',+ prose: '`alert()` for errors and confirmations. Show the message inline, next to what it is about.',+ category: 'states', kind: 'slop', detect: ['grep'], confidence: 'HIGH', tier: 'ask', impact: 'medium',+ heuristic: 'Grep scripts and inline handlers for `alert(`.',+ handoff: 'harden', source: 'gstack', checkerOnly: true, fix: 'show the message inline',+ },+ {+ id: 'img-no-alt', name: 'Image without alt',+ prose: 'An `<img>` with no alt attribute. Describe a meaningful image; `alt=""` on a decorative one.',+ category: 'imagery', kind: 'slop', detect: ['grep'], confidence: 'HIGH', tier: 'ask', impact: 'medium',+ heuristic: 'Grep markup for `<img` tags with no `alt=`.',+ handoff: 'harden', source: 'gstack', checkerOnly: true, fix: 'add alt text (alt="" when decorative)',+ },+ {+ id: 'vh-height', name: '100vh sections',+ prose: 'Full-height sections on `100vh`, which jump under mobile browser chrome. `min-height: 100dvh`.',+ category: 'layout', kind: 'slop', detect: ['grep'], confidence: 'HIGH', tier: 'ask', impact: 'polish',+ heuristic: 'Grep CSS for `height: 100vh` with no later `100dvh`, and for `h-screen`.',+ handoff: 'layout', source: 'gstack', checkerOnly: true, fix: 'use min-height: 100dvh (a 100vh line followed by a 100dvh fallback is fine)',+ },+ {+ id: 'missing-title', name: 'Missing title',+ prose: 'A full HTML document with no `<title>`. The tab, the bookmark and the search result all read it.',+ category: 'browser-surface', kind: 'slop', detect: ['grep'], confidence: 'HIGH', tier: 'ask', impact: 'medium',+ heuristic: 'Grep each full document for a non-empty `<title>`.',+ handoff: 'harden', source: 'gstack', checkerOnly: true, fix: 'add a <title>',+ },+ {+ id: 'missing-meta-description', name: 'Missing meta description',+ prose: 'A full HTML document with no meta description. Search results and link previews make one up.',+ category: 'browser-surface', kind: 'slop', detect: ['grep'], confidence: 'HIGH', tier: 'ask', impact: 'medium',+ heuristic: 'Grep each full document for `<meta name="description"`.',+ handoff: 'harden', source: 'gstack', checkerOnly: true, fix: 'add <meta name="description">',+ },+ {+ id: 'missing-favicon', name: 'Missing favicon',+ prose: 'No favicon, so every tab shows the browser default. A mark from the brand; an inline SVG when no file exists.',+ category: 'browser-surface', kind: 'slop', detect: ['grep'], confidence: 'HIGH', tier: 'ask', impact: 'polish',+ heuristic: 'Grep each full document for `<link rel="icon"`.',+ handoff: 'polish', source: 'gstack', checkerOnly: true, fix: 'add a favicon <link rel="icon">',+ },+ {+ id: 'missing-skip-link', name: 'Missing skip link',+ prose: 'No "Skip to content" link as the first focusable element, targeting `<main>`. Keyboard users tab through the whole header on every page.',+ category: 'scaffold', kind: 'slop', detect: ['grep'], confidence: 'HIGH', tier: 'ask', impact: 'medium',+ heuristic: 'Check that the first focusable element in `<body>` links to the id on `<main>`.',+ handoff: 'harden', source: 'gstack', checkerOnly: true, fix: 'add a "Skip to content" link first in <body> whose #id exists on <main>',+ },+ {+ id: 'missing-aria-current', name: 'Unmarked current page',+ prose: 'Route navigation with no `aria-current="page"` on the current link. Mark it and style it; in-page section links stay unmarked.',+ category: 'states', kind: 'slop', detect: ['grep'], confidence: 'MEDIUM', tier: 'ask', impact: 'polish',+ heuristic: 'Grep `<nav>` blocks with two or more route links for `aria-current="page"`.',+ handoff: 'harden', source: 'gstack', checkerOnly: true, fix: 'mark the current nav link aria-current="page"',+ },+// ── Quality rules the detector knows. ──{id: 'organic-clip-path', impeccableId: 'organic-clip-path', name: 'Organic clip-path',@@ -525,7 +646,7 @@ export const DESIGN_SLOP_CATALOG: DesignSlopEntry[] = [prose: '`transition: all`, or transitions on width, height, top, left. Animate transform and opacity.',category: 'motion', kind: 'quality', detect: ['engine', 'grep'], confidence: 'HIGH', tier: 'auto-fix', impact: 'polish',heuristic: 'Grep `transition` for `all` or layout properties.',- handoff: 'animate', source: 'impeccable',+ handoff: 'animate', source: 'impeccable', fix: 'list the transitioned properties',},{id: 'line-length', impeccableId: 'line-length', name: 'Line length',@@ -707,8 +828,11 @@ export interface RenderCatalogOptions {omitImpact?: Impact[];}+/** Entries skill prose renders: everything except the craft check's own ids. */+export const RENDERED: readonly DesignSlopEntry[] = DESIGN_SLOP_CATALOG.filter(e => !e.checkerOnly);+export function selectCatalog(o: RenderCatalogOptions): DesignSlopEntry[] {- return DESIGN_SLOP_CATALOG.filter(e =>+ return RENDERED.filter(e =>(!o.kind || e.kind === o.kind)&& !(o.omitImpact && o.omitImpact.includes(e.impact)),);@@ -721,12 +845,12 @@ export function renderCatalog(o: RenderCatalogOptions): string {/** Slop the detector knows, minus the 11 legacy lines: what design doctrine renders as bracketed ids. */export function detectorSlopEntries(o: { omitPolish?: boolean } = {}): DesignSlopEntry[] {- return DESIGN_SLOP_CATALOG.filter(e => e.kind === 'slop' && e.impeccableId && !e.legacyBlacklist && !(o.omitPolish && e.impact === 'polish'));+ return RENDERED.filter(e => e.kind === 'slop' && e.impeccableId && !e.legacyBlacklist && !(o.omitPolish && e.impact === 'polish'));}/** gstack-only slop tells (no detector rule), minus the legacy lines: the LLM pass is the detector. */export function judgmentTellEntries(o: { omitPolish?: boolean } = {}): DesignSlopEntry[] {- return DESIGN_SLOP_CATALOG.filter(e => e.kind === 'slop' && !e.impeccableId && !e.legacyBlacklist && !(o.omitPolish && e.impact === 'polish'));+ return RENDERED.filter(e => e.kind === 'slop' && !e.impeccableId && !e.legacyBlacklist && !(o.omitPolish && e.impact === 'polish'));}/** Catalog entries by id, throwing with the id when one is missing (a rename must fail loudly at gen time). */diff --git a/lib/design-craft.ts b/lib/design-craft.tsindex faa5a12dc..be8966ee0 100644--- a/lib/design-craft.ts+++ b/lib/design-craft.ts@@ -1,15 +1,19 @@/**- * Free craft check for a generated page (design-html Step 4). Counts the tells- * that make a page read as generated or unfinished: placeholder content, AI- * cliché copy, scroll listeners, 100vh, dead links, and the missing ship-floor- * tags. Copy checks read the visible text only (script, style and tags- * removed); code checks read the source. Head checks run only on a full- * document. Adapted from Elaya's landing-page-design and redesign-skill- * (MIT); see NOTICE.md. Buzzwords report under the catalog's- * `marketing-buzzword` id, and BUZZWORDS covers every word its heuristic- * names (test-enforced), so the two lists cannot drift.+ * Free craft check for a page (/design-html Step 4, /design-review craft+ * audit). Counts the tells that make a page read as generated or unfinished:+ * placeholder content, AI cliché copy, scroll listeners, 100vh, dead links,+ * and the missing ship-floor tags. Copy checks read the visible text only+ * (script, style and tags removed); code checks read the source. Head checks+ * run only on a full document. Adapted from Elaya's landing-page-design and+ * redesign-skill (MIT); see NOTICE.md. Every id it prints is a+ * lib/design-catalog.ts entry and the fix beside it is that entry's `fix`+ * (test-enforced): buzzwords report under `marketing-buzzword`, whose+ * heuristic words BUZZWORDS covers, and `transition: all` under+ * `layout-transition`.*/+import { catalogEntries } from './design-catalog';+/** The catalog's marketing-buzzword words plus Elaya's AI cliché words. */export const BUZZWORDS: readonly string[] = ['seamless', 'effortless', 'supercharge', 'streamline', 'revolutionize', 'unlock', 'empower', 'elevate',@@ -31,36 +35,45 @@ interface CountRule {id: string;on: 'source' | 'text' | 'script';pattern: RegExp;- fix: string;}interface PresenceRule {id: string;pattern: RegExp;- fix: string;}const COUNT_RULES: CountRule[] = [- { id: 'placeholder-name', on: 'text', pattern: /\b(?:John|Jane) Doe\b/gi, fix: 'use a supplied name, or one that fits the product in sample data' },- { id: 'placeholder-brand', on: 'text', pattern: /\b(?:Acme|Nexus|SmartFlow)\b/g, fix: 'use a supplied customer, or a fitting name in sample data' },- { id: 'lorem', on: 'text', pattern: /\blorem ipsum\b/gi, fix: 'write real copy' },- { id: 'marketing-buzzword', on: 'text', pattern: buzzwordPattern(), fix: 'say the specific thing' },- { id: 'round-number', on: 'text', pattern: /(?<![\d.])(?:99\.9+|[1-9]0|100)%\s+(?:uptime|faster|more|less|fewer|better|growth|increase|reduction|of (?:teams|users|customers|companies))\b|\b(?:\d+0|\d+(?:,\d{3})+)\+?\s+(?:happy |active )?(?:users|customers|teams|companies)\b|(?<![\d.])10x\s+(?:faster|more|better)\b/gi, fix: 'use the supplied figure, or drop the claim' },- { id: 'needs-proof', on: 'text', pattern: /\[Needs proof:/g, fix: 'supply the proof or remove the claim before publishing' },- { id: 'oops', on: 'text', pattern: /\boops\b/gi, fix: 'say what happened and what to do' },- { id: 'scroll-listener', on: 'source', pattern: /addEventListener\(\s*['"`]scroll['"`]/g, fix: 'use IntersectionObserver; read scroll inside requestAnimationFrame for a scroll-linked effect' },- { id: 'transition-all', on: 'source', pattern: /\btransition\s*:\s*all\b|\btransition-all\b/g, fix: 'list the transitioned properties' },- { id: 'dead-link', on: 'source', pattern: /\bhref\s*=\s*["']#["']/g, fix: 'link it, or render the control disabled' },- { id: 'alert', on: 'script', pattern: /(?<![\w.$])(?:window\.)?alert\s*\(/g, fix: 'show the message inline' },- { id: 'img-no-alt', on: 'source', pattern: /<img\b(?![^>]*(?<![\w-])alt\s*=)[^>]*>/gi, fix: 'add alt text (alt="" when decorative)' },+ { id: 'placeholder-name', on: 'text', pattern: /\b(?:John|Jane) Doe\b/gi },+ { id: 'placeholder-brand', on: 'text', pattern: /\b(?:Acme|Nexus|SmartFlow)\b/g },+ { id: 'lorem', on: 'text', pattern: /\blorem ipsum\b/gi },+ { id: 'marketing-buzzword', on: 'text', pattern: buzzwordPattern() },+ { id: 'round-number', on: 'text', pattern: /(?<![\d.])(?:99\.9+|[1-9]0|100)%\s+(?:uptime|faster|more|less|fewer|better|growth|increase|reduction|of (?:teams|users|customers|companies))\b|\b(?:\d+0|\d+(?:,\d{3})+)\+?\s+(?:happy |active )?(?:users|customers|teams|companies)\b|(?<![\d.])10x\s+(?:faster|more|better)\b/gi },+ { id: 'needs-proof', on: 'text', pattern: /\[Needs proof:/g },+ { id: 'oops', on: 'text', pattern: /\boops\b/gi },+ { id: 'scroll-listener', on: 'source', pattern: /addEventListener\(\s*['"`]scroll['"`]/g },+ { id: 'layout-transition', on: 'source', pattern: /\btransition\s*:\s*all\b|\btransition-all\b/g },+ { id: 'dead-link', on: 'source', pattern: /\bhref\s*=\s*["']#["']/g },+ { id: 'alert', on: 'script', pattern: /(?<![\w.$])(?:window\.)?alert\s*\(/g },+ { id: 'img-no-alt', on: 'source', pattern: /<img\b(?![^>]*(?<![\w-])alt\s*=)[^>]*>/gi },];const HEAD_RULES: PresenceRule[] = [- { id: 'missing-title', pattern: /<title>\s*[^<\s][^<]*<\/title>/i, fix: 'add a <title>' },- { id: 'missing-meta-description', pattern: /<meta\b[^>]*\bname\s*=\s*["']description["']/i, fix: 'add <meta name="description">' },- { id: 'missing-favicon', pattern: /<link\b[^>]*\brel\s*=\s*["'][^"']*\bicon\b/i, fix: 'add a favicon <link rel="icon">' },+ { id: 'missing-title', pattern: /<title>\s*[^<\s][^<]*<\/title>/i },+ { id: 'missing-meta-description', pattern: /<meta\b[^>]*\bname\s*=\s*["']description["']/i },+ { id: 'missing-favicon', pattern: /<link\b[^>]*\brel\s*=\s*["'][^"']*\bicon\b/i },];+/** Every id the check can print, in print order; each is a catalog entry with a fix (test-enforced). */+export const CRAFT_IDS: readonly string[] = [+ ...COUNT_RULES.map(r => r.id), 'vh-height', ...HEAD_RULES.map(r => r.id), 'missing-skip-link', 'missing-aria-current',+];++function finding(id: string, count: number): CraftFinding {+ const fix = catalogEntries([id])[0].fix;+ if (!fix) throw new Error(`lib/design-catalog.ts: entry "${id}" has no craft-check fix`);+ return { id, count, fix };+}+export function visibleText(html: string): string {return html.replace(/<!--[\s\S]*?-->/g, ' ')@@ -78,15 +91,15 @@ export function checkCraft(html: string): CraftFinding[] {const findings: CraftFinding[] = [];for (const rule of COUNT_RULES) {const count = (rule.on === 'text' ? text : rule.on === 'script' ? scripts : html).match(rule.pattern)?.length ?? 0;- if (count > 0) findings.push({ id: rule.id, count, fix: rule.fix });+ if (count > 0) findings.push(finding(rule.id, count));}const vh = [...html.matchAll(/\b((?:min-|max-)?height)\s*:\s*100vh\b(\s*!important)?([^}]*)/g)].filter(m => m[2] || !new RegExp(`(?<![\\w-])${m[1]}\\s*:\\s*100[dsl]vh\\b`).test(m[3])).length+ (html.match(/\b(?:min-)?h-screen\b/g)?.length ?? 0);- if (vh > 0) findings.push({ id: 'vh-height', count: vh, fix: 'use min-height: 100dvh (a 100vh line followed by a 100dvh fallback is fine)' });+ if (vh > 0) findings.push(finding('vh-height', vh));if (!/<head\b/i.test(html)) return findings;for (const rule of HEAD_RULES) {- if (!rule.pattern.test(html)) findings.push({ id: rule.id, count: 1, fix: rule.fix });+ if (!rule.pattern.test(html)) findings.push(finding(rule.id, 1));}const body = html.slice(html.search(/<body\b/i) + 1);const firstFocusable = body.match(/<(?:a\b[^>]*\bhref|button|input|select|textarea)\b[^>]*>/i)?.[0] ?? '';@@ -94,11 +107,11 @@ export function checkCraft(html: string): CraftFinding[] {const main = html.match(/<main\b[^>]*(?<![\w-])id\s*=\s*["']([^"']+)["']/i)?.[1]?? html.match(/<[a-z]+\b[^>]*\brole\s*=\s*["']main["'][^>]*(?<![\w-])id\s*=\s*["']([^"']+)["']/i)?.[1];if (!skipTarget || skipTarget !== main) {- findings.push({ id: 'missing-skip-link', count: 1, fix: 'add a "Skip to content" link first in <body> whose #id exists on <main>' });+ findings.push(finding('missing-skip-link', 1));}const routeLinks = html.match(/<nav\b[\s\S]*?<\/nav>/gi)?.join('').match(/<a\b[^>]*\bhref\s*=\s*["'](?!#)[^"']+["']/gi)?.length ?? 0;if (routeLinks >= 2 && !/\baria-current\s*=\s*["']page["']/i.test(html)) {- findings.push({ id: 'missing-aria-current', count: 1, fix: 'mark the current nav link aria-current="page"' });+ findings.push(finding('missing-aria-current', 1));}return findings;}@@ -117,7 +130,7 @@ export function parseCraftExceptions(json: string): CraftException[] {const list = record.craft_exceptions ?? [];const valid = (e: any) => typeof e?.id === 'string' && Number.isInteger(e.count) && e.count > 0 && typeof e.reason === 'string' && e.reason.trim() !== '';if (!Array.isArray(list) || !list.every(valid)) throw new Error('craft_exceptions must be a list of { id, count, reason } with a positive count and a reason');- return list.map(({ id, count, reason }) => ({ id, count, reason: reason.replace(/\s+/g, ' ').trim() }));+ return list.map(({ id, count, reason }) => ({ id: id === 'transition-all' ? 'layout-transition' : id, count, reason: reason.replace(/\s+/g, ' ').trim() }));}/** A finding is accepted when an exception names its id with at least its count; a higher count stays an issue and says how many were accepted. */diff --git a/lib/design-lint/rules/copy.ts b/lib/design-lint/rules/copy.tsindex a41d598fa..6404ee438 100644--- a/lib/design-lint/rules/copy.ts+++ b/lib/design-lint/rules/copy.ts@@ -13,7 +13,7 @@ import type { Doc } from '../html';import type { Reporter } from '../report';import { ruleMeta } from './ids';-const STATIC_OWNS = new Set(['transition-all', 'vh-height']);+const STATIC_OWNS = new Set(['layout-transition', 'vh-height']);/** The elements the craft check reads from open tag to close tag with a lazy scan. */const SPANNED = new Set(['script', 'style', 'template', 'nav']);diff --git a/package.json b/package.jsonindex 0eca459a0..326cf4f9a 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "gstack",- "version": "1.91.259",+ "version": "1.91.260","description": "Garry's Stack — Claude Code skills + fast headless browser. One repo, one install, entire AI engineering workflow.","license": "MIT","type": "module",diff --git a/plan-design-review/sections/checklist.md b/plan-design-review/sections/checklist.mdindex 57d62d563..77f86b7b0 100644--- a/plan-design-review/sections/checklist.md+++ b/plan-design-review/sections/checklist.md@@ -9,7 +9,8 @@ Design phase steps and required outputs for `bin/gstack-autoplan` (unattended or1. Scope is agreed and DESIGN.md (when present) is read; carry prior decisions.2. Run Passes 1–7 in order, never condensed: information architecture,interaction states, journey and emotional arc, AI slop risk, design system- alignment, responsive and accessibility, unresolved design decisions.+ alignment, responsive and accessibility, unresolved design decisions. A+ Persuade plan also gets Pass 1's five conversion checks.3. Post-pass: update generated mockups when any exist.4. One decision cycle per unresolved finding; then the required outputs below.diff --git a/plan-design-review/sections/checklist.md.tmpl b/plan-design-review/sections/checklist.md.tmplindex d5ae10109..12c0ca59f 100644--- a/plan-design-review/sections/checklist.md.tmpl+++ b/plan-design-review/sections/checklist.md.tmpl@@ -7,7 +7,8 @@ Design phase steps and required outputs for `bin/gstack-autoplan` (unattended or1. Scope is agreed and DESIGN.md (when present) is read; carry prior decisions.2. Run Passes 1–7 in order, never condensed: information architecture,interaction states, journey and emotional arc, AI slop risk, design system- alignment, responsive and accessibility, unresolved design decisions.+ alignment, responsive and accessibility, unresolved design decisions. A+ Persuade plan also gets Pass 1's five conversion checks.3. Post-pass: update generated mockups when any exist.4. One decision cycle per unresolved finding; then the required outputs below.diff --git a/plan-design-review/sections/review-sections.md b/plan-design-review/sections/review-sections.mdindex df90b2cc7..20705ca96 100644--- a/plan-design-review/sections/review-sections.md+++ b/plan-design-review/sections/review-sections.md@@ -80,6 +80,12 @@ A faithful restatement of an existing or already approved contract, such as a wi### Pass 1: Information ArchitectureRate 0-10: Does the plan define what the user sees first, second, third?FIX TO 10: Add information hierarchy to the plan. Include ASCII diagram of screen/page structure and navigation flow. Apply "constraint worship" — if you can only show 3 things, which 3?+**Persuade plan** (a landing, marketing, pricing, waitlist, campaign or comparison page; the Pass 4 classifier): the plan settles each check below, or the gap is a Pass 1 finding. Ask the user for missing proof and risk terms; never invent them.+1. **One primary action**, named; nothing competes with it above the fold, and the closing CTA repeats it.+2. **Named objections**: the visitor's top objections, each answered where it arises (FAQ of real questions, comparison, guarantee).+3. **Proof beside each claim**: a supplied customer, quote or figure next to the claim it supports, never a metric row; an unsupported claim is cut or marked `[Needs proof: …]`.+4. **A risk reversal** the business really offers (free plan, trial, no card, cancel anytime, refund); never an invented one.+5. **An index/noindex decision**: an ad-only or time-bound page is `noindex`; an indexed one has a real title and description, and its FAQ ships as FAQPage JSON-LD.**STOP.** AskUserQuestion once per issue. Do NOT batch. Recommend + WHY. If no issues, say so and move on. Do NOT proceed until user responds.### Pass 2: Interaction State Coverage@@ -217,6 +223,7 @@ FIX TO 10: Rewrite vague UI descriptions with specific alternatives:- "Hero section" → what makes this hero feel like THIS product?- "Clean, modern UI" → meaningless. Replace with actual design decisions.- "Dashboard with widgets" → what makes this NOT every other dashboard?+- "Trusted by thousands", "99.9% uptime" → on a Persuade plan, supplied proof beside the claim (Pass 1, check 3), or no claim.If visual mockups were generated in Step 0.5, evaluate them against the AI slop blacklist above. Read each mockup image using the Read tool. Does the mockup fall into generic patterns (3-column grid, centered hero, stock-photo feel)? If so, flag it and offer to regenerate with more specific direction via `$D iterate --feedback "$(cat "$FEEDBACK_FILE")"` (the feedback in a private file, never inline); use its printed `outputPath` for any later view, check or board.**STOP.** AskUserQuestion once per issue. Do NOT batch. Recommend + WHY.diff --git a/plan-design-review/sections/review-sections.md.tmpl b/plan-design-review/sections/review-sections.md.tmplindex fb2d7b3e8..f4cb0e50e 100644--- a/plan-design-review/sections/review-sections.md.tmpl+++ b/plan-design-review/sections/review-sections.md.tmpl@@ -41,6 +41,8 @@ A faithful restatement of an existing or already approved contract, such as a wi### Pass 1: Information ArchitectureRate 0-10: Does the plan define what the user sees first, second, third?FIX TO 10: Add information hierarchy to the plan. Include ASCII diagram of screen/page structure and navigation flow. Apply "constraint worship" — if you can only show 3 things, which 3?+**Persuade plan** (a landing, marketing, pricing, waitlist, campaign or comparison page; the Pass 4 classifier): the plan settles each check below, or the gap is a Pass 1 finding. Ask the user for missing proof and risk terms; never invent them.+{{DESIGN_PERSUADE_CHECKS}}**STOP.** AskUserQuestion once per issue. Do NOT batch. Recommend + WHY. If no issues, say so and move on. Do NOT proceed until user responds.### Pass 2: Interaction State Coverage@@ -79,6 +81,7 @@ FIX TO 10: Rewrite vague UI descriptions with specific alternatives:- "Hero section" → what makes this hero feel like THIS product?- "Clean, modern UI" → meaningless. Replace with actual design decisions.- "Dashboard with widgets" → what makes this NOT every other dashboard?+- "Trusted by thousands", "99.9% uptime" → on a Persuade plan, supplied proof beside the claim (Pass 1, check 3), or no claim.If visual mockups were generated in Step 0.5, evaluate them against the AI slop blacklist above. Read each mockup image using the Read tool. Does the mockup fall into generic patterns (3-column grid, centered hero, stock-photo feel)? If so, flag it and offer to regenerate with more specific direction via `$D iterate --feedback "$(cat "$FEEDBACK_FILE")"` (the feedback in a private file, never inline); use its printed `outputPath` for any later view, check or board.**STOP.** AskUserQuestion once per issue. Do NOT batch. Recommend + WHY.diff --git a/scripts/resolvers/design-checklist.ts b/scripts/resolvers/design-checklist.tsindex 6efa33125..9c4937b1f 100644--- a/scripts/resolvers/design-checklist.ts+++ b/scripts/resolvers/design-checklist.ts@@ -12,7 +12,7 @@** Derived in part from pbakaus/impeccable (Apache-2.0), modified. See NOTICE.md.*/-import { DESIGN_SLOP_CATALOG, BANNED_FONTS, type DesignSlopEntry } from '../../lib/design-catalog';+import { RENDERED, BANNED_FONTS, type DesignSlopEntry } from '../../lib/design-catalog';import { SENTINEL, DETECT_EXIT_ECHO } from '../../lib/design-detect-contract';export const DESIGN_CHECKLIST_HEADER =@@ -24,17 +24,17 @@ export const DESIGN_CHECKLIST_SLOP_HEADING = 'AI Slop Detection';const TIER_ORDER: Record<DesignSlopEntry['confidence'], number> = { HIGH: 0, MEDIUM: 1, LOW: 2 };-/** Category 1: slop entries a code reader can grep for, plus the legacy blacklist lines. */+/** Category 1: rendered (non-checkerOnly) slop entries a code reader can grep for, plus the legacy blacklist lines. */export function checklistSlopEntries(): DesignSlopEntry[] {// Array.prototype.sort is stable, so catalog order survives within a tier.- return DESIGN_SLOP_CATALOG+ return RENDERED.filter(e => e.kind === 'slop' && (e.detect.includes('grep') || e.legacyBlacklist)).sort((a, b) => TIER_ORDER[a.confidence] - TIER_ORDER[b.confidence]);}/** Catalog rules a review may fix without asking: mechanical CSS changes with HIGH confidence. */export function autoFixEntries(): DesignSlopEntry[] {- return DESIGN_SLOP_CATALOG.filter(e => e.tier === 'auto-fix');+ return RENDERED.filter(e => e.tier === 'auto-fix');}function endsWithPunctuation(s: string): boolean {diff --git a/scripts/resolvers/design-craft.ts b/scripts/resolvers/design-craft.tsnew file mode 100644index 000000000..3bd24deb0--- /dev/null+++ b/scripts/resolvers/design-craft.ts@@ -0,0 +1,31 @@+/**+ * Craft resolvers shared by /design-review's craft audit and /plan-design-review.+ *+ * {{DESIGN_CRAFT_RULE:<lead>}} renders one paragraph of design-html's craft+ * section verbatim, found by its bold lead (`**Ship floor.**`), with the+ * bullets under it, so the audit holds a page to the rules /design-html builds+ * it to and the two cannot drift. A renamed lead fails generation.+ *+ * {{DESIGN_PERSUADE_CHECKS}} is the five conversion checks, phrased to hold for+ * a built page and for a plan of one. Adapted from Elaya's landing-page-design+ * and redesign-skill (MIT); see NOTICE.md.+ */+import * as fs from 'fs';+import * as path from 'path';+import type { ResolverFn } from './types';++const CRAFT_SECTION = path.resolve(import.meta.dir, '../../design-html/sections/craft.md.tmpl');++export const DESIGN_CRAFT_RULE: ResolverFn = (_ctx, args) => {+ const lead = args?.join(':');+ if (!lead) throw new Error('{{DESIGN_CRAFT_RULE:<lead>}} requires the bold lead of a craft paragraph');+ const matches = fs.readFileSync(CRAFT_SECTION, 'utf-8').split(/\n{2,}/).filter(p => p.startsWith(`**${lead}.**`) || p.startsWith(`**${lead},`));+ if (matches.length !== 1) throw new Error(`{{DESIGN_CRAFT_RULE:${lead}}}: ${matches.length} paragraphs starting "**${lead}.**" or "**${lead}," in design-html/sections/craft.md.tmpl; need exactly one`);+ return matches[0].trimEnd();+};++export const DESIGN_PERSUADE_CHECKS: ResolverFn = () => `1. **One primary action**, named; nothing competes with it above the fold, and the closing CTA repeats it.+2. **Named objections**: the visitor's top objections, each answered where it arises (FAQ of real questions, comparison, guarantee).+3. **Proof beside each claim**: a supplied customer, quote or figure next to the claim it supports, never a metric row; an unsupported claim is cut or marked \`[Needs proof: …]\`.+4. **A risk reversal** the business really offers (free plan, trial, no card, cancel anytime, refund); never an invented one.+5. **An index/noindex decision**: an ad-only or time-bound page is \`noindex\`; an indexed one has a real title and description, and its FAQ ships as FAQPage JSON-LD.`;diff --git a/scripts/resolvers/index.ts b/scripts/resolvers/index.tsindex d02bdae93..de019d89a 100644--- a/scripts/resolvers/index.ts+++ b/scripts/resolvers/index.ts@@ -39,6 +39,7 @@ import { generateDxFramework, generateDxErrorCompact, generateDxErrorItems } froimport { generateGBrainContextLoad, generateGBrainSaveResults, generateBrainPreflight, generateBrainCacheRefresh, generateBrainWriteBack } from './gbrain';import { generateTasksSectionEmit, generateTasksSectionAggregate } from './tasks-section';import { SECTION, SECTION_INDEX } from './sections';+import { DESIGN_CRAFT_RULE, DESIGN_PERSUADE_CHECKS } from './design-craft';import { generateRedactInvocationBlock } from './redact-doc';import { generateFreeTextFile } from './free-text-file';import { FOREGROUND_DISPATCH_NOTE, codexSelect } from './constants';@@ -109,6 +110,8 @@ export const RESOLVERS: Record<string, ResolverFn> = {DESIGN_DETECTOR: generateDesignDetector,DESIGN_MD_CHECK: generateDesignMdCheck,DESIGN_SLOP_BULLETS: generateDesignSlopBullets,+ DESIGN_CRAFT_RULE,+ DESIGN_PERSUADE_CHECKS,UX_PRINCIPLES: generateUXPrinciples,DESIGN_OUTSIDE_VOICES: generateDesignOutsideVoices,DESIGN_REVIEW_LITE: generateDesignReviewLite,diff --git a/scripts/resolvers/sections.ts b/scripts/resolvers/sections.tsindex b7b15e203..a210b8e8a 100644--- a/scripts/resolvers/sections.ts+++ b/scripts/resolvers/sections.ts@@ -25,9 +25,10 @@ const ROOT = path.resolve(import.meta.dir, '..', '..');export const QA_ASSET_BLOCKER = 'If missing or unreadable, report a QA setup blocker and its affected probes as blocked; continue other safe probes (independent functional/static checks). Missing/unreadable assets block required QA.';-/** Skills carved on every host: QA (portable assets) and those whose external- * render would exceed SKILL_BYTE_CEILING inlined (C4, #2777). */-const CARVED_ON_EVERY_HOST = ['qa', 'qa-only', 'ship', 'plan-ceo-review', 'office-hours'];+/** Skills carved on every host: QA (portable assets), those whose external+ * render would exceed SKILL_BYTE_CEILING inlined (C4, #2777), and design-review,+ * whose on-demand craft audit stays out of every skeleton (GSTA-92). */+const CARVED_ON_EVERY_HOST = ['qa', 'qa-only', 'ship', 'plan-ceo-review', 'office-hours', 'design-review'];/** Hosts read at most this many UTF-8 bytes of one SKILL.md (~40K tokens). */export const SKILL_BYTE_CEILING = 160_000;diff --git a/test/design-craft-resolvers.test.ts b/test/design-craft-resolvers.test.tsnew file mode 100644index 000000000..51a12ce31--- /dev/null+++ b/test/design-craft-resolvers.test.ts@@ -0,0 +1,52 @@+/**+ * Craft resolvers (scripts/resolvers/design-craft.ts) shared by /design-review's+ * craft audit and /plan-design-review.+ *+ * Value: protects=DESIGN_CRAFT_RULE returns a craft paragraph with its bullets and fails generation on a missing or renamed lead; fails_when=the lookup returns '' or the first paragraph instead of throwing, or drops bullets; why_new=only the freshness golden exercises the resolver, and no test reaches its throw paths; seam=none; no_claim=agent use of the rendered rules (behavioral, no paid case)+ * Value: protects=design-review and plan-design-review render the same five Persuade checks; fails_when=either surface drops or hand-forks the {{DESIGN_PERSUADE_CHECKS}} block; why_new=carve-guards checks one phrase in design-review only, nothing checks plan-design-review; seam=none; no_claim=that an agent applies the checks (eval)+ */+import { describe, expect, test } from 'bun:test';+import * as fs from 'fs';+import * as path from 'path';+import { DESIGN_CRAFT_RULE, DESIGN_PERSUADE_CHECKS } from '../scripts/resolvers/design-craft';+import type { TemplateContext } from '../scripts/resolvers/types';++const ROOT = path.resolve(import.meta.dir, '..');+const read = (...p: string[]) => fs.readFileSync(path.join(ROOT, ...p), 'utf-8');+const ctx = { skillName: 'design-review', tmplPath: 'design-review/sections/craft-audit.md.tmpl' } as TemplateContext;++describe('craft resolvers', () => {+ test('DESIGN_CRAFT_RULE renders the craft paragraph with its bullets; a missing or unknown lead fails generation', () => {+ const motion = DESIGN_CRAFT_RULE(ctx, ['Motion']);+ expect(motion).toStartWith('**Motion.**');+ expect(motion).toContain("Never an unthrottled `window.addEventListener('scroll')`");+ expect(motion).toContain('`min-height: 100dvh`, not `100vh`.');+ expect(motion).not.toContain('\n\n');+ expect(DESIGN_CRAFT_RULE(ctx, ['Claims come from the user'])).toStartWith('**Claims come from the user, never from you.**');+ expect(read('design-html', 'sections', 'craft.md')).toContain(motion);+ expect(() => DESIGN_CRAFT_RULE(ctx, ['No such lead'])).toThrow('No such lead');+ expect(() => DESIGN_CRAFT_RULE(ctx, ['Claims'])).toThrow('0 paragraphs');+ expect(() => DESIGN_CRAFT_RULE(ctx, ['Mot'])).toThrow('need exactly one');+ expect(() => DESIGN_CRAFT_RULE(ctx, [])).toThrow('requires the bold lead');+ expect(() => DESIGN_CRAFT_RULE(ctx)).toThrow('requires the bold lead');+ });++ test('design-review and plan-design-review carry the same five Persuade checks', () => {+ const checks = DESIGN_PERSUADE_CHECKS(ctx);+ expect(checks.split('\n').map(l => l.slice(0, 3))).toEqual(['1. ', '2. ', '3. ', '4. ', '5. ']);+ expect(read('design-review', 'sections', 'craft-audit.md')).toContain(checks);+ expect(read('plan-design-review', 'sections', 'review-sections.md')).toContain(checks);+ });++ test('the design-review craft audit settles each check outcome and exception kind, and keeps the saved page private', () => {+ const audit = read('design-review', 'sections', 'craft-audit.md');+ expect(audit).toContain('line is one category 9 finding under that id');+ expect(audit).toContain('no `CRAFT_RESULT` line (framework source');+ expect(audit).toContain('or a mount-node shell: say the check was unavailable for that page and judge the tells below by eye');+ expect(audit).toContain('add `--accepted` with that screen\'s finalized.json');+ expect(audit).toContain('a `CRAFT_ACCEPTED` line is a finding the user accepted, listed with its reason, not filed again, except `needs-proof` and `lorem`');+ expect(audit).toContain('After a `cannot use exceptions` warning, file every line.');+ expect(audit).toContain('Never mark or cut a claim as a rule or fix says: defer it and ask for the proof.');+ expect(audit).toContain('never copy it to the report directory');+ });+});diff --git a/test/design-craft.test.ts b/test/design-craft.test.tsindex f1c2af57b..a93ae17c9 100644--- a/test/design-craft.test.ts+++ b/test/design-craft.test.ts@@ -2,10 +2,11 @@ import { describe, expect, test } from 'bun:test';import * as fs from 'fs';import * as os from 'os';import * as path from 'path';-import { acceptFindings, BUZZWORDS, checkCraft, formatCraft, parseCraftExceptions, visibleText } from '../lib/design-craft';-import { catalogEntry } from '../lib/design-catalog';+import { acceptFindings, BUZZWORDS, CRAFT_IDS, checkCraft, formatCraft, parseCraftExceptions, visibleText } from '../lib/design-craft';+import { catalogEntry, DESIGN_SLOP_CATALOG, detectorSlopEntries, judgmentTellEntries, renderCatalog, selectCatalog } from '../lib/design-catalog';+import { autoFixEntries, checklistSlopEntries } from '../scripts/resolvers/design-checklist';import { selectTests } from './helpers/test-selection';-import { E2E_TOUCHFILES } from './helpers/touchfiles-data';+import { E2E_TOUCHFILES, LLM_JUDGE_TOUCHFILES } from './helpers/touchfiles-data';const ROOT = path.resolve(import.meta.dir, '..');const BIN = path.join(ROOT, 'bin', 'gstack-design-craft');@@ -33,7 +34,7 @@ describe('design-craft check', () => {const counts = Object.fromEntries(checkCraft(DIRTY).map(f => [f.id, f.count]));expect(counts).toEqual({'placeholder-name': 1, 'placeholder-brand': 1, lorem: 1, 'marketing-buzzword': 2, 'round-number': 3, 'needs-proof': 1, oops: 1,- 'scroll-listener': 1, 'transition-all': 1, 'dead-link': 1, alert: 1, 'img-no-alt': 1, 'vh-height': 1,+ 'scroll-listener': 1, 'layout-transition': 1, 'dead-link': 1, alert: 1, 'img-no-alt': 1, 'vh-height': 1,'missing-title': 1, 'missing-meta-description': 1, 'missing-favicon': 1,'missing-skip-link': 1, 'missing-aria-current': 1,});@@ -46,6 +47,33 @@ describe('design-craft check', () => {expect(formatCraft([])).toBe('CRAFT_RESULT: clean');});+ test('every id the check prints is a grep-detectable catalog entry, and the fix it prints is the catalog fix', () => {+ expect(new Set(CRAFT_IDS).size).toBe(CRAFT_IDS.length);+ for (const id of CRAFT_IDS) {+ const entry = catalogEntry(id);+ expect(entry, id).toBeDefined();+ expect(entry!.detect, id).toContain('grep');+ expect(entry!.fix?.length ?? 0, id).toBeGreaterThan(0);+ }+ const findings = checkCraft(DIRTY);+ expect(findings.map(f => f.id)).toEqual([...CRAFT_IDS]);+ for (const f of findings) expect(f.fix).toBe(catalogEntry(f.id)!.fix!);+ });++ // Value: protects=checker-only craft entries render into no skill prose or checklist, and each is a printed craft id; fails_when=a renderer reads DESIGN_SLOP_CATALOG, not RENDERED, or filters on fix; why_new=only goldens catch it, until regenerated; seam=none; no_claim=byte size of any one skill (size guard owns it)+ test('checker-only catalog entries are craft ids that no rendered list carries; catalog entries with a fix still render', () => {+ const checkerOnly = DESIGN_SLOP_CATALOG.filter(e => e.checkerOnly);+ expect(checkerOnly.length).toBeGreaterThan(0);+ const rendered = new Set([selectCatalog({}), detectorSlopEntries(), judgmentTellEntries(), checklistSlopEntries(), autoFixEntries()].flat().map(e => e.id));+ const prose = renderCatalog({ kind: 'slop' });+ for (const e of checkerOnly) {+ expect(CRAFT_IDS, e.id).toContain(e.id);+ expect(rendered.has(e.id), e.id).toBe(false);+ expect(prose, e.id).not.toContain(e.prose);+ }+ for (const id of ['marketing-buzzword', 'layout-transition']) expect(rendered.has(id), id).toBe(true);+ });+test('BUZZWORDS covers every word the catalog marketing-buzzword heuristic names', () => {const heuristic = catalogEntry('marketing-buzzword')?.heuristic ?? '';const words = heuristic.replace(/^.*?for /, '').replace(/\.$/, '').split(/,\s*/);@@ -130,6 +158,8 @@ describe('accepted craft exceptions (finalized.json craft_exceptions)', () => {expect(accepted).toEqual([{ id: 'placeholder-brand', count: 1, reason: 'Acme is the real customer' }, { id: 'scroll-listener', count: 1, reason: 'unused' }]);expect(issues.find(f => f.id === 'round-number')?.fix).toEndWith('(2 accepted earlier: supplied figures)');expect(issues).toHaveLength(findings.length - 2);+ expect(acceptFindings([{ id: 'needs-proof', count: 1, fix: 'f' }], [{ id: 'needs-proof', count: 1, reason: 'awaiting logo' }])).toEqual({ issues: [], accepted: [{ id: 'needs-proof', count: 1, reason: 'awaiting logo' }] });+ expect(acceptFindings([{ id: 'needs-proof', count: 2, fix: 'f' }], [{ id: 'needs-proof', count: 1, reason: 'awaiting logo' }])).toEqual({ issues: [{ id: 'needs-proof', count: 2, fix: 'f (1 accepted earlier: awaiting logo)' }], accepted: [] });expect(formatCraft([], accepted)).toBe('CRAFT_ACCEPTED: placeholder-brand 1 Acme is the real customer\nCRAFT_ACCEPTED: scroll-listener 1 unused\nCRAFT_RESULT: clean (2 accepted)');const carried = [{ id: 'round-number', count: 1, reason: 'first run' }, { id: 'round-number', count: 3, reason: 'supplied figures' }];for (const list of [carried, [...carried].reverse()]) {@@ -143,6 +173,9 @@ describe('accepted craft exceptions (finalized.json craft_exceptions)', () => {const record = JSON.parse(block.replace(/<number of refinement iterations>|<n>/g, '1'));expect(parseCraftExceptions(JSON.stringify(record))).toEqual([{ id: '<craft id>', count: 1, reason: '<why accepted>' }]);expect(parseCraftExceptions('{"mode":"freeform"}')).toEqual([]);+ const legacy = parseCraftExceptions('{"craft_exceptions":[{"id":"transition-all","count":1,"reason":"recorded before the rename"}]}');+ expect(legacy).toEqual([{ id: 'layout-transition', count: 1, reason: 'recorded before the rename' }]);+ expect(acceptFindings(checkCraft('<style>a { transition: all .2s }</style>'), legacy).accepted).toEqual([{ id: 'layout-transition', count: 1, reason: 'recorded before the rename' }]);expect(parseCraftExceptions('{"craft_exceptions":[{"id":"oops","count":1,"reason":"quoted\\nfrom the user"}]}')).toEqual([{ id: 'oops', count: 1, reason: 'quoted from the user' }]);for (const bad of ['[]', 'null', '{"craft_exceptions":{}}', '{"craft_exceptions":[{"id":"oops","count":0,"reason":"x"}]}', '{"craft_exceptions":[{"id":"oops","count":1,"reason":" "}]}', '{"craft_exceptions":[{"id":"oops","count":1.5,"reason":"x"}]}']) {expect(() => parseCraftExceptions(bad)).toThrow();@@ -175,6 +208,7 @@ describe('accepted craft exceptions (finalized.json craft_exceptions)', () => {const bad = run(page, '--accepted', path.join(dir, name));expect(bad).toMatchObject({ code: 2, out: run(page).out });expect(bad.err).toContain('checked with none accepted');+ expect(bad.err).toContain('cannot use exceptions');}fs.writeFileSync(page, CLEAN);expect(run(page, '--accepted', path.join(dir, 'broken.json'))).toMatchObject({ code: 2, out: 'CRAFT_RESULT: clean\n' });@@ -185,6 +219,27 @@ describe('accepted craft exceptions (finalized.json craft_exceptions)', () => {fs.rmSync(dir, { recursive: true, force: true });}});++ test('an exception the page no longer triggers prints nothing, and a record is read only with --accepted', () => {+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'design-craft-cells-'));+ try {+ const page = path.join(dir, 'finalized.html');+ const record = path.join(dir, 'finalized.json');+ fs.writeFileSync(page, CLEAN);+ fs.writeFileSync(record, JSON.stringify({ craft_exceptions: [{ id: 'placeholder-brand', count: 1, reason: 'Acme is the customer' }] }));+ expect(run(page, '--accepted', record)).toMatchObject({ code: 0, out: 'CRAFT_RESULT: clean\n' });+ expect(run(page)).toMatchObject({ code: 0, out: 'CRAFT_RESULT: clean\n', err: '' });+ expect(acceptFindings([], [{ id: 'oops', count: 1, reason: 'x' }])).toEqual({ issues: [], accepted: [] });+ expect(acceptFindings([], [{ id: 'lorem', count: 1, reason: 'draft copy' }])).toEqual({ issues: [], accepted: [] });+ fs.writeFileSync(page, CLEAN.replace('Halvorsen Freight', 'Acme and Nexus'));+ expect(run(page)).toMatchObject({ code: 1, out: 'CRAFT_CHECK: placeholder-brand 2 use a supplied customer, or a fitting name in sample data\nCRAFT_RESULT: 1 issue(s)\n' });+ fs.writeFileSync(page, CLEAN);+ fs.writeFileSync(record, '{');+ expect(run(page)).toMatchObject({ code: 0, out: 'CRAFT_RESULT: clean\n', err: '' });+ } finally {+ fs.rmSync(dir, { recursive: true, force: true });+ }+ });});describe('design-shotgun to design-html handoff', () => {@@ -206,11 +261,18 @@ describe('design-shotgun to design-html handoff', () => {});test('a change to the craft checker selects the design-html-slop-gate E2E that runs it', () => {- for (const file of ['lib/design-craft.ts', 'bin/gstack-design-craft']) {+ for (const file of ['lib/design-craft.ts', 'lib/design-catalog.ts', 'bin/gstack-design-craft']) {expect(selectTests([file], E2E_TOUCHFILES).selected).toContain('design-html-slop-gate');}});+ // Value: protects=a change to the shared craft resolver reruns the paid cases whose prompts it renders; fails_when=scripts/resolvers/design-craft.ts drops from those touchfile lists; why_new=the row above covers lib/design-craft.ts and the bin only; seam=none; no_claim=that the selected cases pass+ test('a change to the craft resolvers selects the design-review and plan-design-review cases that render them', () => {+ const e2e = selectTests(['scripts/resolvers/design-craft.ts'], E2E_TOUCHFILES).selected;+ for (const name of ['design-review-fix', 'design-review-detector-shim', 'design-review-detector-shim-dom', 'design-review-plugin-handoff', 'plan-design-review-plan-mode']) expect(e2e).toContain(name);+ expect(selectTests(['scripts/resolvers/design-craft.ts'], LLM_JUDGE_TOUCHFILES).selected).toContain('plan-design-review/SKILL.md passes');+ });+test('design-html persists accepted exceptions and passes them back with --accepted', () => {const html = read('design-html', 'SKILL.md');const craft = read('design-html', 'sections', 'craft.md');diff --git a/test/design-lint.test.ts b/test/design-lint.test.tsindex d53e730cb..a0e2c7a8c 100644--- a/test/design-lint.test.ts+++ b/test/design-lint.test.ts@@ -17,6 +17,7 @@ import { collectFiles, contextWaivers, lintStatic, MAX_FILE_BYTES } from '../libimport type { LintContext } from '../lib/design-lint/context';import { browserAvailable } from './helpers/browser-available';import { RULES } from '../lib/design-lint/rules/ids';+import { CRAFT_IDS } from '../lib/design-craft';import { FAMILIES } from '../lib/design-lint/rules';import { findWaivers, reasonIsBoilerplate, resolveWaivers, applyWaivers, suspectedRules } from '../lib/design-lint/waivers';@@ -398,11 +399,10 @@ describe('design-lint: third review cycle', () => {});test('every id gstack-design-craft can emit has a lint rule or belongs to the static tier', () => {- const src = fs.readFileSync(path.join(ROOT, 'lib', 'design-craft.ts'), 'utf8');- const ids = [...new Set([...src.matchAll(/id: '([a-z-]+)'/g)].map((m) => m[1]))];+ const ids = [...CRAFT_IDS];expect(ids.length).toBeGreaterThan(15);- expect(ids.filter((id) => !(id in RULES) && id !== 'transition-all')).toEqual([]);- expect(ids.filter((id) => id in RULES && RULES[id].gate !== 'craft')).toEqual(['vh-height']);+ expect(ids.filter((id) => !(id in RULES))).toEqual([]);+ expect(ids.filter((id) => RULES[id].gate !== 'craft')).toEqual(['layout-transition', 'vh-height']);});});diff --git a/test/external-host-carve.test.ts b/test/external-host-carve.test.tsindex 3051785b0..665e655fe 100644--- a/test/external-host-carve.test.ts+++ b/test/external-host-carve.test.ts@@ -1,5 +1,5 @@/**- * C4 (#2777): ship, plan-ceo-review and office-hours are carved on every host, and no+ * C4 (#2777): ship, plan-ceo-review, office-hours and design-review are carved on every host, and no* generated SKILL.md exceeds 160,000 UTF-8 bytes on any host or model overlay* setup can select. Carved sections on external hosts are pointed at relative* to the installed skill directory: `$GSTACK_ROOT/<skill>/sections/...` does@@ -65,10 +65,10 @@ describe('C4: external section pointers', () => {});});-describe('C4: ship, plan-ceo-review and office-hours are carved on every external host', () => {+describe('C4: ship, plan-ceo-review, office-hours and design-review are carved on every external host', () => {for (const config of EXTERNAL) {test(`${config.name}: every pointer in the carved skill resolves to a generated section file`, () => {- for (const skill of ['ship', 'plan-ceo-review', 'office-hours']) {+ for (const skill of ['ship', 'plan-ceo-review', 'office-hours', 'design-review']) {expect(usesLazySections(config.name, skill)).toBe(true);const dir = skillDir(config, renders.all, skill);const manifest = JSON.parse(fs.readFileSync(path.join(ROOT, skill, 'sections', 'manifest.json'), 'utf8')) as { sections: Array<{ file: string }> };diff --git a/test/fixtures/skill-md-size-allowlist.json b/test/fixtures/skill-md-size-allowlist.jsonindex 9b76795fb..74ab75ecd 100644--- a/test/fixtures/skill-md-size-allowlist.json+++ b/test/fixtures/skill-md-size-allowlist.json@@ -4,90 +4,90 @@"pins": {"agy/gstack-autoplan": 130472,"agy/gstack-design-consultation": 108152,- "agy/gstack-design-review": 143496,+ "agy/gstack-design-review": 144104,"agy/gstack-land-and-deploy": 117690,- "agy/gstack-plan-design-review": 139981,+ "agy/gstack-plan-design-review": 141063,"agy/gstack-plan-devex-review": 135728,"agy/gstack-plan-eng-review": 152574,"agy/gstack-review": 124400,- "claude/design-review": 136499,+ "claude/design-review": 137077,"codex/gstack-autoplan": 130596,"codex/gstack-design-consultation": 109420,- "codex/gstack-design-review": 144996,+ "codex/gstack-design-review": 145604,"codex/gstack-land-and-deploy": 122240,"codex/gstack-office-hours": 102276,- "codex/gstack-plan-design-review": 142434,+ "codex/gstack-plan-design-review": 143516,"codex/gstack-plan-devex-review": 138617,"codex/gstack-plan-eng-review": 155120,"codex/gstack-review": 125304,"copilot/gstack-autoplan": 131605,"copilot/gstack-codex": 100203,"copilot/gstack-design-consultation": 109504,- "copilot/gstack-design-review": 144801,+ "copilot/gstack-design-review": 145409,"copilot/gstack-land-and-deploy": 118945,"copilot/gstack-office-hours": 100432,- "copilot/gstack-plan-design-review": 140852,+ "copilot/gstack-plan-design-review": 141934,"copilot/gstack-plan-devex-review": 136880,"copilot/gstack-plan-eng-review": 153299,"copilot/gstack-review": 125671,"cursor/gstack-autoplan": 129246,"cursor/gstack-design-consultation": 107190,- "cursor/gstack-design-review": 142475,+ "cursor/gstack-design-review": 143083,"cursor/gstack-land-and-deploy": 116613,- "cursor/gstack-plan-design-review": 138936,+ "cursor/gstack-plan-design-review": 140018,"cursor/gstack-plan-devex-review": 134559,"cursor/gstack-plan-eng-review": 151428,"cursor/gstack-review": 142320,"factory/gstack-autoplan": 131530,"factory/gstack-codex": 100623,"factory/gstack-design-consultation": 108638,- "factory/gstack-design-review": 144265,+ "factory/gstack-design-review": 144873,"factory/gstack-land-and-deploy": 120785,"factory/gstack-office-hours": 101311,- "factory/gstack-plan-design-review": 141717,+ "factory/gstack-plan-design-review": 142799,"factory/gstack-plan-devex-review": 137928,"factory/gstack-plan-eng-review": 154542,"factory/gstack-review": 146099,"gbrain/gstack-autoplan": 129783,- "gbrain/gstack-design-review": 132810,+ "gbrain/gstack-design-review": 133418,"gbrain/gstack-land-and-deploy": 117135,- "gbrain/gstack-plan-design-review": 127823,+ "gbrain/gstack-plan-design-review": 128905,"gbrain/gstack-plan-devex-review": 115097,"gbrain/gstack-plan-eng-review": 134160,"hermes/gstack-autoplan": 129873,- "hermes/gstack-design-review": 132917,+ "hermes/gstack-design-review": 133525,"hermes/gstack-land-and-deploy": 117237,- "hermes/gstack-plan-design-review": 127932,+ "hermes/gstack-plan-design-review": 129014,"hermes/gstack-plan-devex-review": 115183,"hermes/gstack-plan-eng-review": 134245,"kiro/gstack-autoplan": 129008,"kiro/gstack-design-consultation": 107032,- "kiro/gstack-design-review": 142289,+ "kiro/gstack-design-review": 142897,"kiro/gstack-land-and-deploy": 116501,- "kiro/gstack-plan-design-review": 138776,+ "kiro/gstack-plan-design-review": 139858,"kiro/gstack-plan-devex-review": 134399,"kiro/gstack-plan-eng-review": 151278,"kiro/gstack-review": 142132,"openclaw/gstack-autoplan": 129488,- "openclaw/gstack-design-review": 131615,+ "openclaw/gstack-design-review": 132223,"openclaw/gstack-land-and-deploy": 116725,- "openclaw/gstack-plan-design-review": 126674,+ "openclaw/gstack-plan-design-review": 127756,"openclaw/gstack-plan-devex-review": 113936,"openclaw/gstack-plan-eng-review": 132557,"opencode/gstack-autoplan": 131608,"opencode/gstack-design-consultation": 109325,- "opencode/gstack-design-review": 144673,+ "opencode/gstack-design-review": 145281,"opencode/gstack-land-and-deploy": 118730,"opencode/gstack-office-hours": 100266,- "opencode/gstack-plan-design-review": 140706,+ "opencode/gstack-plan-design-review": 141788,"opencode/gstack-plan-devex-review": 136780,"opencode/gstack-plan-eng-review": 153180,"opencode/gstack-review": 144555,"slate/gstack-autoplan": 129127,"slate/gstack-design-consultation": 107111,- "slate/gstack-design-review": 142382,+ "slate/gstack-design-review": 142990,"slate/gstack-land-and-deploy": 116557,- "slate/gstack-plan-design-review": 138856,+ "slate/gstack-plan-design-review": 139938,"slate/gstack-plan-devex-review": 134479,"slate/gstack-plan-eng-review": 151353,"slate/gstack-review": 142226diff --git a/test/helpers/carve-guards.ts b/test/helpers/carve-guards.tsindex 2e9ebd3f6..66f706ae0 100644--- a/test/helpers/carve-guards.ts+++ b/test/helpers/carve-guards.ts@@ -732,6 +732,31 @@ do not launch the downstream skill or open a browser.`,mustContain: ['retrospective', '45-minute gap', 'Ship of the week', 'Praise'],},+ // ── GSTA-92 Phase 2 (2026-10-25): design-review carved on every host ──+ // One lazy section, the craft audit, read for a Persuade page or a redesign;+ // CARVED_ON_EVERY_HOST in scripts/resolvers/sections.ts keeps it out of the+ // external skeletons too (Garry 2026-10-25 'Do it' (GSTA-92), Big decision 2a).+ 'design-review': {+ skill: 'design-review',+ expectedSections: ['craft-audit.md'],+ requiredReads: ['craft-audit.md'],+ scenario:+ 'Walk /design-review in SIMULATION — do not run bash, launch a browser, or edit files. The target is the landing page of a developer-tools SaaS (a Persuade page): treat Setup and Phase 1 as done. Read each pointed section before doing its step, then list the Phases 1-6 checks you would run on that page, including any section-specific check, and stop before Phase 7.',+ staticInvariants: {+ mustStayInSkeleton: ['## Phases 1-6: Design Audit Baseline', '**9. AI Slop Detection**', '## Phase 7: Triage', '## Phase 8: Fix Loop'],+ mustPrecedeStop: ['### Design Hard Rules'],+ mustMoveToSection: ['### 4. Fix order and stack (Phase 8)'],+ gateAfterStop: undefined,+ },+ // No section-loading paid case yet: a new periodic case would push the+ // periodic census past its 38-slice cap (test/paid-retry-supervision.test.ts).+ behavioral: 'none',+ maxSkeletonBytes: 137_767, // measured 137767 (2026-10-26; 137773 on 2026-10-25 before the shorter craft-audit trigger): the Section index the external-host carve test requires, its craft-audit row, and the STOP pointer (GSTA-92; Garry 2026-10-25 'Do it' (GSTA-92)).+ minUnionBytes: 143_300, // measured union 145037 (2026-10-26)+ mustContain: ['AI Slop Detection', 'Fix Loop', 'gstack-design-craft', 'Proof beside each claim', 'holds session data'],+ maxSizeRatio: 1.3704, // first parity guard for design-review: measured 145082 / 105,842 = 1.3708 (2026-10-25; 145077 after the /ship review fixes, 145068 = 1.3707 after the line-13 reword, 145049 = 1.3705 after the post-merge /ship review, 145037 = 1.3704 after its second pass, 2026-10-26), the skeleton's growth since v1.64.1.0 plus the craft audit (Garry 2026-10-25 'Do it' (GSTA-92)).+ },+// ── Token-reduction Phase 4 wave 4 (v1.69.x branch): design doctrine carve ──// (D3A: read-on-demand doctrine, requiredReads-guarded + loading eval)'design-html': {diff --git a/test/helpers/placeholder-allowlist.ts b/test/helpers/placeholder-allowlist.tsindex 9e80dde12..8a4a970ad 100644--- a/test/helpers/placeholder-allowlist.ts+++ b/test/helpers/placeholder-allowlist.ts@@ -140,6 +140,7 @@ export const IDENTIFIER_PLACEHOLDERS: Record<string, IdentifierGrammar> = {'<plan-path>': { grammar: PATH, what: 'bound plan file path' },'<sketch-dir>': { grammar: PATH, what: 'sketch directory printed by an earlier block' },'<path-to-finalized.html>': { grammar: PATH, what: 'finalized HTML path' },+ '<path-to-page.html>': { grammar: PATH, what: 'saved page HTML path' },'<finalized.html>': { grammar: PATH, what: 'finalized HTML path' },'<approved-variant.png>': { grammar: PATH, what: 'approved variant image path' },'<failing-test-file>': { grammar: PATH, what: 'test file path' },diff --git a/test/helpers/touchfiles-data.ts b/test/helpers/touchfiles-data.tsindex 25a89900b..5be6746d6 100644--- a/test/helpers/touchfiles-data.ts+++ b/test/helpers/touchfiles-data.ts@@ -263,7 +263,7 @@ export const E2E_TOUCHFILES: Record<string, string[]> = {"scripts/resolvers/preamble/generate-preamble-bash.ts",'test/fixtures/pty-companion-cli.ts', 'test/helpers/plan-seed-submission.ts', 'test/fixtures/plan-seed-cli.ts', 'test/helpers/owned-claude-transcript.ts', 'lib/fs-atomic.ts', 'test/helpers/plan-skill-questions.ts', 'test/fixtures/eng-auq-validation-error.json', 'test/fixtures/bash-directory-permission.json', 'test/fixtures/design-tasks-bash-permission.json', 'test/fixtures/read-permission.json', 'test/fixtures/ceo-split-e5-numbered-description-491.json', 'test/helpers/plan-skill-question-events.ts', 'test/helpers/plan-skill-question-hook-scope.ts', 'test/helpers/skill-census.ts', 'test/helpers/plan-mode-evidence.ts', 'lib/redact-engine.ts', 'lib/redact-patterns.ts', 'test/helpers/autoplan-artifact-digest.ts', 'test/helpers/autoplan-artifact-permission.ts', 'test/helpers/autoplan-artifact-recorder.ts', 'test/helpers/dx-selected-navigation.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/eng-cache-writer-decision.ts', 'test/helpers/plan-count-artifacts.ts', 'test/helpers/plan-count-file-permission.ts', 'test/helpers/plan-count-fixture.ts', 'test/helpers/plan-count-pending-question.ts', 'test/helpers/plan-floor-review.ts', 'test/helpers/plan-floor-target.ts', 'bin/gstack-context-recovery'],// SDK plan-edit case in test/skill-e2e-design.test.ts (claude -p edits plan.md).- 'plan-design-review-plan-mode': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'plan-design-review/**', 'scripts/gen-skill-docs.ts', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/design.ts',+ 'plan-design-review-plan-mode': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'plan-design-review/**', 'scripts/gen-skill-docs.ts', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/design.ts', 'scripts/resolvers/design-craft.ts','scripts/resolvers/preamble.ts', 'scripts/resolvers/preamble/generate-preamble-bash.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'scripts/resolvers/preamble/generate-completion-status.ts','lib/eval-model.ts', 'test/skill-e2e-design.test.ts','test/fixtures/fake-impeccable.ts', 'test/fixtures/review-eval-design-slop.html', 'test/fixtures/review-eval-design-slop.css', 'test/helpers/aside-available.ts', 'test/helpers/fake-impeccable.ts', 'test/helpers/llm-judge.ts', 'test/helpers/office-hours-attempt.ts', 'test/helpers/pty/**'],@@ -383,7 +383,7 @@ export const E2E_TOUCHFILES: Record<string, string[]> = {"scripts/resolvers/preamble/generate-preamble-bash.ts", "scripts/resolvers/preamble/generate-completion-status.ts",- 'test/fixtures/pty-companion-cli.ts', 'lib/fs-atomic.ts', 'test/helpers/ceo-finding-fixture.ts', 'test/helpers/plan-review-cases.ts', 'test/helpers/plan-review-board-feedback.ts', 'test/fixtures/design-board-questions.json', 'test/fixtures/design-outside-voices-question.json', 'design/src/daemon-state.ts', 'design/src/daemon.ts', 'design/test/daemon-tests-fixtures.ts', 'design/src/daemon-client.ts', 'test/helpers/owned-claude-transcript.ts', 'test/helpers/plan-skill-questions.ts', 'test/fixtures/eng-auq-validation-error.json', 'test/fixtures/bash-directory-permission.json', 'test/fixtures/design-tasks-bash-permission.json', 'test/fixtures/read-permission.json', 'test/fixtures/ceo-split-e5-numbered-description-491.json', 'test/helpers/plan-skill-question-events.ts', 'test/helpers/plan-skill-question-hook-scope.ts', 'test/helpers/skill-census.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'bin/gstack-paths', 'bin/gstack-slug', 'bin/gstack-remote-identity.sh', 'scripts/resolvers/design.ts', 'scripts/resolvers/outside-voice.ts', 'test/helpers/auto-decision-state.ts', 'test/helpers/autoplan-artifact-digest.ts', 'test/helpers/autoplan-artifact-permission.ts', 'test/helpers/autoplan-artifact-recorder.ts', 'test/helpers/dx-selected-navigation.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/eng-cache-writer-decision.ts', 'test/helpers/native-auto-decide.ts', 'test/helpers/plan-count-artifacts.ts', 'test/helpers/plan-count-file-permission.ts', 'test/helpers/plan-count-pending-exit.ts', 'test/helpers/plan-count-pending-question.ts', 'test/helpers/plan-floor-review.ts', 'test/helpers/plan-floor-target.ts', 'test/helpers/plan-scope-selection.ts', 'test/helpers/plan-seed-submission.ts'],+ 'test/fixtures/pty-companion-cli.ts', 'lib/fs-atomic.ts', 'test/helpers/ceo-finding-fixture.ts', 'test/helpers/plan-review-cases.ts', 'test/helpers/plan-review-board-feedback.ts', 'test/fixtures/design-board-questions.json', 'test/fixtures/design-outside-voices-question.json', 'design/src/daemon-state.ts', 'design/src/daemon.ts', 'design/test/daemon-tests-fixtures.ts', 'design/src/daemon-client.ts', 'test/helpers/owned-claude-transcript.ts', 'test/helpers/plan-skill-questions.ts', 'test/fixtures/eng-auq-validation-error.json', 'test/fixtures/bash-directory-permission.json', 'test/fixtures/design-tasks-bash-permission.json', 'test/fixtures/read-permission.json', 'test/fixtures/ceo-split-e5-numbered-description-491.json', 'test/helpers/plan-skill-question-events.ts', 'test/helpers/plan-skill-question-hook-scope.ts', 'test/helpers/skill-census.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'bin/gstack-paths', 'bin/gstack-slug', 'bin/gstack-remote-identity.sh', 'scripts/resolvers/design.ts', 'scripts/resolvers/design-craft.ts', 'scripts/resolvers/outside-voice.ts', 'test/helpers/auto-decision-state.ts', 'test/helpers/autoplan-artifact-digest.ts', 'test/helpers/autoplan-artifact-permission.ts', 'test/helpers/autoplan-artifact-recorder.ts', 'test/helpers/dx-selected-navigation.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/eng-cache-writer-decision.ts', 'test/helpers/native-auto-decide.ts', 'test/helpers/plan-count-artifacts.ts', 'test/helpers/plan-count-file-permission.ts', 'test/helpers/plan-count-pending-exit.ts', 'test/helpers/plan-count-pending-question.ts', 'test/helpers/plan-floor-review.ts', 'test/helpers/plan-floor-target.ts', 'test/helpers/plan-scope-selection.ts', 'test/helpers/plan-seed-submission.ts'],'tpa-present': [ 'scripts/resolvers/third-party-actions.ts', 'ship/SKILL.md.tmpl', 'ship/sections/apple-release.md.tmpl', 'scripts/gen-skill-docs.ts', 'test/helpers/session-runner.ts', 'test/skill-e2e-third-party-actions.test.ts', 'test/helpers/third-party-actions.ts','lib/eval-model.ts'],@@ -848,15 +848,15 @@ export const E2E_TOUCHFILES: Record<string, string[]> = {"scripts/resolvers/preamble/generate-preamble-bash.ts", "scripts/resolvers/preamble/generate-completion-status.ts",'scripts/resolvers/preamble/generate-ask-user-format.ts', 'test/fixtures/fake-impeccable.ts', 'test/fixtures/review-eval-design-slop.html', 'test/fixtures/review-eval-design-slop.css', 'test/helpers/aside-available.ts', 'test/helpers/fake-impeccable.ts', 'test/helpers/llm-judge.ts', 'test/helpers/office-hours-attempt.ts'],- 'design-review-fix': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'design-review/**', 'scripts/resolvers/aside.ts', 'scripts/resolvers/design.ts', 'scripts/resolvers/outside-voice.ts', 'lib/design-catalog.ts', 'browse/src/**', 'scripts/gen-skill-docs.ts', 'test/skill-e2e-design.test.ts',+ 'design-review-fix': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'design-review/**', 'scripts/resolvers/aside.ts', 'scripts/resolvers/design.ts', 'scripts/resolvers/design-craft.ts', 'scripts/resolvers/outside-voice.ts', 'lib/design-catalog.ts', 'browse/src/**', 'scripts/gen-skill-docs.ts', 'test/skill-e2e-design.test.ts','scripts/resolvers/testing.ts', 'test/fixtures/fake-impeccable.ts', 'test/fixtures/review-eval-design-slop.html', 'test/fixtures/review-eval-design-slop.css', 'test/helpers/aside-available.ts', 'test/helpers/fake-impeccable.ts', 'test/helpers/llm-judge.ts', 'test/helpers/office-hours-attempt.ts'],// Design detector (user-installed impeccable engine) through the fake engine shim: source mode on a diff and DOM mode on a served page.- 'design-review-detector-shim': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'design-review/**', 'scripts/resolvers/design.ts', 'scripts/resolvers/outside-voice.ts', 'lib/design-catalog.ts', 'lib/design-detect-contract.ts', 'lib/dom-dump-script.ts', 'lib/dom-dump.js', 'bin/gstack-design-detect.ts', 'test/helpers/fake-impeccable.ts', 'test/fixtures/fake-impeccable.ts', 'test/fixtures/impeccable-detect-sample.json', 'test/fixtures/review-eval-design-slop.*', 'test/skill-e2e-design.test.ts',+ 'design-review-detector-shim': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'design-review/**', 'scripts/resolvers/design.ts', 'scripts/resolvers/design-craft.ts', 'scripts/resolvers/outside-voice.ts', 'lib/design-catalog.ts', 'lib/design-detect-contract.ts', 'lib/dom-dump-script.ts', 'lib/dom-dump.js', 'bin/gstack-design-detect.ts', 'test/helpers/fake-impeccable.ts', 'test/fixtures/fake-impeccable.ts', 'test/fixtures/impeccable-detect-sample.json', 'test/fixtures/review-eval-design-slop.*', 'test/skill-e2e-design.test.ts','scripts/resolvers/testing.ts', 'test/helpers/aside-available.ts', 'test/helpers/llm-judge.ts', 'test/helpers/office-hours-attempt.ts'],- 'design-review-detector-shim-dom': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'design-review/**', 'scripts/resolvers/design.ts', 'scripts/resolvers/outside-voice.ts', 'lib/design-detect-contract.ts', 'lib/dom-dump-script.ts', 'lib/dom-dump.js', 'bin/gstack-design-detect.ts', 'browse/src/**', 'test/helpers/fake-impeccable.ts', 'test/fixtures/fake-impeccable.ts', 'test/fixtures/impeccable-detect-sample.json', 'test/fixtures/review-eval-design-slop.*', 'test/skill-e2e-design.test.ts',+ 'design-review-detector-shim-dom': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'design-review/**', 'scripts/resolvers/design.ts', 'scripts/resolvers/design-craft.ts', 'scripts/resolvers/outside-voice.ts', 'lib/design-detect-contract.ts', 'lib/dom-dump-script.ts', 'lib/dom-dump.js', 'bin/gstack-design-detect.ts', 'browse/src/**', 'test/helpers/fake-impeccable.ts', 'test/fixtures/fake-impeccable.ts', 'test/fixtures/impeccable-detect-sample.json', 'test/fixtures/review-eval-design-slop.*', 'test/skill-e2e-design.test.ts','scripts/resolvers/testing.ts', 'test/helpers/aside-available.ts', 'test/helpers/llm-judge.ts', 'test/helpers/office-hours-attempt.ts'],- 'design-review-plugin-handoff': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'design-review/**', 'scripts/resolvers/design.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/testing.ts', 'lib/design-catalog.ts', 'lib/design-detect-contract.ts', 'bin/gstack-design-detect.ts', 'test/helpers/hermetic-env.ts', 'test/helpers/fake-impeccable.ts', 'test/fixtures/fake-impeccable.ts', 'test/fixtures/impeccable-detect-sample.json', 'test/fixtures/review-eval-design-slop.html', 'test/fixtures/review-eval-design-slop.css', 'test/skill-e2e-design.test.ts', 'test/helpers/aside-available.ts', 'test/helpers/llm-judge.ts', 'test/helpers/office-hours-attempt.ts'],- 'design-html-slop-gate': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'design-html/**', 'scripts/resolvers/design.ts', 'scripts/resolvers/outside-voice.ts', 'lib/design-detect-contract.ts', 'bin/gstack-design-detect.ts', 'lib/design-craft.ts', 'bin/gstack-design-craft', 'test/helpers/fake-impeccable.ts', 'test/fixtures/fake-impeccable.ts', 'test/fixtures/impeccable-detect-sample.json', 'test/skill-e2e-design.test.ts', 'test/fixtures/review-eval-design-slop.html', 'test/fixtures/review-eval-design-slop.css', 'test/helpers/aside-available.ts', 'test/helpers/llm-judge.ts', 'test/helpers/office-hours-attempt.ts'],+ 'design-review-plugin-handoff': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'design-review/**', 'scripts/resolvers/design.ts', 'scripts/resolvers/design-craft.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/testing.ts', 'lib/design-catalog.ts', 'lib/design-detect-contract.ts', 'bin/gstack-design-detect.ts', 'test/helpers/hermetic-env.ts', 'test/helpers/fake-impeccable.ts', 'test/fixtures/fake-impeccable.ts', 'test/fixtures/impeccable-detect-sample.json', 'test/fixtures/review-eval-design-slop.html', 'test/fixtures/review-eval-design-slop.css', 'test/skill-e2e-design.test.ts', 'test/helpers/aside-available.ts', 'test/helpers/llm-judge.ts', 'test/helpers/office-hours-attempt.ts'],+ 'design-html-slop-gate': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'design-html/**', 'scripts/resolvers/design.ts', 'scripts/resolvers/outside-voice.ts', 'lib/design-detect-contract.ts', 'bin/gstack-design-detect.ts', 'lib/design-craft.ts', 'lib/design-catalog.ts', 'bin/gstack-design-craft', 'test/helpers/fake-impeccable.ts', 'test/fixtures/fake-impeccable.ts', 'test/fixtures/impeccable-detect-sample.json', 'test/skill-e2e-design.test.ts', 'test/fixtures/review-eval-design-slop.html', 'test/fixtures/review-eval-design-slop.css', 'test/helpers/aside-available.ts', 'test/helpers/llm-judge.ts', 'test/helpers/office-hours-attempt.ts'],// /diagram (diagram-render bundle consumers). Triplet = deterministic// functional (gate); authoring quality = LLM-judged benchmark (periodic).@@ -1573,7 +1573,7 @@ export const LLM_JUDGE_TOUCHFILES: Record<string, string[]> = {"scripts/resolvers/preamble/generate-preamble-bash.ts", "scripts/resolvers/preamble/generate-completion-status.ts",- 'plan-design-review/sections/**', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'scripts/resolvers/design.ts', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'test/fixtures/eval-baselines.json', 'test/helpers/cookie-workflow-judge-input.ts', 'test/helpers/cookie-workflow-manual-review.ts', 'test/helpers/llm-judge.ts'],+ 'plan-design-review/sections/**', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'scripts/resolvers/design.ts', 'scripts/resolvers/design-craft.ts', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'test/fixtures/eval-baselines.json', 'test/helpers/cookie-workflow-judge-input.ts', 'test/helpers/cookie-workflow-manual-review.ts', 'test/helpers/llm-judge.ts'],// Design skills'design-review/SKILL.md fix loop': ['design-review/SKILL.md', 'design-review/SKILL.md.tmpl', 'test/skill-llm-eval.test.ts', 'test/helpers/workflow-judge-input.ts', 'test/helpers/workflow-judge-cache.ts', 'scripts/eval-input-cache.ts', 'test/helpers/workflow-excerpt.ts', 'test/fixtures/eval-baselines.json', 'test/helpers/cookie-workflow-judge-input.ts', 'test/helpers/cookie-workflow-manual-review.ts', 'test/helpers/llm-judge.ts'],diff --git a/test/qa-lazy-sections.test.ts b/test/qa-lazy-sections.test.tsindex 706ec9832..e914dbac5 100644--- a/test/qa-lazy-sections.test.ts+++ b/test/qa-lazy-sections.test.ts@@ -161,8 +161,8 @@ describe('QA-only cross-host lazy rendering', () => {expect(fs.readFileSync(path.join(rendered, dir, 'SKILL.md'), 'utf8')).not.toContain(body.split('\n').slice(2).join('\n').trim());}const outside = generated.artifacts.filter(artifact => artifact.host === host.name && artifact.kind === 'section'- && !/^(?:qa|qa-only|ship|plan-ceo-review|office-hours)\//.test(artifact.relativePath)- && !/\/gstack-(?:qa(?:-only)?|ship|plan-ceo-review|office-hours)\//.test(artifact.relativePath));+ && !/^(?:qa|qa-only|ship|plan-ceo-review|office-hours|design-review)\//.test(artifact.relativePath)+ && !/\/gstack-(?:qa(?:-only)?|ship|plan-ceo-review|office-hours|design-review)\//.test(artifact.relativePath));expect(outside.length > 0).toBe(host.name === 'claude');// C4: ship is carved on every host; external pointers are relative to the installed skill.const ctx = context(host.name, 'ship');