Skip to content

spec: define minesweeper achievements before wiring AchievementEvaluator #700

Closed

Description

@wei18

B2 (part 2) from the 2026-07-05 uiux audit (decided 2026-07-05): MS has no AchievementEvaluator because the achievement list itself is undefined. Product spec needed first (what achievements, thresholds, GC identifiers via ASCRegister), then wire AchievementEvaluator through makeCompletionSinks. Blocked on product definition; not blocked on code.

Activity

  1. wei18 commented on Jul 6, 2026

    @wei18
    OwnerAuthor

    Owner-approved achievement set (2026-07-06) — ~10 achievements, sized to parity with Sudoku's set; identifiers to follow Sudoku's naming convention; created via ASCRegister API (no web UI):

    Category Achievement Threshold
    Starter First Sweep first win, any mode
    Starter Daily Debut first daily win
    Volume Sweeper / Veteran / Master 10 / 50 / 200 cumulative wins (progressive)
    Difficulty Expert Cleared first Expert win
    Difficulty Full Spectrum at least one daily win on each of the three difficulties
    Skill No Flags Needed win without placing a single flag
    Skill Lightning Sweep Expert win under 3 minutes
    Streak Week Streak / Month Streak 7 / 30 consecutive daily wins

    Notes: a "flawless/no-mistake" achievement is inapplicable to MS (first mine tap = loss, no mistake counter) — replaced by the no-flag and speed skill achievements. Implementation mechanism note: Sudoku wires achievements via AchievementEvaluator/makeCompletionSinks, but MS cannot construct the Sudoku-typed TelemetryEvent (same constraint that drove #699's owner decision) — the implementation should follow the same MS-native precedent (evaluate + report beside submitDailyTimeIfWon / the win path) unless #479 lands the generalized seam first. ASCRegister registration run against ASC remains user-owned per asc-ops-handoff.

  2. wei18 commented on Jul 8, 2026

    @wei18
    OwnerAuthor

    Code side lands via #734. Remaining step is user-owned — register the 11 achievements in ASC (creds from secrets/.env, MS ASC app id from project memory):

    sed -n '/^{$/,$p' Packages/ASCRegisterKit/Sources/ASCRegister/Strings/gc-strings.xcstrings.patch > /tmp/gc-strings.json
    swift run --package-path Packages/ASCRegisterKit ASCRegister plan  --key <ASC_P8_PATH> --key-id <KEY_ID> --issuer <ISSUER_ID> --app-id <MS_ASC_APP_ID> --xcstrings /tmp/gc-strings.json --app minesweeper
    # review the plan output, then:
    swift run --package-path Packages/ASCRegisterKit ASCRegister apply --key <ASC_P8_PATH> --key-id <KEY_ID> --issuer <ISSUER_ID> --app-id <MS_ASC_APP_ID> --xcstrings /tmp/gc-strings.json --app minesweeper
    

    (the sed strips the patch file's comment header — XCStringsParser reads raw JSON). Close this issue once apply succeeds. Until registration, the app's reportAchievement calls fail silently behind the error funnel (best-effort by design).

  3. wei18 commented on Jul 9, 2026

    @wei18
    OwnerAuthor

    ASCRegister apply complete (2026-07-09): all 11 Minesweeper achievements + 77 localizations (11 × 7 locales) created on ASC app 6775733519. Re-plan verification shows 0 remaining creates, 11 achievements OK. The app's reportAchievement calls now land on real achievements.

    Scoping note: the full-config reconcile also surfaced 6 pending leaderboard-localization UPDATEs (the 3 MS daily leaderboards' en-US/zh-Hant titles drifting from config toward MS-style 'Daily Beginner/Intermediate/Expert' naming). Those are OUT of this issue's scope, so the apply was deliberately run against an achievements-only strings file (leaderboard keys stripped → reconciler skips them, leaderboards left as OK no-ops). The leaderboard drift is filed separately. Closing #700 — code (#734) + registration both done.

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