Repository navigation
feat(store): capture the 03-board ASC frames from a live simulator (14 reproducible cells) - #1111
Conversation
Extracts the simulator/build half of ui:tour into mise-tasks/lib/sim-app.sh (shared by ui:tour, test:ui and the new task) and adds `mise run store:capture`: builds a DEBUG sim app, boots dedicated named simulators per ASC device class, and captures the `board:showcase` App Store 03-board slot across both apps x 2 device classes x 7 locales, staging first and publishing to docs/app-store/captures only when every cell in scope validates (exists, exact device pixel size, no alpha channel). Also adds `--identity-check` (Release-vs-DEBUG pixel parity, Minesweeper only — Sudoku has no DEBUG fresh-board route to pair against, documented in the task's own error text) and a per-locale retry-until-stable capture policy per the PM's determinism ruling. Investigation during this PR found the dominant source of cross-run non-determinism was not glass-rendering jitter but the iOS Simulator's one-time "Ready for Apple Intelligence" system banner racing capture timing on freshly-booted simulators; capture_one_locale now swipes it away before every screenshot attempt. A smaller residual source (sub-pixel Liquid Glass rendering variance across independent app launches, ~0.02-0.1% of pixels on 13 of 28 cells) remains and is not solved by this PR's retry-within-launch strategy — reported to the PM with numbers rather than papering over it with an unimplemented tolerance. part of #1054 part of #1014 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Post-commit audit found `docs/app-store/captures/minesweeper/ipad-13/ko/03-board.png` was a blank in-flight launch frame (29KB vs ~150KB siblings, 99.9% near-white pixels) that `validate_capture` let through: correct pixel size and no alpha channel say nothing about content. The consecutive-match convergence check also can't catch this class of bug — two identical blank screenshots converge just as "successfully" as two identical real ones. Adds a content-sanity floor (reject a capture that is >=90% near-white pixels, calibrated on this exact blank frame vs a real board: 99.9% vs 7.7%) and re-captures the one affected cell. Retroactively scanned all 28 published frames against the new check — only this one cell failed. part of #1054 part of #1014 Co-Authored-By: Claude Sonnet 5 <[email protected]>
…ift) PM ruling (#1054): Sudoku's Release/DEBUG identity pair is the daily Easy board reached by the SAME idb taps on both builds (Today tab is the default launch screen; tap the "Easy" daily card), not a new DEBUG route. The daily puzzle is date-seeded and generated on-device with no network call (`PuzzleStore.fetchDailyTrio` wraps `SudokuEngine.PuzzleGenerator`, verified by reading the code and empirically: both builds show identical given digits). A fresh board's timer ticks from open, so its "Elapsed time" label is excluded from the pixel compare mechanically: `idb ui describe-all` locates the label's frame, converts points to pixels, and the printed rect is excluded alongside the existing status-bar band — anything outside both is FAIL, no blanket tolerance. Refactored the three near-identical inline describe-all/tap python blocks in the Minesweeper path into two reusable helpers (`idb_element_center`, `idb_element_frame`) shared by both apps, plus `wait_for_element_center` (retries up to 12s — a cold-booted, freshly-installed sim's first launch is measurably slower to finish rendering than a warm relaunch, and a single describe-all right after a fixed sleep was not reliable). Fixed a `set -e` regression this introduced: `wait_for_element_center`'s explicit `return 1` on exhaustion aborted the whole script when captured via unguarded command substitution — all three call sites now have `|| true`, matching the existing pattern for "try, then fall back" lookups. Result: Minesweeper still PASSes cleanly (110px/0.0029%, re-verified after the refactor). Sudoku's identity pair, run for real, FAILS — and the taps, timer-rect exclusion, and network-free daily-puzzle assumption were all verified working as specified. The failure is a genuine, large (28% of pixels, with ~2.6% of ALL pixels differing by >200/255) grid-geometry difference between the Release and Debug Sudoku builds: side-by-side crops of the same cell show a digit at a measurably different row position between builds — not the antialiasing-level noise the residual jitter elsewhere in this PR showed, and not fixed by any whole- or sub-pixel translation (tested). This looks like a Swift/SwiftUI board-layout geometry difference between optimization levels, not anything this capture task can or should paper over with a wider exclusion — reported with evidence for engineering follow-up rather than hidden. part of #1054 part of #1014 Co-Authored-By: Claude Sonnet 5 <[email protected]>
…evel convergence PM rulings (#1054): 1. Crop the safe-area bands at capture time. The iPad status bar shows the calendar date ("09:41 Fri Sep 25"), which `simctl status_bar override --time` does not cover, so uncropped iPad captures would change on every calendar day even with nothing else different. Added top_px/bottom_px columns to CAPTURE_DEVICES, measured from real `en` captures per device (not assumed) by finding the pixel rows where content stops being pure background, scanning inward from each edge; both apps agreed exactly on top_px (status-bar height is OS chrome). The comment above the table documents the measured boundaries and the probe method. Hashing, validation and publish now all operate on the cropped image. 2. Mechanical per-capture check (verify_element_in_band / idb_elements_ union_bbox): before every screenshot, assert via idb ui describe-all that the board's header row and control cluster both lie fully inside the published band, converting idb's point-space frames to pixels with each device's known scale. Uses real accessibility identifiers (minesweeper.board.pauseToggle / .tapModeToggle; sudoku.board. pauseToggle + the undo/redo/pencil/erase row + the bottom digit row) — fails the cell loudly, printing the frame and the band, if anything would be clipped. 3. Relaunch-level convergence. Measurement (reported separately) showed same-launch repeat screenshots were already byte-identical, but the residual jitter appears fresh at each INDEPENDENT launch — so the determinism unit was wrong. capture_one_relaunch now does a full terminate->launch->settle->dismiss->verify-bands->screenshot->crop per attempt, and capture_one_locale's retry loop compares relaunches, not repeated screenshots of one launch, still capped at --attempts (6) with the same two-tier consecutive-match / first-recurring-hash policy. 4. Sudoku identity-check now prints the timer-rect mask explicitly, splits the differing-pixel count into INSIDE vs OUTSIDE the status-bar/timer exclusion (both printed, OUTSIDE must be 0 for PASS), and prints + asserts the Release/DEBUG capture dates (UTC) match — the daily-Easy board is only deterministic per calendar date, so a run that crosses midnight UTC mid-comparison now fails loudly instead of silently comparing two different days' puzzles. part of #1054 part of #1014 Co-Authored-By: Claude Sonnet 5 <[email protected]>
PM diagnosis (#1054): installing DEBUG over a Release container with the same bundle id let a daily-Easy in-progress save survive the swap, so the DEBUG capture RESUMED that save (pre-start header, no pause button, timer 0:00) while Release was captured mid-game (running header, pause button, timer ticking) — a real, reproducible 33px header-height difference that shifted the whole grid, previously misread as a 28%-of-pixels Sudoku Release-vs-DEBUG rendering bug. Fixed in run_identity_check: `simctl uninstall` before EACH install (so every launch is a fresh container, not a resume), then `wait_for_element_ center` polls for the pause-button element (the running-game header) on BOTH sides before capturing, printing each side's header frame and any bottom/banner element frame found. Re-run with the fix: header frames now identical (380,78,44,44 both builds) for both apps. Minesweeper: PASS, unchanged (110px/0.0029%, all inside the status-bar band) — re-confirmed with the same uninstall-between-builds rule. Sudoku: still fails, but now at a completely different scale — 3908px (0.10%) total, only 413px outside the status-bar/timer exclusion, and those 413px are noise-floor magnitude (max 2/255, 99th percentile 2/255), not a visible difference. Per PM ruling ("if it still fails with identical frames, commit the evidence and I escalate"), the three PNGs are committed under docs/app-store/identity-check-evidence/sudoku/ with a README documenting the before/after numbers, for the PM/dev-B to route as a possible real (if barely visible) Release-vs-DEBUG rendering difference. part of #1054 part of #1014 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Found while reviewing scoped-run 2's per-cell log (#1054): the Sudoku control-cluster band check matched digit-palette buttons by English label prefix ("Digit 7"/"Digit 8"/"Digit 9"), but digit labels are localized ("数字 9" in Japanese, etc, verified live). On every non-English locale the match silently found nothing, so the union bbox only covered the undo/redo/pencil/erase row (y up to 2038) and never checked the digit palette itself (which extends to y 2719 on iPhone) — a real coverage gap in the "mechanical, not eyeballed" guarantee, even though nothing was actually mis-cropped in practice. Replaced with a locale-independent "label-suffix" matcher (every locale checked keeps the trailing Western digit after a space: "Digit 9" / "数字 9"), guarded against over-matching: a board-cell label like "Row 1, Column 9, given 9" also ends in " 9" but is comma-separated where a digit button's label never is, so the matcher excludes any label containing a comma. Verified live on ipad-13/ja: control-cluster bbox now reaches y=1705 (previously 925, i.e. the digit row was invisible to the check on that locale). part of #1054 part of #1014 Co-Authored-By: Claude Sonnet 5 <[email protected]>
PM ruling (#1054): judge Release-vs-DEBUG against a same-build noise floor instead of a fixed zero threshold. run_identity_check now captures a third "control" image — uninstall + reinstall the SAME Release build, same taps, same wait-for-pause-button method — and compares it against Release the identical way (status-bar band + timer-rect masks) as the real Release-vs- DEBUG comparison. PASS iff the cross-build outside-mask pixel count and max channel delta both stay within the control's own (floored at 20px / delta 3 so a byte-identical control can't demand a zero-tolerance cross result). Results: - Sudoku: PASS. Both control and cross differences (866px / 1081px) sit entirely inside the timer-rect mask — same-build and cross-build are indistinguishable once the ticking elapsed-time digits are excluded. - Minesweeper: 3 runs, 2 PASS (clean, control byte-identical or near-it) and 1 FAIL (488 outside-mask px against a 0px control) — same small- magnitude (max channel delta 2/255) mode-toggle-pill jitter documented elsewhere in this PR, landing outside the bbox by chance in 1 of 3 runs. Not a distinct Release-vs-DEBUG bug, but a real ~1/3 observed failure rate under the stricter criterion. Refreshed docs/app-store/identity-check-evidence/sudoku/ with the new control-based captures and rewrote its README as "Release ≡ DEBUG to within the single-build launch noise floor" with both numbers. Added docs/app-store/identity-check-evidence/minesweeper/ (previously undocumented — MS had passed cleanly under the old criterion, but the new control-based method surfaces its own noise floor too). part of #1054 part of #1014 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Republishes the 21 cells outside minesweeper/ipad-13 (which stays a documented, reproducible non-convergent failure per PM ruling — do not raise --attempts, do not add a tolerance) using the crop-band + mechanical band-check + relaunch-level convergence pipeline landed in this branch's earlier commits. 3 full scoped passes (chunked per app/device) agreed on 14/21 cells across all 3 runs (every Minesweeper/iPhone and Sudoku/iPhone locale); the 7 Sudoku/iPad cells converge reliably WITHIN each run (2-4 relaunches) but not always to the SAME hash ACROSS independent runs — the same small-magnitude residual glass jitter documented elsewhere in #1054, not a new finding. Published from the third (final) run, which used the fully corrected locale-independent band check. Also removes the 7 minesweeper/ipad-13/*/03-board.png files: they were never touched by this branch's crop pipeline (still the original 2064x2752 uncropped capture from the very first commit, date visible in the status bar) and would now be actively WRONG next to the other 21 cropped files — a stale, wrong-shaped file is worse than a documented gap. docs/app-store/captures size: 4.24 MB (was 5.29 MB). part of #1054 part of #1014 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Reads `sysctl -n vm.loadavg`'s 1-minute figure before every build and every
relaunch capture (matrix, identity-check Release/DEBUG/control legs); if it
exceeds --max-load (default 8.0) it polls every 15s until --load-wait
(default 300s) is exhausted, then fails loudly ("machine busy: load X > max
Y") rather than silently proceeding on a contended machine shared with other
worktree sessions. Every call prints the load figure, on both the fast and
waiting paths.
part of #1054
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Two batch-wide checks run once over the whole run's staged manifest, right
before the atomic publish move (also on --staging-only, since that flag only
skips publishing, not validation):
(a) no two staged cells may share a sha256 — catches a stable placeholder
silently reused across cells (e.g. one capture copied over another).
(b) within each (app,device) group, every cell's non-background pixel ratio
(fraction of pixels differing from its own corner-sampled background
color) must sit within the group median +-25% — catches a near-blank or
corrupted cell that still clears validate_capture's coarser absolute
90% near-white floor.
Neither check ever widens its own tolerance; either failure is loud, printing
the offending cells/numbers, and leaves docs/app-store/captures/ untouched.
Verified with a positive case (3 distinct locale captures, all pass) and two
negative cases (duplicated bytes across cells; one cell replaced with a
near-blank image) against copies of already-committed captures.
part of #1054
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…scaffold (unmeasured) Recovered from a stalled developer agent by the Leader: scripts/compare_capture.py (--regions/--max-delta/--max-px, outside-region must be 0) and the in-progress manifest + region-derivation + publish-decision code in mise-tasks/store/capture. NOT yet measured and NOT yet run end to end. (read_load_1m is defined in mise-tasks/lib/sim-app.sh, sourced by the task — an earlier draft of this message wrongly called it undefined.) Safety commit so the work survives a stop; the next steps finish and measure it. part of #1054 part of #1014 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ivity proof - capture_one_locale: exact cells still need two byte-identical relaunches; tolerant cells (iPad) converge when two relaunches are within the cell's region tolerance, judged by the SAME scripts/compare_capture.py the publish decision and --verify use. The region is read once from the live accessibility frames of the first launch (frames are launch-stable, measured) and handed to the caller via <out>.region so the manifest records exactly the region the loop converged against. Previously the loop demanded identical hashes for every cell, so MS/iPad could never converge. - scripts/capture_sensitivity_proof.py: synthesises (a) 1 px outside the region, (b) a 4 px shift, (c) a subtle +6 retint over the control fill, (d) a blind-spot pair (exactly max_px px at max_delta passes, +1 px fails), runs the comparator and asserts every verdict; prints the blind spot in numbers. Verified on minesweeper/iphone-6.9/en with a synthetic region and the placeholder bounds (48 / 10000): all five expectations hold. - REGION_MAX_PX stays a placeholder until the quiet-window measurement; the bound will be derived from measured jitter (2x max), not from test colour. part of #1054 part of #1014 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…gures separately
PM condition 3 for the DEBUG-capture justification: the check must not
collapse to one PASS. It now derives the glass-control region from the live
control-cluster accessibility bbox (pt -> px, plus the capture pipeline's halo
margin) right before the Release screenshot, classifies every differing pixel
into status-bar/timer masks (ignored), the glass region, or OUTSIDE, and
prints two figures for both the same-build control and the cross-build pair:
[1] outside glass + masks: cross-build px (claim: 0) -- hard requirement
[2] inside glass: px / max delta vs the same-build control (small floor
guards a control that lands byte-identical)
Either figure failing fails the check, with the figure named. Replaces the
fragile single-number floor that produced a false MS FAIL (488 px at delta 2
in the pill region when the control happened to be 0).
REGION_MAX_PX is now explicitly marked as a placeholder to be derived from
the quiet-window measurement (2x measured max), not from test colour.
Verified offline: the embedded comparison, extracted and run on the committed
minesweeper evidence pair with a glass rect, prints outside=0 glass=0 for
both control and cross-build.
part of #1054
part of #1014
Co-Authored-By: Claude Fable 5.1 <[email protected]>
PM condition for the split #1054 build: a strategy doc carrying "<!-- #1054 dev-A: fill final margins/bounds/blind-spot -->" must not survive to merge, because a doc that says "fill in later" reads as complete. scan:hygiene (pre-commit via lefthook, and in CI) now fails when any tracked file under docs/ contains an HTML-comment marker of the form "<!-- FILL: ... -->" or "<!-- #NNN who: fill ... -->". Negative test: a temporary tracked docs/ file with the marker makes the gate exit 1 and print the line; removed afterwards. Positive: current tree passes. part of #1054 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Adds CaptureSlot to scripts/build-ascspec-screenshots.py alongside Slot, repoints sudoku iphone-6.9/ipad-13 and minesweeper iphone-6.9 03-board at CaptureSlot (docs/app-store/captures/...), keeps minesweeper ipad-13 and both mac 03-board slots on the snapshot Slot with explanatory comments (pending #1054 tolerant publish vs #1054-affected per PM ruling). build_asc_image gains source_kind="capture": fit-height scale (never crops, may upscale), all 4 corners rounded, pasted at SCREEN_TOP — lands the whole capture (already safe-area-cropped by mise-tasks/store/capture) inside the canvas so the glass control cluster is never pushed past the canvas edge. Verified byte-identical sha256 for all 147 non-03-board frames across two full regenerations (168 total frames, exactly 21 changed both times). CALLOUTS for the 3 affected (app,device) 03-board cells re-measured against the new capture source (pixel-scanned anchor + chip target coordinates, documented inline) and eyeballed across all 7 locales via contact sheets — control cluster (digit pad + undo/redo/pencil/erase on iPhone/iPad Sudoku, Reveal pill on Minesweeper iPhone) fully visible in every locale, no chip/grid overlap. part of #1054 part of #1014 WIP checkpoint: gates (store_baseline_orphans, store_frame_drift), mise-tasks/store/screenshots MAP repoint, docs (screenshot-strategy.md + skill + CLAUDE.md), negative gate tests, and evidence writeup are NOT done yet — next steps for the resumed session. Co-Authored-By: Claude Sonnet 5 <[email protected]> (cherry picked from commit 85c38b245c356614ab59d4af23475ee1ca2a0b44)
mise-tasks/scan/store_baseline_orphans: pipeline 1 (the MAP) now accepts
rows whose path starts with docs/app-store/captures/ (existence check;
"recorder" = mise-tasks/store/capture naming the slot, since there is no
Swift test to point at). Pipeline 2 parses CaptureSlot("name", "rel/path/
{locale}/x.png") alongside Slot(...), expanding across every LOCALES entry
(read from the generator, never re-typed) into one existence-checked row
per locale.
mise-tasks/scan/store_frame_drift: the SLOTS token parser learns
CaptureSlot(...) as a sibling token to Slot(...), reading LOCALES via
grep/sed (keeps the gate's own "pure git/grep, no python" design) and
expanding each CaptureSlot into one watched ROW per locale. The rest of
the gate (changed-file cross-reference, escape hatch) is untouched — a
capture-sourced row is indistinguishable from a snapshot-sourced one once
it's in ROWS, so "capture changed without screenshots-ascspec/" now fails
the same way "baseline changed without screenshots-ascspec/" already did.
part of #1054
part of #1014
Co-Authored-By: Claude Sonnet 5 <[email protected]>
(cherry picked from commit f042e4917038f1c0ec600f9cde00342f5a172df7)
mise-tasks/store/screenshots MAP: sudoku iphone-6.9/ipad-13 and minesweeper iphone-6.9 03-board (en rows) now point at docs/app-store/captures/... to match the CaptureSlot repoint in scripts/build-ascspec-screenshots.py, so the preview symlink stays consistent with the ASC-spec output. minesweeper ipad-13 (pending #1054 tolerant publish) and sudoku mac (#1054-affected) 03-board rows keep their snapshot-baseline path with an explanatory comment. `list`/`sync` verified working against the new rows; `sync`'s unrelated side effect (converting several pre-existing REGULAR-FILE "symlinks" at other slots back to real symlinks — drift that predates this branch) was reverted, out of scope for #1054. part of #1054 part of #1014 Co-Authored-By: Claude Sonnet 5 <[email protected]> (cherry picked from commit a60dff2fc5aa4bef81fa7ed0697de374f32a6790)
…mbers docs/app-store/screenshot-strategy.md: new "Live-simulator capture for 03-board (#1054)" section — owner ruling (Fork A: DEBUG showcase board, identity-measured; Fork B: fit-height template), Release≡DEBUG identity numbers for both apps (same-build-control criterion), the capture-time safe-area crop boundaries + measurement method, the mandatory capture steps and why each exists, the determinism policy and relaunch-convergence numbers (14/21 byte-identical across 3 runs; Sudoku/iPad 7 cells converge per-run but not across runs; Minesweeper/iPad never converges), the fit-height compositor rule, and the MS/iPad "pending #1054 tolerant publish" vs Mac "#1054-affected" distinction. Leaves a marked placeholder line for dev-A's final tolerance margins/bounds/blind-spot numbers once the region-scoped tolerance lands — not invented here. .claude/skills/appstore-screenshot-pipeline/SKILL.md: new "Capture-sourced slots (#1054)" paragraph pointing at the strategy doc for the full story. CLAUDE.md: one line under §Build/test/verify for `mise run store:capture`. part of #1054 part of #1014 Co-Authored-By: Claude Sonnet 5 <[email protected]> (cherry picked from commit 544d9bde3b483233466f86a468059c9741aec61f)
…ent to #1110 Owner decision 2026-10-07: no quiet machine time for now, so the simulator- bound remainder (measurement, REGION_MAX_PX derivation, MS/iPad tolerant publish, three full passes, identity re-run) is split out to #1110. The strategy doc no longer carries a fill marker; it states plainly that REGION_MAX_PX = 10000 is provisional, that minesweeper/ipad-13 is still snapshot-sourced, and the blind spot at the provisional bound in numbers (48/255 on up to 10 000 px inside a tolerant region), with the sensitivity proof results. scan:hygiene is green again. The task comment points at #1110. part of #1054 part of #1110 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…doku/iPad back to snapshot pending #1110 PM condition for PR-2: "capture-sourced" must mean "reproducible". The measurement showed 14/21 cells byte-identical across three independent runs (every iPhone cell) and 7/21 (all Sudoku/iPad locales) converging within a run but landing on a different hash across runs (glass number pad). Shipping those 7 in exact mode would rewrite them on every regeneration and make scan:store_frame_drift fire on noise. So: - SLOTS: sudoku/ipad-13 03-board is a snapshot Slot again, labelled "pending #1110 tolerant publish"; MAP row 102 points at the same snapshot. - The 7 sudoku/ipad-13 captures are removed from docs/app-store/captures/ (recaptured in tolerant mode under #1110); 14 captures remain. - CALLOUTS: sudoku 03-board ipad-13 anchor/chip_at restored to the snapshot-era values (dev-B had re-measured them against the capture panel); the 7 Sudoku/iPad frames are byte-identical to origin/main again. - Strategy doc: states that only the 14 reproducible cells are capture- sourced and that the P-A tolerance machinery ships DORMANT (no published cell uses it; proven on synthetic fixtures only). Regenerated: exactly 14 03-board frames differ from origin/main (sudoku and minesweeper iphone-6.9, 7 locales each); 0 other frames differ. scan:store_baseline_orphans PASS (59 mapped, 16 capture-backed); scan:store_frame_drift PASS; scan:hygiene PASS; build-ascspec --verify-only 168/0. part of #1054 part of #1110 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Review MAJOR on #1111: store:capture merges into docs/app-store/captures/manifest.json on every publish and the sensitivity proof reads it, but the file was never committed. Generated here from the committed captures (no simulator): per cell path, size, sha256, mode "exact" (mode_for_device hardcodes iphone-6.9 to exact), empty regions, null bounds, capture_date = the capture's commit date, load null, and a provenance note. Merge compatibility verified offline by running the task's own manifest-merge block against this file with a fake publish of two cells: the 14 existing entries are preserved, the matching path is overwritten (sha replaced) and a new tolerant iPad entry is added (15 cells), so #1110 can add tolerant cells without conflict. part of #1054 part of #1110 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
PM merge record, head What this delivers. 14 iPhone Independently verified:
Related: #1112 (the drift gate is silenced by any ascspec change rather than checked per slot — pre-existing, filed from this review), #1108, #1109. |
…#1112) Code review on #1113 flagged a BLOCKER: the per-slot drift gate read "HEAD:${frame} doesn't exist" as "the generator SKIPPED-NO-COPY this locale", so a diff that changes a baseline and `git rm`'s every frame it feeds passed the gate clean — the exact shape someone would use to make a red gate green without actually regenerating anything. Replace the single existence check with three explicit rules per expected frame: 1. missing at both HEAD and MERGE_BASE -> skip (never had a frame). 2. present at HEAD and present (non-deleted) in the diff -> fresh. 3. anything else -> STALE, including present-at-HEAD-but-untouched and present-at-MERGE_BASE-but-deleted-at-HEAD (the latter gets a "(deleted in this diff)" suffix on its "missing:" line so a reviewer can tell a drop apart from a plain stale frame). Rule 2 needs CHANGED_PRESENT (`git diff --name-only --diff-filter=d`) instead of the existing CHANGED, because CHANGED already lists deleted paths — matching a deleted frame against it would have made the fix a no-op. Harness: added case 11 (`deleted-frames`) — baseline A drifts, every frame it feeds is `git rm`'d. Confirmed red against the pre-fix gate (10 passed, 1 failed: deleted-frames, exit 0 instead of 1) before applying the fix, green after (11 passed, 0 failed). Cross-check against the 383b088 (pre-#1112) gate: cross-slot-snapshot, cross-slot-capture, partial-locale, and deleted-frames all correctly FAIL (the gate wrongly passes a diff that should be rejected), confirming the harness still discriminates old gates from the fixed one. Back-tested the fixed gate against three real historical commits — 383b088, 34c3b03, 93bdc18 — each `--base <sha>^`: all PASS, exit 0, no false positives introduced. Part of #1112, following #1111, #1104, #1106. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…-gate harness (#1112) Two more cases requested after the deleted-frames fix (#1112), to pin two more boundaries of the "HEAD vs MERGE_BASE existence" rules: Case 12 (slot-retired): deleting the Slot() line itself out of the generator's SLOTS table — not just letting a baseline drift — must stay a PASS even though baseline A still drifts and all 7 of its old frames are gone too. The gate derives its mapping from the checked-out working tree's copy of scripts/build-ascspec-screenshots.py (== HEAD in CI), so once that Slot() line is gone from HEAD, its baseline is no longer "mapped" and none of its frames are required. Sudoku's and minesweeper's iphone-6.9 01-home Slot() calls share byte-identical arguments (they differ only by which BASELINES_SUDOKU/BASELINES_MS root they resolve against), so the case retires sudoku's copy specifically by line number and asserts the signature's count drops from 2 to 1, not to 0. Case 13 (deleted-frames-partial): baseline A drifts, 6 of 7 locale frames are honestly regenerated, and only the th frame is `git rm`'d. The gate must flag exactly th as stale (with "(deleted in this diff)") and must not flag any of the 6 honestly-regenerated locales. Verified: all 13 cases PASS against the fixed gate (13 passed, 0 failed). Against 70574a1 (the previous commit, pre-deleted-frame-fix): cases 11 (deleted-frames) and 13 (deleted-frames-partial) FAIL — th being absent at HEAD was read as "never generated" and wrongly passed — while 12 (slot-retired) still PASSes, since that case doesn't touch the existence-check logic at all. Against 383b088 (origin/main, pre-#1112 per-slot check, 7 passed, 6 failed overall): cross-slot-snapshot, cross-slot-capture, partial-locale, deleted-frames, and deleted-frames-partial all FAIL as required; slot-retired still PASSes there too (escape-trailer-cross-slot also fails, as already established before this change — that gate predates per-slot checking entirely). Back-tested the fixed gate against 383b088^, 34c3b03^, 93bdc18^: all PASS, exit 0, no false positives. shellcheck clean on both scripts. Part of #1112, following #1111, #1104, #1106. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…-gate harness (#1112) Two more cases requested after the deleted-frames gap was closed (part of #1112), to pin two more boundaries of the "HEAD vs MERGE_BASE existence" rules: Case 12 (slot-retired): deleting the Slot() line itself out of the generator's SLOTS table — not just letting a baseline drift — must stay a PASS even though baseline A still drifts and all 7 of its old frames are gone too. The gate derives its mapping from the checked-out working tree's copy of scripts/build-ascspec-screenshots.py (== HEAD in CI), so once that Slot() line is gone from HEAD, its baseline is no longer "mapped" and none of its frames are required. Sudoku's and minesweeper's iphone-6.9 01-home Slot() calls share byte-identical arguments (they differ only by which BASELINES_SUDOKU/BASELINES_MS root they resolve against), so the case retires sudoku's copy specifically by line number and asserts the signature's count drops from 2 to 1, not to 0. Case 13 (deleted-frames-partial): baseline A drifts, 6 of 7 locale frames are honestly regenerated, and only the th frame is `git rm`'d. The gate must flag exactly th as stale (with "(deleted in this diff)") and must not flag any of the 6 honestly-regenerated locales. Verified: all 13 cases PASS against the fixed gate (13 passed, 0 failed). Against 70574a1 (the previous commit, pre-deleted-frame-fix): cases 11 (deleted-frames) and 13 (deleted-frames-partial) FAIL — th being absent at HEAD was read as "never generated" and wrongly passed — while 12 (slot-retired) still PASSes, since that case doesn't touch the existence-check logic at all. Against 383b088 (origin/main, pre-#1112 per-slot check, 7 passed, 6 failed overall): cross-slot-snapshot, cross-slot-capture, partial-locale, deleted-frames, and deleted-frames-partial all FAIL as required; slot-retired still PASSes there too (escape-trailer-cross-slot also fails, as already established before this change — that gate predates per-slot checking entirely). Back-tested the fixed gate against 383b088^, 34c3b03^, 93bdc18^: all PASS, exit 0, no false positives. shellcheck clean on both scripts. Part of #1112, following #1111, #1104, #1106. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…-gate harness (#1112) Two more cases requested after the deleted-frames gap was plugged (part of #1112), to pin two more boundaries of the "HEAD vs MERGE_BASE existence" rules: Case 12 (slot-retired): deleting the Slot() line itself out of the generator's SLOTS table — not just letting a baseline drift — must stay a PASS even though baseline A still drifts and all 7 of its old frames are gone too. The gate derives its mapping from the checked-out working tree's copy of scripts/build-ascspec-screenshots.py (== HEAD in CI), so once that Slot() line is gone from HEAD, its baseline is no longer "mapped" and none of its frames are required. Sudoku's and minesweeper's iphone-6.9 01-home Slot() calls share byte-identical arguments (they differ only by which BASELINES_SUDOKU/BASELINES_MS root they resolve against), so the case retires sudoku's copy specifically by line number and asserts the signature's count drops from 2 to 1, not to 0. Case 13 (deleted-frames-partial): baseline A drifts, 6 of 7 locale frames are honestly regenerated, and only the th frame is `git rm`'d. The gate must flag exactly th as stale (with "(deleted in this diff)") and must not flag any of the 6 honestly-regenerated locales. Verified: all 13 cases PASS against the fixed gate (13 passed, 0 failed). Against 70574a1 (the previous commit, pre-deleted-frame-fix): cases 11 (deleted-frames) and 13 (deleted-frames-partial) FAIL — th being absent at HEAD was read as "never generated" and wrongly passed — while 12 (slot-retired) still PASSes, since that case doesn't touch the existence-check logic at all. Against 383b088 (origin/main, pre-#1112 per-slot check, 7 passed, 6 failed overall): cross-slot-snapshot, cross-slot-capture, partial-locale, deleted-frames, and deleted-frames-partial all FAIL as required; slot-retired still PASSes there too (escape-trailer-cross-slot also fails, as already established before this change — that gate predates per-slot checking entirely). Back-tested the fixed gate against 383b088^, 34c3b03^, 93bdc18^: all PASS, exit 0, no false positives. shellcheck clean on both scripts. Part of #1112, following #1111, #1104, #1106. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ing it on any ascspec change (#1113) * test(ci): add a throwaway-repo harness for the store frame-drift gate (#1112) Adds mise-tasks/test/store_frame_drift, a self-contained bash harness that drives mise-tasks/scan/store_frame_drift with real git commits in a disposable git repo, instead of hand-waving about what the gate "should" do. It copies scripts/build-ascspec-screenshots.py into the throwaway repo, derives the baseline/capture -> (device, app, slot) mapping from the gate's own `--list` output, seeds placeholder fixture files for every mapped baseline/capture and every 7-locale ascspec frame, commits that as a main branch, then branches off main once per scenario to make a real diff and run the gate against it with `--base main`. Nine scenarios are covered: three reproduce the #1112 gap (the gate treats "any file under docs/app-store/screenshots-ascspec/ changed" as proof the right frame was regenerated, so a drifted baseline paired with a regenerated-but-wrong slot, or only 6 of 7 locales for #998, both pass silently), and six confirm existing intended behavior still holds: an honest snapshot or capture regeneration, an unmapped baseline, the straightforward no-regeneration case (#995), and both escape hatches (commit trailer and the PR-label env override). This phase only writes the test — it does not touch the gate itself. Run twice for verification: once against the gate in this worktree, once against the identical copy fetched from origin/main (part of #1112), both times via the harness's --gate flag. Both runs produce the same result: cross-slot-snapshot, cross-slot-capture, and partial-locale FAIL (the gate wrongly passes them today), the other six PASS, overall exit 1 — pinning down the bug as a failing test ahead of the fix. One deviation from the original case list: escape-trailer and escape-label use the same diff as the no-frames case (baseline-only, no ascspec change) rather than the cross-slot-snapshot diff, because a cross-slot diff already satisfies the gate's coarse "ascspec/ changed" check and returns PASS before the escape-hatch code path is ever reached — using it would never exercise the escape hatch and would never print WARN. The no-frames diff is the only shape that reaches the escape-hatch branch at all. Related: #998, #995, #1054, #1001. Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(ci): check the store frame-drift gate per slot instead of per diff (#1112) mise-tasks/scan/store_frame_drift used to pass a PR as soon as ANY file under docs/app-store/screenshots-ascspec/ changed, so a drifted baseline paired with a regenerated-but-wrong slot (or only some locales, #998) went through silently and could get frozen by ASC on the next submission. The gate's ROWS now carry a 5th column, locale: "*" for a Slot() (one baseline feeds every locale's frame) or the specific locale for a CaptureSlot() row (a live capture only feeds its own locale, #1054). The coarse `grep -F docs/app-store/screenshots-ascspec/ <<<"$CHANGED"` check is gone. For every changed, mapped baseline/capture, the gate now expands every frame path it feeds (docs/app-store/screenshots-ascspec/<app>/ <device>/<locale>/<slot>.png, over ALL_LOCALES when locale is "*") and requires that exact path to also be in the diff — but only when the frame already exists at HEAD, since a locale the generator SKIPPED-NO-COPY never had one to begin with (`git cat-file -e HEAD:<path>`). Anything stale is named explicitly as `device/app/slot`, its missing frame path, and the baseline that changed — in the WARN (escape hatch used) and FAIL messages alike. `--list` gained a LOCALE column; its row count is unchanged (36: 22 Slot rows + 2 CaptureSlot x 7 locales). mise-tasks/test/store_frame_drift (#1112's self-test harness, added in a prior commit on this branch) now passes 10/10: the three scenarios that exposed the bug (cross-slot-snapshot, cross-slot-capture, partial-locale) correctly FAIL today and now correctly PASS once a slot's own frames are regenerated; a new case 10 (escape-trailer-cross-slot) confirms the escape hatch still works now that a cross-slot diff reaches that branch at all, which it never did under the old coarse check. Re-running the same harness against the pre-fix gate (origin/main's copy) still reproduces cases 1-3 as FAIL, proving the harness still catches the original regression. Back-tested against three real historical frame-regeneration commits in detached worktrees (`--base <sha>^`), confirming no false positives under the new per-slot logic: - 383b088 (store:capture 03-board frames, #1111): PASS - 34c3b03 (macOS 27 snapshot re-baseline): PASS - 93bdc18 (part of #1106, iPad board viewport): PASS .github/workflows/lint.yml's frame-drift-gate job runs the self-test (`mise run test:store_frame_drift`) as a step before the gate itself, and its header comment now describes the per-slot/per-locale check. The mise-task-operations skill's task table reflects both the updated gate description and the new test:store_frame_drift task. Related: #998, #995, #1054, #1001, #1111, #1104, #1106. Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(ci): group the frame-drift failure by slot and name both resolution paths (#1112) The FAIL and WARN output now print one block per (device, app, slot, baseline) with one "missing: <frame path>" line per stale frame, so the fix is copy-pasteable; the previous form repeated the "fed by" baseline once per frame (14 lines for a Slot() missing all 7 locales). The Fix section names both resolution paths explicitly: (a) regenerate on macOS and commit every listed frame, or (b) when regeneration produces a byte-identical frame (the compositor downscales, so a small baseline change can vanish), use the frame-drift-verified label or the Frame-Drift-Verified: trailer and say why. A strict gate without a documented honest exit is the kind that gets an escape hatch bolted on later and loses the check entirely. Harness: case 1 (cross-slot-snapshot) now also asserts the failure text points at the escape trailer and lists the en frame in the "missing:" form; case 3 (partial-locale) asserts the th frame in the same form. Verification (all on this commit): - bash mise-tasks/test/store_frame_drift -> 10 passed, 0 failed, exit 0 - same harness against the origin/main gate -> cases 1-3 FAIL (the hole is still detected), escape-trailer-cross-slot FAIL (old gate never reaches the hatch), 6 PASS - new gate in detached worktrees at 383b088 (#1111), 34c3b03 (#1104), 93bdc18 (#1106), each diffed against its parent -> PASS, exit 0 - shellcheck on both task files -> exit 0 part of #1112 Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(ci): treat a deleted store frame as stale, not as never-generated (#1112) Code review on #1113 flagged a BLOCKER: the per-slot drift gate read "HEAD:${frame} doesn't exist" as "the generator SKIPPED-NO-COPY this locale", so a diff that changes a baseline and `git rm`'s every frame it feeds passed the gate clean — the exact shape someone would use to make a red gate green without actually regenerating anything. Replace the single existence check with three explicit rules per expected frame: 1. missing at both HEAD and MERGE_BASE -> skip (never had a frame). 2. present at HEAD and present (non-deleted) in the diff -> fresh. 3. anything else -> STALE, including present-at-HEAD-but-untouched and present-at-MERGE_BASE-but-deleted-at-HEAD (the latter gets a "(deleted in this diff)" suffix on its "missing:" line so a reviewer can tell a drop apart from a plain stale frame). Rule 2 needs CHANGED_PRESENT (`git diff --name-only --diff-filter=d`) instead of the existing CHANGED, because CHANGED already lists deleted paths — matching a deleted frame against it would have made the fix a no-op. Harness: added case 11 (`deleted-frames`) — baseline A drifts, every frame it feeds is `git rm`'d. Confirmed red against the pre-fix gate (10 passed, 1 failed: deleted-frames, exit 0 instead of 1) before applying the fix, green after (11 passed, 0 failed). Cross-check against the 383b088 (pre-#1112) gate: cross-slot-snapshot, cross-slot-capture, partial-locale, and deleted-frames all correctly FAIL (the gate wrongly passes a diff that should be rejected), confirming the harness still discriminates old gates from the fixed one. Back-tested the fixed gate against three real historical commits — 383b088, 34c3b03, 93bdc18 — each `--base <sha>^`: all PASS, exit 0, no false positives introduced. Part of #1112, following #1111, #1104, #1106. Co-Authored-By: Claude Fable 5.1 <[email protected]> * test(ci): pin slot retirement and partial frame deletion in the drift-gate harness (#1112) Two more cases requested after the deleted-frames gap was plugged (part of #1112), to pin two more boundaries of the "HEAD vs MERGE_BASE existence" rules: Case 12 (slot-retired): deleting the Slot() line itself out of the generator's SLOTS table — not just letting a baseline drift — must stay a PASS even though baseline A still drifts and all 7 of its old frames are gone too. The gate derives its mapping from the checked-out working tree's copy of scripts/build-ascspec-screenshots.py (== HEAD in CI), so once that Slot() line is gone from HEAD, its baseline is no longer "mapped" and none of its frames are required. Sudoku's and minesweeper's iphone-6.9 01-home Slot() calls share byte-identical arguments (they differ only by which BASELINES_SUDOKU/BASELINES_MS root they resolve against), so the case retires sudoku's copy specifically by line number and asserts the signature's count drops from 2 to 1, not to 0. Case 13 (deleted-frames-partial): baseline A drifts, 6 of 7 locale frames are honestly regenerated, and only the th frame is `git rm`'d. The gate must flag exactly th as stale (with "(deleted in this diff)") and must not flag any of the 6 honestly-regenerated locales. Verified: all 13 cases PASS against the fixed gate (13 passed, 0 failed). Against 70574a1 (the previous commit, pre-deleted-frame-fix): cases 11 (deleted-frames) and 13 (deleted-frames-partial) FAIL — th being absent at HEAD was read as "never generated" and wrongly passed — while 12 (slot-retired) still PASSes, since that case doesn't touch the existence-check logic at all. Against 383b088 (origin/main, pre-#1112 per-slot check, 7 passed, 6 failed overall): cross-slot-snapshot, cross-slot-capture, partial-locale, deleted-frames, and deleted-frames-partial all FAIL as required; slot-retired still PASSes there too (escape-trailer-cross-slot also fails, as already established before this change — that gate predates per-slot checking entirely). Back-tested the fixed gate against 383b088^, 34c3b03^, 93bdc18^: all PASS, exit 0, no false positives. shellcheck clean on both scripts. Part of #1112, following #1111, #1104, #1106. Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
What
PR-2 of #1054 (owner rulings Fork A + Fork B): the App Store
03-boardmarketing frame is now captured from a live iOS simulator — where Liquid Glass actually renders — instead of a snapshot baseline that cannot render it, and composed with a fit-height template that keeps the whole glass control cluster inside the caption frame. Ships only the 14 cells that regenerate byte-identically; the rest is tracked in #1110 (owner: no quiet machine time for now) and the Mac slot stays owner-deferred.part of #1054 · part of #1110 · part of #1014
Per-cell: what a regeneration does today (PM condition)
scan:store_frame_driftdocs/app-store/captures/…, modeexact)exactpending #1110 tolerant publishpending #1110 tolerant publish#1054-affectedChosen option: capture-sourced = reproducible. The P-A region-scoped tolerance machinery (comparator, tolerant convergence,
manifest.json, idempotent publish,--verify, sensitivity proof, two-figure identity check) is on the branch but ships dormant: no published cell uses it; it is proven on synthetic fixtures only; its pixel boundREGION_MAX_PX = 10000is provisional until the #1110 measurement derives it (2× measured max). The strategy doc says exactly this and states the blind spot at the provisional bound in numbers.How
mise run store:capture(new;mise-tasks/store/capture+ sharedmise-tasks/lib/sim-app.sh, now also sourced byui:tour/test:ui): device classes as a data table (Mac drops in later as a row), locales read from the generator, own named sims only, status-bar override (9:41), Apple-Intelligence banner swipe before every shot (the real root cause of the first non-determinism), ≥90 % near-white rejection (caught one in-flight blank frame), load gate, cross-cell invariants (unique hashes; non-background ratio band), mechanical band checks from accessibility frames (caught an English-only digit-row match), safe-area crop at capture (iPhone top 190 / bottom 110 px, iPad top 50 / bottom 65 px — measured; the iPad status bar shows the date, which the time override does not cover), relaunch-level convergence (two consecutive relaunches byte-identical for exact cells), staging + manifest + atomic all-or-nothing publish,--identity-check(Release vs DEBUG with state parity, timer mask, same-UTC-date assert, same-build control, outside-glass / inside-glass figures printed separately).scripts/compare_capture.py(the one comparator),scripts/capture_sensitivity_proof.py(1 px outside / 4 px shift / subtle retint / blind-spot pair — 5/5 on a synthetic region).CaptureSlot+source_kind="capture"fit-height branch (no re-crop; scale = min(width-fill, height-fill), centred, rounded); callouts re-measured for the 3 affected iPhone/iPad combinations, iPad values restored to main where the slot stayed on the snapshot.scan:store_baseline_orphansandscan:store_frame_driftparseCaptureSlot(/ capture MAP rows (negative tests run and reverted);scan:hygienefails on unfilled<!-- FILL: -->/<!-- #NNN who: fill -->markers underdocs/.Why DEBUG captures depict the shipping app (Fork A justification)
--identity-check: Release reached by taps vs DEBUG reached by route/taps, same sim, same state. Sudoku: 0 differing px outside the status-bar/timer masks, header frames identical (380 78 44 44), same UTC date; Minesweeper: 0 px outside the glass pill region across control and cross-build. Evidence + READMEs underdocs/app-store/identity-check-evidence/. Re-measure whenever the capture path changes (recorded in the doc).Verification
03-boardframes differ fromorigin/main; 0 other frames differ (git diff --name-only origin/main -- docs/app-store/screenshots-ascspec).mise run scan:store_baseline_orphans→ PASS (59 mapped, 16 capture-backed);scan:store_frame_drift --base origin/main→ PASS;scan:hygiene→ PASS;store:screenshots build-ascspec --verify-only→ 168 / 0 failures;scan:l10ngreen (dev-B).docs/app-store/captures/manifest.jsoncommitted (14 cells, all modeexact, generated from the committed captures — review finding; the publish path's merge was verified offline to preserve existing entries, overwrite by path and add tolerant ones, so chore(store): measure and publish the tolerant iPad 03-board captures (sim-bound remainder of #1054) #1110 extends it without conflict); no__Snapshots__change in the diff.ja03-board frame previously showed the English difficulty label "Easy" inside a Japanese frame (the snapshot fixture was not localized); the live capture shows 「やさしい」. The same holds for every non-English locale — the board header in the after-frames is localized for the first time.🤖 Generated with Claude Code