Skip to content

docs(nav): add navigation-flows + screen-contracts as-built spec, fix stale drift - #683

Merged
wei18 merged 3 commits into
mainfrom
docs/nav-flow-spec-and-corrections
Jul 4, 2026
Merged

wei18 merged 3 commits into
mainfrom
docs/nav-flow-spec-and-corrections

Conversation

@wei18

@wei18 wei18 commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Introduces the canonical AS-BUILT navigation spec for both apps and corrects the documentation drift the spec-audit surfaced.

New (SSOT):

  • docs/navigation-flows.md — route model, two-context board presentation (iOS modal / macOS push), per-app flow chains + mermaid, 18-row negative-flow table.
  • docs/screen-contracts.md — 21 screen contracts: element inventory · interaction→destination/presentation/back-lands-on · covering behavior · state variants · code anchors.

Corrections: scoped AS-BUILT banners on docs/v1/design.md §How.5 and docs/designs/01-08; SDD-003 Epic 4 CTA-evolution note; SDD-006 status + NEXT-STEPS-is-stdout correction; both prototype HTML Play-Again caveats; 02-home punctuation.

Real drifts surfaced (now documented, candidates for product decisions): MS daily-ready reminder tap is a no-op (no reminderTapRoute); MS solved-daily Close pops to Home while Sudoku pops to the Daily hub (asymmetry); the completion top-3 leaderboard slice + 'View full leaderboard' CTA are removed (state: .hidden everywhere) — the #468 dormant machinery, flagged in 06/07 banners.

Dual CR: haiku APPROVE (mechanical); sonnet APPROVE after one blocking fix (07-leaderboard banner wrongly claimed 'verified accurate' while its body described the removed slice — corrected in b61c9fd). All 5 code-contradiction claims + presentation tags + negative-flow rows independently verified against source.

🤖 Generated with Claude Code

wei18 and others added 3 commits July 5, 2026 00:20
New canonical AS-BUILT spec pair for both apps' screen transitions:
docs/navigation-flows.md (route model, per-app flow chains + mermaid,
negative-flow table) and docs/screen-contracts.md (per-screen element
inventory, interaction-outcome, covering-behavior, and state-variant
contracts) — replacing prose flow claims scattered across
docs/v1/design.md §How.5 and docs/designs/01-08 with one code-verified
source of truth. Surfaces two real cross-app drifts the audit missed:
Minesweeper's daily-ready reminder never deep-links (no
reminderTapRoute wired), and MS's solved-daily re-view Close pops to
Home while Sudoku's pops to the Daily hub.

Also lands the completed spec-drift audit's corrections: scoped
AS-BUILT-UPDATE banners on design.md §How.5 and docs/designs/01-08 (05
flags the stale pause-overlay/nav-bar-timer sections, 06 flags the
stale fullScreenCover-CompletionView/Play-Again-pushes sections, 08
notes the #516 themed-background exception), a completion-mock caveat
on both app-flow prototypes, an SDD-003 Epic 4 CTA-evolution update, an
SDD-006 status/scope correction (PR1 prints a TODO block to stdout;
NEXT-STEPS.md is PR2 scope), and 02-home.md's two subtitle punctuation
nits ("Global / friends", "Account / language" to match code).

Co-Authored-By: Claude Fable 5 <[email protected]>
…ADICTED (CR)

The banner claimed the doc was verified accurate, but its own body §b/§d
still describe the completion-embedded top-3 mini-slice + View-full-
leaderboard CTA, both removed in SDD-003 Epic 4 (CompletionView.swift
calls CompletionScreen with state: .hidden). Flag §b/§d as CODE
CONTRADICTED, mirroring 06-completion.md; the dormant slice = #468.

Co-Authored-By: Claude Fable 5 <[email protected]>
The banner edit pulled docs/v1/design.md into the lychee changed-file
set, exposing a long-standing broken link: (v2/design.md) resolved to
docs/v1/v2/design.md. Corrected to ../v2/design.md.

Co-Authored-By: Claude Fable 5 <[email protected]>
@wei18
wei18 merged commit 519c0b0 into main Jul 4, 2026
4 checks passed
@wei18
wei18 deleted the docs/nav-flow-spec-and-corrections branch July 4, 2026 16:41
wei18 added a commit that referenced this pull request Jul 4, 2026
Spec-first navigation methodology: screen contracts (element inventory +
per-interaction presentation semantics + back/close landing + covering/
z-order + state variants) + forward/negative flow chains, code-anchored.
Synthesizes web research (wireflows, statecharts, HIG modality, model-based
test derivation) + this repo battle-scars (#2B/#197/#523/#611/#518/#674).
Worked example: docs/screen-contracts.md + docs/navigation-flows.md (#683).

Co-authored-by: Claude Fable 5 <[email protected]>
wei18 added a commit that referenced this pull request Jul 5, 2026
…ain (#695)

Session log: 4-screenshot bug wave (#673-#677), three-lane dual-app
UIUX/spec audit, navigation-flows + screen-contracts spec (#683), the
screen-contract-spec skill (#684), the contract-driven static pass, the
4-PR fix train (#690-#693), two evidence-based environmental downgrades,
and the gated open items (#685/#468/B1-B4/#694).

Co-authored-by: Claude Fable 5 <[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.

1 participant