Repository navigation
fix(asc-register): sortOrder ASC + submissionType BEST_SCORE - #21
Merged
Merged
Conversation
…CORE (#19) Closes #19. Round 2 of ASC API shape iteration: - scoreSortType: 'ASCENDING' rejected by ASC → 'ASC' (semantic unchanged, still lower=better matching design.md §How.3.1 'Low to High') - submissionType: required attribute, ASC's 409 didn't enumerate valid values. Best guess 'BEST_SCORE' chosen for sudoku domain (keep personal best; new worse times shouldn't pollute the record). Alternate fallback 'BEST' documented in impl-notes §未決. Tests 342 → 344 (+2 ConfigConsistency assertions, one per new field). 0 warnings. Impl-notes: meetings/2026-05-20_asc-leaderboard-sort-submission.impl-notes.md
wei18
added a commit
that referenced
this pull request
May 20, 2026
…dary (#30) Wire the elapsedSeconds × 100 conversion required by design.md §How.3.1 (ASC ELAPSED_TIME_CENTISECOND formatter, locked in by PR #17 + #21 + #23 + #25 + #27 ASCRegister API shape iterations). - LiveGameCenterClient.submitScore: compute Int64(elapsedSeconds) × 100; pass to SubmitScoreHook (default no-op for backward-compat). Public protocol signature unchanged — callers (GameCenterSink, Sink adapter) pass elapsedSeconds verbatim. - LiveGameCenterClientSubmitTests (NEW, 3 tests): - 251s → 25100cs - 0s → 0cs - 7200s (2h cap) → 720_000cs (matches §How.3.1 abandon rule) - Uses SubmitSpy actor to assert the conversion + leaderboard ID via LeaderboardIDs lookup, no GKLeaderboard wiring needed yet. Files NOT modified (verified clean): - GameCenterSink.swift — Int passthrough, no double-convert risk - GameStateTelemetryAdapter.swift — Int passes through - design.md §How.3.1 — already correct (× 100, mm:ss.SS, centisecond) - AppComposition/Live.swift — default-arg init means no call-site change Tests 352 → 355 (+3). 0 warnings. §未決 (2 deferred to Phase 10): live GKLeaderboard wiring + composition-root hook injection. Conversion itself locked by spy test. impl-notes: meetings/2026-05-20_submit-score-centisecond.impl-notes.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #19. Round 2 ASC API shape fix.
344/344 tests. §未決: BEST_SCORE is a best guess; ASC didn't enumerate valid values. Leader validates on next apply round.
impl-notes: meetings/2026-05-20_asc-leaderboard-sort-submission.impl-notes.md
🤖 Generated with Claude Code