Repository navigation
chore(gamecenter): remove the dead leaderboard-slice chain left by #1009 - #1011
Conversation
#1009 removed the app-owned Daily Rank screen but deferred removing the protocol members it orphaned. `fetchLeaderboardSlice`, `friendsAuthorizationStatus`, and `requestFriendsAuthorization` had zero production callers, and the always-throwing `requestFriendsAuthorization` live stub was exactly the failure shape behind the shipped dead-button bug. Removes the whole chain: 6 whole-file deletions (Leaderboard/Slice.swift, GKLeaderboardLoader.swift, FakeLeaderboardLoader.swift, and their three test files) plus partial edits across the protocol, LiveGameCenterClient, FakeGameCenterClient, UITestFakeSeams, both Sudoku NearWin modifiers, three GameAppKit inline test fakes, and ProtocolShapeTests. Annotates the four docs mentions as removed without rewriting their historical narrative. `LeaderboardKind`, `LeaderboardIDs`, `PlayerSummary`, `GameCenterSink`, and `SudokuLeaderboardRouting` (the submitScore path) are untouched. MinesweeperKit needed no symmetric change (it shares `FakeGameCenterClient` and had zero direct references to the removed chain). part of #983 closes #1010 Co-Authored-By: Claude <[email protected]>
…ice chain Review finding (MINOR) on #1011: the Triggers line was annotated as removed but the adjacent Purpose line and slice-driven States entries in the same section still read as live. Annotate them in the same strikethrough style. Part of #1010. Co-Authored-By: Claude <[email protected]>
|
iOS Simulator build verification (the Both edited NearWin conformer files ( This compiles the iOS-only blocks, confirming the conformer removals are complete there too (a leftover implementation of a deleted requirement or a missing one would fail this build). Review status: dual code review completed (mechanical scan: zero findings; deep review: 1 MAJOR = this missing evidence, addressed by this comment; 1 MINOR = 06-completion.md annotation consistency, fixed in 🤖 Generated with Claude Code |
…AS-BUILT NOTE Acceptance-pass observation on #1011: the 2026-07-05 AS-BUILT NOTE still implied the slice logic exists but is hidden. Annotate it as resolved by the full chain removal. Part of #1010. Co-Authored-By: Claude <[email protected]>
Removes the entire dead leaderboard-slice chain that #1009 deliberately deferred: the three
GameCenterClientprotocol requirements (fetchLeaderboardSlice,friendsAuthorizationStatus,requestFriendsAuthorization) plus everything that becomes orphaned with them —LeaderboardSliceService,LeaderboardScope,LeaderboardSlice,LeaderboardEntry,LeaderboardLoader,GKLeaderboardLoader,FakeLeaderboardLoader,FriendsAuthStatus,GameCenterError.friendsAccessDenied, the fake'sownRankSliceknobs, and theleaderboardLoaderinjection point.Rationale: an always-throwing live stub behind
try?is exactly what shipped the dead Friends button. Zero production callers confirmed by scan before dispatch;rgoverPackages/finds zero remaining references after.GKLeaderboardLoaderRangeTests(feat(game-center): centre LeaderboardSliceService range on player rank (#64 N-1 follow-up) #140 coverage) dies with the deleted loader — accepted in chore(gamecenter): remove the dead leaderboard-slice chain left by #1009 #1010LeaderboardKind,LeaderboardIDs,PlayerSummary,GameCenterSink,SudokuLeaderboardRouting(submitScore path)Verification:
swift testgreen on GameCenterKit (--no-parallel, 29 tests), GameAppKit (56), SudokuKit (13 filter batches), MinesweeperKit (375); swiftlint--strict0 violations on changed files; no snapshot re-record. The two NearWin conformers sit inside#if os(iOS)— verified separately with an iOS Simulator destination build (see PR checks/comments).Closes #1010. Part of #983.
🤖 Generated with Claude Code