Skip to content

fix(asc-register): recurrenceDuration P1D → PT24H - #25

Merged
wei18 merged 1 commit into
mainfrom
fix/asc-recurrence-duration-pt24h
May 20, 2026
Merged

wei18 merged 1 commit into
mainfrom
fix/asc-recurrence-duration-pt24h

Conversation

@wei18

@wei18 wei18 commented May 20, 2026

Copy link
Copy Markdown
Owner

Closes #24. Round 4 fix: ASC wants recurrenceDuration with time components (PT24H), not date-only (P1D). 2-line change. 350/350. 🤖 Claude Code

Closes #24. ASC apply round 4 returned the only remaining error:

  recurrenceDuration: 'P1D' is not valid for the attribute.
  Expected an ISO 8601 duration with time components.

P1D is date-only. ASC requires the T-prefixed form. PT24H expresses
24 hours, which is the canonical 'recurs every day' interpretation.

Tests 350/350. 0 warnings.
@wei18
wei18 merged commit 2815fee into main May 20, 2026
@wei18
wei18 deleted the fix/asc-recurrence-duration-pt24h branch May 20, 2026 07:55
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
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
wei18 added a commit that referenced this pull request Jun 17, 2026
…es filed) (#542)

Records this session's drivable-case sweep on the current sim:
- pass: #5 rapid double-tap Leave, #28 zh-Hant strings (+ earlier #1/#2/#10/
  #18/#25/#39 from #536 work)
- fail: #22 Dynamic-Type header clip (#540), #34 timer accrues background
  time (#539)
- pend w/ findings: #8 (near-win harness can't model home-return),
  #23 (digit-pad frames ≥44pt but glyphs render blank, #540),
  #29 (no tofu, but Purchases section unlocalized, #541)

New issues: #539 (solve timer counts background time — leaderboard fairness),
#540 (Dynamic Type AX3+ header/digit-pad breakage), #541 (Purchases/IAP
section unlocalized; L10n gate misses catalog-less literals).

Co-authored-by: Claude Opus 4.8 <[email protected]>
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 4 — recurrenceDuration needs ISO 8601 'with time components' (P1D → PT24H)

1 participant