# Hero loop and product screenshots This folder holds the source storyboard and reproduction steps for the README hero loop (`docs/images/hero-loop.gif`) and the two real product screenshots (`docs/images/pr-receipt.png` and `docs/images/merge-train.png`). ## What each asset shows - **`docs/images/hero-loop.gif`** (64 s, 960×576): deterministic `/design-motion` capture of `docs/hero/storyboard.html`. Every command, browser screenshot, console error, cross-model `/review` finding, diff, test run, and head-bound receipt came from a real run on a throwaway demo app (LedgerBox Billing): 1. **`/qa` (0–22 s):** gstack's headless browser (`$B`) maps interactive refs (`@e1`, `@e2`, `@e3`), applies promo code `SAVE20`, reproduces `$NaN` plus the console `TypeError`, adds a failing regression test, fixes the schema mismatch, and re-verifies `$38.40` with zero console errors. 2. **`/review` (22–43 s):** a second-model reviewer (`anthropic/claude-opus-5-5`) audits `src/payouts.ts`, flags a P0 check-then-act double-payout race across `await gateway.transfer()`, reproduces it with a failing concurrency test (`Expected: 1, Received: 2`), and verifies the atomic `store.reserve()` patch (`4 pass, 0 fail`, releasing only on definite declines and finalizing outside the release `catch`). 3. **`/gstack-ship` (43–64 s):** runs `bun test`, `git diff main | gstack-redact --repo-visibility public`, and `gstack-plain-title check`, then opens a pull request carrying before/after browser QA screenshots and a head-bound `gstack-ship-receipt`. - **`docs/images/pr-receipt.png`**: high-DPI (2×) cropped screenshot of the real `gstack-ship-receipt` block from [PR #4923](https://github.com/garrytan/gstack/pull/4923), showing head SHA, test pass counts, pre-merge check clears, two-round review loop, and second-model review record. - **`docs/images/merge-train.png`**: high-DPI (2×) cropped screenshot of the [gstack v1.105.3.0 release](https://github.com/garrytan/gstack/releases/tag/v1.105.3.0), showing 18 verified pull requests landed together with plain-English release notes and compare link. ## Re-recording the hero loop Prerequisites: Bun (v1.4.2+), `ffmpeg`, and gstack's Chromium (`bin/gstack-browser-ensure`). ### 1. Preview the storyboard interactively Open `docs/hero/storyboard.html` in any browser: - `storyboard.html?loop` — continuous 64-second playback - `storyboard.html?still` — final rest frame (no motion; also used under `prefers-reduced-motion: reduce`) - `storyboard.html?t=13` — jump directly to any timestamp in seconds to check layout and typography ### 2. Capture deterministic frames with `/design-motion` Run `gstack-motion-capture.ts` against `docs/hero/storyboard.html`. The capture steps a fake clock at 60 fps and masks `[data-motion-clip]` so the overflow check verifies nothing moves outside the app shell: ```bash OUT="/tmp/hero-motion-cap" bin/gstack-motion-capture.ts docs/hero/storyboard.html \ --size 1200x720 \ --cycle 64 \ --out "$OUT" \ --mask '[data-motion-clip]' ``` ### 3. Run the four motion checks before exporting ```bash bin/gstack-motion-encode check "$OUT" \ --layout app \ --dissolve-at 63.0 \ --empty-from 63.6 \ --intro-end 2.2 ``` All four checks (`seam`, `empty-beat`, `rest`, and `overflow`) must report `pass` and end with `MOTION_RESULT: clean`. Open `$OUT/contact-sheet.png` to inspect 12 frames across the loop before encoding. ### 4. Export the web-friendly GIF ```bash bin/gstack-motion-encode export "$OUT" \ --name hero \ --formats loop \ --gif-fps 10 cp "$OUT/hero-loop.gif" docs/images/hero-loop.gif ``` At `--gif-fps 10` (640 frames at 960×576, 2.0 MB), `hero-loop.gif` stays crisp and well under GitHub's README rendering budget. Use a divisor of 100 (such as `5`, `10`, or `20`) if you adjust `--gif-fps` so frame delays stay exact in GIF centiseconds. ## Re-capturing the product screenshots Both PNGs are captured directly from live public GitHub pages with Playwright Chromium at `deviceScaleFactor: 2`, cropped tightly to the receipt or release card with zero author headers, avatars, internal issue codes, or personal names: 1. **`docs/images/pr-receipt.png`**: load a merged PR whose `gstack-ship-receipt` carries no internal issue codes or personal names (for example [PR #4923](https://github.com/garrytan/gstack/pull/4923)), expand `Agent notes`, disable GitHub's sticky header and copy button, set `pre-wrap` so long URLs never clip horizontally, and screenshot the `gstack-ship-receipt` `
` block. 2. **`docs/images/merge-train.png`**: load a public multi-PR GitHub release page whose bullets carry plain PR links without internal issue codes (for example [v1.105.3.0](https://github.com/garrytan/gstack/releases/tag/v1.105.3.0)) and screenshot the `.markdown-body` release card. ## Public-safety check before committing Before opening a pull request, open every exported PNG and keyframe from the GIF to verify: - Sharp typography with zero clipped lines or overlapping panels - Real captured output only (no placeholder text) - Zero personal names, machine names, internal issue codes, or secrets - Clean secret scan (`git diff main | bin/gstack-redact --repo-visibility public`)