Skip to content

M1 (architecture): wire or remove dead Persistence + GameCenter infra (5 types) #64

Closed

Description

@wei18

Source: Code Reviewer audit Wave 3, finding #5–7 (2026-05-20)

Problem

5 actors/structs exist in v1 production code but have zero production consumers — only test harnesses exercise them. Per docs/design.md §How.6.7 (LWW conflict resolution) they're documented behavior; reality is the wiring is missing.

Affected files

  • Packages/SudokuKit/Sources/Persistence/Live/ConflictResolver.swift
  • Packages/SudokuKit/Sources/Persistence/Live/AccountMonitor.swift
  • Packages/SudokuKit/Sources/Persistence/Live/LocalCache.swift
  • Packages/SudokuKit/Sources/Persistence/Live/SubscriptionInstaller.swift
  • Packages/SudokuKit/Sources/GameCenterClient/Leaderboard/LeaderboardSliceService.swift

Decision needed

Per-component:

  1. Wire into the actual save / boot / sync path, OR
  2. Delete the type and mark the corresponding design.md section as deferred to a later phase

Either way: docs and code must match.

Out of scope

  • Not blocking v2 ship (these are silent gaps, not regressions)
  • Tackle once v2.5 ships to TestFlight

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions