Skip to content

docs(contracts): document completedRedirect and the reminder foreground re-poll - #932

Merged
wei18 merged 1 commit into
mainfrom
docs/close-audit-followups
Jul 21, 2026
Merged

wei18 merged 1 commit into
mainfrom
docs/close-audit-followups

Conversation

@wei18

@wei18 wei18 commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Closes the two contract gaps the navigation audit left open, now that their dependencies have landed.

SUD-BOARD-LOAD-FAILED — the contract listed three LoadState cases; there are four. .completedRedirect (#842) is a race guard: when the daily open-time precheck finds the SavedGame already .completed, the loader renders the Completion surface inline instead of ever building a playable GameViewModel. Close uses the same exitToHub() shape as the live overlay — correct behavior that simply never reached the contract. Noted that MS reaches the equivalent outcome through its tier-2 guard view instead, so the two apps mirror behaviorally but not structurally.

REMINDER-DENIED — the contract said the user "returns manually" from the Settings.app deep-link. That was accurate only because no foreground hook existed. #929 added a scenePhase re-poll, so the row now re-reads permission state on every foreground return; the note records that plus why repeat calls are safe (#817's one-shot migration is guarded by getIsScheduled() == nil and a post-await TOCTOU re-check).

Deliberately held back from #930 — at that point the reminder bug was still being verified, so documenting the fix would have described behavior that was not yet in main.

Docs only. Test-coverage gap for scenePhase wiring tracked separately in #931.

🤖 Generated with Claude Code

…nd re-poll

Closes the two contract gaps left open by the navigation audit:

- SUD-BOARD-LOAD-FAILED listed three LoadState cases; there are four.
  .completedRedirect (#842) is a race guard that renders Completion inline
  when the open-time precheck finds the SavedGame already completed, rather
  than building a playable GameViewModel. MS reaches the same outcome via a
  different structure (its tier-2 guard view), so the apps mirror
  behaviorally but not structurally — worth knowing before unifying them.

- REMINDER-DENIED said the user "returns manually" from the Settings.app
  deep-link, which was accurate only because no foreground hook existed.
  #929 added a scenePhase re-poll, so the row now re-reads permission state
  on every foreground return; noted along with why repeat calls are safe.

Co-Authored-By: Claude Fable 5 <[email protected]>
@wei18
wei18 enabled auto-merge (squash) July 21, 2026 14:17
@wei18
wei18 merged commit 9085999 into main Jul 21, 2026
5 checks passed
@wei18
wei18 deleted the docs/close-audit-followups branch July 21, 2026 14:18
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