Skip to content

test(snapshots): re-baseline strict snapshots on macOS 27 (renderer drift, no code change) - #1104

Merged
wei18 merged 3 commits into
mainfrom
test/1097-rebaseline-macos27
Sep 23, 2026
Merged

wei18 merged 3 commits into
mainfrom
test/1097-rebaseline-macos27

Conversation

@wei18

@wei18 wei18 commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

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 .image baseline and every assertViewStructure TXT that touches an NSClipView fails on a clean origin/main with 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)

ProductName:    macOS      ProductVersion: 27.0      BuildVersion: 26A428   (installed 2026-09-16 10:54, InstallHistory.plist)
Xcode 26.5  Build version 17F42
swift-driver version: 1.148.6 Apple Swift version 6.3.2 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)

What changed (3 commits, no production code)

  1. 618a05e7 re-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 .missing record mode, so record mode was never flipped in code.
  2. 6be186bf fix(shell): faint dark-mode background banding on hub screens (both apps) #851 dark-band pin retarget (item 7) — BannerSlotDarkBandRegressionTests moves from a reconstructed pre-feat(monetization): move banner to tabViewBottomAccessory, with tab-bottom fallback #1024 VStack(DailyHubView, BannerSlotView) to the shipped board banner slot (BoardView+Layout.swift themedBanner), dark mode, real started session, strict .image. The tabViewBottomAccessory host cannot be pixel-pinned on this harness: BannerAccessoryView and RootShellView's .tabViewBottomAccessory are both #if os(iOS) and the macOS swift test build ships EmptyView() 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).
  3. App Store frames regenerated for every slot whose source baseline changed (see §Store frames).

Enumeration before recording (item 2) — clean origin/main 73f76b4b, no record mode

batch filter result
MinesweeperKit full (none) 412 tests / 70 suites, 59 issues = 37 PNG + 22 TXT
SudokuKit today #1062 today filter 105 tests / 15 suites, 30 = 15 PNG + 15 TXT
SudokuKit board #1062 board filter 184 tests / 43 suites, 38 = 38 PNG (the #1087 wall-clock flake is gone after #1098)
SudokuKit hubs #1062 hubs filter 62 tests / 9 suites, 32 = 25 PNG + 7 TXT
SudokuKit SettingsViewTests alone 15 tests, 7 PNG
SudokuKit SettingsViewAppStoreRowsTests alone 4 tests, 1 PNG
SudokuKit SettingsIAPRowTests 10 tests, 3 PNG
SudokuKit settings-B #1062 settings-B filter 25 tests / 6 suites, 4 PNG
SudokuKit SettingsViewWindowSnapshotTests alone crashes the helper (SIGSEGV) 2/2 → #1103; no committed baseline, excluded

Every swift test was perl -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 × _FocusRingView 1pt y-shift (both in SudokuKit DailyHubViewTests/…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:

  • Text-stack cards (14 files: MS Completion ×6, SK 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 under NSHostingView.
  • PracticeHub iPhone ×7, AudioSettings ×2, 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 %.
  • Clipping / overlap check (PM condition 1): for all 25, no margin newly hits 0, mid-column element-segment count identical, no inter-element gap ≤ 0, minimum gaps unchanged (6–110 px @2x). Tightest bottom margin among completion cards: 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)
pct maxΔ shift px outlier file
8.586% 255 2 YES MinesweeperCompletionSnapshotTests/snapshotWinLoaded_iPhone_dark.Completion-iPhone-dark-win-loaded.png
8.398% 255 2 YES MinesweeperCompletionSnapshotTests/snapshotLoss_iPhone_dark.Completion-iPhone-dark-loss.png
7.911% 255 11 YES MinesweeperCompletionSnapshotTests/snapshotWinDailyReminder_iPhone_light.Completion-iPhone-light-win-reminder.png
6.361% 255 3 YES MinesweeperCompletionSnapshotTests/snapshotWinLoaded_iPhone_light.Completion-iPhone-light-win-loaded.png
6.326% 244 3 YES CompletionViewTests/snapshot_noLeaderboard_iPhoneLight.Completion-iPhone-light-noLeaderboard.png
6.324% 244 3 YES CompletionViewTests/snapshot_authenticatedLoaded_iPhoneLight.Completion-iPhone-light-loaded.png
6.231% 255 3 YES MinesweeperCompletionSnapshotTests/snapshotWinLoadedNoElapsed_iPhone_light.Completion-iPhone-light-win-loaded-noElapsed.png
6.134% 255 8 YES MinesweeperCompletionSnapshotTests/snapshotLoss_iPhone_light.Completion-iPhone-light-loss.png
4.585% 255 4 YES CompletionOverlayScaffoldTests/snapshot_dailyMoreToday_withStreak_iPhoneLight.CompletionOverlayScaffold-iPhone-light-dailyMoreToday-streak.png
4.301% 255 4 YES CompletionOverlayScaffoldTests/snapshot_practice_playAgain_iPhoneLight.CompletionOverlayScaffold-iPhone-light-practice-playAgain.png
4.301% 255 4 YES CompletionOverlayScaffoldTests/snapshot_loss_tryAgain_iPhoneLight.CompletionOverlayScaffold-iPhone-light-loss-tryAgain.png
4.285% 255 4 YES CompletionOverlayScaffoldTests/snapshot_dailyMoreToday_iPhoneLight.CompletionOverlayScaffold-iPhone-light-dailyMoreToday.png
3.793% 255 4 YES CompletionOverlayScaffoldTests/snapshot_dailyAllDone_iPhoneLight.CompletionOverlayScaffold-iPhone-light-dailyAllDone.png
3.177% 100 3 YES MinesweeperPracticeHubSnapshotTests/snapshotSelectedExpertIPhoneLight.PracticeHub-iPhone-light-selectedHard.png
3.153% 94 3 YES PracticeHubViewTests/snapshotDrawnIPhoneLight.PracticeHub-iPhone-light-drawn.png
3.034% 94 3 YES PracticeHubViewTests/snapshotIdleIPhoneLight.PracticeHub-iPhone-light-idle.png
3.034% 94 3 YES PracticeHubViewTests/snapshotDefaultIPhoneLight.PracticeHub-iPhone-light-default.png
3.015% 94 3 YES PracticeHubViewTests/snapshotSelectedHardIPhoneLight.PracticeHub-iPhone-light-selectedHard.png
3.004% 94 3 YES PracticeHubViewTests/snapshotShimmerIPhoneLight.PracticeHub-iPhone-light-shimmer.png
2.917% 94 0 YES PracticeHubViewTests/snapshotScaledSpacingAX3IPhoneLight.PracticeHub-iPhone-light-accessibility3.png
2.779% 206 11 YES DailyHubViewTests/snapshotExhaustedIPhoneLight.DailyHub-iPhone-light-exhausted.png
2.565% 199 6 YES AudioSettingsSectionTests/snapshotIPhoneLightUnmuted.AudioSettingsSection-iPhone-light-unmuted.png
2.453% 199 6 YES AudioSettingsSectionTests/snapshotIPhoneLightMuted.AudioSettingsSection-iPhone-light-muted.png
2.354% 85 0 YES TabRootsComponentSnapshotTests/streakHeaderView_loaded.StreakHeaderView_loaded.png
2.056% 34 0 YES PersonalBestRowTests/personalBestRow_populated.PersonalBestRow_populated.png
1.948% 94 0 PracticeHubViewTests/snapshotScaledSpacingAX3IPadLight.PracticeHub-iPad-light-accessibility3.png
1.830% 177 1 ProgressScreenTests/snapshotHistoryUnavailableIPhoneLight.ProgressScreen-iPhone-light-history-unavailable.png
1.805% 255 3 MinesweeperCompletionSnapshotTests/snapshotWinLoaded_iPad_light.Completion-iPad-light-win-loaded.png
1.784% 244 3 CompletionViewTests/snapshot_authenticatedLoaded_iPadLight.Completion-iPad-light-loaded.png
1.783% 128 0 PersonalBestRowTests/streakCalendarView_empty.StreakCalendarView_empty.png
1.738% 183 1 ProgressScreenTests/snapshotHistoryUnavailableIPhoneLight.ProgressScreen-iPhone-light-history-unavailable.png
1.612% 177 1 ProgressScreenTests/snapshotLoadedIPhoneLight.ProgressScreen-iPhone-light-loaded.png
1.612% 177 1 ProgressScreenTests/snapshotAccessibility3IPhoneLight.ProgressScreen-iPhone-light-accessibility3.png
1.595% 128 0 PersonalBestRowTests/streakCalendarView_withMarks.StreakCalendarView_withMarks.png
1.516% 183 1 ProgressScreenTests/snapshotLoadedIPhoneLight.ProgressScreen-iPhone-light-loaded.png
1.516% 183 1 ProgressScreenTests/snapshotAccessibility3IPhoneLight.ProgressScreen-iPhone-light-accessibility3.png
1.395% 49 10 ToastTests/snapshotInfoLight.ToastView-info-light.png
1.352% 177 1 ProgressScreenTests/snapshotStoreIPhoneLight.ProgressScreen-iPhone-light-store.png
1.271% 183 1 ProgressScreenTests/snapshotStoreIPhoneLight.ProgressScreen-iPhone-light-store.png
1.251% 50 0 SettingsIAPRowTests/snapshotRowsIPhoneLightPurchaseFailed.IAPRows-iPhone-light-purchaseFailed.png
1.210% 187 2 MinesweeperBoardLoaderViewFailedExitTests/snapshot_failed_iPhoneLight.MinesweeperBoardLoader-iPhone-light-failed.png
1.157% 100 0 MinesweeperPracticeHubSnapshotTests/practiceDifficultyCardView_selected.PracticeDifficultyCardView_selected.png
1.128% 201 2 BoardLoaderViewFailedExitTests/snapshot_failed_iPhoneLight.BoardLoader-iPhone-light-failed.png
1.123% 255 0 BoardControlClusterSnapshotTests/clusterCompact_dark.Cluster-compact-dark.png
1.053% 186 0 BoardControlClusterSnapshotTests/clusterCompact_historyDisabled_light.Cluster-compact-light-historyDisabled.png
1.048% 68 1 SettingsViewTests/snapshot_iPhone_dark_unpurchased.SettingsView-fullpage-iPhone-dark-unpurchased.png
1.041% 186 0 BoardControlClusterSnapshotTests/clusterCompact_light.Cluster-compact-light.png
1.036% 68 1 SettingsViewTests/snapshot_iPhone_dark_purchased.SettingsView-fullpage-iPhone-dark-purchased.png
1.031% 182 0 BoardFullBleedBreakpointTests/heightBound_iPhoneSE_320.Board-320-heightBound.png
0.962% 44 0 SettingsIAPRowTests/snapshotRowsIPhoneLightPurchased.IAPRows-iPhone-light-purchased.png
0.946% 43 0 SettingsViewAppStoreRowsTests/snapshot_iPhone_light_withAppStoreRowsAndInviteFriends.SettingsView-fullpage-iPhone-light-appStoreRows.png
0.913% 50 0 ToastTests/snapshotFailureLight.ToastView-failure-light.png
0.894% 32 0 MinesweeperPracticeHubSnapshotTests/practiceDifficultyCardView_default.PracticeDifficultyCardView_default.png
0.888% 255 0 BoardControlClusterSnapshotTests/clusterRail_light.Cluster-rail-light.png
0.873% 177 0 ProgressScreenTests/snapshotLoadedMacLight.ProgressScreen-Mac-light-loaded.png
0.864% 44 0 SettingsIAPRowTests/snapshotRowsIPhoneLightUnpurchased.IAPRows-iPhone-light-unpurchased.png
0.860% 29 2 BoardViewTests/snapshotAlmostComplete_iPhone_dark.Board-iPhone-dark-almostComplete.png
0.811% 44 0 ToastTests/snapshotSuccessLight.ToastView-success-light.png
0.808% 94 0 PracticeTabRootsComponentSnapshotTests/practiceDifficultyCardView_selected.PracticeDifficultyCardView_selected.png
0.802% 24 0 PersonalBestRowTests/personalBestRow_neverCompleted.PersonalBestRow_neverCompleted.png
0.801% 9 0 BoardViewDigitFirstTests/snapshotPlainCell_light.Cell-light-plain.png
0.788% 6 0 BoardViewDigitFirstTests/snapshotSameDigitCell_light.Cell-light-sameDigit.png
0.767% 21 0 TabRootsComponentSnapshotTests/dailyCardContent_skeleton.DailyCardContent_skeleton.png
0.767% 21 0 TabRootsComponentSnapshotTests/dailyCardContent_notStarted.DailyCardContent_notStarted.png
0.764% 20 2 TabRootsComponentSnapshotTests/streakHeaderView_skeleton.StreakHeaderView_skeleton.png
0.751% 23 1 ReminderSettingsSectionTests/snapshotIPhoneLightDenied.ReminderSettingsSection-iPhone-light-denied.png
0.738% 34 0 TabRootsComponentSnapshotTests/dailyCardContent_completed.DailyCardContent_completed.png
0.721% 182 2 BoardViewTests/snapshotAlmostComplete_iPhone_light_zhTW.Board-iPhone-light-almostComplete-zhTW.png
0.712% 177 0 ProgressScreenTests/snapshotStoreMacLight.ProgressScreen-Mac-light-store.png
0.705% 43 0 SettingsViewTests/snapshot_iPhone_light_purchased.SettingsView-fullpage-iPhone-light-purchased.png
0.688% 29 2 BoardViewTests/snapshotInProgress_iPhone_dark.Board-iPhone-dark-inProgress.png
0.680% 43 0 SettingsViewTests/snapshot_iPhone_light_unpurchased.SettingsView-fullpage-iPhone-light-unpurchased.png
0.677% 182 2 BoardViewPencilNotesTests/snapshotPencilNotesWithError_iPhone_light.Board-iPhone-light-pencilNotesWithError.png
0.677% 182 2 BoardViewPencilNotesTests/snapshotPencilNotes_iPhone_light.Board-iPhone-light-pencilNotes.png
0.661% 183 1 ProgressScreenTests/snapshotStoreMacLight.ProgressScreen-Mac-light-store.png
0.656% 182 2 BoardViewTests/snapshotInProgress_iPhone_light.Board-iPhone-light-inProgress.png
0.639% 182 2 BoardFullBleedBreakpointTests/fullBleed_iPhonePro_393.Board-393-fullBleed.png
0.624% 53 0 MinesweeperDailyHubSnapshotTests/snapshotAllDone_iPhone_light.Daily-iPhone-light-allDone.png
0.594% 28 0 BoardViewTests/snapshotAlmostComplete_Mac_dark.Board-Mac-dark-almostComplete.png
0.594% 12 0 PracticeTabRootsComponentSnapshotTests/practiceDifficultyCardView_default.PracticeDifficultyCardView_default.png
0.592% 100 3 MinesweeperPracticeHubSnapshotTests/snapshotDefaultIPhoneLight.PracticeHub-iPhone-light-default.png
0.592% 100 0 MinesweeperPracticeHubSnapshotTests/snapshotScaledSpacingAX3IPhoneLight.PracticeHub-iPhone-light-accessibility3.png
0.590% 52 0 DailyHubViewTests/snapshotAllCompletedIPhoneLight.DailyHub-iPhone-light-allDone.png
0.589% 40 6 BannerSlotDarkBandRegressionTests/postFix_themedBackground_dailyHubDarkMode_bannerOpen_noBand.DailyHub-iPhone-dark-bannerOpen-postFix.png
0.565% 24 0 ReminderSettingsSectionTests/snapshotIPhoneLightNotDetermined.ReminderSettingsSection-iPhone-light-notDetermined.png
0.548% 182 0 BoardFullBleedBreakpointTests/fullBleed_iPhoneProMax_430.Board-430-fullBleed.png
0.532% 52 0 DailyHubViewTests/snapshotAllDoneIPhoneLight.DailyHub-iPhone-light-allDone.png
0.519% 182 0 BoardViewTests/snapshotEmpty_iPhone_light.Board-iPhone-light-empty.png
0.498% 182 0 BoardViewTests/snapshotAlmostComplete_Mac_light.Board-Mac-light-almostComplete.png
0.494% 35 2 BoardViewTests/snapshotEmpty_iPhone_dark_ja.Board-iPhone-dark-empty-ja.png
0.437% 43 0 SettingsViewTests/snapshot_mac_light_purchased.SettingsView-fullpage-mac-light-purchased.png
0.426% 43 1 MinesweeperTodayTabViewTests/snapshotAccessibility5IPhoneLight.TodayTabView-iPhone-light-accessibility5.png
0.425% 43 1 MinesweeperTodayTabViewTests/snapshotIPhoneLight.TodayTabView-iPhone-light.png
0.425% 43 1 MinesweeperDailyHubSnapshotTests/snapshotDegraded_iPhone_light.Daily-iPhone-light-degraded.png
0.423% 28 0 BoardViewTests/snapshotInProgress_Mac_dark_ko.Board-Mac-dark-inProgress-ko.png
0.422% 43 0 SettingsViewTests/snapshot_mac_light_unpurchased.SettingsView-fullpage-mac-light-unpurchased.png
0.411% 53 0 MinesweeperDailyHubSnapshotTests/snapshotLoaded_iPhone_light.Daily-iPhone-light-loaded.png
0.411% 53 0 MinesweeperDailyHubSnapshotTests/snapshotLoaded_iPhone_light_scaledSpacingAX3.Daily-iPhone-light-loaded-AX3.png
0.398% 182 0 BoardViewPencilNotesTests/snapshotPencilNotesWithError_Mac_light.Board-Mac-light-pencilNotesWithError.png
0.388% 52 0 DailyHubViewTests/snapshotLoadedScaledSpacingAX3IPhoneLight.DailyHub-iPhone-light-loaded-AX3.png
0.388% 52 0 DailyHubViewTests/snapshotLoadedIPhoneLight.DailyHub-iPhone-light-loaded.png
0.385% 52 0 TodayTabViewTests/snapshotIPhoneLight.TodayTabView-iPhone-light.png
0.385% 52 0 TodayTabViewTests/snapshotAccessibility5IPhoneLight.TodayTabView-iPhone-light-accessibility5.png
0.378% 182 0 BoardViewTests/snapshotInProgress_Mac_light.Board-Mac-light-inProgress.png
0.375% 29 0 MinesweeperTodayTabViewTests/snapshotMacDark.TodayTabView-Mac-dark.png
0.350% 40 0 TodayTabViewTests/snapshotMacDark.TodayTabView-Mac-dark.png
0.344% 34 0 MinesweeperDailyHubSnapshotTests/snapshotLoaded_regular_dark.Daily-mac-dark-loaded.png
0.336% 18 0 BoardViewTests/snapshotEmpty_Mac_dark.Board-Mac-dark-empty.png
0.319% 177 2 ProgressScreenTests/snapshotStoreIPadLight.ProgressScreen-iPad-light-store.png
0.314% 21 1 DailyHubViewTests/snapshotDegradedIPhoneLight.DailyHub-iPhone-light-degraded.png
0.300% 183 2 ProgressScreenTests/snapshotStoreIPadLight.ProgressScreen-iPad-light-store.png
0.265% 30 0 MinesweeperControlClusterSnapshotTests/cluster_light.Cluster-compact-light.png
0.264% 43 1 MinesweeperTodayTabViewTests/snapshotMacLight.TodayTabView-Mac-light.png
0.255% 53 0 MinesweeperDailyHubSnapshotTests/snapshotLoaded_regular_light.Daily-mac-light-loaded.png
0.246% 27 0 ProgressScreenTests/snapshotLoadingIPhoneLight.ProgressScreen-iPhone-light-loading.png
0.245% 27 0 ProgressScreenTests/snapshotLoadingIPhoneLight.ProgressScreen-iPhone-light-loading.png
0.239% 52 0 TodayTabViewTests/snapshotMacLight.TodayTabView-Mac-light.png
0.201% 41 1 DailyHubViewTests/snapshotFailedIPhoneLight.DailyHub-iPhone-light-failed.png
0.166% 43 1 SettingsViewTests/snapshot_iPad_light_purchased.SettingsView-fullpage-iPad-light-purchased.png
0.163% 182 2 BoardViewPencilNotesTests/snapshotPencilNotesWithError_iPad_light.Board-iPad-light-pencilNotesWithError.png
0.157% 182 2 BoardViewTests/snapshotInProgress_iPad_light.Board-iPad-light-inProgress.png
0.147% 53 0 MinesweeperDailyHubSnapshotTests/snapshotAllDone_iPad_light.Daily-iPad-light-allDone.png
0.140% 100 0 MinesweeperPracticeHubSnapshotTests/snapshotScaledSpacingAX3IPadLight.PracticeHub-iPad-light-accessibility3.png
0.100% 43 0 MinesweeperTodayTabViewTests/snapshotIPadLight.TodayTabView-iPad-light.png
0.097% 53 0 MinesweeperDailyHubSnapshotTests/snapshotLoaded_iPad_light_scaledSpacingAX3.Daily-iPad-light-loaded-AX3.png
0.092% 52 0 DailyHubViewTests/snapshotLoadedScaledSpacingAX3IPadLight.DailyHub-iPad-light-loaded-AX3.png
0.091% 52 0 TodayTabViewTests/snapshotIPadLight.TodayTabView-iPad-light.png
0.090% 52 0 DailyHubViewTests/snapshotUnfinishedIPadLight.DailyHub-iPad-light-unfinished.png
0.052% 9 1 DailyHubViewTests/snapshotLoadingIPhoneLight.DailyHub-iPhone-light-loading.png
0.052% 8 1 MinesweeperDailyHubSnapshotTests/snapshotLoading_iPhone_light.Daily-iPhone-light-loading.png

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 files
  • outliers/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.txt

That 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)

  • Recorded in full-package runs (MinesweeperKit full; SudokuKit per fix(monetization): restore cold-launch gate resolution + consent-before-request ordering #1062 batch / per suite, since the full suite segfaults locally). git status after recording: exactly the 174 enumerated files modified, nothing else.
  • The 174 recorded files are byte-identical to the enumeration run's rendered artifacts (cmp, 174/174) — the renderer is deterministic across runs on this host.
  • Green twice in a row after recording (same batches): MS 412/412 · today 105 · board 184 · hubs 62 · SettingsViewTests 15 · AppStoreRows 4 · IAPRow 10 · settings-B 25 — both passes rc=0.

#851 dark-band pin retarget (item 7, separate commit)

Sequence on this branch: delete old baseline → record new (.missing) → green → mutant: themedBanner backgroundColor set back to the stale Color.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 %; crop outliers/item7_mutant.zoom.png) → revert (git diff empty) → green again. Strict .image is deliberate: a 12 %-alpha band is inside .tolerantImage's 0.95 tolerance, which is why BoardViewBannerTests' 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.

  • Blob count identical in 129 / 129 files (delta 0 everywhere — no glyph, icon, dot or control disappeared or appeared).
  • Content mass delta: min −0.34 %, median 0.00 %, max +1.07 % (the taller completion cards).
  • Six sub-2 % files eyeballed side-by-side (committed | rendered | diff): SettingsView iPhone light purchased, Board iPhone light inProgress, MS Daily iPhone loaded, MS ProgressScreen Mac store, ToastView success, MS TodayTabView Mac dark — text-edge antialiasing only. Images + table + script in evidence-1097/content-check/.
  • The green passes are themselves fresh renders compared strict against the committed baselines (all 174, twice), not against the enumeration artifacts; the T6 acceptance run repeats one of them independently.

Store frames (item 6, PM condition 2)

Intersection derived from the Slot() mapping in scripts/build-ascspec-screenshots.py (24 app/device/slot triples) and the mise-tasks/store/screenshots preview mapping with the 130 changed PNGs: 21 of 24 triples changed; only the 3 Minesweeper 03-board slots are fed by suites that passed. mise run store:screenshots build-ascspec: 168 slots processed, 0 failures, ASC pixel-size/RGB spec ✓.

  • 147 frames changed (21 triples × 7 locales); the 21 Minesweeper 03-board frames came back byte-identical — the generator is deterministic on this host, so every changed frame is attributable to its changed source baseline.
  • Old-vs-new per frame (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.
  • Side-by-side old | new | diff for sudoku/iphone-6.9/en/04-completion, minesweeper/iphone-6.9/en/04-completion, both iPad 04-completion frames and sudoku/iphone-6.9/en/02-daily in evidence-1097/frames/*.full.png (+ 5× *.zoom.png): no collision with the device bezel or the caption band, only antialiasing plus the 2 px shift.
  • ⚠️ Sudoku 03-board frames 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

gate result
mise run scan:store_frame_drift --base origin/main PASS, without the frame-drift-verified label
mise run scan:store_baseline_orphans PASS (47 mapped baselines, all present with a live recording test)
mise run scan:design_contracts (#1064) PASS before recording and PASS after
swiftlint --strict on the one changed test file 0 violations (lefthook pre-commit also ran gitleaks + hygiene on every commit)

Out of scope / follow-ups

🤖 Generated with Claude Code

wei18 and others added 3 commits September 23, 2026 20:08
…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]>
@wei18

wei18 commented Sep 23, 2026

Copy link
Copy Markdown
Owner Author

Code review — round 1 (dual-model, read-only, PR head 36a374f3)

sonnet — APPROVE-WITH-NITS. All 8 points PASS with commands run against git show/git diff (never the working tree): (1) no production code in the diff; (2) recordMode = .missing at HEAD in both packages, zero record: overrides; (3) 618a05e = exactly the 174 enumerated files (set-equal to rerecord-list.txt), 6be186b = test file + old PNG deleted + new PNG added, 36a374f = exactly 147 files under docs/app-store/screenshots-ascspec/; (4) all 44 TXT diffed base→head: 43 × NSClipView→SwiftUI.HostingClipView, 2 × _FocusRingView y 488→489, 0 unknown, line 1 identical; (5) 6 PNGs + 1 ASC frame: sizes identical base→head, percentages match the evidence report to 3 decimals; (6) item-7 test fixture matches BoardViewBannerTests, every header claim verified in source (#if os(iOS) on BannerAccessoryView and the .tabViewBottomAccessory call, EmptyView() on macOS in MakeGameApp+Helpers, themedBanner on surface.background), baseline name matches; (7) all 11 issue refs exist, one auto-close keyword, #1054 caveat present, frame counts match; (8) no stale references to the old DailyHub fixture.
Findings, all documentation, applied to the PR body: MINOR the 2 _FocusRingView lines live in DailyHubViewTests/…exhausted.txt, not ProgressScreenTests; MINOR the Slot() mapping has 24 triples (21 changed + 3 MS 03-board unchanged = 147 + 21 frames), not "18 of 21"; NIT 5.33 % vs 5.3 % rounding.

haiku — APPROVE, but its evidence is weaker and partly wrong: it sampled 3 of 44 TXT files (relying on the evidence report for the rest) and reported the sampled PNGs as 750×1334 — the files are 786×1704 at both base and head (re-verified by the Leader with Pillow). Treated as a low-confidence second opinion; the sonnet report and the fresh-context T6 below are the load-bearing checks.

Leader-side additions since the reviews were dispatched: content-loss check (connected content blobs identical 129/129 base→head, mass −0.34 … +1.07 %) and six sub-2 % files eyeballed, all in the PR body §Content-loss check.

@wei18

wei18 commented Sep 23, 2026

Copy link
Copy Markdown
Owner Author

T6 fresh-context acceptance (institution acceptance-checker) — PR head 36a374f3

# 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.

@wei18

wei18 commented Sep 23, 2026

Copy link
Copy Markdown
Owner Author

PM merge record, head 36a374f3. Gate satisfied.

Ruling behind this PR: the enumeration on clean origin/main found 174 failing baselines, of which 25 PNGs were not antialiasing-only — every text-stacking card renders 2pt taller on macOS 27, moving the CTA below it. The PM opened the two largest-shift crops: content, glyphs, colours and element set identical, nothing clipped. Since the enumeration ran on clean main with no code change, the difference is environmental by construction, so all 174 were re-recorded.

Verification:

  • Content-loss check (the failure mode a diff cannot see): connected content blobs compared base vs head across 129 PNGs — blob count identical in every file, content mass between −0.34% and +1.07%. Six sub-2% files also eyeballed.
  • Clipping and overlap on all 25 outliers: no margin newly reaches 0, no gap ≤ 0. The tightest completion-card margin (6 px below the loss-tryAgain CTA) is 6 px in the committed baseline too.
  • Re-record verified against fresh renders: the affected suites pass twice in a row, which is a strict comparison of a fresh render against the committed files.
  • TXT 44/44 scripted: 43 NSClipView → SwiftUI.HostingClipView, 2 _FocusRingView 1pt shifts, 0 unknown, line 1 identical.
  • Store frames: 147 regenerated (21 of the generator's 24 slot triples × 7 locales). The 21 Minesweeper 03-board frames came back byte-identical, which doubles as a determinism proof for the generator on this host. No bezel or caption collision.
  • Gates: store_frame_drift passes without the escape-hatch label, store_baseline_orphans passes, and design_contracts passes before and after. CI 7/7.
  • fix(shell): faint dark-mode background banding on hub screens (both apps) #851 pin retargeted from the retired pre-feat(monetization): move banner to tabViewBottomAccessory, with tab-bottom fallback #1024 composition to the shipped board slot, strict .image, proven by a wrong-background-token mutant that fails over exactly the slot rect. The accessory host itself cannot be pinned here: it is #if os(iOS) and the macOS harness ships EmptyView().

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 03-board frames in the diff.

⚠️ Sudoku 03-board frames remain #1054-affected. They are regenerated only because their sources drifted, and still cannot show Liquid Glass. This PR does not fix #1054.

@wei18
wei18 merged commit 34c3b03 into main Sep 23, 2026
21 checks passed
@wei18
wei18 deleted the test/1097-rebaseline-macos27 branch September 23, 2026 14:14
wei18 added a commit that referenced this pull request Oct 27, 2026
…#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]>
wei18 added a commit that referenced this pull request Oct 27, 2026
…-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]>
wei18 added a commit that referenced this pull request Oct 28, 2026
…-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]>
wei18 added a commit that referenced this pull request Oct 28, 2026
…-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]>
wei18 added a commit that referenced this pull request Oct 28, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(snapshots): strict baselines fail after the macOS 27 upgrade (2026-09-16), renderer drift with no code change

1 participant