Repository navigation
test(snapshots): re-baseline strict snapshots on macOS 27 (renderer drift, no code change) - #1104
Conversation
…er drift, no code change) The dev Mac went macOS 26.5.1 -> 27.0 (26A428) on 2026-09-16; Xcode 26.5 (17F42) / Swift 6.3.2 unchanged. Every strict `.image` baseline and every `assertViewStructure` TXT that touched an NSClipView failed on a clean `origin/main` 73f76b4 with no code change. Enumerated first (no record mode): MinesweeperKit full + SudokuKit in the #1062 batch filters (today / board / hubs, the SettingsView suites run one at a time, settings-B) -> 174 failing baselines, all "does not match reference": 130 PNG (37 MS + 93 SK) and 44 TXT (22 + 22). Suites that passed (the tolerant board suites and 30 other baselines) are untouched. Classification before recording: - TXT: 43 x `NSClipView` -> `SwiftUI.HostingClipView`, 2 x `_FocusRingView` 1pt y-shift; 0 unknown lines; line 1 (root type) identical in all 44. - PNG: 105 files < 2 % pixels differing (text antialiasing, shift 0-2 px @2x). 25 outliers > 2 %: every text-stack card (completion cards, the DailyHub exhausted card) is exactly 4 px @2x (2pt) taller, centered, and the CTAs below shift +2 px; PracticeHub / AudioSettings / two tiny component images are sub-visible uniform shifts. Content, glyphs, colours and element sets are unchanged; no margin newly hits 0, no inter-element gap <= 0 (tightest, 6 px, is unchanged). PM ruling on #1097: environment drift, re-record all 174. Recorded by deleting the 174 files and re-running the same suites in the committed `.missing` mode (record mode never flipped in code). The 174 recorded files are byte-identical to the enumeration run's rendered artifacts, and every suite passes twice in a row afterwards. `SettingsViewWindowSnapshotTests` crashes the helper on macOS 27 (SIGSEGV, no committed baseline) -> tracked in #1103, excluded here. part of #1097 part of #1014 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…nner slot Since #1024 / #1080 the hub banner is hosted in `tabViewBottomAccessory`, so `BannerSlotDarkBandRegressionTests` was pinning a hand-reconstructed pre-#1024 VStack (kept alive by #1096) that no longer ships. The accessory host itself cannot be pixel-pinned on this harness: `GameAppKit.BannerAccessoryView` and `RootShellView`'s `.tabViewBottomAccessory` are both `#if os(iOS)`, and the macOS build that `swift test` renders with `NSHostingView` ships `EmptyView()` there. The board screen's slot (`BoardView+Layout.swift` `themedBanner`) is the shipped composition that renders here and paints the same `surface.background` token, so the pin moves to `BoardView` in dark mode with a started session over a readiness-held provider (gate open, slot reserved) — strict `.image`, unlike `BoardViewBannerTests`' tolerant sibling of the same state, because a 12 %-alpha band is inside a 0.95 tolerance. Mutant proof (macOS 27, this branch): with `themedBanner`'s `backgroundColor` temporarily set back to the stale `Color.secondary.opacity(0.12)`, the test fails "does not match reference" — 5.3 % of pixels, a solid band over exactly the slot rect (rows 1020–1119, x 32–753 @2x); with the token restored it passes twice. The old DailyHub baseline is removed with the fixture it pinned. part of #1097 part of #851 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ved on macOS 27 `mise run store:screenshots build-ascspec` over the re-baselined snapshots: 168 slots processed, 0 failures, spec check passed. 147 frames change (every slot except the 3 Minesweeper 03-board slots, whose tolerant board suites passed on macOS 27); the 21 Minesweeper 03-board frames come back byte-identical, which doubles as the determinism check for the generator on this host. Old-vs-new per frame: mean 0.81 % of pixels differ, max 3.50 % (minesweeper/iphone-6.9/ja/04-completion) — the same 2pt text-card growth as the source baselines. The taller completion card does not collide with the device bezel or the caption band; the callout below it shifts ~2 px with the card. The Sudoku 03-board frames stay #1054-affected (the pipeline cannot render Liquid Glass, so the controls are surface-less). Regenerating them here only carries the macOS 27 drift; this commit does not fix #1054. part of #1097 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Code review — round 1 (dual-model, read-only, PR head
|
T6 fresh-context acceptance (institution acceptance-checker) — PR head
|
| # | Criterion | Result | Key evidence |
|---|---|---|---|
| 1 | Environment | PASS | sw_vers / xcodebuild -version / swift --version on this machine = macOS 27.0 (26A428), Xcode 26.5, Swift 6.3.2 — exact match to the PR body |
| 2 | Enumeration before recording | PASS | git show --name-only 618a05e7 (174 files) is set-equal to evidence-1097/enumeration/rerecord-list.txt; raw summary.txt batch issue counts (59+30+38+32+7+1+3+4) sum to exactly 174 |
| 3 | Classification | PASS | (a) scripted diff of all 44 TXT base→head: 43 × NSClipView→HostingClipView + 1 file with 2 × _FocusRingView y 488→489 (1pt), 0 unknown, line 1 identical in all 44; (b) independently recomputed % differing / maxΔ for 3 sampled outliers (CompletionView noLeaderboard, CompletionOverlayScaffold dailyMoreToday-streak, DailyHub exhausted) — matched the PR body to 3 decimals (6.326/244, 4.585/255, 2.779/206); (c) re-ran blobs.py on the same 3 files with identical blob-count/mass numbers; an edge-touch proxy showed no new clipping base→head |
| 4 | Re-record scope / record mode | PASS | SnapshotConfig.swift in both packages: recordMode = .missing; no record: .all in the diff; git diff 73f76b4b...36a374f3 --stat has zero hits for Sources/, scripts/, mise-tasks/ |
| 5 | Stability (independent re-run) | PASS | MinesweeperKit: 412 tests / 70 suites / 0 issues. SudokuKit `CompletionViewTests |
| 6 | App Store frames | PASS | Commit 36a374f touches exactly 147 files, all under docs/app-store/screenshots-ascspec/; MS 03-board diff empty (byte-identical); scan:store_frame_drift, scan:store_baseline_orphans, scan:design_contracts all PASS when run fresh; the #1054 caveat for Sudoku 03-board is stated |
| 7 | Item 7 retarget | PASS | Test renders BoardView, strict .image; header cites #851 / #1024 / #1097 and the #if os(iOS) facts — verified directly in BannerAccessoryView.swift / RootShellView.swift; item7-mutant.log shows "does not match reference" for the target test; item7-greenB.log passes after revert; BoardView+Layout.swift at HEAD still uses theme.surface.background.resolved; the zoom crop shows a visible band |
| 8 | PR hygiene | PASS | Title matches ^[a-z]; body has Closes #1097, part of #1014, part of #851, no other close/fix/resolve keyword before a #NNN; every referenced issue number exists (gh issue view individually); all 3 commits carry the Co-Authored-By trailer; autoMergeRequest: null; all 7 CI checks green |
No BLOCKER or MAJOR findings. No new MINOR findings beyond the ones the round-1 review logged and the PR body already reflects (FocusRingView file location, Slot() triple count, 5.33 % / 5.3 % rounding); the acceptance run independently confirmed the corrected PR-body text on the first two.
總判定:ACCEPT — every one of the 8 criteria was independently reproduced with matching numbers (not re-read from the evidence dir), the working tree stayed clean through both live test runs, and no fabricated or stale issue references were found.
|
PM merge record, head Ruling behind this PR: the enumeration on clean Verification:
Review: one substantive code review (APPROVE with doc-only nits, all applied — including the corrected slot arithmetic) plus a fresh-context acceptance that re-ran MinesweeperKit (412 tests) and the SudokuKit completion, banner, toast and DailyHub suites live at head: ACCEPT, no findings. A second reviewer's pass was discounted: it sampled 3 of 44 TXT files and misreported the PNG dimensions. PM ref check: 0 production Swift files; the 175 changed snapshot entries resolve as 173 modified + 1 deleted (the retired DailyHub dark-band baseline) + 1 added (its board-slot replacement); 0 Minesweeper
|
…#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]>
Why
The dev Mac was upgraded to macOS 27.0 (26A428) on 2026-09-16 (Xcode 26.5 / Swift 6.3.2 unchanged). Every strict
.imagebaseline and everyassertViewStructureTXT that touches anNSClipViewfails on a cleanorigin/mainwith no code change. CI runs no tests (#1039), so this machine's runs are the only enforcement; until re-baselined every strict failure is noise that hides real regressions.Closes #1097
part of #1014
part of #851
Environment (recorded per #1097 item 1)
What changed (3 commits, no production code)
618a05e7re-baseline 174 files — 130 PNG (37 MinesweeperKit + 93 SudokuKit) + 44 TXT (22 + 22). Recorded by deleting the enumerated files and re-running the same suites in the committed.missingrecord mode, so record mode was never flipped in code.6be186bffix(shell): faint dark-mode background banding on hub screens (both apps) #851 dark-band pin retarget (item 7) —BannerSlotDarkBandRegressionTestsmoves from a reconstructed pre-feat(monetization): move banner to tabViewBottomAccessory, with tab-bottom fallback #1024VStack(DailyHubView, BannerSlotView)to the shipped board banner slot (BoardView+Layout.swiftthemedBanner), dark mode, real started session, strict.image. ThetabViewBottomAccessoryhost cannot be pixel-pinned on this harness:BannerAccessoryViewandRootShellView's.tabViewBottomAccessoryare both#if os(iOS)and the macOSswift testbuild shipsEmptyView()there (explained in the test's header, with fix(shell): faint dark-mode background banding on hub screens (both apps) #851 / feat(monetization): move banner to tabViewBottomAccessory, with tab-bottom fallback #1024 / test(snapshots): strict baselines fail after the macOS 27 upgrade (2026-09-16), renderer drift with no code change #1097 links).Enumeration before recording (item 2) — clean
origin/main73f76b4b, no record modeSettingsViewTestsaloneSettingsViewAppStoreRowsTestsaloneSettingsIAPRowTestsSettingsViewWindowSnapshotTestsaloneEvery
swift testwasperl -e 'alarm shift; exec @ARGV' 2400 swift test …; none was killed, no batch segfaulted. Every issue is "does not match reference"; nothing else failed. Suites that passed on macOS 27 (the three tolerant Minesweeper board suites and 30 other baselines) are not touched.Classification (item 3)
TXT (44/44 known drift): 43 ×
NSClipView→SwiftUI.HostingClipView(one line per file) + 2 ×_FocusRingView1pt y-shift (both in SudokuKitDailyHubViewTests/…DailyHub-iPhone-light-exhausted.txt); 0 unknown lines; line 1 (root type) identical in all 44.PNG (130): 105 files < 2 % pixels differing — scattered text-antialiasing edge pixels, element shift 0–2 px @2x. 25 outliers > 2 %, all ruled environment drift by the PM on #1097 after measurement:
CompletionViewTests×2,CompletionOverlayScaffoldTests×5, DailyHub exhausted ×1): run-boundary tracing shows the card is exactly 4 px @2x (2pt) taller, centered (top −2 px, bottom +2 px) and every CTA below shifts +2 px; card interior, glyphs, colours and element set are unchanged. The 129–255 deltas are the 2 px edge bands of the moved button rects plus the re-rasterised shadow ring. Consistent with a CoreText line-height change underNSHostingView.StreakHeaderView_loaded,PersonalBestRow_populated: 94–96 % of differing pixels have Δ ≤ 2 (uniform sub-visible shift), toggle/slider 1 px re-raster, or tiny images where text AA alone crosses 2 %.CompletionOverlayScaffold loss-tryAgain, 6 px below its bottom CTA — identical in the committed baseline.Full PNG failure table (130 rows: % pixels differing, max channel delta, measured element shift px @2x, outlier flag)
Before/after crops
Evidence directory (local, not committed —
/Users/zw/GitHub/Wei18/evidence-1097/):outliers/<Suite>__<test>.<name>.full.png— committed | rendered | diff heat map, for every outlier (25) — e.g.MinesweeperCompletionSnapshotTests__snapshotWinLoaded_iPhone_dark…,CompletionOverlayScaffoldTests__snapshot_dailyMoreToday_withStreak…,DailyHubViewTests__snapshotExhaustedIPhoneLight…,AudioSettingsSectionTests__snapshotIPhoneLightMuted…,PracticeHubViewTests__snapshotDefaultIPhoneLight…outliers/*.zoom.png— 5× magnification of the densest 160 px diff window of the same filesoutliers/cat_*.png— delta-category maps (Δ1–2 / 3–8 / 9–32 / 33–128 / 129–255)outliers/item7_mutant.*.png— the fix(shell): faint dark-mode background banding on hub screens (both apps) #851 mutant proof (see below)enumeration/enumeration-report.md,rerecord-list.txt,shifts.tsv,run-summary.txtThat covers ≥ 3 PNGs per app (Sudoku: CompletionView, CompletionOverlayScaffold, DailyHub, PracticeHub, AudioSettings…; Minesweeper: Completion ×6, PracticeHub) plus every outlier.
Re-record and stability (items 4–5)
git statusafter recording: exactly the 174 enumerated files modified, nothing else.cmp, 174/174) — the renderer is deterministic across runs on this host.rc=0.#851 dark-band pin retarget (item 7, separate commit)
Sequence on this branch: delete old baseline → record new (
.missing) → green → mutant:themedBannerbackgroundColorset back to the staleColor.secondary.opacity(0.12)→ test fails "does not match reference" (5.33 % of pixels, a solid band over exactly the slot rect rows 1020–1119, x 32–753 @2x — the commit message rounds this to 5.3 %; cropoutliers/item7_mutant.zoom.png) → revert (git diffempty) → green again. Strict.imageis deliberate: a 12 %-alpha band is inside.tolerantImage's 0.95 tolerance, which is whyBoardViewBannerTests' tolerant sibling of the same state is not a pin.Content-loss check (PM condition, all 129 re-recorded PNGs)
A diff cannot see an element that is missing in both images, so every re-recorded PNG was compared base (
73f76b4b) vs head (36a374f3) on content structure, not pixels: connected content blobs (pixels > 24 from the background colour, 2 px dilated,scipy.ndimage.label) and content mass.evidence-1097/content-check/.Store frames (item 6, PM condition 2)
Intersection derived from the
Slot()mapping inscripts/build-ascspec-screenshots.py(24 app/device/slot triples) and themise-tasks/store/screenshotspreview mapping with the 130 changed PNGs: 21 of 24 triples changed; only the 3 Minesweeper03-boardslots are fed by suites that passed.mise run store:screenshots build-ascspec: 168 slots processed, 0 failures, ASC pixel-size/RGB spec ✓.evidence-1097/frames/frames-old-vs-new.tsv): mean 0.81 % of pixels differ, max 3.50 % (minesweeper/iphone-6.9/ja/04-completion); per-slot maxima: 04-completion 1.4–3.5 %, 01-home ≤ 1.45 %, everything else < 0.9 %. Same drift as the sources: the completion card is 2pt taller and the callout below it moves ~2 px with the card.sudoku/iphone-6.9/en/04-completion,minesweeper/iphone-6.9/en/04-completion, both iPad 04-completion frames andsudoku/iphone-6.9/en/02-dailyinevidence-1097/frames/*.full.png(+ 5×*.zoom.png): no collision with the device bezel or the caption band, only antialiasing plus the 2 px shift.03-boardframes remain blocker(store): ASC 03-board frames cannot render Liquid Glass — snapshot pipeline is structurally unable to show G4 #1054-affected. The pipeline cannot render Liquid Glass, so those frames show surface-less controls. They are regenerated here only because their source baselines drifted; the refreshed frames are not a fix for blocker(store): ASC 03-board frames cannot render Liquid Glass — snapshot pipeline is structurally unable to show G4 #1054 and this PR does not attempt one.Gates
mise run scan:store_frame_drift --base origin/mainframe-drift-verifiedlabelmise run scan:store_baseline_orphansmise run scan:design_contracts(#1064)swiftlint --stricton the one changed test fileOut of scope / follow-ups
SettingsViewWindowSnapshotTestscrashesswiftpm-testing-helperon macOS 27 when run alone. No committed baseline, so not part of this re-baseline; batch filters that include it are red-by-crash until fixed.docs/designs/code(design-preview package) is not shipped or gated and was not touched.🤖 Generated with Claude Code