Skip to content

fix(asc-register): cap hard.master achievement at 100 points - #41

Merged
wei18 merged 1 commit into
mainfrom
fix/asc-achievement-points-cap
May 20, 2026
Merged

wei18 merged 1 commit into
mainfrom
fix/asc-achievement-points-cap

Conversation

@wei18

@wei18 wei18 commented May 20, 2026

Copy link
Copy Markdown
Owner

Closes #40. Apple's 0-100 per-achievement limit. hard.master 150→100; total 550→500. design.md + feature-tour.md kept in sync. §未決: whether 100 itself is inclusive — iterate to 95 if round 9 still rejects. 364 tests.

🤖 Claude Code

Closes #40. ASC round 8 returned INVALID_POINTS_RANGE on first achievement
POST: 'points between 0 and 100'. Our hard.master = 150 exceeded.

Changes:
- Config.swift: hard.master 150 → 100
- design.md §How.3.2: table row + total 550 → 500 + v2 budget recomputed
  + note added re Apple's 0-100 per-achievement cap (issue #40)
- feature-tour.md: promo copy aligned (total + Hard description)
- ConfigConsistencyTests: pointsBudget 550 → 500 + new pointsRange test
  asserting every entry ∈ [0, 100] as regression guard

§未決 (logged): whether 100 is inclusive. Three entries (daily.streak_7,
practice.complete_100, hard.master) now sit at boundary. If round 9 still
rejects with 100, lower those three to 95 (total → 485).

363 → 364 tests (+1 regression guard). 0 warnings.

impl-notes: meetings/2026-05-20_asc-achievement-points-cap.impl-notes.md
@wei18
wei18 merged commit 02f6cdc into main May 20, 2026
@wei18
wei18 deleted the fix/asc-achievement-points-cap branch May 20, 2026 09:16
wei18 added a commit that referenced this pull request May 20, 2026
…M8) (#51)

Closes 7 audit findings from the 3-reviewer sweep:

B5 setup.md clone URL: Sudoku.git → Sudoku-spec.git (sibling Sudoku/
  repo merged in 2026-05-17 per README L8)

B6 design.md §How.3.3 protocol block: full rewrite to mirror actual
  GameCenterClient.swift signature. submitScore now takes
  (puzzleId:elapsedSeconds:difficulty:leaderboardKind:); new
  LeaderboardScope 3-case enum; PlayerSummary.teamPlayerId;
  AchievementProgress struct; GameCenterError actual cases.

B7 §How.3.1 ↔ §How.3.3 contradiction: §How.3.3 now centisecond /
  mm:ss.SS / 720_000 cap (matches §How.3.1 + PR #25/#41/#17 trail).
  Sink pseudocode in §How.3.3 calls submitScore(elapsedSeconds:)
  with 7200s guard.

M2 §Decisions populated with 14 high-impact entries citing meeting
  logs + PRs/issues. OS floor / single repo / deterministic generator
  / CloudKit Private-only / centisecond / PT24H / 7200s cap / 8 ach
  500pt / no offline queue / Practice not GC / cross-day skip /
  AppRoute 7 cases / 7 locale / native GameCenter switch in flight.

M3 §How.5.2 AppRoute rewritten to actual 7-case enum + footnote
  about issue #49 .leaderboard removal in flight.

M7 methodology.md skill matrix: +9 rows (6 new project-local skills
  + 3 promoted from prose to matrix). New 協作/Review/Spec
  orchestration sub-group.

M8 feature-tour.md L70 336+ → 364; plan.md sweep of stale
  'Sudoku-spec/' two-repo references (4 sites collapsed).

§未決 logged for Leader follow-up:
- §How.3.5 + §How.5.1 still reference old LeaderboardScope case
  names — queue as Wave 1.5 or fold into #49 IMPL (which will
  remove fetchLeaderboardSlice / Slice anyway per Path 5a's
  reduced-scope variant).

No code touched. No regression risk.

impl-notes: meetings/2026-05-20_audit-wave-1-docs-sweep.impl-notes.md
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.

ASC apply round 8 — INVALID_POINTS_RANGE: achievements must be 0-100 per Apple

1 participant