Skip to content

v1.91.230.0 feat(design-shotgun,design-html): archetype handoff and persisted craft exceptions (GSTA-92 phase 2) - #3422

Merged
capy-ai[bot] merged 10 commits into
mainfrom
garrytan/gsta92-phase2-handoff
Oct 26, 2026
Merged

capy-ai[bot] merged 10 commits into
mainfrom
garrytan/gsta92-phase2-handoff

Conversation

@garrytan

@garrytan garrytan commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3422,
  "head": "5a8c020ab9b84652e2c77aec48e6b88c7993d22f",
  "version": "1.91.225.0",
  "base": "main",
  "gate": {
    "tests": {
      "pass": 16794,
      "fail": 0
    }
  },
  "session_kind": "unattended",
  "pregate": "requires-remote cleared @fabfe3e2c495 (1 checks, current for 5a8c020ab9b8)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/40253253377",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/40253256791",
    "pregate.json/remote_gate: remote-gate tree=fabfe3e2c495 tests=16794"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      3420
    ],
    "flakes": []
  }
}

Stacked base for #3433. Phase 2 of GSTA-92: the page archetype the user picks on the /design-shotgun board now reaches /design-html, and craft-check findings the user accepted stay accepted on later runs of the same page.

What changed

gstack-design-craft before and after --accepted

The same page and finalized.json in both runs. Before (#3420), the accepted [Needs proof] marker failed the check again on every run. After, it prints as CRAFT_ACCEPTED with its reason. The dead link is still an issue.

Text version

Before: CRAFT_CHECK: needs-proof 1 … / CRAFT_CHECK: dead-link 1 … / CRAFT_RESULT: 2 issue(s)
After (--accepted finalized.json): CRAFT_CHECK: dead-link 1 … / CRAFT_ACCEPTED: needs-proof 1 <reason> / CRAFT_RESULT: 1 issue(s), 1 accepted

  • Archetype handoff. /design-shotgun captions each Persuade variant with its archetype id (classic-hero, long-form-story, minimal-conversion, comparison). On approval it adds the chosen archetype and sections outline to approved.json with the Edit tool. /design-html Case A reads both, and the craft section takes them as given instead of choosing again or asking.
  • Persisted exceptions. finalized.json gains craft_exceptions: [{id, count, reason}]. gstack-design-craft <file.html> --accepted <finalized.json> prints a covered finding (same id, count at or below the accepted count) as CRAFT_ACCEPTED; a higher count stays a CRAFT_CHECK naming the earlier acceptance. Exit 0 when only accepted findings remain, 1 for unaccepted ones, 2 for a usage error or a bad exceptions file. A bad exceptions file still gets the full check with nothing accepted, so it can't switch the gate off.
  • No pin or cap moved.

Why

#3420 made /design-shotgun vary Persuade variants by page archetype, but /design-html never learned which one the user approved, so it picked again. The craft check's contract (one fix pass, one rerun, the rest accepted with a reason) had nowhere to keep those reasons, so every rerun or evolve flagged the same accepted items. Garry approved the whole GSTA-92 plan, including this phase ("Do it").

Approvals

Date Asked Exact words Outcome Covers Still pending
2026-10-25 Absorb the Elaya design skills “Absorb all the interesting parts of this design skill https://github.com/elayadesign/ai-design-skills” (Garry (via GStack Minder)) approved Phase 1 (#3420) none
2026-10-25 Plan ask incl. Phase 2: archetype handoff and persisted craft exceptions “Do it” (Garry (via GStack Minder)) approved Whole plan at full scope, including this handoff and the persisted exceptions (autoplan gate_rev=1, rec_hash=2592f8063bfc) none

Source: gstack-approvals record for garrytan/gsta92-phase2-handoff (display only; not an approval citation).

Summary

  • Archetype ids carried from the /design-shotgun board into approved.json and read by /design-html Case A and the craft section.
  • craft_exceptions in finalized.json and gstack-design-craft --accepted, with tests, plus the design-html-slop-gate touchfiles mapping.
  • /ship review fixes: a bad or missing exceptions file now gets the full check with nothing accepted (it printed nothing before, which the craft section reads as "check unavailable"); --accepted is scoped to evolving or rerunning the same page (never after Start fresh); carried-forward counts record the current count; [] when none; CRAFT_RESULT accepted-count suffix documented.
  • docs/skills.md notes the archetype handoff in both loops.
  • Retargeted from v1.91.225.0 feat(design-html): craft section and free craft check, adapted from Elaya's design skills (GSTA-92) #3420's branch to main by merging origin/main (3570a6e).

Test Coverage

Test Coverage Audit: 30 new code paths, 25 covered (83% any test, 83% value-weighted). Coverage gate: PASS (83% ≥ 80% target). Tests: 1439 → 1439 files (+0 new files; test/design-craft.test.ts extended). Test value: 0 tests written by the audit, 0 rejected, 0 existing tests extended by the audit (the review fixes then added rows for duplicate carried-forward ids, the bad-file full check, the clean-page exit 2, and the slop-gate touchfiles selection), 0 paths weakly covered.

Remaining gaps (proposed): behavioral evals for the agent side of the handoff and of --accepted (U1–U3 [→EVAL]); the design-html-slop-gate prompt does not include the craft section, so it cannot exercise --accepted.

Tests ran: tests (remote free tier) 16794

Pre-Landing Review

Three full review passes (cycles: 2 fix cycles, then a clean no-edit pass). Specialists: testing, maintainability, security, performance, simplification; red team on pass 3; native adversarial (Claude) and an outside voice (openai/gpt-6.1-sol, Capy subagent) every pass. Structured outside review: GATE PASS (no P0/P1) on every pass; pass 3 NO_FINDINGS.

Fixed: bad/missing --accepted file silenced the craft gate (found by both adversarial voices); stale CRAFT_RESULT docs; Start fresh inheriting old exceptions; carried-forward counts; template placeholder guidance; missing duplicate-id and clean-page exit-2 tests.

Open, informational (no fix cycle left; for the owner): exceptions match by id and count, not content, so a different tell with the same id at the same count is accepted (raised by both voices, P2); a missing exceptions file is reported like a malformed one; approved.json hand-edit is not re-validated and the archetype is not re-added after Iterate more; Case A takes the newest approved.json across screens; finalized.json template still shows a placeholder entry (guidance lives in the craft section); two tests sit in the handoff describe block; no behavioral E2E for the agent side.

Gate edits: none detected (4 listed, 3 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

Exploratory QA

Functional (CLI bin/gstack-design-craft), 5 smoke probes, verdict pass: covered tell → CRAFT_ACCEPTED with exit 1 for the uncovered one; malformed exceptions → full check, none accepted, warning, exit 2; count overflow → CRAFT_CHECK … (1 accepted earlier: …); only accepted → CRAFT_RESULT: clean (1 accepted), exit 0; missing exceptions file → full check, exit 2. Limits: fragment fixtures (head/navigation rules not exercised with --accepted); no plan-bound checks.

Design Review

No frontend files changed — design review skipped.

Eval Results

Focused paid cases at cdb3b2b (tree 85dda41; the only later change is docs/skills.md, which none of them reads): design-html-slop-gate behavior PASS 3/3; carve-section-loading-design-html PASS 1/1; carve-section-loading-design-shotgun PASS 1/1; design-review-detector-shim PASS 1/1; design-review-detector-shim-dom PASS 1/1 (its eval record logs a browse "Server failed to start" error, but every assertion passed); design-review-plugin-handoff PASS 1/1; plan-design-review-no-ui-scope PASS 1/1. Spend: $1.49 reported (slop-gate $0.91, shim $0.13, shim-dom $0.25, plugin-handoff $0.14, no-ui-scope $0.06); the two carve-section cases do not print cost.

Greptile Review

No Greptile comments.

Scope Drift

Scope Check: CLEAN. Intent: archetype handoff plus persisted craft exceptions (GSTA-92 phase 2). Delivered: that, plus review fixes and the touchfiles mapping.

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). Fix: add "Plan: " to the PR body, or run /autoplan.

Issues

Refs #3420

Verification Results

No plan-specific checks (no plan bound). Automatic QA above: 5 PASS, 0 FAIL.

TODOS

No TODO items completed in this PR.

Documentation

Status: updated. Two factual list-item edits in docs/skills.md describe the /design-shotgun → /design-html archetype handoff. No blockers.

Scope: base 7bd3fb4 → head cdb3b2b on garrytan/gsta92-phase2-handoff. That is 8 commits and 11 committed files; nothing is staged, unstaged or untracked. The audit read the diff and the authored sources it touches: design-html/SKILL.md.tmpl, design-html/sections/craft.md.tmpl, design-shotgun/SKILL.md.tmpl, bin/gstack-design-craft, lib/design-craft.ts and the [Unreleased] CHANGELOG entry. It also read every doc that mentions the craft check, approved.json, finalized.json or the archetypes: docs/skills.md and NOTICE.md in full, plus targeted passes over README.md, AGENTS.md, ARCHITECTURE.md and docs/PROJECT_STRUCTURE.md. The banned-terms check found no list in this repo.

Documentation health:

  • docs/skills.md: Updated. In the /design-shotgun loop, step 6 now says approved.json also records the archetype you picked (classic-hero, long-form-story, minimal-conversion or comparison) and its section outline for landing, pricing and campaign screens. In the /design-html refinement loop, step 1 now says it builds that archetype and outline as given instead of asking again.
  • design-html/SKILL.md.tmpl, design-html/sections/craft.md.tmpl, design-shotgun/SKILL.md.tmpl: Current. The branch already changed them, and they match the code: the --accepted contract, CRAFT_ACCEPTED output, exit 2 on a bad exceptions file, highest-count duplicates, the craft_exceptions block in finalized.json, and the archetype ids and handoff.
  • Generated design-html/SKILL.md, design-html/sections/craft.md, design-shotgun/SKILL.md: Current. Spot-checked, they carry the template changes. This audit edited no template, so no regeneration is needed.
  • NOTICE.md: Current. The Elaya attribution still covers craft.md.tmpl, lib/design-craft.ts, bin/gstack-design-craft and design-shotgun's archetype axis.
  • README.md, AGENTS.md, ARCHITECTURE.md, docs/PROJECT_STRUCTURE.md: Current for this diff. Nothing they say is contradicted.
  • CHANGELOG.md: Not edited, because the parent owns it. Its [Unreleased] entry matches the code: exit codes, accepted counts and the touchfiles change.
  • TODOS.md: Not touched, because the parent owns it. No TODO in the diff relates to this work.

Coverage debt (Step 1.5):

  • gstack-design-craft --accepted and finalized.json craft_exceptions: covered by reference in CHANGELOG, the bin header and the agent-facing craft section. There is no user-facing how-to in docs/skills.md or README. This is a common gap, and a how-to would fill it.
  • The craft check as a whole (CRAFT_CHECK/CRAFT_RESULT, from v1.91.225.0, already on base): the /design-html deep dive in docs/skills.md and the README row describe only the impeccable slop gate. This is a critical gap for users in the reference and how-to quadrants. Base debt, not filled here.
  • bin/gstack-design-craft and lib/design-craft.ts do not appear in the bin/ and lib/ annotations in docs/PROJECT_STRUCTURE.md. Both lists end with "etc.", so the omission isn't wrong. Base debt, reference quadrant.
  • Archetype handoff: now covered by reference in docs/skills.md and the skill templates. There is no tutorial.

Diagram drift: none. No ARCHITECTURE.md or other diagram names design-craft, approved.json or archetype entities.

Test plan

Open in Capy

garrytan and others added 5 commits October 25, 2026 21:03
…laya design skills (GSTA-92)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…drop a $-digit literal from craft.md; count only craft-check executions in design-html-slop-gate

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…b-elaya-design

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
…roved.json; persist accepted craft exceptions in finalized.json (GSTA-92 phase 2)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… runs (GSTA-92)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…3420)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot changed the base branch from garrytan/gsta92-absorb-elaya-design to main October 26, 2026 00:33
@trunk-io

trunk-io Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@github-actions github-actions Bot changed the title feat(design-shotgun,design-html): archetype handoff and persisted craft exceptions (GSTA-92 phase 2) v1.91.225.0 feat(design-shotgun,design-html): archetype handoff and persisted craft exceptions (GSTA-92 phase 2) Oct 26, 2026
garrytan and others added 3 commits October 26, 2026 00:53
A malformed or missing --accepted exceptions file now gets the full craft
check with nothing accepted, after a warning, still exiting 2. Before, it
printed nothing, and the craft section treats a missing CRAFT_RESULT as
'check unavailable', so one bad finalized.json switched the gate off
(found by both adversarial passes). The header comment and the craft
section now document the accepted-count suffix on CRAFT_RESULT. Tests
cover duplicate carried-forward exception ids and the slop-gate touchfiles
selection.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The craft section passed --accepted whenever a finalized.json sat beside
the page, so a same-day Start fresh build inherited the old page's
exceptions. It now passes them only when evolving or rerunning a page it
finalized, records the count the check reports now, and writes [] when
nothing was accepted instead of the template's placeholder entry. A test
pins exit 2 for a clean page with a broken exceptions file.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… (GSTA-92)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan added a commit that referenced this pull request Oct 26, 2026
…n/gsta92-phase2-review

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title v1.91.225.0 feat(design-shotgun,design-html): archetype handoff and persisted craft exceptions (GSTA-92 phase 2) v1.91.230.0 feat(design-shotgun,design-html): archetype handoff and persisted craft exceptions (GSTA-92 phase 2) Oct 26, 2026
@garrytan
garrytan force-pushed the garrytan/gsta92-phase2-handoff branch from f580adb to 5a8c020 Compare October 26, 2026 05:16
…0.0 (train slot 1)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 4814b3d into main Oct 26, 2026
62 checks passed
garrytan added a commit that referenced this pull request Oct 26, 2026
…egenerated against #3422)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan added a commit that referenced this pull request Oct 26, 2026
…ded)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai Bot added a commit that referenced this pull request Oct 27, 2026
…copy tier at its lines; waivers replace craft_exceptions (hallmark phase 2) (#3507)

* feat(design-lint): copy tier reports each tell at its line; empty-mount-node; content-realism ids at ask

The copy tier holds its own patterns (from lib/design-craft.ts) and reads
visible text, script bodies, inline handlers and parsed tags, so payloads,
commented markup and script text no longer count. A text-less body that
loads a script reports empty-mount-node. placeholder-name, placeholder-brand,
lorem, round-number and needs-proof move to ask so a page-specific waiver
answers them (Garry 2026-10-26, option a).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* feat(design-html,design-review): run gstack-design-lint; waivers replace craft_exceptions; remove gstack-design-craft

/design-html Step 4 and /design-review's craft audit call the lint and read
its exit code. A waiver comment in the page replaces --accepted and
finalized.json craft_exceptions (supersedes #3422's persisted exceptions).
bin/gstack-design-craft, lib/design-craft.ts and its test are removed; the
handoff tests move to test/design-craft-resolvers.test.ts. The slop-gate paid
case and its touchfiles follow the lint.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(design-lint): the content-realism tells keep one checker, credited in NOTICE.md

Names the removed lib/design-craft.ts and test/design-craft.test.ts so pregate
selects a lane for the deletions (PREGATE_NO_LANE at 17635b6).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: pre-landing review fixes

- /design-review files only craft-gate lint lines on a saved page, whose
  linked CSS the lint cannot load (false missing-focus-visible blocks)
- missing-aria-current counts route links in one pass (unclosed navs were
  superlinear); inline-handler tells report at the value's line; a shell
  with no <body> tag is an empty mount node
- /design-html says the copy tier reads HTML only, and that a supplied
  figure may also need an invented-proof waiver
- tests pin the five content-realism ids at ask and a waived copy tell

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs(changelog): the saved-page craft audit files copy-tier lines only

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs(design-lint): forward references say a later phase, not Phase 2

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(carve-guards): re-pin design-review and design-html parity to the merged tree's measured sizes

design-review skeleton 137735, union 144802, ratio 1.3681 (all lower);
design-html skeleton 55834, union 78626 (caps unchanged, comments updated).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant