Skip to content

refactor(composition): rename Sudoku AppComposition to SudokuAppComposition - #745

Merged
wei18 merged 1 commit into
mainfrom
refactor/739-sudoku-appcomposition-rename
Jul 10, 2026
Merged

wei18 merged 1 commit into
mainfrom
refactor/739-sudoku-appcomposition-rename

Conversation

@wei18

@wei18 wei18 commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Closes #739 — unifies the composition-root naming: both apps are now <Game>AppComposition, resolving the ⚠️ SDD-005 §Pillar A flagged on Sudoku's unprefixed type. Aligns with the game-factory north star (game N mirrors the platform → every game gets <Game>AppComposition).

What (pure mechanical rename, ~42 files)

Sudoku's DI composition-root type AppComposition → SudokuAppComposition: the type + .live()/.preview()/.tests() factories (git-mv'd AppComposition.swift → SudokuAppComposition.swift), every call site, and all doc-comment references across the Kits. The target directory SudokuAppComposition/ was already correctly prefixed. MS's MinesweeperAppComposition untouched. Stringly-refs updated: mise-tasks/new_app/provisioning (the sudoku LIVE_COMPOSITION default), SDD-005 Pillar A (⚠️→✓), README + README.zh-Hant architecture tree.

Verification

  • rg '\\bAppComposition\\b' -g '*.swift' repo-wide → 0 residuals. SudokuKit 270/270, MinesweeperKit 224/224, GameAppKit 29/29 — all passed, zero snapshot rebaselines.
  • Dual review (sonnet + haiku, mandatory since it touches AppComposition): both approve, confirmed pure identifier substitution with no logic change and clean git-mv. Their 2 comment-only MINORs (a stale SettingsKit AppComposition reference now made game-neutral, and an adjacent pre-existing AppCompositionTests→SudokuAppCompositionTests comment) applied inline.

🤖 Generated with Claude Code

…osition to SudokuAppComposition

Renames Sudoku's DI composition-root type from the bare `AppComposition` to
`SudokuAppComposition`, so both apps follow the `<Game>AppComposition`
convention (Minesweeper was already `MinesweeperAppComposition`). Purely
mechanical: type rename + all call sites/doc-comments referencing it across
SudokuKit, MinesweeperKit's comparison comments, and the shared Kits
(TelemetryKit/PersistenceKit/AppMonetizationKit/GameAppKit/SettingsKit); the
already-correct `SudokuAppComposition/` target directory is untouched, only
its `AppComposition.swift` file is renamed to match the type. Also fixes the
one functional stringly reference (mise-tasks/new_app/provisioning's sudoku
LIVE_COMPOSITION default) and updates SDD-005's Pillar A table + README
architecture trees to drop the asymmetry. No behavior change.

Closes #739

Co-Authored-By: Claude Fable 5 <[email protected]>
@wei18
wei18 enabled auto-merge (squash) July 10, 2026 00:11
@wei18
wei18 merged commit 014c547 into main Jul 10, 2026
4 checks passed
@wei18
wei18 deleted the refactor/739-sudoku-appcomposition-rename branch July 10, 2026 00:12
wei18 added a commit that referenced this pull request Jul 10, 2026
Records the composition rename (#739/#745), settings-persistence
inventory + LastSelectionStore fill (#720/#746), the two-round
Acknowledgements diagnostic (#721/#748), the #700/#738 ASCRegister
apply closeout (11 achievements + 77 loc, 21 leaderboard-loc UPDATEs),
and the #713 upkeep-triage disposition including the unreconciled
13-vs-15 finding-count discrepancy.

Co-authored-by: Claude Fable 5 <[email protected]>
@wei18 wei18 mentioned this pull request Jul 10, 2026
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.

refactor(composition): unify composition-root naming — Sudoku AppComposition → SudokuAppComposition

1 participant