Skip to content

feat(new-game): add mise new_game:scaffold generator (#479 pr1) - #678

Merged
wei18 merged 2 commits into
mainfrom
feat/479-pr1-new-game-scaffold
Jul 4, 2026
Merged

wei18 merged 2 commits into
mainfrom
feat/479-pr1-new-game-scaffold

Conversation

@wei18

@wei18 wei18 commented Jul 4, 2026

Copy link
Copy Markdown
Owner

PR1 of the SDD-006 new-game scaffold epic (#479), per the OQ decisions recorded on the issue (Option A generator · runtime-from-Minesweeper template · literal token map · placeholder icon).

mise run new_game:scaffold <Name> stamps a compiling, launchable game-N skeleton: copies MinesweeperCoreKit/MinesweeperKit/App shell/E2E target/ckdb at run time, renames tokens (path + content, binary-safe), drops snapshot baselines (empty baseline dir per RFC), inlines the per-game PrivateCKConfig, and patches Project.swift via four marker-delimited, anchor-asserted blocks (all-or-nothing write — cannot half-patch). Refuses existing destinations; never touches git state. Real IDs stay out ($() xcconfig macros preserved); PR2/PR3 gaps (NEXT-STEPS checklist, ASCRegister GC template, ck:schema/tf:upload/scan:l10n app-name widening) printed as TODO(#479 PR2) and listed on the issue.

Acceptance evidence (RFC §7): throwaway Zephyr run — ZephyrCoreKit build + 87/87, ZephyrKit build + 146/146, tuist install && generate clean, xcodebuild -scheme Zephyr sim BUILD SUCCEEDED, scan:secrets/hygiene pass; Leader launch smoke: app boots on iPhone 17 Pro sim to a live Home ("Zephyr", Daily card, UMP consent flow) — screenshot eyeballed. Dual CR APPROVE ×2 (sonnet ran the script end-to-end in a throwaway clone); round-1 cosmetic nit (rename-mechanism comment) fixed in de3cca2.

Refs #479 (PR1 of 4 — issue stays open).

🤖 Generated with Claude Code

wei18 and others added 2 commits July 4, 2026 17:28
Stamps a compiling Packages/<Name>CoreKit + <Name>Kit + App/<Name>[E2ETests]
+ Project.swift wiring by copying Minesweeper at run time and renaming
Minesweeper/minesweeper tokens (OQ-1 Option A, OQ-2 run-time template source,
per owner decision recorded on #479). Project.swift gets a marker-delimited
generated block, anchored on stable surrounding text rather than line numbers.

PR1 keeps the copied Minesweeper gameplay (engine/session/board UI), renamed,
as the placeholder rather than a from-scratch stub — the RFC's explicitly
sanctioned fallback given MinesweeperUI's ~25-file surface. Snapshot-baseline
test files are dropped (no baselines ship; RFC wants an empty baseline dir)
and PrivateCKConfig's `.minesweeper` shorthand is inlined as a literal so the
generated composition never needs a shared-package edit.

Verified end-to-end with a throwaway `Zephyr` game: swift build + swift test
green for both packages (87 + 146 tests), tuist generate + xcodebuild (iOS
Simulator, Debug) green, scan:secrets/scan:hygiene green with the generated
tree staged. Generated output removed before commit (cp-aside Project.swift
restore, no destructive git).

Co-Authored-By: Claude Fable 5 <[email protected]>
The comment claimed word-boundary-aware matching; the mechanism is a
literal substring replace, safe because the token has no compound
collisions in the current corpus (CR-verified). Say what it is.

Co-Authored-By: Claude Fable 5 <[email protected]>
@wei18
wei18 merged commit 8cff7cf into main Jul 4, 2026
4 checks passed
@wei18
wei18 deleted the feat/479-pr1-new-game-scaffold branch July 4, 2026 14:48
@github-actions github-actions Bot mentioned this pull request Jul 5, 2026
wei18 added a commit that referenced this pull request Jul 6, 2026
- skill count 8 -> 9 in .claude/skills/README.md + CLAUDE.md (screen-
  contract-spec landed in #684 after the last count fix-up #666)
- mise-task-operations index: add the new_game:scaffold row (task
  shipped in #678, row was never added)
- SDD-006 RFC heading: "three existing games" -> two (Tiles2048
  removed 2026-06-29)
- resume-seam-design spec: minesweeper.ckdb is committed, not "absent
  from the repo"

Remaining #668 actionable (elapsed(_:) duplication) is tracked as #710.

refs #668

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

1 participant