Skip to content

feat(minesweeper): wire PersonalRecordSink via makeCompletionSinks #699

Closed

Description

@wei18

B2 (part 1) from the 2026-07-05 uiux audit (decided 2026-07-05): MS GameConfig construction (MinesweeperKit Live.swift:88-151) omits makeCompletionSinks (default nil), so there is no PersonalRecordSink (no personal-best record write); score submission works via a separate path (MinesweeperGameViewModel.submitDailyTimeIfWon). Owner decision: wire PersonalRecordSink now (low risk); achievements are tracked separately. Open question from the brief: whether MinesweeperSavedGameStore/Persistence already has a local best-time field to hook into — verify during implementation.

Activity

  1. wei18 commented on Jul 5, 2026

    @wei18
    OwnerAuthor

    Owner decision (2026-07-05): go with the MS-native store — build MinesweeperPersonalRecordStore written directly next to MinesweeperGameViewModel.submitDailyTimeIfWon(), consistent with the two prior per-game precedents (MinesweeperSavedGameStore, direct gameCenter.submitScore) and the documented per-game-persistence seam. Do NOT generalize TelemetryEvent/makeCompletionSinks for this; proper seam generalization is deferred to #479 game-N scaffold. Requires new PersonalRecord record type in cloudkit/minesweeper.ckdb (Development push via ck:schema; Production deploy stays the user-owned Console gate). Sizing: M. Implementation scope doc exists (7-step list) from the session scratchpad.

  2. wei18 commented on Jul 6, 2026

    @wei18
    OwnerAuthor

    Production schema deployed: owner clicked "Deploy Schema Changes to Production…" in CloudKit Console for iCloud.com.wei18.minesweeper (2026-07-06). PersonalRecord record type is now live in Production; the #706 write path is fully operational end-to-end. Nothing remaining on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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