Skip to content

M6 (architecture): unify Game Center identifier source across GameCenterClient + ASCRegister #66

Closed

Description

@wei18

Source: Architect audit Wave 3, finding #7 (2026-05-20)

Problem

LeaderboardIDs (in Packages/SudokuKit/Sources/GameCenterClient/) and Config (in ASCRegister/) hold the same Game Center identifier strings, reconciled by ConfigConsistencyTests. This is manual sync — fragile.

Proposal

  1. Promote a GameCenterIdentifiers module (or move into SudokuEngine's pure-data section)
  2. Both GameCenterClient and ASCRegister depend on this single source
  3. ConfigConsistencyTests becomes redundant — delete

Affected paths

  • Packages/SudokuKit/Sources/GameCenterClient/LeaderboardIDs.swift
  • ASCRegister source (Tools/?)
  • Packages/SudokuKit/Tests/?/ConfigConsistencyTests.swift

Acceptance

  • A single Swift file declares each leaderboard/achievement ID
  • Both consumers import that file
  • ConfigConsistencyTests removed; equivalent compile-time guarantee remains

Out of scope

  • Not blocking v2 ship

Activity

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