Repository navigation
v1.91.264.0 feat(design-motion): new /design-motion skill for showcase loops, adapted from Elaya's design-to-motion (GSTA-92 phase 2) - #3430
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
…oops from a design, adapted from Elaya design-to-motion (GSTA-92 phase 2) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… the periodic census is at its 38-slice cap (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
Bot
changed the base branch from
garrytan/gsta92-absorb-elaya-design
to
main
October 26, 2026 00:36
|
😎 This pull request was merged. |
- encode: refuse unknown options and --formats tokens, validate --pad (#RRGGBB[AA]) and --crop (compare too) so nothing but a colour or crop reaches ffmpeg's filter graph - encode: export refuses a capture with missing window frames; check prints MOTION_SETTINGS for any threshold/phase override; contact sheet drops -fps_mode - capture: portrait-aware scale, --cycle must be whole 60 fps frames, stills with CSS animations disabled, pauseAt tolerates slow loads, clears stale manifest/stills - skill: <motion-dir> placeholder instead of a cross-block shell variable, GSTACK_FFMPEG-aware probe, stop points before the first capture, doctrine fixes - tests: refusal rows, portrait scale, cycle guard Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nd ffmpeg Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
- capture: refuse an --out that holds a still or frames but no capture.json instead of deleting them; --cycle must be a multiple of 0.05 s so the seam frame lands exactly one cycle later for every PRE (nearest value round-trips) - encode: a capture without a mask ends 'MOTION_RESULT: clean (overflow not checked)' - skill: Step 5 names window.__mark in the capture contract - tests: foreign/previous --out handling on real Chromium, cycle guard and PRE sweep Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
- capture: an ownership marker (.gstack-motion-capture) replaces the capture.json test, so the rerun after MOTION_CONTRACT_MISSING or a crash works and a foreign --out is still refused; offscreen lazy images are made eager and font/image loading is bounded at 30 s instead of hanging - encode: refuse a capture.json whose fields are not what capture writes (they reach ffmpeg args and paths); a cards overflow with no story frames is a planning error, and a zero-frame job never passes - tests: retry after a refused page, no-mask clean line, lazy image still, manifest validator, empty story span Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…Figma token off argv - check fails overflow when the grown mask covers >90% of the frame (an app frame whose clip surfaces fill the stage passed vacuously); --mask-grow is 0-32; --mask refuses braces and semicolons - manifestError checks fps/windowFrames >= 1 and that the window fits the frames - skill: native Windows stops before the first capture call; the Figma token reaches curl on stdin (-H @-) instead of argv - tests: split the --out ownership scenario out of the contract test, full-frame mask, --still --scale 2 size and STILL_OK, manifest relations, coverage parse Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
- capture: each frame is bounded at 10 s (a __tick that never returns fails with MOTION_CAPTURE_FAILED instead of hanging); a --mask that matches no element stops with MOTION_MASK_EMPTY - check: a grown mask covering >90% of the frame (full-bleed app frame) reports overflow as skipped and ends 'clean (overflow not checked)' - export: writes .partial- files and renames on success, so a failed re-export keeps the last good file; a GIF fps that does not divide the cycle is refused; a missing GSTACK_FFMPEG override is named - fidelity: URL source is untrusted data; full-bleed note - tests: spinning __tick, empty mask, failed re-export, drifting gif fps Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…mask - check: the >90% coverage skip applies only to an app frame's own surfaces (ungrown mask); in cards, or when --mask-grow pushes coverage over 90%, overflow fails with what to change (a cards capture with real overflow passed as 'clean (overflow not checked)' after a large grow) - export: --gif-fps/--small-fps capped at 50 (GIF delays are 1/100 s) - compare resolves its paths (a colon in a relative path read as a protocol) - capture: MOTION_MASK_EMPTY is checked before the first frame - tests: cards vs app full-frame mask, fps cap, no frames on an empty mask Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
- capture: an animation first seen in a frame where window.__mark did not move (a story's class toggle) is seeked from that frame instead of the last mark, so it eases in the export instead of popping ~100 ms ahead - encode: an empty numeric option is refused instead of read as 0 - figma: only fill a file key and node id that look like Figma's - tests: class-toggled transition mid-fade at its midpoint, blank --min-db Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…laya.txt Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ded); catalog budget re-measured for design-motion Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
….0 (train slot 2) 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.
Phase 2 of GSTA-92: a new /design-motion skill that turns an approved /design-shotgun PNG, a /design-html
finalized.htmlor a URL into a showcase loop. It produces an MP4 for X, a website loop GIF and an 800×500 GIF, and checks that the loop is clean before it exports. Adapted from Elaya's MIT-licensed design-to-motion and rewritten for gstack. Phase 1 is #3420.https://api.capy.ai/pr-assets/v_6Il-6KhjRfiT_4Etp5DgLJXuh3AJmk6qMDrpvNXqLAE.mp4
After: the MP4 the skill exported from a fixture page (recorded at an earlier head of this PR; the export recipe is unchanged since). The bars breathe and the dot steps across the queue card, ending on the same empty frame it starts from. Before this PR, gstack had no way to produce this from a design.
The contact sheet
gstack-motion-encode checkwrites for review (earlier head): the empty start, the cards loading, the story, the rest and the dissolve back to empty. It passed the seam, empty-beat, rest and overflow checks.What changed
design-motion/: the skill template plus three on-demand sections (fidelity,motion, andfigmaread only with a token). A motion doctrine block puts gstack's rules first: one authored moment on a website, content visible without script, no bounce and no gradient text; pulses, marquees and carets only in the showcase recording.bin/gstack-motion-capture.ts(lib/motion-capture.ts): deterministic frames from gstack's Playwright Chromium on a fake clock, with the__start/__tick/__lt/__markpage contract, whole-millisecond steps averaging 1000/60, PRE frames and an overflow mask from[data-motion-clip].bin/gstack-motion-encode(lib/motion-encode.ts):check(seam, empty beat, rest, overflow via ffmpeg PSNR, contact sheet),export(Elaya's MP4, loop GIF and 800×500 GIF recipes),compare(still fidelity). ffmpeg is optional (FFMPEG_MISSING, exit 3).--pad/--cropclosed; unknown options, bad--formats, blank numbers and acapture.jsonwhose fields are not what capture writes are refused;--outis reused only when its.gstack-motion-capturemarker is there; lazy images, slow loads and a__tickthat never returns can no longer hang a capture; an overflow check can no longer pass on zero frames or a mask that covers everything (a full-bleed app frame reportsclean (overflow not checked)); exports are written to.partial-files and renamed; a story's class-toggled CSS transition is seeked from its own frame instead of popping; portrait frames scale to 1200×1920;--cyclemust be a multiple of 0.05 s so the seam is exact; the Figma token goes to curl on stdin; native Windows stops before the first capture.<motion-dir>, stricter<hex-color>); touchfiles rows. The catalog budget goes from main's 1,289 to 1,314 (1,289 + ceil(99/4): this skill's 99-byte description, re-measured on the merged tree, 5,249 bytes = 1,313 token-equivalents). No SKILL.md size pin, context budget or parity cap moved; the design-motion skeleton is 39,868 of its 39,900-byte cap.bin/gstack-doctor-components.shtakes main's lines (captain, ubicloud, floor) with design-motion after design-html; NOTICE.md keeps main's craft-audit bullet and hallmark section around the design-motion bullets; PROJECT_STRUCTURE, touchfiles, context-budget and the placeholder allowlist keep both sides; the CHANGELOG entry stays under## [Unreleased](15 insertions, 0 deletions vs main); design-motion/SKILL.md regenerated with main's preamble.Why
Garry asked to absorb the interesting parts of Elaya's design skills (Oct 25), then approved a new top-level skill for this one ("Do it"). Turning a design into a launch loop is its own workflow with its own deliverables, so it lives in its own skill. Garry's 2026-10-25 rule ("we should really be using the gstack ship skill before merging PRs") is why this head went through gstack's /ship; its reviews drove the fixes above.
Approvals
Source: gstack-approvals record for garrytan/gsta92-design-motion (display only; not an approval citation).
Summary
Test Coverage
Step 7 audit (invocation 2, audit only): 86% of 28 paths have a test, 82% value-weighted, 1 weak path; later review commits added tests for the remaining review findings (
test/motion-pipeline.test.tsnow runs 9 real Chromium + ffmpeg cases locally). Remaining gaps:BROWSER_UNAVAILABLE, CSS-keyframe-only pages [→E2E], ffmpeg failure handlers, the win32 guard (Windows lane only).motion-pipeline.test.tsself-skips where ffmpeg is absent, which includes the CI images.Pre-Landing Review
This invocation (head ac0228a, after the main merge): one frozen-scope pass over
git diff 6095e65 ac0228arestricted to the PR's files. Testing + Maintainability and Red Team + adversarial (Claude) reviewers: NO FINDINGS; Security, Performance, Design, Simplification and State Machines not dispatched (no PR-owned code in the delta). Converged with zero edits.REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen
Earlier invocations (head 6095e65 and before): final pass (invocation 3, pass 2, head fc8264c): Testing, Maintainability, Security, Performance, Design, Simplification and State Machines plus Red Team: no findings beyond advisories; converged with zero edits. Earlier passes found and fixed the defects listed under What changed; recurring regressions introduced by fixes were caught by the next pass each time. Codex is not installed here, so outside review coverage is unavailable; the Claude adversarial pass ran on every pass (final verdict: "Ship as-is").
Deferred with recorded reasons (follow-ups, none blocking): frames left on disk after export, serial exports,
loopTimeunused,--min-dbhas no floor, the 1970 fake clock, no upper bound on--cycle/--pre/--tail/--scale, the reference render of a page with a requestAnimationFrame intro getting one frame, file:// subresources outside the page directory, non-WAAPI media (SMIL, video, animated images),--mask-growcounted in device pixels, ffmpeg spawn errors printingnull, alpha dropped bycompare.Gate edits: 14 listed, 1 read, 1 finding — 1 kept (reasons below), 0 restored, 0 open
test/catalog-budget.test.ts— the ceiling moves 1,289 → 1,314 by exactly the new skill's measured description (99 bytes, new-skill ratchet documented in the test), approved scope "budgets raised to measured size only".Exploratory QA
Functional probes on the bins: capture, check and export pass;
--pad '#ffffff,hue=s=0'andcompare --crop '100:100:0:0,hue=s=0'were accepted at aaa1f98 (filter-graph injection) and exit 2 since 41a720d.Eval Results
design-motion-showcase(marathon, behavior, 3 trials) at ac0228a: PASS 3/3 ($0.59, $0.62, $0.51). Before the merge, at 6095e65: PASS 3/3 ($0.49, $0.63, $0.70).Greptile Review
No Greptile comments on this PR.
Scope Drift
None: every change serves the /design-motion skill, its review fixes, or its registration and docs.
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
Refs #3433
Verification Results
Remote free tier (Ubicloud, full free suite) at tree 60a3dfcb63a2 / head ac0228a: 18,873 tests (30 skipped), 0 failed, $0.06. Every pull_request check at ac0228a green (45 passed, 0 failed, 11 skipped), including Free Tests and Windows Free Tests.
TODOS
None changed.
Documentation
Audited at fc8264c and committed as 6095e65, before the main merge; the merge changed no PR-owned doc claim except the catalog figure, which CLAUDE.md and the test now both give as 1,314.
Status: updated — one factual fix in
docs/PROJECT_STRUCTURE.md; no blockers.Scope: ship-owned audit (
editmode, spawned;SESSION_KIND: spawnedechoed by the preamble) ofgarrytan/gsta92-design-motionatfc8264cagainst base7bd3fb4: 33 committed files and 14 commits, with nothing staged, unstaged or untracked. All 138 candidate hashes match the working tree. The audit covered the new /design-motion skill (template plus thefidelity,motionandfigmasection templates), its two bins and libraries, the doctor and test metadata, and every doc the branch touches or that names the design skills. Doc claims were checked againstlib/motion-capture.ts,lib/motion-encode.ts,bin/gstack-motion-capture.tsandbin/gstack-motion-encode: flags, defaults, output names, exit codes, the 744-frame and 1744×1200 example arithmetic, and the 1,222 catalog budget all match. Generated output is fresh (gen-skill-docs --dry-runexit 0,gen-llms-txtup to date), and the banned-terms check found no list. Steps 5, 7, 8, 9 and the cross-model review were skipped under ship-owned mode.Documentation coverage:
Documentation Debt
FFMPEG_MISSING,MOTION_CONTRACT_MISSING,MOTION_MASK_EMPTY,MOTION_CAPTURE_FAILEDhave nodocs/troubleshooting.mdentries (explanation/how-to).GSTACK_FFMPEGare documented only inside the skill (reference only, no how-to).Diagram drift: none. The branch only adds entities, and no ARCHITECTURE diagram names motion components.
Suggest a
docs-debtlabel.Test plan
gstack-pregate --stage tests --remote --base main: tree=60a3dfcb63a2 tests=18873 failed=0 (spent $0.06)bun run scripts/test-paid-shards.ts --tier marathon --case design-motion-showcase --trials 3at ac0228a: PASS 3/3 ($1.72)🤖 Generated with Claude Code