Repository navigation
Closed
Description
Make the CloudKit schema Development→Production deploy a commit-trackable, Leader-orderable step (like ASCRegister did for metadata/leaderboards), instead of the current user-owned CK Dashboard manual action.
Feasibility — VERIFIED (2026-06-05)
xcrun cktool is available with full schema support:
export-schema --environment development --output-file <app>.ckdb— pull the dev schema as the committed source of truth.validate-schema— pre-flight check.import-schema --team-id <id> --container-id <id> --environment production --file <app>.ckdb --validate— deploy schema to Production (replaces the manual CK Dashboard promote).- Auth:
save-token --type management— a CloudKit management token (user generates once in CK Dashboard → Tokens; mirrors the ASC API .p8).
Proposed workflow (commit-trackable)
- (one-time, user) Generate a CK management token → store in
secrets/.env(e.g.CK_MANAGEMENT_TOKEN). - Seed: run each app once so it writes to its Development container →
export-schema→ commit<app>.ckdbto the repo (or hand-author — MS's schema is just theMonetizationStaterecord type; Sudoku addsSavedGame+PersonalRecord). - Deploy:
import-schema --environment productionper app (iCloud.com.wei18.sudoku/iCloud.com.wei18.minesweeper). - Wrap as a mise task or a small CLI alongside ASCRegister.
Prereq checklist
- cktool + import-schema→production — ✓ Verified
- export-schema seeds .ckdb — ✓ Verified
- management-token auth mechanism — ✓ Verified
- team-id / container-ids — ✓ (secrets / known)
- CK management token itself — ? user must generate (one-time)
.ckdbschema files — ? export-from-dev (needs app to have written) or hand-author
Context
Replaces the user-owned items: docs/app-store/review/sudoku-v2.5.md "CloudKit schema deployed to Production" + minesweeper-v1.md:92 (same for iCloud.com.wei18.minesweeper). MS currently writes only MonetizationState (Remove-Ads mirror); no SavedGame (no save flow). Consistent with the ASC metadata/GC-leaderboard automation shipped 2026-06-04/05. apply/import remains user-authorized.
Activity
feat(tooling): scriptable CloudKit schema deploy via cktool (#337) (#350
feat(app-store): wire snapshot baselines → store screenshot previews (#…
feat(ci): local archive→TestFlight upload tool (mise run tf:upload) a…
feat(cloudkit): commit schema source of truth + MS SavedGame; fix ck:…