Repository navigation
docs(contracts): document completedRedirect and the reminder foreground re-poll - #932
Merged
Merged
Conversation
…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]>
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 the two contract gaps the navigation audit left open, now that their dependencies have landed.
SUD-BOARD-LOAD-FAILED— the contract listed threeLoadStatecases; there are four..completedRedirect(#842) is a race guard: when the daily open-time precheck finds theSavedGamealready.completed, the loader renders the Completion surface inline instead of ever building a playableGameViewModel. Close uses the sameexitToHub()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 ascenePhasere-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 bygetIsScheduled() == niland 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
scenePhasewiring tracked separately in #931.🤖 Generated with Claude Code