Repository navigation
v1.91.230.0 feat(design-shotgun,design-html): archetype handoff and persisted craft exceptions (GSTA-92 phase 2) - #3422
Merged
Conversation
…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>
5 tasks done
…3420) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai
Bot
changed the base branch from
garrytan/gsta92-absorb-elaya-design
to
main
October 26, 2026 00:33
|
😎 This pull request was merged. |
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>
garrytan
force-pushed
the
garrytan/gsta92-phase2-handoff
branch
from
October 26, 2026 05:16
f580adb to
5a8c020
Compare
…0.0 (train slot 1) 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
…egenerated against #3422) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
3 of 4 tasks
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>
4 tasks done
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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 asCRAFT_ACCEPTEDwith 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 acceptedclassic-hero,long-form-story,minimal-conversion,comparison). On approval it adds the chosenarchetypeandsectionsoutline 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.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) asCRAFT_ACCEPTED; a higher count stays aCRAFT_CHECKnaming 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.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
Source: gstack-approvals record for garrytan/gsta92-phase2-handoff (display only; not an approval citation).
Summary
craft_exceptionsin finalized.json andgstack-design-craft --accepted, with tests, plus the design-html-slop-gate touchfiles mapping.--acceptedis scoped to evolving or rerunning the same page (never after Start fresh); carried-forward counts record the current count;[]when none;CRAFT_RESULTaccepted-count suffix documented.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
--acceptedfile 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_ACCEPTEDwith 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:
classic-hero,long-form-story,minimal-conversionorcomparison) 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.--acceptedcontract,CRAFT_ACCEPTEDoutput, exit 2 on a bad exceptions file, highest-count duplicates, thecraft_exceptionsblock in finalized.json, and the archetype ids and handoff.Coverage debt (Step 1.5):
gstack-design-craft --acceptedand finalized.jsoncraft_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.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-craftandlib/design-craft.tsdo 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.Diagram drift: none. No ARCHITECTURE.md or other diagram names design-craft, approved.json or archetype entities.
Test plan
gstack-pregate --stage tests --remote(Ubicloud, tree fabfe3e): 16794 tests, 0 failed, $0.05bun test test/design-craft.test.ts: 15 pass, 0 fail;bun run typecheck: clean; generated docs fresh